0s autopkgtest [16:45:09]: starting date and time: 2025-09-04 16:45:09+0000 0s autopkgtest [16:45:09]: git checkout: 508d4a25 a-v-ssh wait_for_ssh: demote "ssh connection failed" to a debug message 0s autopkgtest [16:45:09]: host juju-7f2275-prod-proposed-migration-environment-9; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.7qpcmbij/out --timeout-copy=6000 --setup-commands 'ln -s /dev/null /etc/systemd/system/bluetooth.service; printf "http_proxy=http://squid.internal:3128\nhttps_proxy=http://squid.internal:3128\nno_proxy=127.0.0.1,127.0.1.1,localhost,localdomain,internal,login.ubuntu.com,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com,radosgw.ps5.canonical.com\n" >> /etc/environment' --apt-pocket=proposed=src:build-essential --apt-upgrade glib2.0 --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=build-essential/12.12ubuntu2 -- lxd -r lxd-armhf-10.145.243.197 lxd-armhf-10.145.243.197:autopkgtest/ubuntu/questing/armhf 20s autopkgtest [16:45:29]: testbed dpkg architecture: armhf 22s autopkgtest [16:45:31]: testbed apt version: 3.1.5ubuntu1 26s autopkgtest [16:45:35]: @@@@@@@@@@@@@@@@@@@@ test bed setup 28s autopkgtest [16:45:37]: testbed release detected to be: None 35s autopkgtest [16:45:44]: updating testbed package index (apt update) 37s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [265 kB] 37s Get:2 http://ftpmaster.internal/ubuntu questing InRelease [265 kB] 38s Get:3 http://ftpmaster.internal/ubuntu questing-updates InRelease [126 kB] 38s Get:4 http://ftpmaster.internal/ubuntu questing-security InRelease [126 kB] 38s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [59.7 kB] 38s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/restricted Sources [3848 B] 38s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [14.1 kB] 38s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [239 kB] 38s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/main armhf Packages [81.3 kB] 38s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/main armhf c-n-f Metadata [2824 B] 38s Get:11 http://ftpmaster.internal/ubuntu questing-proposed/restricted armhf Packages [728 B] 38s Get:12 http://ftpmaster.internal/ubuntu questing-proposed/restricted armhf c-n-f Metadata [120 B] 38s Get:13 http://ftpmaster.internal/ubuntu questing-proposed/universe armhf Packages [203 kB] 39s Get:14 http://ftpmaster.internal/ubuntu questing-proposed/universe armhf c-n-f Metadata [6536 B] 39s Get:15 http://ftpmaster.internal/ubuntu questing-proposed/multiverse armhf Packages [3200 B] 39s Get:16 http://ftpmaster.internal/ubuntu questing-proposed/multiverse armhf c-n-f Metadata [268 B] 39s Get:17 http://ftpmaster.internal/ubuntu questing/universe Sources [21.1 MB] 55s Get:18 http://ftpmaster.internal/ubuntu questing/restricted Sources [15.7 kB] 55s Get:19 http://ftpmaster.internal/ubuntu questing/multiverse Sources [310 kB] 55s Get:20 http://ftpmaster.internal/ubuntu questing/main Sources [1398 kB] 55s Get:21 http://ftpmaster.internal/ubuntu questing/main armhf Packages [1348 kB] 56s Get:22 http://ftpmaster.internal/ubuntu questing/main armhf c-n-f Metadata [29.4 kB] 56s Get:23 http://ftpmaster.internal/ubuntu questing/restricted armhf Packages [1640 B] 56s Get:24 http://ftpmaster.internal/ubuntu questing/universe armhf Packages [15.0 MB] 63s Get:25 http://ftpmaster.internal/ubuntu questing/universe armhf c-n-f Metadata [278 kB] 64s Get:26 http://ftpmaster.internal/ubuntu questing/multiverse armhf Packages [182 kB] 66s Fetched 41.1 MB in 28s (1446 kB/s) 67s Reading package lists... 73s autopkgtest [16:46:22]: upgrading testbed (apt dist-upgrade and autopurge) 75s Reading package lists... 75s Building dependency tree... 75s Reading state information... 76s Calculating upgrade... 76s The following packages will be upgraded: 76s cryptsetup-bin dash libbrotli1 libcryptsetup12 76s 4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 76s Need to get 893 kB of archives. 76s After this operation, 0 B of additional disk space will be used. 76s Get:1 http://ftpmaster.internal/ubuntu questing/main armhf dash armhf 0.5.12-12ubuntu2 [87.6 kB] 77s Get:2 http://ftpmaster.internal/ubuntu questing/main armhf libcryptsetup12 armhf 2:2.8.0-1ubuntu2 [254 kB] 77s Get:3 http://ftpmaster.internal/ubuntu questing/main armhf cryptsetup-bin armhf 2:2.8.0-1ubuntu2 [232 kB] 77s Get:4 http://ftpmaster.internal/ubuntu questing/main armhf libbrotli1 armhf 1.1.0-2build5 [320 kB] 78s Preconfiguring packages ... 78s Fetched 893 kB in 1s (850 kB/s) 78s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 64903 files and directories currently installed.) 78s Preparing to unpack .../dash_0.5.12-12ubuntu2_armhf.deb ... 78s Unpacking dash (0.5.12-12ubuntu2) over (0.5.12-12ubuntu1) ... 78s Setting up dash (0.5.12-12ubuntu2) ... 78s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 64903 files and directories currently installed.) 78s Preparing to unpack .../libcryptsetup12_2%3a2.8.0-1ubuntu2_armhf.deb ... 78s Unpacking libcryptsetup12:armhf (2:2.8.0-1ubuntu2) over (2:2.8.0-1ubuntu1) ... 78s Preparing to unpack .../cryptsetup-bin_2%3a2.8.0-1ubuntu2_armhf.deb ... 78s Unpacking cryptsetup-bin (2:2.8.0-1ubuntu2) over (2:2.8.0-1ubuntu1) ... 78s Preparing to unpack .../libbrotli1_1.1.0-2build5_armhf.deb ... 78s Unpacking libbrotli1:armhf (1.1.0-2build5) over (1.1.0-2build4) ... 78s Setting up libbrotli1:armhf (1.1.0-2build5) ... 78s Setting up libcryptsetup12:armhf (2:2.8.0-1ubuntu2) ... 78s Setting up cryptsetup-bin (2:2.8.0-1ubuntu2) ... 78s Processing triggers for man-db (2.13.1-1) ... 79s Processing triggers for debianutils (5.23.2) ... 79s Processing triggers for libc-bin (2.42-0ubuntu1) ... 82s Reading package lists... 82s Building dependency tree... 82s Reading state information... 82s Solving dependencies... 83s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 85s autopkgtest [16:46:34]: rebooting testbed after setup commands that affected boot 125s autopkgtest [16:47:14]: testbed running kernel: Linux 6.8.0-58-generic #60~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 28 14:48:37 UTC 2 149s autopkgtest [16:47:38]: @@@@@@@@@@@@@@@@@@@@ apt-source glib2.0 218s Get:1 http://ftpmaster.internal/ubuntu questing/main glib2.0 2.85.3-1 (dsc) [4963 B] 218s Get:2 http://ftpmaster.internal/ubuntu questing/main glib2.0 2.85.3-1 (tar) [661 kB] 218s Get:3 http://ftpmaster.internal/ubuntu questing/main glib2.0 2.85.3-1 (tar) [5664 kB] 218s Get:4 http://ftpmaster.internal/ubuntu questing/main glib2.0 2.85.3-1 (diff) [139 kB] 218s gpgv: Signature made Mon Aug 18 20:48:00 2025 UTC 218s gpgv: using RSA key 7A073AD1AE694FA25BFF62E5235C099D3EB33076 218s gpgv: Can't check signature: No public key 218s dpkg-source: warning: cannot verify inline signature for ./glib2.0_2.85.3-1.dsc: no acceptable signature found 219s autopkgtest [16:48:48]: testing package glib2.0 version 2.85.3-1 226s autopkgtest [16:48:55]: build not needed 234s autopkgtest [16:49:03]: test build: preparing testbed 236s Reading package lists... 236s Building dependency tree... 236s Reading state information... 236s Solving dependencies... 237s The following packages will be REMOVED: 237s coreutils-from-gnu 237s The following NEW packages will be installed: 237s build-essential coreutils-from-uutils cpp cpp-15 cpp-15-arm-linux-gnueabihf 237s cpp-arm-linux-gnueabihf g++ g++-15 g++-15-arm-linux-gnueabihf 237s g++-arm-linux-gnueabihf gcc gcc-15 gcc-15-arm-linux-gnueabihf 237s gcc-arm-linux-gnueabihf libasan8 libblkid-dev libc-dev-bin libc6-dev 237s libcc1-0 libcrypt-dev libffi-dev libgcc-15-dev libgio-2.0-dev libgomp1 237s libisl23 libmount-dev libmpc3 libpcre2-16-0 libpcre2-32-0 libpcre2-dev 237s libpcre2-posix3 libpkgconf3 libselinux1-dev libsepol-dev libstdc++-15-dev 237s libsysprof-capture-4-dev libubsan1 linux-libc-dev pkgconf pkgconf-bin 237s rpcsvc-proto rust-coreutils uuid-dev zlib1g-dev 237s 0 upgraded, 44 newly installed, 1 to remove and 0 not upgraded. 237s Need to get 263 MB of archives. 237s After this operation, 935 MB of additional disk space will be used. 237s Get:1 http://ftpmaster.internal/ubuntu questing/main armhf rust-coreutils armhf 0.1.0+git20250813.4af2a84-0ubuntu2 [2945 kB] 240s Get:2 http://ftpmaster.internal/ubuntu questing/universe armhf coreutils-from-uutils all 0.0.0~ubuntu20 [6490 B] 240s Get:3 http://ftpmaster.internal/ubuntu questing/main armhf libc-dev-bin armhf 2.42-0ubuntu1 [21.8 kB] 240s Get:4 http://ftpmaster.internal/ubuntu questing/main armhf linux-libc-dev armhf 6.16.0-16.16 [1757 kB] 242s Get:5 http://ftpmaster.internal/ubuntu questing/main armhf libcrypt-dev armhf 1:4.4.38-1 [120 kB] 242s Get:6 http://ftpmaster.internal/ubuntu questing/main armhf rpcsvc-proto armhf 1.4.3-1 [62.3 kB] 242s Get:7 http://ftpmaster.internal/ubuntu questing/main armhf libc6-dev armhf 2.42-0ubuntu1 [1416 kB] 244s Get:8 http://ftpmaster.internal/ubuntu questing/main armhf libisl23 armhf 0.27-1 [546 kB] 245s Get:9 http://ftpmaster.internal/ubuntu questing/main armhf libmpc3 armhf 1.3.1-1build3 [47.2 kB] 245s Get:10 http://ftpmaster.internal/ubuntu questing/main armhf cpp-15-arm-linux-gnueabihf armhf 15.2.0-2ubuntu1 [76.5 MB] 311s Get:11 http://ftpmaster.internal/ubuntu questing/main armhf cpp-15 armhf 15.2.0-2ubuntu1 [1032 B] 311s Get:12 http://ftpmaster.internal/ubuntu questing/main armhf cpp-arm-linux-gnueabihf armhf 4:15.1.0-1ubuntu1 [5592 B] 311s Get:13 http://ftpmaster.internal/ubuntu questing/main armhf cpp armhf 4:15.1.0-1ubuntu1 [22.5 kB] 311s Get:14 http://ftpmaster.internal/ubuntu questing/main armhf libcc1-0 armhf 15.2.0-2ubuntu1 [43.6 kB] 311s Get:15 http://ftpmaster.internal/ubuntu questing/main armhf libgomp1 armhf 15.2.0-2ubuntu1 [129 kB] 311s Get:16 http://ftpmaster.internal/ubuntu questing/main armhf libasan8 armhf 15.2.0-2ubuntu1 [2952 kB] 312s Get:17 http://ftpmaster.internal/ubuntu questing/main armhf libubsan1 armhf 15.2.0-2ubuntu1 [1188 kB] 313s Get:18 http://ftpmaster.internal/ubuntu questing/main armhf libgcc-15-dev armhf 15.2.0-2ubuntu1 [898 kB] 313s Get:19 http://ftpmaster.internal/ubuntu questing/main armhf gcc-15-arm-linux-gnueabihf armhf 15.2.0-2ubuntu1 [83.9 MB] 336s Get:20 http://ftpmaster.internal/ubuntu questing/main armhf gcc-15 armhf 15.2.0-2ubuntu1 [489 kB] 336s Get:21 http://ftpmaster.internal/ubuntu questing/main armhf gcc-arm-linux-gnueabihf armhf 4:15.1.0-1ubuntu1 [1224 B] 336s Get:22 http://ftpmaster.internal/ubuntu questing/main armhf gcc armhf 4:15.1.0-1ubuntu1 [5020 B] 336s Get:23 http://ftpmaster.internal/ubuntu questing/main armhf libstdc++-15-dev armhf 15.2.0-2ubuntu1 [2601 kB] 337s Get:24 http://ftpmaster.internal/ubuntu questing/main armhf g++-15-arm-linux-gnueabihf armhf 15.2.0-2ubuntu1 [82.2 MB] 347s Get:25 http://ftpmaster.internal/ubuntu questing/main armhf g++-15 armhf 15.2.0-2ubuntu1 [23.1 kB] 347s Get:26 http://ftpmaster.internal/ubuntu questing/main armhf g++-arm-linux-gnueabihf armhf 4:15.1.0-1ubuntu1 [972 B] 347s Get:27 http://ftpmaster.internal/ubuntu questing/main armhf g++ armhf 4:15.1.0-1ubuntu1 [1092 B] 347s Get:28 http://ftpmaster.internal/ubuntu questing-proposed/main armhf build-essential armhf 12.12ubuntu2 [5256 B] 347s Get:29 http://ftpmaster.internal/ubuntu questing/main armhf libffi-dev armhf 3.5.2-1 [58.7 kB] 347s Get:30 http://ftpmaster.internal/ubuntu questing/main armhf uuid-dev armhf 2.41-4ubuntu3 [54.3 kB] 347s Get:31 http://ftpmaster.internal/ubuntu questing/main armhf libblkid-dev armhf 2.41-4ubuntu3 [221 kB] 347s Get:32 http://ftpmaster.internal/ubuntu questing/main armhf libsepol-dev armhf 3.8.1-1 [382 kB] 347s Get:33 http://ftpmaster.internal/ubuntu questing/main armhf libpcre2-16-0 armhf 10.46-1 [206 kB] 347s Get:34 http://ftpmaster.internal/ubuntu questing/main armhf libpcre2-32-0 armhf 10.46-1 [197 kB] 347s Get:35 http://ftpmaster.internal/ubuntu questing/main armhf libpcre2-posix3 armhf 10.46-1 [6286 B] 347s Get:36 http://ftpmaster.internal/ubuntu questing/main armhf libpcre2-dev armhf 10.46-1 [744 kB] 347s Get:37 http://ftpmaster.internal/ubuntu questing/main armhf libselinux1-dev armhf 3.8.1-1 [168 kB] 347s Get:38 http://ftpmaster.internal/ubuntu questing/main armhf libmount-dev armhf 2.41-4ubuntu3 [36.2 kB] 347s Get:39 http://ftpmaster.internal/ubuntu questing/main armhf libsysprof-capture-4-dev armhf 48.0-2 [49.3 kB] 347s Get:40 http://ftpmaster.internal/ubuntu questing/main armhf libpkgconf3 armhf 1.8.1-4 [26.6 kB] 347s Get:41 http://ftpmaster.internal/ubuntu questing/main armhf pkgconf-bin armhf 1.8.1-4 [21.2 kB] 347s Get:42 http://ftpmaster.internal/ubuntu questing/main armhf pkgconf armhf 1.8.1-4 [16.8 kB] 347s Get:43 http://ftpmaster.internal/ubuntu questing/main armhf zlib1g-dev armhf 1:1.3.dfsg+really1.3.1-1ubuntu1 [880 kB] 347s Get:44 http://ftpmaster.internal/ubuntu questing/main armhf libgio-2.0-dev armhf 2.85.3-1 [1730 kB] 348s Fetched 263 MB in 1min 50s (2389 kB/s) 348s Selecting previously unselected package rust-coreutils. 348s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 64903 files and directories currently installed.) 348s Preparing to unpack .../rust-coreutils_0.1.0+git20250813.4af2a84-0ubuntu2_armhf.deb ... 348s Unpacking rust-coreutils (0.1.0+git20250813.4af2a84-0ubuntu2) ... 348s Setting up rust-coreutils (0.1.0+git20250813.4af2a84-0ubuntu2) ... 348s dpkg: coreutils-from-gnu: dependency problems, but removing anyway as you requested: 348s coreutils depends on coreutils-from-gnu | coreutils-from-uutils; however: 348s Package coreutils-from-gnu is to be removed. 348s Package coreutils-from-uutils is not installed. 348s 348s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 65636 files and directories currently installed.) 348s Removing coreutils-from-gnu (0.0.0~ubuntu20) ... 348s Adding 'diversion of /usr/bin/[ to /usr/bin/[.remove-bak by coreutils-switch' 348s Adding 'diversion of /usr/bin/arch to /usr/bin/arch.remove-bak by coreutils-switch' 348s Adding 'diversion of /usr/bin/b2sum to /usr/bin/b2sum.remove-bak by coreutils-switch' 348s Adding 'diversion of /usr/bin/base32 to /usr/bin/base32.remove-bak by coreutils-switch' 348s Adding 'diversion of /usr/bin/base64 to /usr/bin/base64.remove-bak by coreutils-switch' 348s Adding 'diversion of /usr/bin/basename to /usr/bin/basename.remove-bak by coreutils-switch' 348s Adding 'diversion of /usr/bin/basenc to /usr/bin/basenc.remove-bak by coreutils-switch' 348s Adding 'diversion of /usr/bin/cat to /usr/bin/cat.remove-bak by coreutils-switch' 348s Adding 'diversion of /usr/bin/chcon to /usr/bin/chcon.remove-bak by coreutils-switch' 348s Adding 'diversion of /usr/bin/chgrp to /usr/bin/chgrp.remove-bak by coreutils-switch' 348s Adding 'diversion of /usr/bin/chmod to /usr/bin/chmod.remove-bak by coreutils-switch' 348s Adding 'diversion of /usr/bin/chown to /usr/bin/chown.remove-bak by coreutils-switch' 348s Adding 'diversion of /usr/bin/cksum to /usr/bin/cksum.remove-bak by coreutils-switch' 348s Adding 'diversion of /usr/bin/comm to /usr/bin/comm.remove-bak by coreutils-switch' 348s Adding 'diversion of /usr/bin/cp to /usr/bin/cp.remove-bak by coreutils-switch' 348s Adding 'diversion of /usr/bin/csplit to /usr/bin/csplit.remove-bak by coreutils-switch' 348s Adding 'diversion of /usr/bin/cut to /usr/bin/cut.remove-bak by coreutils-switch' 348s Adding 'diversion of /usr/bin/date to /usr/bin/date.remove-bak by coreutils-switch' 348s Adding 'diversion of /usr/bin/dd to /usr/bin/dd.remove-bak by coreutils-switch' 348s Adding 'diversion of /usr/bin/df to /usr/bin/df.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/dir to /usr/bin/dir.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/dircolors to /usr/bin/dircolors.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/dirname to /usr/bin/dirname.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/du to /usr/bin/du.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/echo to /usr/bin/echo.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/env to /usr/bin/env.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/expand to /usr/bin/expand.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/expr to /usr/bin/expr.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/factor to /usr/bin/factor.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/false to /usr/bin/false.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/fmt to /usr/bin/fmt.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/fold to /usr/bin/fold.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/groups to /usr/bin/groups.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/head to /usr/bin/head.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/hostid to /usr/bin/hostid.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/id to /usr/bin/id.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/install to /usr/bin/install.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/join to /usr/bin/join.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/link to /usr/bin/link.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/ln to /usr/bin/ln.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/logname to /usr/bin/logname.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/ls to /usr/bin/ls.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/md5sum to /usr/bin/md5sum.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/mkdir to /usr/bin/mkdir.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/mkfifo to /usr/bin/mkfifo.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/mknod to /usr/bin/mknod.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/mktemp to /usr/bin/mktemp.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/mv to /usr/bin/mv.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/nice to /usr/bin/nice.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/nl to /usr/bin/nl.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/nohup to /usr/bin/nohup.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/nproc to /usr/bin/nproc.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/numfmt to /usr/bin/numfmt.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/od to /usr/bin/od.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/paste to /usr/bin/paste.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/pathchk to /usr/bin/pathchk.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/pinky to /usr/bin/pinky.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/pr to /usr/bin/pr.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/printenv to /usr/bin/printenv.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/printf to /usr/bin/printf.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/ptx to /usr/bin/ptx.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/pwd to /usr/bin/pwd.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/readlink to /usr/bin/readlink.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/realpath to /usr/bin/realpath.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/rm to /usr/bin/rm.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/rmdir to /usr/bin/rmdir.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/runcon to /usr/bin/runcon.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/seq to /usr/bin/seq.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/sha1sum to /usr/bin/sha1sum.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/sha224sum to /usr/bin/sha224sum.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/sha256sum to /usr/bin/sha256sum.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/sha384sum to /usr/bin/sha384sum.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/sha512sum to /usr/bin/sha512sum.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/shred to /usr/bin/shred.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/shuf to /usr/bin/shuf.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/sleep to /usr/bin/sleep.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/sort to /usr/bin/sort.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/split to /usr/bin/split.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/stat to /usr/bin/stat.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/stdbuf to /usr/bin/stdbuf.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/stty to /usr/bin/stty.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/sum to /usr/bin/sum.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/sync to /usr/bin/sync.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/tac to /usr/bin/tac.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/tail to /usr/bin/tail.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/tee to /usr/bin/tee.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/test to /usr/bin/test.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/timeout to /usr/bin/timeout.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/touch to /usr/bin/touch.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/tr to /usr/bin/tr.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/true to /usr/bin/true.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/truncate to /usr/bin/truncate.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/tsort to /usr/bin/tsort.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/tty to /usr/bin/tty.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/uname to /usr/bin/uname.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/unexpand to /usr/bin/unexpand.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/uniq to /usr/bin/uniq.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/unlink to /usr/bin/unlink.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/users to /usr/bin/users.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/vdir to /usr/bin/vdir.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/wc to /usr/bin/wc.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/who to /usr/bin/who.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/whoami to /usr/bin/whoami.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/bin/yes to /usr/bin/yes.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/sbin/chroot to /usr/sbin/chroot.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/share/man/man1/arch.1.gz to /usr/share/man/man1/arch.1.gz.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/share/man/man1/b2sum.1.gz to /usr/share/man/man1/b2sum.1.gz.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/share/man/man1/base32.1.gz to /usr/share/man/man1/base32.1.gz.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/share/man/man1/base64.1.gz to /usr/share/man/man1/base64.1.gz.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/share/man/man1/basename.1.gz to /usr/share/man/man1/basename.1.gz.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/share/man/man1/basenc.1.gz to /usr/share/man/man1/basenc.1.gz.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/share/man/man1/cat.1.gz to /usr/share/man/man1/cat.1.gz.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/share/man/man1/chcon.1.gz to /usr/share/man/man1/chcon.1.gz.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/share/man/man1/chgrp.1.gz to /usr/share/man/man1/chgrp.1.gz.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/share/man/man1/chmod.1.gz to /usr/share/man/man1/chmod.1.gz.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/share/man/man1/chown.1.gz to /usr/share/man/man1/chown.1.gz.remove-bak by coreutils-switch' 349s Adding 'diversion of /usr/share/man/man1/cksum.1.gz to /usr/share/man/man1/cksum.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/comm.1.gz to /usr/share/man/man1/comm.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/cp.1.gz to /usr/share/man/man1/cp.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/csplit.1.gz to /usr/share/man/man1/csplit.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/cut.1.gz to /usr/share/man/man1/cut.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/date.1.gz to /usr/share/man/man1/date.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/dd.1.gz to /usr/share/man/man1/dd.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/df.1.gz to /usr/share/man/man1/df.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/dir.1.gz to /usr/share/man/man1/dir.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/dircolors.1.gz to /usr/share/man/man1/dircolors.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/dirname.1.gz to /usr/share/man/man1/dirname.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/du.1.gz to /usr/share/man/man1/du.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/echo.1.gz to /usr/share/man/man1/echo.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/env.1.gz to /usr/share/man/man1/env.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/expand.1.gz to /usr/share/man/man1/expand.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/expr.1.gz to /usr/share/man/man1/expr.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/factor.1.gz to /usr/share/man/man1/factor.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/false.1.gz to /usr/share/man/man1/false.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/fmt.1.gz to /usr/share/man/man1/fmt.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/fold.1.gz to /usr/share/man/man1/fold.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/groups.1.gz to /usr/share/man/man1/groups.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/head.1.gz to /usr/share/man/man1/head.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/hostid.1.gz to /usr/share/man/man1/hostid.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/id.1.gz to /usr/share/man/man1/id.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/install.1.gz to /usr/share/man/man1/install.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/join.1.gz to /usr/share/man/man1/join.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/link.1.gz to /usr/share/man/man1/link.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/ln.1.gz to /usr/share/man/man1/ln.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/logname.1.gz to /usr/share/man/man1/logname.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/ls.1.gz to /usr/share/man/man1/ls.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/md5sum.1.gz to /usr/share/man/man1/md5sum.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/mkdir.1.gz to /usr/share/man/man1/mkdir.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/mkfifo.1.gz to /usr/share/man/man1/mkfifo.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/mknod.1.gz to /usr/share/man/man1/mknod.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/mktemp.1.gz to /usr/share/man/man1/mktemp.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/mv.1.gz to /usr/share/man/man1/mv.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/nice.1.gz to /usr/share/man/man1/nice.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/nl.1.gz to /usr/share/man/man1/nl.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/nohup.1.gz to /usr/share/man/man1/nohup.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/nproc.1.gz to /usr/share/man/man1/nproc.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/numfmt.1.gz to /usr/share/man/man1/numfmt.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/od.1.gz to /usr/share/man/man1/od.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/paste.1.gz to /usr/share/man/man1/paste.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/pathchk.1.gz to /usr/share/man/man1/pathchk.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/pinky.1.gz to /usr/share/man/man1/pinky.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/pr.1.gz to /usr/share/man/man1/pr.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/printenv.1.gz to /usr/share/man/man1/printenv.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/printf.1.gz to /usr/share/man/man1/printf.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/ptx.1.gz to /usr/share/man/man1/ptx.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/pwd.1.gz to /usr/share/man/man1/pwd.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/readlink.1.gz to /usr/share/man/man1/readlink.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/realpath.1.gz to /usr/share/man/man1/realpath.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/rm.1.gz to /usr/share/man/man1/rm.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/rmdir.1.gz to /usr/share/man/man1/rmdir.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/runcon.1.gz to /usr/share/man/man1/runcon.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/seq.1.gz to /usr/share/man/man1/seq.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/sha1sum.1.gz to /usr/share/man/man1/sha1sum.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/sha224sum.1.gz to /usr/share/man/man1/sha224sum.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/sha256sum.1.gz to /usr/share/man/man1/sha256sum.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/sha384sum.1.gz to /usr/share/man/man1/sha384sum.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/sha512sum.1.gz to /usr/share/man/man1/sha512sum.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/shred.1.gz to /usr/share/man/man1/shred.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/shuf.1.gz to /usr/share/man/man1/shuf.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/sleep.1.gz to /usr/share/man/man1/sleep.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/sort.1.gz to /usr/share/man/man1/sort.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/split.1.gz to /usr/share/man/man1/split.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/stat.1.gz to /usr/share/man/man1/stat.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/stdbuf.1.gz to /usr/share/man/man1/stdbuf.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/stty.1.gz to /usr/share/man/man1/stty.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/sum.1.gz to /usr/share/man/man1/sum.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/sync.1.gz to /usr/share/man/man1/sync.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/tac.1.gz to /usr/share/man/man1/tac.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/tail.1.gz to /usr/share/man/man1/tail.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/tee.1.gz to /usr/share/man/man1/tee.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/test.1.gz to /usr/share/man/man1/test.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/timeout.1.gz to /usr/share/man/man1/timeout.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/touch.1.gz to /usr/share/man/man1/touch.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/tr.1.gz to /usr/share/man/man1/tr.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/true.1.gz to /usr/share/man/man1/true.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/truncate.1.gz to /usr/share/man/man1/truncate.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/tsort.1.gz to /usr/share/man/man1/tsort.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/tty.1.gz to /usr/share/man/man1/tty.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/uname.1.gz to /usr/share/man/man1/uname.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/unexpand.1.gz to /usr/share/man/man1/unexpand.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/uniq.1.gz to /usr/share/man/man1/uniq.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/unlink.1.gz to /usr/share/man/man1/unlink.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/users.1.gz to /usr/share/man/man1/users.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/vdir.1.gz to /usr/share/man/man1/vdir.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/wc.1.gz to /usr/share/man/man1/wc.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/who.1.gz to /usr/share/man/man1/who.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/whoami.1.gz to /usr/share/man/man1/whoami.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/yes.1.gz to /usr/share/man/man1/yes.1.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man8/chroot.8.gz to /usr/share/man/man8/chroot.8.gz.remove-bak by coreutils-switch' 350s Adding 'diversion of /usr/share/man/man1/[.1.gz to /usr/share/man/man1/[.1.gz.remove-bak by coreutils-switch' 351s Selecting previously unselected package coreutils-from-uutils. 351s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 65845 files and directories currently installed.) 351s Preparing to unpack .../coreutils-from-uutils_0.0.0~ubuntu20_all.deb ... 351s Removing 'diversion of /usr/bin/[ to /usr/bin/[.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/arch to /usr/bin/arch.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/b2sum to /usr/bin/b2sum.remove-bak by coreutils-switch' 351s No diversion 'diversion of /usr/bin/b3sum to /usr/bin/b3sum.remove-bak by coreutils-switch', none removed. 351s Removing 'diversion of /usr/bin/base32 to /usr/bin/base32.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/base64 to /usr/bin/base64.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/basename to /usr/bin/basename.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/basenc to /usr/bin/basenc.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/cat to /usr/bin/cat.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/chcon to /usr/bin/chcon.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/chgrp to /usr/bin/chgrp.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/chmod to /usr/bin/chmod.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/chown to /usr/bin/chown.remove-bak by coreutils-switch' 351s No diversion 'diversion of /usr/bin/chroot to /usr/bin/chroot.remove-bak by coreutils-switch', none removed. 351s Removing 'diversion of /usr/bin/cksum to /usr/bin/cksum.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/comm to /usr/bin/comm.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/cp to /usr/bin/cp.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/csplit to /usr/bin/csplit.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/cut to /usr/bin/cut.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/date to /usr/bin/date.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/dd to /usr/bin/dd.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/df to /usr/bin/df.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/dir to /usr/bin/dir.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/dircolors to /usr/bin/dircolors.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/dirname to /usr/bin/dirname.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/du to /usr/bin/du.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/echo to /usr/bin/echo.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/env to /usr/bin/env.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/expand to /usr/bin/expand.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/expr to /usr/bin/expr.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/factor to /usr/bin/factor.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/false to /usr/bin/false.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/fmt to /usr/bin/fmt.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/fold to /usr/bin/fold.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/groups to /usr/bin/groups.remove-bak by coreutils-switch' 351s No diversion 'diversion of /usr/bin/hashsum to /usr/bin/hashsum.remove-bak by coreutils-switch', none removed. 351s Removing 'diversion of /usr/bin/head to /usr/bin/head.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/hostid to /usr/bin/hostid.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/id to /usr/bin/id.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/install to /usr/bin/install.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/join to /usr/bin/join.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/link to /usr/bin/link.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/ln to /usr/bin/ln.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/logname to /usr/bin/logname.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/ls to /usr/bin/ls.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/md5sum to /usr/bin/md5sum.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/mkdir to /usr/bin/mkdir.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/mkfifo to /usr/bin/mkfifo.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/mknod to /usr/bin/mknod.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/mktemp to /usr/bin/mktemp.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/mv to /usr/bin/mv.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/nice to /usr/bin/nice.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/nl to /usr/bin/nl.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/nohup to /usr/bin/nohup.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/nproc to /usr/bin/nproc.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/numfmt to /usr/bin/numfmt.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/od to /usr/bin/od.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/paste to /usr/bin/paste.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/pathchk to /usr/bin/pathchk.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/pinky to /usr/bin/pinky.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/pr to /usr/bin/pr.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/printenv to /usr/bin/printenv.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/printf to /usr/bin/printf.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/ptx to /usr/bin/ptx.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/pwd to /usr/bin/pwd.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/readlink to /usr/bin/readlink.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/realpath to /usr/bin/realpath.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/rm to /usr/bin/rm.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/rmdir to /usr/bin/rmdir.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/runcon to /usr/bin/runcon.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/seq to /usr/bin/seq.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/sha1sum to /usr/bin/sha1sum.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/sha224sum to /usr/bin/sha224sum.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/sha256sum to /usr/bin/sha256sum.remove-bak by coreutils-switch' 351s No diversion 'diversion of /usr/bin/sha3-224sum to /usr/bin/sha3-224sum.remove-bak by coreutils-switch', none removed. 351s No diversion 'diversion of /usr/bin/sha3-256sum to /usr/bin/sha3-256sum.remove-bak by coreutils-switch', none removed. 351s No diversion 'diversion of /usr/bin/sha3-384sum to /usr/bin/sha3-384sum.remove-bak by coreutils-switch', none removed. 351s No diversion 'diversion of /usr/bin/sha3-512sum to /usr/bin/sha3-512sum.remove-bak by coreutils-switch', none removed. 351s Removing 'diversion of /usr/bin/sha384sum to /usr/bin/sha384sum.remove-bak by coreutils-switch' 351s No diversion 'diversion of /usr/bin/sha3sum to /usr/bin/sha3sum.remove-bak by coreutils-switch', none removed. 351s Removing 'diversion of /usr/bin/sha512sum to /usr/bin/sha512sum.remove-bak by coreutils-switch' 351s No diversion 'diversion of /usr/bin/shake128sum to /usr/bin/shake128sum.remove-bak by coreutils-switch', none removed. 351s No diversion 'diversion of /usr/bin/shake256sum to /usr/bin/shake256sum.remove-bak by coreutils-switch', none removed. 351s Removing 'diversion of /usr/bin/shred to /usr/bin/shred.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/shuf to /usr/bin/shuf.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/sleep to /usr/bin/sleep.remove-bak by coreutils-switch' 351s Removing 'diversion of /usr/bin/sort to /usr/bin/sort.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/bin/split to /usr/bin/split.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/bin/stat to /usr/bin/stat.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/bin/stty to /usr/bin/stty.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/bin/sum to /usr/bin/sum.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/bin/sync to /usr/bin/sync.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/bin/tac to /usr/bin/tac.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/bin/tail to /usr/bin/tail.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/bin/tee to /usr/bin/tee.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/bin/test to /usr/bin/test.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/bin/timeout to /usr/bin/timeout.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/bin/touch to /usr/bin/touch.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/bin/tr to /usr/bin/tr.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/bin/true to /usr/bin/true.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/bin/truncate to /usr/bin/truncate.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/bin/tsort to /usr/bin/tsort.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/bin/tty to /usr/bin/tty.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/bin/uname to /usr/bin/uname.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/bin/unexpand to /usr/bin/unexpand.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/bin/uniq to /usr/bin/uniq.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/bin/unlink to /usr/bin/unlink.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/bin/users to /usr/bin/users.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/bin/vdir to /usr/bin/vdir.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/bin/wc to /usr/bin/wc.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/bin/who to /usr/bin/who.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/bin/whoami to /usr/bin/whoami.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/bin/yes to /usr/bin/yes.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/arch.1.gz to /usr/share/man/man1/arch.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/base32.1.gz to /usr/share/man/man1/base32.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/base64.1.gz to /usr/share/man/man1/base64.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/basename.1.gz to /usr/share/man/man1/basename.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/basenc.1.gz to /usr/share/man/man1/basenc.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/cat.1.gz to /usr/share/man/man1/cat.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/chcon.1.gz to /usr/share/man/man1/chcon.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/chgrp.1.gz to /usr/share/man/man1/chgrp.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/chmod.1.gz to /usr/share/man/man1/chmod.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/chown.1.gz to /usr/share/man/man1/chown.1.gz.remove-bak by coreutils-switch' 352s No diversion 'diversion of /usr/share/man/man1/chroot.1.gz to /usr/share/man/man1/chroot.1.gz.remove-bak by coreutils-switch', none removed. 352s Removing 'diversion of /usr/share/man/man1/cksum.1.gz to /usr/share/man/man1/cksum.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/comm.1.gz to /usr/share/man/man1/comm.1.gz.remove-bak by coreutils-switch' 352s No diversion 'diversion of /usr/share/man/man1/coreutils.1.gz to /usr/share/man/man1/coreutils.1.gz.remove-bak by coreutils-switch', none removed. 352s Removing 'diversion of /usr/share/man/man1/cp.1.gz to /usr/share/man/man1/cp.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/csplit.1.gz to /usr/share/man/man1/csplit.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/cut.1.gz to /usr/share/man/man1/cut.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/date.1.gz to /usr/share/man/man1/date.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/dd.1.gz to /usr/share/man/man1/dd.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/df.1.gz to /usr/share/man/man1/df.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/dir.1.gz to /usr/share/man/man1/dir.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/dircolors.1.gz to /usr/share/man/man1/dircolors.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/dirname.1.gz to /usr/share/man/man1/dirname.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/du.1.gz to /usr/share/man/man1/du.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/echo.1.gz to /usr/share/man/man1/echo.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/env.1.gz to /usr/share/man/man1/env.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/expand.1.gz to /usr/share/man/man1/expand.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/expr.1.gz to /usr/share/man/man1/expr.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/factor.1.gz to /usr/share/man/man1/factor.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/false.1.gz to /usr/share/man/man1/false.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/fmt.1.gz to /usr/share/man/man1/fmt.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/fold.1.gz to /usr/share/man/man1/fold.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/groups.1.gz to /usr/share/man/man1/groups.1.gz.remove-bak by coreutils-switch' 352s No diversion 'diversion of /usr/share/man/man1/hashsum.1.gz to /usr/share/man/man1/hashsum.1.gz.remove-bak by coreutils-switch', none removed. 352s Removing 'diversion of /usr/share/man/man1/head.1.gz to /usr/share/man/man1/head.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/hostid.1.gz to /usr/share/man/man1/hostid.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/id.1.gz to /usr/share/man/man1/id.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/install.1.gz to /usr/share/man/man1/install.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/join.1.gz to /usr/share/man/man1/join.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/link.1.gz to /usr/share/man/man1/link.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/ln.1.gz to /usr/share/man/man1/ln.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/logname.1.gz to /usr/share/man/man1/logname.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/ls.1.gz to /usr/share/man/man1/ls.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/mkdir.1.gz to /usr/share/man/man1/mkdir.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/mkfifo.1.gz to /usr/share/man/man1/mkfifo.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/mknod.1.gz to /usr/share/man/man1/mknod.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/mktemp.1.gz to /usr/share/man/man1/mktemp.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/mv.1.gz to /usr/share/man/man1/mv.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/nice.1.gz to /usr/share/man/man1/nice.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/nl.1.gz to /usr/share/man/man1/nl.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/nohup.1.gz to /usr/share/man/man1/nohup.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/nproc.1.gz to /usr/share/man/man1/nproc.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/numfmt.1.gz to /usr/share/man/man1/numfmt.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/od.1.gz to /usr/share/man/man1/od.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/paste.1.gz to /usr/share/man/man1/paste.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/pathchk.1.gz to /usr/share/man/man1/pathchk.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/pinky.1.gz to /usr/share/man/man1/pinky.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/pr.1.gz to /usr/share/man/man1/pr.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/printenv.1.gz to /usr/share/man/man1/printenv.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/printf.1.gz to /usr/share/man/man1/printf.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/ptx.1.gz to /usr/share/man/man1/ptx.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/pwd.1.gz to /usr/share/man/man1/pwd.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/readlink.1.gz to /usr/share/man/man1/readlink.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/realpath.1.gz to /usr/share/man/man1/realpath.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/rm.1.gz to /usr/share/man/man1/rm.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/rmdir.1.gz to /usr/share/man/man1/rmdir.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/runcon.1.gz to /usr/share/man/man1/runcon.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/seq.1.gz to /usr/share/man/man1/seq.1.gz.remove-bak by coreutils-switch' 352s Removing 'diversion of /usr/share/man/man1/shred.1.gz to /usr/share/man/man1/shred.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/shuf.1.gz to /usr/share/man/man1/shuf.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/sleep.1.gz to /usr/share/man/man1/sleep.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/sort.1.gz to /usr/share/man/man1/sort.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/split.1.gz to /usr/share/man/man1/split.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/stat.1.gz to /usr/share/man/man1/stat.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/stty.1.gz to /usr/share/man/man1/stty.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/sum.1.gz to /usr/share/man/man1/sum.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/sync.1.gz to /usr/share/man/man1/sync.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/tac.1.gz to /usr/share/man/man1/tac.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/tail.1.gz to /usr/share/man/man1/tail.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/tee.1.gz to /usr/share/man/man1/tee.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/test.1.gz to /usr/share/man/man1/test.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/timeout.1.gz to /usr/share/man/man1/timeout.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/touch.1.gz to /usr/share/man/man1/touch.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/tr.1.gz to /usr/share/man/man1/tr.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/true.1.gz to /usr/share/man/man1/true.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/truncate.1.gz to /usr/share/man/man1/truncate.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/tsort.1.gz to /usr/share/man/man1/tsort.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/tty.1.gz to /usr/share/man/man1/tty.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/uname.1.gz to /usr/share/man/man1/uname.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/unexpand.1.gz to /usr/share/man/man1/unexpand.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/uniq.1.gz to /usr/share/man/man1/uniq.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/unlink.1.gz to /usr/share/man/man1/unlink.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/users.1.gz to /usr/share/man/man1/users.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/vdir.1.gz to /usr/share/man/man1/vdir.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/wc.1.gz to /usr/share/man/man1/wc.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/who.1.gz to /usr/share/man/man1/who.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/whoami.1.gz to /usr/share/man/man1/whoami.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/yes.1.gz to /usr/share/man/man1/yes.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/[.1.gz to /usr/share/man/man1/[.1.gz.remove-bak by coreutils-switch' 353s Unpacking coreutils-from-uutils (0.0.0~ubuntu20) ... 353s Setting up coreutils-from-uutils (0.0.0~ubuntu20) ... 353s Removing 'diversion of /usr/share/man/man1/sha512sum.1.gz to /usr/share/man/man1/sha512sum.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/sha1sum.1.gz to /usr/share/man/man1/sha1sum.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/sha384sum.1.gz to /usr/share/man/man1/sha384sum.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/b2sum.1.gz to /usr/share/man/man1/b2sum.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/sha256sum.1.gz to /usr/share/man/man1/sha256sum.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/sbin/chroot to /usr/sbin/chroot.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/bin/stdbuf to /usr/bin/stdbuf.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/stdbuf.1.gz to /usr/share/man/man1/stdbuf.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/sha224sum.1.gz to /usr/share/man/man1/sha224sum.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man1/md5sum.1.gz to /usr/share/man/man1/md5sum.1.gz.remove-bak by coreutils-switch' 353s Removing 'diversion of /usr/share/man/man8/chroot.8.gz to /usr/share/man/man8/chroot.8.gz.remove-bak by coreutils-switch' 353s Selecting previously unselected package libc-dev-bin. 353s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 65640 files and directories currently installed.) 353s Preparing to unpack .../00-libc-dev-bin_2.42-0ubuntu1_armhf.deb ... 353s Unpacking libc-dev-bin (2.42-0ubuntu1) ... 353s Selecting previously unselected package linux-libc-dev:armhf. 353s Preparing to unpack .../01-linux-libc-dev_6.16.0-16.16_armhf.deb ... 353s Unpacking linux-libc-dev:armhf (6.16.0-16.16) ... 353s Selecting previously unselected package libcrypt-dev:armhf. 353s Preparing to unpack .../02-libcrypt-dev_1%3a4.4.38-1_armhf.deb ... 354s Unpacking libcrypt-dev:armhf (1:4.4.38-1) ... 354s Selecting previously unselected package rpcsvc-proto. 354s Preparing to unpack .../03-rpcsvc-proto_1.4.3-1_armhf.deb ... 354s Unpacking rpcsvc-proto (1.4.3-1) ... 354s Selecting previously unselected package libc6-dev:armhf. 354s Preparing to unpack .../04-libc6-dev_2.42-0ubuntu1_armhf.deb ... 354s Unpacking libc6-dev:armhf (2.42-0ubuntu1) ... 354s Selecting previously unselected package libisl23:armhf. 354s Preparing to unpack .../05-libisl23_0.27-1_armhf.deb ... 354s Unpacking libisl23:armhf (0.27-1) ... 354s Selecting previously unselected package libmpc3:armhf. 354s Preparing to unpack .../06-libmpc3_1.3.1-1build3_armhf.deb ... 354s Unpacking libmpc3:armhf (1.3.1-1build3) ... 354s Selecting previously unselected package cpp-15-arm-linux-gnueabihf. 354s Preparing to unpack .../07-cpp-15-arm-linux-gnueabihf_15.2.0-2ubuntu1_armhf.deb ... 354s Unpacking cpp-15-arm-linux-gnueabihf (15.2.0-2ubuntu1) ... 356s Selecting previously unselected package cpp-15. 356s Preparing to unpack .../08-cpp-15_15.2.0-2ubuntu1_armhf.deb ... 356s Unpacking cpp-15 (15.2.0-2ubuntu1) ... 356s Selecting previously unselected package cpp-arm-linux-gnueabihf. 356s Preparing to unpack .../09-cpp-arm-linux-gnueabihf_4%3a15.1.0-1ubuntu1_armhf.deb ... 356s Unpacking cpp-arm-linux-gnueabihf (4:15.1.0-1ubuntu1) ... 356s Selecting previously unselected package cpp. 356s Preparing to unpack .../10-cpp_4%3a15.1.0-1ubuntu1_armhf.deb ... 356s Unpacking cpp (4:15.1.0-1ubuntu1) ... 356s Selecting previously unselected package libcc1-0:armhf. 356s Preparing to unpack .../11-libcc1-0_15.2.0-2ubuntu1_armhf.deb ... 356s Unpacking libcc1-0:armhf (15.2.0-2ubuntu1) ... 356s Selecting previously unselected package libgomp1:armhf. 356s Preparing to unpack .../12-libgomp1_15.2.0-2ubuntu1_armhf.deb ... 356s Unpacking libgomp1:armhf (15.2.0-2ubuntu1) ... 356s Selecting previously unselected package libasan8:armhf. 356s Preparing to unpack .../13-libasan8_15.2.0-2ubuntu1_armhf.deb ... 356s Unpacking libasan8:armhf (15.2.0-2ubuntu1) ... 357s Selecting previously unselected package libubsan1:armhf. 357s Preparing to unpack .../14-libubsan1_15.2.0-2ubuntu1_armhf.deb ... 357s Unpacking libubsan1:armhf (15.2.0-2ubuntu1) ... 357s Selecting previously unselected package libgcc-15-dev:armhf. 357s Preparing to unpack .../15-libgcc-15-dev_15.2.0-2ubuntu1_armhf.deb ... 357s Unpacking libgcc-15-dev:armhf (15.2.0-2ubuntu1) ... 357s Selecting previously unselected package gcc-15-arm-linux-gnueabihf. 357s Preparing to unpack .../16-gcc-15-arm-linux-gnueabihf_15.2.0-2ubuntu1_armhf.deb ... 357s Unpacking gcc-15-arm-linux-gnueabihf (15.2.0-2ubuntu1) ... 359s Selecting previously unselected package gcc-15. 359s Preparing to unpack .../17-gcc-15_15.2.0-2ubuntu1_armhf.deb ... 359s Unpacking gcc-15 (15.2.0-2ubuntu1) ... 359s Selecting previously unselected package gcc-arm-linux-gnueabihf. 359s Preparing to unpack .../18-gcc-arm-linux-gnueabihf_4%3a15.1.0-1ubuntu1_armhf.deb ... 359s Unpacking gcc-arm-linux-gnueabihf (4:15.1.0-1ubuntu1) ... 359s Selecting previously unselected package gcc. 360s Preparing to unpack .../19-gcc_4%3a15.1.0-1ubuntu1_armhf.deb ... 360s Unpacking gcc (4:15.1.0-1ubuntu1) ... 360s Selecting previously unselected package libstdc++-15-dev:armhf. 360s Preparing to unpack .../20-libstdc++-15-dev_15.2.0-2ubuntu1_armhf.deb ... 360s Unpacking libstdc++-15-dev:armhf (15.2.0-2ubuntu1) ... 360s Selecting previously unselected package g++-15-arm-linux-gnueabihf. 360s Preparing to unpack .../21-g++-15-arm-linux-gnueabihf_15.2.0-2ubuntu1_armhf.deb ... 360s Unpacking g++-15-arm-linux-gnueabihf (15.2.0-2ubuntu1) ... 363s Selecting previously unselected package g++-15. 363s Preparing to unpack .../22-g++-15_15.2.0-2ubuntu1_armhf.deb ... 363s Unpacking g++-15 (15.2.0-2ubuntu1) ... 363s Selecting previously unselected package g++-arm-linux-gnueabihf. 363s Preparing to unpack .../23-g++-arm-linux-gnueabihf_4%3a15.1.0-1ubuntu1_armhf.deb ... 363s Unpacking g++-arm-linux-gnueabihf (4:15.1.0-1ubuntu1) ... 363s Selecting previously unselected package g++. 363s Preparing to unpack .../24-g++_4%3a15.1.0-1ubuntu1_armhf.deb ... 363s Unpacking g++ (4:15.1.0-1ubuntu1) ... 363s Selecting previously unselected package build-essential. 363s Preparing to unpack .../25-build-essential_12.12ubuntu2_armhf.deb ... 363s Unpacking build-essential (12.12ubuntu2) ... 363s Selecting previously unselected package libffi-dev:armhf. 363s Preparing to unpack .../26-libffi-dev_3.5.2-1_armhf.deb ... 363s Unpacking libffi-dev:armhf (3.5.2-1) ... 363s Selecting previously unselected package uuid-dev:armhf. 363s Preparing to unpack .../27-uuid-dev_2.41-4ubuntu3_armhf.deb ... 363s Unpacking uuid-dev:armhf (2.41-4ubuntu3) ... 363s Selecting previously unselected package libblkid-dev:armhf. 363s Preparing to unpack .../28-libblkid-dev_2.41-4ubuntu3_armhf.deb ... 363s Unpacking libblkid-dev:armhf (2.41-4ubuntu3) ... 363s Selecting previously unselected package libsepol-dev:armhf. 363s Preparing to unpack .../29-libsepol-dev_3.8.1-1_armhf.deb ... 363s Unpacking libsepol-dev:armhf (3.8.1-1) ... 363s Selecting previously unselected package libpcre2-16-0:armhf. 363s Preparing to unpack .../30-libpcre2-16-0_10.46-1_armhf.deb ... 363s Unpacking libpcre2-16-0:armhf (10.46-1) ... 363s Selecting previously unselected package libpcre2-32-0:armhf. 363s Preparing to unpack .../31-libpcre2-32-0_10.46-1_armhf.deb ... 363s Unpacking libpcre2-32-0:armhf (10.46-1) ... 363s Selecting previously unselected package libpcre2-posix3:armhf. 363s Preparing to unpack .../32-libpcre2-posix3_10.46-1_armhf.deb ... 363s Unpacking libpcre2-posix3:armhf (10.46-1) ... 363s Selecting previously unselected package libpcre2-dev:armhf. 363s Preparing to unpack .../33-libpcre2-dev_10.46-1_armhf.deb ... 363s Unpacking libpcre2-dev:armhf (10.46-1) ... 363s Selecting previously unselected package libselinux1-dev:armhf. 363s Preparing to unpack .../34-libselinux1-dev_3.8.1-1_armhf.deb ... 363s Unpacking libselinux1-dev:armhf (3.8.1-1) ... 363s Selecting previously unselected package libmount-dev:armhf. 363s Preparing to unpack .../35-libmount-dev_2.41-4ubuntu3_armhf.deb ... 363s Unpacking libmount-dev:armhf (2.41-4ubuntu3) ... 363s Selecting previously unselected package libsysprof-capture-4-dev:armhf. 363s Preparing to unpack .../36-libsysprof-capture-4-dev_48.0-2_armhf.deb ... 363s Unpacking libsysprof-capture-4-dev:armhf (48.0-2) ... 364s Selecting previously unselected package libpkgconf3:armhf. 364s Preparing to unpack .../37-libpkgconf3_1.8.1-4_armhf.deb ... 364s Unpacking libpkgconf3:armhf (1.8.1-4) ... 364s Selecting previously unselected package pkgconf-bin. 364s Preparing to unpack .../38-pkgconf-bin_1.8.1-4_armhf.deb ... 364s Unpacking pkgconf-bin (1.8.1-4) ... 364s Selecting previously unselected package pkgconf:armhf. 364s Preparing to unpack .../39-pkgconf_1.8.1-4_armhf.deb ... 364s Unpacking pkgconf:armhf (1.8.1-4) ... 364s Selecting previously unselected package zlib1g-dev:armhf. 364s Preparing to unpack .../40-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu1_armhf.deb ... 364s Unpacking zlib1g-dev:armhf (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 364s Selecting previously unselected package libgio-2.0-dev:armhf. 364s Preparing to unpack .../41-libgio-2.0-dev_2.85.3-1_armhf.deb ... 364s Unpacking libgio-2.0-dev:armhf (2.85.3-1) ... 364s Setting up linux-libc-dev:armhf (6.16.0-16.16) ... 364s Setting up libgomp1:armhf (15.2.0-2ubuntu1) ... 364s Setting up libffi-dev:armhf (3.5.2-1) ... 364s Setting up libpcre2-16-0:armhf (10.46-1) ... 364s Setting up libsysprof-capture-4-dev:armhf (48.0-2) ... 364s Setting up libpcre2-32-0:armhf (10.46-1) ... 364s Setting up libpkgconf3:armhf (1.8.1-4) ... 364s Setting up rpcsvc-proto (1.4.3-1) ... 364s Setting up libmpc3:armhf (1.3.1-1build3) ... 364s Setting up libsepol-dev:armhf (3.8.1-1) ... 364s Setting up pkgconf-bin (1.8.1-4) ... 364s Setting up libubsan1:armhf (15.2.0-2ubuntu1) ... 364s Setting up libpcre2-posix3:armhf (10.46-1) ... 364s Setting up libcrypt-dev:armhf (1:4.4.38-1) ... 364s Setting up libasan8:armhf (15.2.0-2ubuntu1) ... 364s Setting up libisl23:armhf (0.27-1) ... 364s Setting up libc-dev-bin (2.42-0ubuntu1) ... 364s Setting up cpp-15-arm-linux-gnueabihf (15.2.0-2ubuntu1) ... 364s Setting up libcc1-0:armhf (15.2.0-2ubuntu1) ... 364s Setting up cpp-arm-linux-gnueabihf (4:15.1.0-1ubuntu1) ... 364s Setting up libgcc-15-dev:armhf (15.2.0-2ubuntu1) ... 364s Setting up gcc-15-arm-linux-gnueabihf (15.2.0-2ubuntu1) ... 364s Setting up pkgconf:armhf (1.8.1-4) ... 364s Setting up cpp-15 (15.2.0-2ubuntu1) ... 364s Setting up cpp (4:15.1.0-1ubuntu1) ... 364s Setting up libc6-dev:armhf (2.42-0ubuntu1) ... 364s Setting up gcc-arm-linux-gnueabihf (4:15.1.0-1ubuntu1) ... 364s Setting up libpcre2-dev:armhf (10.46-1) ... 364s Setting up libselinux1-dev:armhf (3.8.1-1) ... 364s Setting up gcc-15 (15.2.0-2ubuntu1) ... 364s Setting up libstdc++-15-dev:armhf (15.2.0-2ubuntu1) ... 364s Setting up uuid-dev:armhf (2.41-4ubuntu3) ... 364s Setting up zlib1g-dev:armhf (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 364s Setting up libblkid-dev:armhf (2.41-4ubuntu3) ... 364s Setting up g++-15-arm-linux-gnueabihf (15.2.0-2ubuntu1) ... 364s Setting up gcc (4:15.1.0-1ubuntu1) ... 364s Setting up g++-15 (15.2.0-2ubuntu1) ... 364s Setting up libmount-dev:armhf (2.41-4ubuntu3) ... 364s Setting up g++-arm-linux-gnueabihf (4:15.1.0-1ubuntu1) ... 364s Setting up libgio-2.0-dev:armhf (2.85.3-1) ... 364s Setting up g++ (4:15.1.0-1ubuntu1) ... 364s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 364s Setting up build-essential (12.12ubuntu2) ... 364s Processing triggers for libc-bin (2.42-0ubuntu1) ... 364s Processing triggers for man-db (2.13.1-1) ... 365s Processing triggers for libglib2.0-0t64:armhf (2.85.3-1) ... 365s No schema files found: doing nothing. 365s Processing triggers for install-info (7.1.1-1) ... 373s autopkgtest [16:51:22]: test build: [----------------------- 375s + mode=dynamic 375s + getopt -o --long static -n debian/tests/build -- 375s + getopt_temp= -- 375s + eval set -- -- 375s + set -- -- 375s + true 375s + shift 375s + break 375s + mktemp -d 375s + WORKDIR=/tmp/tmp.skVilO3MGq 375s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 375s + cd /tmp/tmp.skVilO3MGq 375s + [ -n ] 375s + CROSS_COMPILE= 375s + cat 375s + cat 375s + cat 375s + cat 375s + cat 375s + cat 375s + cflags= 375s + pcflags= 375s + packages=glib-2.0 375s + pkg-config --cflags --libs glib-2.0 375s + gcc -o glib-dynamic glib.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 375s + echo build (glib, dynamic): OK 375s + [ -x glib-dynamic ] 375s + foo=bar ./glib-dynamic 375s build (glib, dynamic): OK 375s run (glib, dynamic): OK 375s + echo run (glib, dynamic): OK 375s + cflags= 375s + pcflags= 375s + packages=gobject-2.0 375s + pkg-config --cflags --libs gobject-2.0 375s + gcc -o gobject-dynamic gobject.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 375s build (gobject, dynamic): OK 375s run (gobject, dynamic): OK 375s + echo build (gobject, dynamic): OK 375s + [ -x gobject-dynamic ] 375s + foo=bar ./gobject-dynamic 375s + echo run (gobject, dynamic): OK 375s + cflags= 375s + pcflags= 375s + packages=gio-2.0 375s + pkg-config --cflags --libs gio-2.0 375s + gcc -o gio-dynamic gio.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 376s build (gio, dynamic): OK 376s + echo build (gio, dynamic): OK 376s + [ -x gio-dynamic ] 376s + foo=bar ./gio-dynamic 376s + echo run (gio, dynamic): OK 376s + cflags= 376s + pcflags= 376s + packages=gio-unix-2.0 376s run (gio, dynamic): OK 376s + pkg-config --cflags --libs gio-unix-2.0 376s + gcc -o gio-unix-dynamic gio-unix.c -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 376s build (gio-unix, dynamic): OK 376s + echo build (gio-unix, dynamic): OK 376s + [ -x gio-unix-dynamic ] 376s + foo=bar ./gio-unix-dynamic 376s run (gio-unix, dynamic): OK 376s + echo run (gio-unix, dynamic): OK 376s + cflags= 376s + pcflags= 376s + packages=gmodule-2.0 376s + pkg-config --cflags --libs gmodule-2.0 376s + gcc -o gmodule-dynamic gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -lglib-2.0 376s build (gmodule, dynamic): OK 376s + echo build (gmodule, dynamic): OK 376s + [ -x gmodule-dynamic ] 376s + foo=bar ./gmodule-dynamic 376s run (gmodule, dynamic): OK 376s + echo run (gmodule, dynamic): OK 376s + cflags= 376s + pcflags= 376s + packages=gthread-2.0 376s + pkg-config --cflags --libs gthread-2.0 376s + gcc -o gthread-dynamic gthread.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 376s + echo build (gthread, dynamic): OK 376s + [ -x gthread-dynamic ] 376s + foo=bar ./gthread-dynamic 376s build (gthread, dynamic): OK 376s + echo run (gthread, dynamic): OK 376s + rm -rf /tmp/tmp.skVilO3MGq 376s run (gthread, dynamic): OK 377s autopkgtest [16:51:26]: test build: -----------------------] 381s autopkgtest [16:51:30]: test build: - - - - - - - - - - results - - - - - - - - - - 381s build PASS (superficial) 384s autopkgtest [16:51:33]: test build-static: preparing testbed 386s Reading package lists... 387s Building dependency tree... 387s Reading state information... 387s Solving dependencies... 387s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 395s autopkgtest [16:51:44]: test build-static: [----------------------- 397s + mode=dynamic 397s + getopt -o --long static -n debian/tests/build -- --static 397s + getopt_temp= --static -- 397s + eval set -- --static -- 397s + set -- --static -- 397s + true 397s + mode=static 397s + shift 397s + continue 397s + true 397s + shift 397s + break 397s + mktemp -d 397s + WORKDIR=/tmp/tmp.JW1cKRsLF0 397s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 397s + cd /tmp/tmp.JW1cKRsLF0 397s + [ -n ] 397s + CROSS_COMPILE= 397s + cat 397s + cat 397s + cat 397s + cat 397s + cat 397s + cat 397s + cflags= 397s + pcflags= 397s + packages=glib-2.0 397s + cflags=-static 397s + pcflags=--static 397s + pkg-config --static --cflags --libs glib-2.0 397s + gcc -static -o glib-static glib.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 397s /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/15/../../../arm-linux-gnueabihf/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 397s (.text+0x92): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 397s /usr/bin/ld: (.text+0x19c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 397s /usr/bin/ld: (.text+0xba): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 397s + echo build (glib, static): OK 397s + [ -x glib-static ] 397s + foo=bar ./glib-static 397s build (glib, static): OK 397s run (glib, static): OK 397s + echo run (glib, static): OK 397s + cflags= 397s + pcflags= 397s + packages=gobject-2.0 397s + cflags=-static 397s + pcflags=--static 397s + pkg-config --static --cflags --libs gobject-2.0 397s + gcc -static -o gobject-static gobject.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 -lffi 397s /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/15/../../../arm-linux-gnueabihf/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 397s (.text+0x92): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 397s /usr/bin/ld: (.text+0x19c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 397s /usr/bin/ld: (.text+0xba): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 397s + echo build (gobject, static): OK 397s + [ -x gobject-static ] 397s + foo=bar ./gobject-static 397s build (gobject, static): OK 397s run (gobject, static): OK 397s + echo run (gobject, static): OK 397s + cflags= 397s + pcflags= 397s + packages=gio-2.0 397s + cflags=-static 397s + pcflags=--static 397s + continue 397s + cflags= 397s + pcflags= 397s + packages=gio-unix-2.0 397s + cflags=-static 397s + pcflags=--static 397s + continue 397s + cflags= 397s + pcflags= 397s + packages=gmodule-2.0 397s + cflags=-static 397s + pcflags=--static 397s + pkg-config --static --cflags --libs gmodule-2.0 397s + gcc -static -o gmodule-static gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 397s /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/15/../../../arm-linux-gnueabihf/libgmodule-2.0.a(gmodule.c.o): in function `g_module_open_full': 397s (.text+0x424): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 397s /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/15/../../../arm-linux-gnueabihf/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 397s (.text+0x92): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 397s /usr/bin/ld: (.text+0x19c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 397s /usr/bin/ld: (.text+0xba): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 398s build (gmodule, static): OK 398s + echo build (gmodule, static): OK 398s + [ -x gmodule-static ] 398s + foo=bar ./gmodule-static 398s + echo run (gmodule, static): OK 398s + cflags= 398s + pcflags= 398s + packages=gthread-2.0 398s + cflags=-static 398s + pcflags=--static 398s + run (gmodule, static): OK 398s pkg-config --static --cflags --libs gthread-2.0 398s + gcc -static -o gthread-static gthread.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 398s /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/15/../../../arm-linux-gnueabihf/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 398s (.text+0x92): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 398s /usr/bin/ld: (.text+0x19c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 398s /usr/bin/ld: (.text+0xba): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 398s build (gthread, static): OK 398s + echo build (gthread, static): OK 398s + [ -x gthread-static ] 398s + foo=bar ./gthread-static 398s run (gthread, static): OK 398s + echo run (gthread, static): OK 398s + rm -rf /tmp/tmp.JW1cKRsLF0 398s autopkgtest [16:51:47]: test build-static: -----------------------] 402s build-static PASS (superficial) 402s autopkgtest [16:51:51]: test build-static: - - - - - - - - - - results - - - - - - - - - - 406s autopkgtest [16:51:55]: test girepository-tools: preparing testbed 429s autopkgtest [16:52:18]: testbed dpkg architecture: armhf 430s autopkgtest [16:52:19]: testbed apt version: 3.1.5ubuntu1 434s autopkgtest [16:52:23]: @@@@@@@@@@@@@@@@@@@@ test bed setup 437s autopkgtest [16:52:25]: testbed release detected to be: questing 444s autopkgtest [16:52:33]: updating testbed package index (apt update) 446s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [265 kB] 446s Get:2 http://ftpmaster.internal/ubuntu questing InRelease [265 kB] 446s Get:3 http://ftpmaster.internal/ubuntu questing-updates InRelease [126 kB] 446s Get:4 http://ftpmaster.internal/ubuntu questing-security InRelease [126 kB] 446s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [59.7 kB] 446s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [14.1 kB] 446s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/restricted Sources [3848 B] 446s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [239 kB] 446s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/main armhf Packages [81.3 kB] 447s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/main armhf c-n-f Metadata [2824 B] 447s Get:11 http://ftpmaster.internal/ubuntu questing-proposed/restricted armhf Packages [728 B] 447s Get:12 http://ftpmaster.internal/ubuntu questing-proposed/restricted armhf c-n-f Metadata [120 B] 447s Get:13 http://ftpmaster.internal/ubuntu questing-proposed/universe armhf Packages [203 kB] 447s Get:14 http://ftpmaster.internal/ubuntu questing-proposed/universe armhf c-n-f Metadata [6536 B] 447s Get:15 http://ftpmaster.internal/ubuntu questing-proposed/multiverse armhf Packages [3200 B] 447s Get:16 http://ftpmaster.internal/ubuntu questing-proposed/multiverse armhf c-n-f Metadata [268 B] 447s Get:17 http://ftpmaster.internal/ubuntu questing/universe Sources [21.1 MB] 449s Get:18 http://ftpmaster.internal/ubuntu questing/multiverse Sources [310 kB] 449s Get:19 http://ftpmaster.internal/ubuntu questing/main Sources [1398 kB] 450s Get:20 http://ftpmaster.internal/ubuntu questing/restricted Sources [15.7 kB] 450s Get:21 http://ftpmaster.internal/ubuntu questing/main armhf Packages [1348 kB] 450s Get:22 http://ftpmaster.internal/ubuntu questing/main armhf c-n-f Metadata [29.4 kB] 450s Get:23 http://ftpmaster.internal/ubuntu questing/restricted armhf Packages [1640 B] 450s Get:24 http://ftpmaster.internal/ubuntu questing/universe armhf Packages [15.0 MB] 452s Get:25 http://ftpmaster.internal/ubuntu questing/universe armhf c-n-f Metadata [278 kB] 452s Get:26 http://ftpmaster.internal/ubuntu questing/multiverse armhf Packages [182 kB] 455s Fetched 41.1 MB in 8s (5004 kB/s) 456s Reading package lists... 462s autopkgtest [16:52:51]: upgrading testbed (apt dist-upgrade and autopurge) 463s Reading package lists... 464s Building dependency tree... 464s Reading state information... 464s Calculating upgrade... 465s The following packages will be upgraded: 465s cryptsetup-bin dash libbrotli1 libcryptsetup12 465s 4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 465s Need to get 893 kB of archives. 465s After this operation, 0 B of additional disk space will be used. 465s Get:1 http://ftpmaster.internal/ubuntu questing/main armhf dash armhf 0.5.12-12ubuntu2 [87.6 kB] 466s Get:2 http://ftpmaster.internal/ubuntu questing/main armhf libcryptsetup12 armhf 2:2.8.0-1ubuntu2 [254 kB] 466s Get:3 http://ftpmaster.internal/ubuntu questing/main armhf cryptsetup-bin armhf 2:2.8.0-1ubuntu2 [232 kB] 466s Get:4 http://ftpmaster.internal/ubuntu questing/main armhf libbrotli1 armhf 1.1.0-2build5 [320 kB] 466s Preconfiguring packages ... 467s Fetched 893 kB in 1s (1128 kB/s) 467s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 64903 files and directories currently installed.) 467s Preparing to unpack .../dash_0.5.12-12ubuntu2_armhf.deb ... 467s Unpacking dash (0.5.12-12ubuntu2) over (0.5.12-12ubuntu1) ... 467s Setting up dash (0.5.12-12ubuntu2) ... 467s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 64903 files and directories currently installed.) 467s Preparing to unpack .../libcryptsetup12_2%3a2.8.0-1ubuntu2_armhf.deb ... 467s Unpacking libcryptsetup12:armhf (2:2.8.0-1ubuntu2) over (2:2.8.0-1ubuntu1) ... 467s Preparing to unpack .../cryptsetup-bin_2%3a2.8.0-1ubuntu2_armhf.deb ... 467s Unpacking cryptsetup-bin (2:2.8.0-1ubuntu2) over (2:2.8.0-1ubuntu1) ... 467s Preparing to unpack .../libbrotli1_1.1.0-2build5_armhf.deb ... 467s Unpacking libbrotli1:armhf (1.1.0-2build5) over (1.1.0-2build4) ... 467s Setting up libbrotli1:armhf (1.1.0-2build5) ... 467s Setting up libcryptsetup12:armhf (2:2.8.0-1ubuntu2) ... 467s Setting up cryptsetup-bin (2:2.8.0-1ubuntu2) ... 467s Processing triggers for man-db (2.13.1-1) ... 468s Processing triggers for debianutils (5.23.2) ... 468s Processing triggers for libc-bin (2.42-0ubuntu1) ... 472s Reading package lists... 472s Building dependency tree... 472s Reading state information... 472s Solving dependencies... 472s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 475s autopkgtest [16:53:04]: rebooting testbed after setup commands that affected boot 540s Reading package lists... 541s Building dependency tree... 541s Reading state information... 541s Solving dependencies... 542s The following NEW packages will be installed: 542s gir1.2-glib-2.0-dev girepository-tools libgirepository-2.0-0 542s native-architecture 542s 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. 542s Need to get 1079 kB of archives. 542s After this operation, 12.8 MB of additional disk space will be used. 542s Get:1 http://ftpmaster.internal/ubuntu questing/main armhf gir1.2-glib-2.0-dev armhf 2.85.3-1 [868 kB] 544s Get:2 http://ftpmaster.internal/ubuntu questing/main armhf native-architecture all 0.2.6 [2140 B] 544s Get:3 http://ftpmaster.internal/ubuntu questing/main armhf libgirepository-2.0-0 armhf 2.85.3-1 [99.9 kB] 544s Get:4 http://ftpmaster.internal/ubuntu questing/main armhf girepository-tools armhf 2.85.3-1 [109 kB] 544s Fetched 1079 kB in 2s (492 kB/s) 545s Selecting previously unselected package gir1.2-glib-2.0-dev:armhf. 545s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 64903 files and directories currently installed.) 545s Preparing to unpack .../gir1.2-glib-2.0-dev_2.85.3-1_armhf.deb ... 545s Unpacking gir1.2-glib-2.0-dev:armhf (2.85.3-1) ... 545s Selecting previously unselected package native-architecture. 545s Preparing to unpack .../native-architecture_0.2.6_all.deb ... 545s Unpacking native-architecture (0.2.6) ... 545s Selecting previously unselected package libgirepository-2.0-0:armhf. 545s Preparing to unpack .../libgirepository-2.0-0_2.85.3-1_armhf.deb ... 545s Unpacking libgirepository-2.0-0:armhf (2.85.3-1) ... 545s Selecting previously unselected package girepository-tools:armhf. 545s Preparing to unpack .../girepository-tools_2.85.3-1_armhf.deb ... 545s Unpacking girepository-tools:armhf (2.85.3-1) ... 545s Setting up native-architecture (0.2.6) ... 545s Setting up libgirepository-2.0-0:armhf (2.85.3-1) ... 545s Setting up gir1.2-glib-2.0-dev:armhf (2.85.3-1) ... 545s Setting up girepository-tools:armhf (2.85.3-1) ... 545s Processing triggers for man-db (2.13.1-1) ... 545s Processing triggers for libc-bin (2.42-0ubuntu1) ... 562s autopkgtest [16:54:31]: test girepository-tools: [----------------------- 564s + cd /tmp/autopkgtest.w4sS0P/autopkgtest_tmp 564s + dpkg-architecture -qDEB_HOST_GNU_TYPE 564s dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation) 564s + DEB_HOST_GNU_TYPE=arm-linux-gnueabihf 564s + dpkg-architecture -qDEB_HOST_MULTIARCH 564s dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation) 564s + DEB_HOST_MULTIARCH=arm-linux-gnueabihf 564s + arm-linux-gnueabihf-gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 564s + arm-linux-gnueabihf-gi-compile-repository -o GLib.typelib /usr/lib/arm-linux-gnueabihf/gir-1.0/GLib-2.0.gir 564s typelib: GLib-2.0 564s + arm-linux-gnueabihf-gi-decompile-typelib -o GLib.gir GLib.typelib 565s autopkgtest [16:54:34]: test girepository-tools: -----------------------] 568s girepository-tools PASS (superficial) 568s autopkgtest [16:54:37]: test girepository-tools: - - - - - - - - - - results - - - - - - - - - - 572s autopkgtest [16:54:41]: test libgio-2.0-dev-bin: preparing testbed 594s autopkgtest [16:55:03]: testbed dpkg architecture: armhf 597s autopkgtest [16:55:05]: testbed apt version: 3.1.5ubuntu1 600s autopkgtest [16:55:09]: @@@@@@@@@@@@@@@@@@@@ test bed setup 602s autopkgtest [16:55:11]: testbed release detected to be: questing 609s autopkgtest [16:55:18]: updating testbed package index (apt update) 611s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [265 kB] 611s Get:2 http://ftpmaster.internal/ubuntu questing InRelease [265 kB] 612s Get:3 http://ftpmaster.internal/ubuntu questing-updates InRelease [126 kB] 612s Get:4 http://ftpmaster.internal/ubuntu questing-security InRelease [126 kB] 613s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/restricted Sources [3848 B] 613s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [14.1 kB] 613s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [239 kB] 613s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [59.7 kB] 613s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/main armhf Packages [81.3 kB] 613s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/main armhf c-n-f Metadata [2824 B] 613s Get:11 http://ftpmaster.internal/ubuntu questing-proposed/restricted armhf Packages [728 B] 613s Get:12 http://ftpmaster.internal/ubuntu questing-proposed/restricted armhf c-n-f Metadata [120 B] 613s Get:13 http://ftpmaster.internal/ubuntu questing-proposed/universe armhf Packages [203 kB] 613s Get:14 http://ftpmaster.internal/ubuntu questing-proposed/universe armhf c-n-f Metadata [6536 B] 613s Get:15 http://ftpmaster.internal/ubuntu questing-proposed/multiverse armhf Packages [3200 B] 613s Get:16 http://ftpmaster.internal/ubuntu questing-proposed/multiverse armhf c-n-f Metadata [268 B] 613s Get:17 http://ftpmaster.internal/ubuntu questing/multiverse Sources [310 kB] 614s Get:18 http://ftpmaster.internal/ubuntu questing/main Sources [1398 kB] 616s Get:19 http://ftpmaster.internal/ubuntu questing/universe Sources [21.1 MB] 639s Get:20 http://ftpmaster.internal/ubuntu questing/restricted Sources [15.7 kB] 639s Get:21 http://ftpmaster.internal/ubuntu questing/main armhf Packages [1348 kB] 640s Get:22 http://ftpmaster.internal/ubuntu questing/main armhf c-n-f Metadata [29.4 kB] 640s Get:23 http://ftpmaster.internal/ubuntu questing/restricted armhf Packages [1640 B] 640s Get:24 http://ftpmaster.internal/ubuntu questing/universe armhf Packages [15.0 MB] 659s Get:25 http://ftpmaster.internal/ubuntu questing/universe armhf c-n-f Metadata [278 kB] 660s Get:26 http://ftpmaster.internal/ubuntu questing/multiverse armhf Packages [182 kB] 662s Fetched 41.1 MB in 50s (818 kB/s) 664s Reading package lists... 669s autopkgtest [16:56:18]: upgrading testbed (apt dist-upgrade and autopurge) 671s Reading package lists... 671s Building dependency tree... 671s Reading state information... 672s Calculating upgrade... 672s The following packages will be upgraded: 672s cryptsetup-bin dash libbrotli1 libcryptsetup12 672s 4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 672s Need to get 893 kB of archives. 672s After this operation, 0 B of additional disk space will be used. 672s Get:1 http://ftpmaster.internal/ubuntu questing/main armhf dash armhf 0.5.12-12ubuntu2 [87.6 kB] 673s Get:2 http://ftpmaster.internal/ubuntu questing/main armhf libcryptsetup12 armhf 2:2.8.0-1ubuntu2 [254 kB] 673s Get:3 http://ftpmaster.internal/ubuntu questing/main armhf cryptsetup-bin armhf 2:2.8.0-1ubuntu2 [232 kB] 673s Get:4 http://ftpmaster.internal/ubuntu questing/main armhf libbrotli1 armhf 1.1.0-2build5 [320 kB] 674s Preconfiguring packages ... 674s Fetched 893 kB in 2s (593 kB/s) 675s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 64903 files and directories currently installed.) 675s Preparing to unpack .../dash_0.5.12-12ubuntu2_armhf.deb ... 675s Unpacking dash (0.5.12-12ubuntu2) over (0.5.12-12ubuntu1) ... 675s Setting up dash (0.5.12-12ubuntu2) ... 675s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 64903 files and directories currently installed.) 675s Preparing to unpack .../libcryptsetup12_2%3a2.8.0-1ubuntu2_armhf.deb ... 675s Unpacking libcryptsetup12:armhf (2:2.8.0-1ubuntu2) over (2:2.8.0-1ubuntu1) ... 675s Preparing to unpack .../cryptsetup-bin_2%3a2.8.0-1ubuntu2_armhf.deb ... 675s Unpacking cryptsetup-bin (2:2.8.0-1ubuntu2) over (2:2.8.0-1ubuntu1) ... 675s Preparing to unpack .../libbrotli1_1.1.0-2build5_armhf.deb ... 675s Unpacking libbrotli1:armhf (1.1.0-2build5) over (1.1.0-2build4) ... 675s Setting up libbrotli1:armhf (1.1.0-2build5) ... 675s Setting up libcryptsetup12:armhf (2:2.8.0-1ubuntu2) ... 675s Setting up cryptsetup-bin (2:2.8.0-1ubuntu2) ... 675s Processing triggers for man-db (2.13.1-1) ... 676s Processing triggers for debianutils (5.23.2) ... 676s Processing triggers for libc-bin (2.42-0ubuntu1) ... 678s Reading package lists... 679s Building dependency tree... 679s Reading state information... 679s Solving dependencies... 680s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 682s autopkgtest [16:56:31]: rebooting testbed after setup commands that affected boot 745s Reading package lists... 746s Building dependency tree... 746s Reading state information... 746s Solving dependencies... 747s The following NEW packages will be installed: 747s libgio-2.0-dev-bin 747s 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 747s Need to get 130 kB of archives. 747s After this operation, 816 kB of additional disk space will be used. 747s Get:1 http://ftpmaster.internal/ubuntu questing/main armhf libgio-2.0-dev-bin armhf 2.85.3-1 [130 kB] 748s Fetched 130 kB in 1s (258 kB/s) 748s Selecting previously unselected package libgio-2.0-dev-bin. 748s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 64903 files and directories currently installed.) 748s Preparing to unpack .../libgio-2.0-dev-bin_2.85.3-1_armhf.deb ... 748s Unpacking libgio-2.0-dev-bin (2.85.3-1) ... 748s Setting up libgio-2.0-dev-bin (2.85.3-1) ... 749s Processing triggers for man-db (2.13.1-1) ... 764s autopkgtest [16:57:53]: test libgio-2.0-dev-bin: [----------------------- 766s + gdbus-codegen --help 767s usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 767s [--c-namespace NAMESPACE] [--c-generate-object-manager] 767s [--c-generate-autocleanup {none,objects,all}] 767s [--generate-docbook OUTFILES] [--generate-md OUTFILES] 767s [--generate-rst OUTFILES] [--pragma-once] 767s [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 767s [--glib-min-required VERSION] 767s [--glib-max-allowed VERSION] 767s [--symbol-decorator SYMBOL_DECORATOR] 767s [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 767s [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 767s [--generate-c-code OUTFILES | --header | --body | 767s --interface-info-header | --interface-info-body] 767s [--output FILE | --output-directory OUTDIR] 767s FILE [FILE ...] 767s 767s D-Bus code and documentation generator 767s 767s positional arguments: 767s FILE D-Bus introspection XML file 767s 767s options: 767s -h, --help show this help message and exit 767s --interface-prefix PREFIX 767s String to strip from D-Bus interface names for code 767s and docs 767s --c-namespace NAMESPACE 767s The namespace to use for generated C code 767s --c-generate-object-manager 767s Generate a GDBusObjectManagerClient subclass when 767s generating C code 767s --c-generate-autocleanup {none,objects,all} 767s Generate autocleanup support 767s --generate-docbook OUTFILES 767s Generate Docbook in OUTFILES-org.Project.IFace.xml 767s --generate-md OUTFILES 767s Generate Markdown in OUTFILES-org.Project.IFace.md 767s --generate-rst OUTFILES 767s Generate reStructuredText in OUTFILES- 767s org.Project.IFace.rst 767s --pragma-once Use "pragma once" as the inclusion guard 767s --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 767s Add annotation (may be used several times) 767s --glib-min-required VERSION 767s Minimum version of GLib to be supported by the 767s outputted code (default: 2.30) 767s --glib-max-allowed VERSION 767s Maximum version of GLib to be used by the outputted 767s code (default: current GLib version) 767s --symbol-decorator SYMBOL_DECORATOR 767s Macro used to decorate a symbol in the outputted 767s header, possibly to export symbols 767s --symbol-decorator-header SYMBOL_DECORATOR_HEADER 767s Additional header required for decorator specified by 767s --symbol-decorator 767s --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 767s Additional define required for decorator specified by 767s --symbol-decorator 767s --generate-c-code OUTFILES 767s Generate C code in OUTFILES.[ch] 767s --header Generate C headers 767s --body Generate C code 767s --interface-info-header 767s Generate GDBusInterfaceInfo C header 767s --interface-info-body 767s Generate GDBusInterfaceInfo C code 767s --output FILE Write output into the specified file 767s --output-directory OUTDIR 767s Location to output generated files 767s + glib-compile-resources --version 767s 2.85.3 767s + glib-genmarshal --version 767s glib-genmarshal version 2.85.3 767s glib-genmarshal comes with ABSOLUTELY NO WARRANTY. 767s You may redistribute copies of glib-genmarshal under the terms of 767s the GNU General Public License which can be found in the 767s GLib source package. Sources, examples and contact 767s information are available at http://www.gtk.org 767s + glib-gettextize --version 767s /usr/bin/glib-gettextize (GNU glib) 2.85.3 767s Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. 767s This is free software; see the source for copying conditions. There is NO 767s warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 767s Written by Ulrich Drepper 767s + glib-mkenums --version 767s glib-mkenums version 2.85.3 767s glib-mkenums comes with ABSOLUTELY NO WARRANTY. 767s You may redistribute copies of glib-mkenums under the terms of 767s the GNU General Public License which can be found in the 767s GLib source package. Sources, examples and contact 767s information are available at http://www.gtk.org 767s + gobject-query tree 767s + gtester --version 767s GObject 767s + gtester-report --version 767s gtester version 2.85.3 767s gtester-report (GLib utils) version 2.85.3. 767s autopkgtest [16:57:56]: test libgio-2.0-dev-bin: -----------------------] 771s libgio-2.0-dev-bin PASS (superficial) 771s autopkgtest [16:58:00]: test libgio-2.0-dev-bin: - - - - - - - - - - results - - - - - - - - - - 775s autopkgtest [16:58:04]: test libglib2.0-dev: preparing testbed 797s autopkgtest [16:58:26]: testbed dpkg architecture: armhf 799s autopkgtest [16:58:28]: testbed apt version: 3.1.5ubuntu1 803s autopkgtest [16:58:32]: @@@@@@@@@@@@@@@@@@@@ test bed setup 805s autopkgtest [16:58:34]: testbed release detected to be: questing 812s autopkgtest [16:58:41]: updating testbed package index (apt update) 815s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [265 kB] 815s Get:2 http://ftpmaster.internal/ubuntu questing InRelease [265 kB] 815s Get:3 http://ftpmaster.internal/ubuntu questing-updates InRelease [126 kB] 816s Get:4 http://ftpmaster.internal/ubuntu questing-security InRelease [126 kB] 816s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/restricted Sources [3848 B] 816s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [59.7 kB] 816s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [239 kB] 816s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [14.1 kB] 816s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/main armhf Packages [81.3 kB] 816s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/main armhf c-n-f Metadata [2824 B] 816s Get:11 http://ftpmaster.internal/ubuntu questing-proposed/restricted armhf Packages [728 B] 816s Get:12 http://ftpmaster.internal/ubuntu questing-proposed/restricted armhf c-n-f Metadata [120 B] 816s Get:13 http://ftpmaster.internal/ubuntu questing-proposed/universe armhf Packages [203 kB] 817s Get:14 http://ftpmaster.internal/ubuntu questing-proposed/universe armhf c-n-f Metadata [6536 B] 817s Get:15 http://ftpmaster.internal/ubuntu questing-proposed/multiverse armhf Packages [3200 B] 817s Get:16 http://ftpmaster.internal/ubuntu questing-proposed/multiverse armhf c-n-f Metadata [268 B] 817s Get:17 http://ftpmaster.internal/ubuntu questing/restricted Sources [15.7 kB] 817s Get:18 http://ftpmaster.internal/ubuntu questing/main Sources [1398 kB] 818s Get:19 http://ftpmaster.internal/ubuntu questing/universe Sources [21.1 MB] 842s Get:20 http://ftpmaster.internal/ubuntu questing/multiverse Sources [310 kB] 842s Get:21 http://ftpmaster.internal/ubuntu questing/main armhf Packages [1348 kB] 843s Get:22 http://ftpmaster.internal/ubuntu questing/main armhf c-n-f Metadata [29.4 kB] 843s Get:23 http://ftpmaster.internal/ubuntu questing/restricted armhf Packages [1640 B] 843s Get:24 http://ftpmaster.internal/ubuntu questing/universe armhf Packages [15.0 MB] 860s Get:25 http://ftpmaster.internal/ubuntu questing/universe armhf c-n-f Metadata [278 kB] 860s Get:26 http://ftpmaster.internal/ubuntu questing/multiverse armhf Packages [182 kB] 863s Fetched 41.1 MB in 47s (870 kB/s) 864s Reading package lists... 869s autopkgtest [16:59:38]: upgrading testbed (apt dist-upgrade and autopurge) 871s Reading package lists... 872s Building dependency tree... 872s Reading state information... 872s Calculating upgrade... 873s The following packages will be upgraded: 873s cryptsetup-bin dash libbrotli1 libcryptsetup12 874s 4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 874s Need to get 893 kB of archives. 874s After this operation, 0 B of additional disk space will be used. 874s Get:1 http://ftpmaster.internal/ubuntu questing/main armhf dash armhf 0.5.12-12ubuntu2 [87.6 kB] 874s Get:2 http://ftpmaster.internal/ubuntu questing/main armhf libcryptsetup12 armhf 2:2.8.0-1ubuntu2 [254 kB] 874s Get:3 http://ftpmaster.internal/ubuntu questing/main armhf cryptsetup-bin armhf 2:2.8.0-1ubuntu2 [232 kB] 875s Get:4 http://ftpmaster.internal/ubuntu questing/main armhf libbrotli1 armhf 1.1.0-2build5 [320 kB] 876s Preconfiguring packages ... 876s Fetched 893 kB in 2s (534 kB/s) 876s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 64903 files and directories currently installed.) 876s Preparing to unpack .../dash_0.5.12-12ubuntu2_armhf.deb ... 876s Unpacking dash (0.5.12-12ubuntu2) over (0.5.12-12ubuntu1) ... 876s Setting up dash (0.5.12-12ubuntu2) ... 876s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 64903 files and directories currently installed.) 876s Preparing to unpack .../libcryptsetup12_2%3a2.8.0-1ubuntu2_armhf.deb ... 876s Unpacking libcryptsetup12:armhf (2:2.8.0-1ubuntu2) over (2:2.8.0-1ubuntu1) ... 876s Preparing to unpack .../cryptsetup-bin_2%3a2.8.0-1ubuntu2_armhf.deb ... 876s Unpacking cryptsetup-bin (2:2.8.0-1ubuntu2) over (2:2.8.0-1ubuntu1) ... 876s Preparing to unpack .../libbrotli1_1.1.0-2build5_armhf.deb ... 876s Unpacking libbrotli1:armhf (1.1.0-2build5) over (1.1.0-2build4) ... 876s Setting up libbrotli1:armhf (1.1.0-2build5) ... 876s Setting up libcryptsetup12:armhf (2:2.8.0-1ubuntu2) ... 876s Setting up cryptsetup-bin (2:2.8.0-1ubuntu2) ... 876s Processing triggers for man-db (2.13.1-1) ... 877s Processing triggers for debianutils (5.23.2) ... 877s Processing triggers for libc-bin (2.42-0ubuntu1) ... 880s Reading package lists... 880s Building dependency tree... 880s Reading state information... 880s Solving dependencies... 881s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 883s autopkgtest [16:59:52]: rebooting testbed after setup commands that affected boot 946s Reading package lists... 947s Building dependency tree... 947s Reading state information... 947s Solving dependencies... 948s The following packages will be REMOVED: 948s coreutils-from-gnu 948s The following NEW packages will be installed: 948s build-essential coreutils-from-uutils cpp cpp-15 cpp-15-arm-linux-gnueabihf 948s cpp-arm-linux-gnueabihf g++ g++-15 g++-15-arm-linux-gnueabihf 948s g++-arm-linux-gnueabihf gcc gcc-15 gcc-15-arm-linux-gnueabihf 948s gcc-arm-linux-gnueabihf gir1.2-glib-2.0-dev girepository-tools libasan8 948s libblkid-dev libc-dev-bin libc6-dev libcc1-0 libcrypt-dev libffi-dev 948s libgcc-15-dev libgio-2.0-dev libgio-2.0-dev-bin libgirepository-2.0-0 948s libglib2.0-bin libglib2.0-dev libglib2.0-dev-bin libgomp1 libisl23 948s libmount-dev libmpc3 libpcre2-16-0 libpcre2-32-0 libpcre2-dev 948s libpcre2-posix3 libpkgconf3 libselinux1-dev libsepol-dev libstdc++-15-dev 948s libsysprof-capture-4-dev libubsan1 linux-libc-dev native-architecture 948s pkgconf pkgconf-bin rpcsvc-proto rust-coreutils uuid-dev zlib1g-dev 948s 0 upgraded, 52 newly installed, 1 to remove and 0 not upgraded. 948s Need to get 264 MB of archives. 948s After this operation, 949 MB of additional disk space will be used. 948s Get:1 http://ftpmaster.internal/ubuntu questing/main armhf rust-coreutils armhf 0.1.0+git20250813.4af2a84-0ubuntu2 [2945 kB] 952s Get:2 http://ftpmaster.internal/ubuntu questing/universe armhf coreutils-from-uutils all 0.0.0~ubuntu20 [6490 B] 952s Get:3 http://ftpmaster.internal/ubuntu questing/main armhf libc-dev-bin armhf 2.42-0ubuntu1 [21.8 kB] 952s Get:4 http://ftpmaster.internal/ubuntu questing/main armhf linux-libc-dev armhf 6.16.0-16.16 [1757 kB] 954s Get:5 http://ftpmaster.internal/ubuntu questing/main armhf libcrypt-dev armhf 1:4.4.38-1 [120 kB] 955s Get:6 http://ftpmaster.internal/ubuntu questing/main armhf rpcsvc-proto armhf 1.4.3-1 [62.3 kB] 955s Get:7 http://ftpmaster.internal/ubuntu questing/main armhf libc6-dev armhf 2.42-0ubuntu1 [1416 kB] 957s Get:8 http://ftpmaster.internal/ubuntu questing/main armhf libisl23 armhf 0.27-1 [546 kB] 958s Get:9 http://ftpmaster.internal/ubuntu questing/main armhf libmpc3 armhf 1.3.1-1build3 [47.2 kB] 958s Get:10 http://ftpmaster.internal/ubuntu questing/main armhf cpp-15-arm-linux-gnueabihf armhf 15.2.0-2ubuntu1 [76.5 MB] 1052s Get:11 http://ftpmaster.internal/ubuntu questing/main armhf cpp-15 armhf 15.2.0-2ubuntu1 [1032 B] 1052s Get:12 http://ftpmaster.internal/ubuntu questing/main armhf cpp-arm-linux-gnueabihf armhf 4:15.1.0-1ubuntu1 [5592 B] 1052s Get:13 http://ftpmaster.internal/ubuntu questing/main armhf cpp armhf 4:15.1.0-1ubuntu1 [22.5 kB] 1053s Get:14 http://ftpmaster.internal/ubuntu questing/main armhf libcc1-0 armhf 15.2.0-2ubuntu1 [43.6 kB] 1053s Get:15 http://ftpmaster.internal/ubuntu questing/main armhf libgomp1 armhf 15.2.0-2ubuntu1 [129 kB] 1053s Get:16 http://ftpmaster.internal/ubuntu questing/main armhf libasan8 armhf 15.2.0-2ubuntu1 [2952 kB] 1057s Get:17 http://ftpmaster.internal/ubuntu questing/main armhf libubsan1 armhf 15.2.0-2ubuntu1 [1188 kB] 1059s Get:18 http://ftpmaster.internal/ubuntu questing/main armhf libgcc-15-dev armhf 15.2.0-2ubuntu1 [898 kB] 1060s Get:19 http://ftpmaster.internal/ubuntu questing/main armhf gcc-15-arm-linux-gnueabihf armhf 15.2.0-2ubuntu1 [83.9 MB] 1169s Get:20 http://ftpmaster.internal/ubuntu questing/main armhf gcc-15 armhf 15.2.0-2ubuntu1 [489 kB] 1169s Get:21 http://ftpmaster.internal/ubuntu questing/main armhf gcc-arm-linux-gnueabihf armhf 4:15.1.0-1ubuntu1 [1224 B] 1169s Get:22 http://ftpmaster.internal/ubuntu questing/main armhf gcc armhf 4:15.1.0-1ubuntu1 [5020 B] 1169s Get:23 http://ftpmaster.internal/ubuntu questing/main armhf libstdc++-15-dev armhf 15.2.0-2ubuntu1 [2601 kB] 1173s Get:24 http://ftpmaster.internal/ubuntu questing/main armhf g++-15-arm-linux-gnueabihf armhf 15.2.0-2ubuntu1 [82.2 MB] 1285s Get:25 http://ftpmaster.internal/ubuntu questing/main armhf g++-15 armhf 15.2.0-2ubuntu1 [23.1 kB] 1285s Get:26 http://ftpmaster.internal/ubuntu questing/main armhf g++-arm-linux-gnueabihf armhf 4:15.1.0-1ubuntu1 [972 B] 1285s Get:27 http://ftpmaster.internal/ubuntu questing/main armhf g++ armhf 4:15.1.0-1ubuntu1 [1092 B] 1285s Get:28 http://ftpmaster.internal/ubuntu questing-proposed/main armhf build-essential armhf 12.12ubuntu2 [5256 B] 1285s Get:29 http://ftpmaster.internal/ubuntu questing/main armhf gir1.2-glib-2.0-dev armhf 2.85.3-1 [868 kB] 1285s Get:30 http://ftpmaster.internal/ubuntu questing/main armhf native-architecture all 0.2.6 [2140 B] 1285s Get:31 http://ftpmaster.internal/ubuntu questing/main armhf libgirepository-2.0-0 armhf 2.85.3-1 [99.9 kB] 1286s Get:32 http://ftpmaster.internal/ubuntu questing/main armhf girepository-tools armhf 2.85.3-1 [109 kB] 1286s Get:33 http://ftpmaster.internal/ubuntu questing/main armhf libffi-dev armhf 3.5.2-1 [58.7 kB] 1286s Get:34 http://ftpmaster.internal/ubuntu questing/main armhf uuid-dev armhf 2.41-4ubuntu3 [54.3 kB] 1286s Get:35 http://ftpmaster.internal/ubuntu questing/main armhf libblkid-dev armhf 2.41-4ubuntu3 [221 kB] 1286s Get:36 http://ftpmaster.internal/ubuntu questing/main armhf libsepol-dev armhf 3.8.1-1 [382 kB] 1286s Get:37 http://ftpmaster.internal/ubuntu questing/main armhf libpcre2-16-0 armhf 10.46-1 [206 kB] 1287s Get:38 http://ftpmaster.internal/ubuntu questing/main armhf libpcre2-32-0 armhf 10.46-1 [197 kB] 1287s Get:39 http://ftpmaster.internal/ubuntu questing/main armhf libpcre2-posix3 armhf 10.46-1 [6286 B] 1287s Get:40 http://ftpmaster.internal/ubuntu questing/main armhf libpcre2-dev armhf 10.46-1 [744 kB] 1288s Get:41 http://ftpmaster.internal/ubuntu questing/main armhf libselinux1-dev armhf 3.8.1-1 [168 kB] 1288s Get:42 http://ftpmaster.internal/ubuntu questing/main armhf libmount-dev armhf 2.41-4ubuntu3 [36.2 kB] 1288s Get:43 http://ftpmaster.internal/ubuntu questing/main armhf libsysprof-capture-4-dev armhf 48.0-2 [49.3 kB] 1288s Get:44 http://ftpmaster.internal/ubuntu questing/main armhf libpkgconf3 armhf 1.8.1-4 [26.6 kB] 1288s Get:45 http://ftpmaster.internal/ubuntu questing/main armhf pkgconf-bin armhf 1.8.1-4 [21.2 kB] 1288s Get:46 http://ftpmaster.internal/ubuntu questing/main armhf pkgconf armhf 1.8.1-4 [16.8 kB] 1288s Get:47 http://ftpmaster.internal/ubuntu questing/main armhf zlib1g-dev armhf 1:1.3.dfsg+really1.3.1-1ubuntu1 [880 kB] 1289s Get:48 http://ftpmaster.internal/ubuntu questing/main armhf libgio-2.0-dev armhf 2.85.3-1 [1730 kB] 1290s Get:49 http://ftpmaster.internal/ubuntu questing/main armhf libgio-2.0-dev-bin armhf 2.85.3-1 [130 kB] 1290s Get:50 http://ftpmaster.internal/ubuntu questing/main armhf libglib2.0-bin armhf 2.85.3-1 [92.3 kB] 1290s Get:51 http://ftpmaster.internal/ubuntu questing/main armhf libglib2.0-dev-bin armhf 2.85.3-1 [18.2 kB] 1290s Get:52 http://ftpmaster.internal/ubuntu questing/main armhf libglib2.0-dev armhf 2.85.3-1 [18.9 kB] 1291s Fetched 264 MB in 5min 43s (771 kB/s) 1291s Selecting previously unselected package rust-coreutils. 1291s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 64903 files and directories currently installed.) 1291s Preparing to unpack .../rust-coreutils_0.1.0+git20250813.4af2a84-0ubuntu2_armhf.deb ... 1291s Unpacking rust-coreutils (0.1.0+git20250813.4af2a84-0ubuntu2) ... 1291s Setting up rust-coreutils (0.1.0+git20250813.4af2a84-0ubuntu2) ... 1291s dpkg: coreutils-from-gnu: dependency problems, but removing anyway as you requested: 1291s coreutils depends on coreutils-from-gnu | coreutils-from-uutils; however: 1291s Package coreutils-from-gnu is to be removed. 1291s Package coreutils-from-uutils is not installed. 1291s 1291s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 65636 files and directories currently installed.) 1291s Removing coreutils-from-gnu (0.0.0~ubuntu20) ... 1291s Adding 'diversion of /usr/bin/[ to /usr/bin/[.remove-bak by coreutils-switch' 1291s Adding 'diversion of /usr/bin/arch to /usr/bin/arch.remove-bak by coreutils-switch' 1291s Adding 'diversion of /usr/bin/b2sum to /usr/bin/b2sum.remove-bak by coreutils-switch' 1291s Adding 'diversion of /usr/bin/base32 to /usr/bin/base32.remove-bak by coreutils-switch' 1291s Adding 'diversion of /usr/bin/base64 to /usr/bin/base64.remove-bak by coreutils-switch' 1291s Adding 'diversion of /usr/bin/basename to /usr/bin/basename.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/basenc to /usr/bin/basenc.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/cat to /usr/bin/cat.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/chcon to /usr/bin/chcon.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/chgrp to /usr/bin/chgrp.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/chmod to /usr/bin/chmod.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/chown to /usr/bin/chown.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/cksum to /usr/bin/cksum.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/comm to /usr/bin/comm.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/cp to /usr/bin/cp.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/csplit to /usr/bin/csplit.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/cut to /usr/bin/cut.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/date to /usr/bin/date.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/dd to /usr/bin/dd.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/df to /usr/bin/df.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/dir to /usr/bin/dir.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/dircolors to /usr/bin/dircolors.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/dirname to /usr/bin/dirname.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/du to /usr/bin/du.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/echo to /usr/bin/echo.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/env to /usr/bin/env.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/expand to /usr/bin/expand.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/expr to /usr/bin/expr.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/factor to /usr/bin/factor.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/false to /usr/bin/false.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/fmt to /usr/bin/fmt.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/fold to /usr/bin/fold.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/groups to /usr/bin/groups.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/head to /usr/bin/head.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/hostid to /usr/bin/hostid.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/id to /usr/bin/id.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/install to /usr/bin/install.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/join to /usr/bin/join.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/link to /usr/bin/link.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/ln to /usr/bin/ln.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/logname to /usr/bin/logname.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/ls to /usr/bin/ls.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/md5sum to /usr/bin/md5sum.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/mkdir to /usr/bin/mkdir.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/mkfifo to /usr/bin/mkfifo.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/mknod to /usr/bin/mknod.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/mktemp to /usr/bin/mktemp.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/mv to /usr/bin/mv.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/nice to /usr/bin/nice.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/nl to /usr/bin/nl.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/nohup to /usr/bin/nohup.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/nproc to /usr/bin/nproc.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/numfmt to /usr/bin/numfmt.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/od to /usr/bin/od.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/paste to /usr/bin/paste.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/pathchk to /usr/bin/pathchk.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/pinky to /usr/bin/pinky.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/pr to /usr/bin/pr.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/printenv to /usr/bin/printenv.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/printf to /usr/bin/printf.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/ptx to /usr/bin/ptx.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/pwd to /usr/bin/pwd.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/readlink to /usr/bin/readlink.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/realpath to /usr/bin/realpath.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/rm to /usr/bin/rm.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/rmdir to /usr/bin/rmdir.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/runcon to /usr/bin/runcon.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/seq to /usr/bin/seq.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/sha1sum to /usr/bin/sha1sum.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/sha224sum to /usr/bin/sha224sum.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/sha256sum to /usr/bin/sha256sum.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/sha384sum to /usr/bin/sha384sum.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/sha512sum to /usr/bin/sha512sum.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/shred to /usr/bin/shred.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/shuf to /usr/bin/shuf.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/sleep to /usr/bin/sleep.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/sort to /usr/bin/sort.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/split to /usr/bin/split.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/stat to /usr/bin/stat.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/stdbuf to /usr/bin/stdbuf.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/stty to /usr/bin/stty.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/sum to /usr/bin/sum.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/sync to /usr/bin/sync.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/tac to /usr/bin/tac.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/tail to /usr/bin/tail.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/tee to /usr/bin/tee.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/test to /usr/bin/test.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/timeout to /usr/bin/timeout.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/touch to /usr/bin/touch.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/tr to /usr/bin/tr.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/true to /usr/bin/true.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/truncate to /usr/bin/truncate.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/tsort to /usr/bin/tsort.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/tty to /usr/bin/tty.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/uname to /usr/bin/uname.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/unexpand to /usr/bin/unexpand.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/uniq to /usr/bin/uniq.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/unlink to /usr/bin/unlink.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/users to /usr/bin/users.remove-bak by coreutils-switch' 1292s Adding 'diversion of /usr/bin/vdir to /usr/bin/vdir.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/bin/wc to /usr/bin/wc.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/bin/who to /usr/bin/who.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/bin/whoami to /usr/bin/whoami.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/bin/yes to /usr/bin/yes.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/sbin/chroot to /usr/sbin/chroot.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/arch.1.gz to /usr/share/man/man1/arch.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/b2sum.1.gz to /usr/share/man/man1/b2sum.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/base32.1.gz to /usr/share/man/man1/base32.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/base64.1.gz to /usr/share/man/man1/base64.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/basename.1.gz to /usr/share/man/man1/basename.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/basenc.1.gz to /usr/share/man/man1/basenc.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/cat.1.gz to /usr/share/man/man1/cat.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/chcon.1.gz to /usr/share/man/man1/chcon.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/chgrp.1.gz to /usr/share/man/man1/chgrp.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/chmod.1.gz to /usr/share/man/man1/chmod.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/chown.1.gz to /usr/share/man/man1/chown.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/cksum.1.gz to /usr/share/man/man1/cksum.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/comm.1.gz to /usr/share/man/man1/comm.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/cp.1.gz to /usr/share/man/man1/cp.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/csplit.1.gz to /usr/share/man/man1/csplit.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/cut.1.gz to /usr/share/man/man1/cut.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/date.1.gz to /usr/share/man/man1/date.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/dd.1.gz to /usr/share/man/man1/dd.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/df.1.gz to /usr/share/man/man1/df.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/dir.1.gz to /usr/share/man/man1/dir.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/dircolors.1.gz to /usr/share/man/man1/dircolors.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/dirname.1.gz to /usr/share/man/man1/dirname.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/du.1.gz to /usr/share/man/man1/du.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/echo.1.gz to /usr/share/man/man1/echo.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/env.1.gz to /usr/share/man/man1/env.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/expand.1.gz to /usr/share/man/man1/expand.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/expr.1.gz to /usr/share/man/man1/expr.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/factor.1.gz to /usr/share/man/man1/factor.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/false.1.gz to /usr/share/man/man1/false.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/fmt.1.gz to /usr/share/man/man1/fmt.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/fold.1.gz to /usr/share/man/man1/fold.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/groups.1.gz to /usr/share/man/man1/groups.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/head.1.gz to /usr/share/man/man1/head.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/hostid.1.gz to /usr/share/man/man1/hostid.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/id.1.gz to /usr/share/man/man1/id.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/install.1.gz to /usr/share/man/man1/install.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/join.1.gz to /usr/share/man/man1/join.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/link.1.gz to /usr/share/man/man1/link.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/ln.1.gz to /usr/share/man/man1/ln.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/logname.1.gz to /usr/share/man/man1/logname.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/ls.1.gz to /usr/share/man/man1/ls.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/md5sum.1.gz to /usr/share/man/man1/md5sum.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/mkdir.1.gz to /usr/share/man/man1/mkdir.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/mkfifo.1.gz to /usr/share/man/man1/mkfifo.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/mknod.1.gz to /usr/share/man/man1/mknod.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/mktemp.1.gz to /usr/share/man/man1/mktemp.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/mv.1.gz to /usr/share/man/man1/mv.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/nice.1.gz to /usr/share/man/man1/nice.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/nl.1.gz to /usr/share/man/man1/nl.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/nohup.1.gz to /usr/share/man/man1/nohup.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/nproc.1.gz to /usr/share/man/man1/nproc.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/numfmt.1.gz to /usr/share/man/man1/numfmt.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/od.1.gz to /usr/share/man/man1/od.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/paste.1.gz to /usr/share/man/man1/paste.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/pathchk.1.gz to /usr/share/man/man1/pathchk.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/pinky.1.gz to /usr/share/man/man1/pinky.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/pr.1.gz to /usr/share/man/man1/pr.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/printenv.1.gz to /usr/share/man/man1/printenv.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/printf.1.gz to /usr/share/man/man1/printf.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/ptx.1.gz to /usr/share/man/man1/ptx.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/pwd.1.gz to /usr/share/man/man1/pwd.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/readlink.1.gz to /usr/share/man/man1/readlink.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/realpath.1.gz to /usr/share/man/man1/realpath.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/rm.1.gz to /usr/share/man/man1/rm.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/rmdir.1.gz to /usr/share/man/man1/rmdir.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/runcon.1.gz to /usr/share/man/man1/runcon.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/seq.1.gz to /usr/share/man/man1/seq.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/sha1sum.1.gz to /usr/share/man/man1/sha1sum.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/sha224sum.1.gz to /usr/share/man/man1/sha224sum.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/sha256sum.1.gz to /usr/share/man/man1/sha256sum.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/sha384sum.1.gz to /usr/share/man/man1/sha384sum.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/sha512sum.1.gz to /usr/share/man/man1/sha512sum.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/shred.1.gz to /usr/share/man/man1/shred.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/shuf.1.gz to /usr/share/man/man1/shuf.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/sleep.1.gz to /usr/share/man/man1/sleep.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/sort.1.gz to /usr/share/man/man1/sort.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/split.1.gz to /usr/share/man/man1/split.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/stat.1.gz to /usr/share/man/man1/stat.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/stdbuf.1.gz to /usr/share/man/man1/stdbuf.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/stty.1.gz to /usr/share/man/man1/stty.1.gz.remove-bak by coreutils-switch' 1293s Adding 'diversion of /usr/share/man/man1/sum.1.gz to /usr/share/man/man1/sum.1.gz.remove-bak by coreutils-switch' 1294s Adding 'diversion of /usr/share/man/man1/sync.1.gz to /usr/share/man/man1/sync.1.gz.remove-bak by coreutils-switch' 1294s Adding 'diversion of /usr/share/man/man1/tac.1.gz to /usr/share/man/man1/tac.1.gz.remove-bak by coreutils-switch' 1294s Adding 'diversion of /usr/share/man/man1/tail.1.gz to /usr/share/man/man1/tail.1.gz.remove-bak by coreutils-switch' 1294s Adding 'diversion of /usr/share/man/man1/tee.1.gz to /usr/share/man/man1/tee.1.gz.remove-bak by coreutils-switch' 1294s Adding 'diversion of /usr/share/man/man1/test.1.gz to /usr/share/man/man1/test.1.gz.remove-bak by coreutils-switch' 1294s Adding 'diversion of /usr/share/man/man1/timeout.1.gz to /usr/share/man/man1/timeout.1.gz.remove-bak by coreutils-switch' 1294s Adding 'diversion of /usr/share/man/man1/touch.1.gz to /usr/share/man/man1/touch.1.gz.remove-bak by coreutils-switch' 1294s Adding 'diversion of /usr/share/man/man1/tr.1.gz to /usr/share/man/man1/tr.1.gz.remove-bak by coreutils-switch' 1294s Adding 'diversion of /usr/share/man/man1/true.1.gz to /usr/share/man/man1/true.1.gz.remove-bak by coreutils-switch' 1294s Adding 'diversion of /usr/share/man/man1/truncate.1.gz to /usr/share/man/man1/truncate.1.gz.remove-bak by coreutils-switch' 1294s Adding 'diversion of /usr/share/man/man1/tsort.1.gz to /usr/share/man/man1/tsort.1.gz.remove-bak by coreutils-switch' 1294s Adding 'diversion of /usr/share/man/man1/tty.1.gz to /usr/share/man/man1/tty.1.gz.remove-bak by coreutils-switch' 1294s Adding 'diversion of /usr/share/man/man1/uname.1.gz to /usr/share/man/man1/uname.1.gz.remove-bak by coreutils-switch' 1294s Adding 'diversion of /usr/share/man/man1/unexpand.1.gz to /usr/share/man/man1/unexpand.1.gz.remove-bak by coreutils-switch' 1294s Adding 'diversion of /usr/share/man/man1/uniq.1.gz to /usr/share/man/man1/uniq.1.gz.remove-bak by coreutils-switch' 1294s Adding 'diversion of /usr/share/man/man1/unlink.1.gz to /usr/share/man/man1/unlink.1.gz.remove-bak by coreutils-switch' 1294s Adding 'diversion of /usr/share/man/man1/users.1.gz to /usr/share/man/man1/users.1.gz.remove-bak by coreutils-switch' 1294s Adding 'diversion of /usr/share/man/man1/vdir.1.gz to /usr/share/man/man1/vdir.1.gz.remove-bak by coreutils-switch' 1294s Adding 'diversion of /usr/share/man/man1/wc.1.gz to /usr/share/man/man1/wc.1.gz.remove-bak by coreutils-switch' 1294s Adding 'diversion of /usr/share/man/man1/who.1.gz to /usr/share/man/man1/who.1.gz.remove-bak by coreutils-switch' 1294s Adding 'diversion of /usr/share/man/man1/whoami.1.gz to /usr/share/man/man1/whoami.1.gz.remove-bak by coreutils-switch' 1294s Adding 'diversion of /usr/share/man/man1/yes.1.gz to /usr/share/man/man1/yes.1.gz.remove-bak by coreutils-switch' 1294s Adding 'diversion of /usr/share/man/man8/chroot.8.gz to /usr/share/man/man8/chroot.8.gz.remove-bak by coreutils-switch' 1294s Adding 'diversion of /usr/share/man/man1/[.1.gz to /usr/share/man/man1/[.1.gz.remove-bak by coreutils-switch' 1294s Selecting previously unselected package coreutils-from-uutils. 1294s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 65845 files and directories currently installed.) 1294s Preparing to unpack .../coreutils-from-uutils_0.0.0~ubuntu20_all.deb ... 1294s Removing 'diversion of /usr/bin/[ to /usr/bin/[.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/arch to /usr/bin/arch.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/b2sum to /usr/bin/b2sum.remove-bak by coreutils-switch' 1294s No diversion 'diversion of /usr/bin/b3sum to /usr/bin/b3sum.remove-bak by coreutils-switch', none removed. 1294s Removing 'diversion of /usr/bin/base32 to /usr/bin/base32.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/base64 to /usr/bin/base64.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/basename to /usr/bin/basename.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/basenc to /usr/bin/basenc.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/cat to /usr/bin/cat.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/chcon to /usr/bin/chcon.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/chgrp to /usr/bin/chgrp.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/chmod to /usr/bin/chmod.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/chown to /usr/bin/chown.remove-bak by coreutils-switch' 1294s No diversion 'diversion of /usr/bin/chroot to /usr/bin/chroot.remove-bak by coreutils-switch', none removed. 1294s Removing 'diversion of /usr/bin/cksum to /usr/bin/cksum.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/comm to /usr/bin/comm.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/cp to /usr/bin/cp.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/csplit to /usr/bin/csplit.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/cut to /usr/bin/cut.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/date to /usr/bin/date.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/dd to /usr/bin/dd.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/df to /usr/bin/df.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/dir to /usr/bin/dir.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/dircolors to /usr/bin/dircolors.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/dirname to /usr/bin/dirname.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/du to /usr/bin/du.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/echo to /usr/bin/echo.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/env to /usr/bin/env.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/expand to /usr/bin/expand.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/expr to /usr/bin/expr.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/factor to /usr/bin/factor.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/false to /usr/bin/false.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/fmt to /usr/bin/fmt.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/fold to /usr/bin/fold.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/groups to /usr/bin/groups.remove-bak by coreutils-switch' 1294s No diversion 'diversion of /usr/bin/hashsum to /usr/bin/hashsum.remove-bak by coreutils-switch', none removed. 1294s Removing 'diversion of /usr/bin/head to /usr/bin/head.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/hostid to /usr/bin/hostid.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/id to /usr/bin/id.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/install to /usr/bin/install.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/join to /usr/bin/join.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/link to /usr/bin/link.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/ln to /usr/bin/ln.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/logname to /usr/bin/logname.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/ls to /usr/bin/ls.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/md5sum to /usr/bin/md5sum.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/mkdir to /usr/bin/mkdir.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/mkfifo to /usr/bin/mkfifo.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/mknod to /usr/bin/mknod.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/mktemp to /usr/bin/mktemp.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/mv to /usr/bin/mv.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/nice to /usr/bin/nice.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/nl to /usr/bin/nl.remove-bak by coreutils-switch' 1294s Removing 'diversion of /usr/bin/nohup to /usr/bin/nohup.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/nproc to /usr/bin/nproc.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/numfmt to /usr/bin/numfmt.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/od to /usr/bin/od.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/paste to /usr/bin/paste.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/pathchk to /usr/bin/pathchk.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/pinky to /usr/bin/pinky.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/pr to /usr/bin/pr.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/printenv to /usr/bin/printenv.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/printf to /usr/bin/printf.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/ptx to /usr/bin/ptx.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/pwd to /usr/bin/pwd.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/readlink to /usr/bin/readlink.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/realpath to /usr/bin/realpath.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/rm to /usr/bin/rm.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/rmdir to /usr/bin/rmdir.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/runcon to /usr/bin/runcon.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/seq to /usr/bin/seq.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/sha1sum to /usr/bin/sha1sum.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/sha224sum to /usr/bin/sha224sum.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/sha256sum to /usr/bin/sha256sum.remove-bak by coreutils-switch' 1295s No diversion 'diversion of /usr/bin/sha3-224sum to /usr/bin/sha3-224sum.remove-bak by coreutils-switch', none removed. 1295s No diversion 'diversion of /usr/bin/sha3-256sum to /usr/bin/sha3-256sum.remove-bak by coreutils-switch', none removed. 1295s No diversion 'diversion of /usr/bin/sha3-384sum to /usr/bin/sha3-384sum.remove-bak by coreutils-switch', none removed. 1295s No diversion 'diversion of /usr/bin/sha3-512sum to /usr/bin/sha3-512sum.remove-bak by coreutils-switch', none removed. 1295s Removing 'diversion of /usr/bin/sha384sum to /usr/bin/sha384sum.remove-bak by coreutils-switch' 1295s No diversion 'diversion of /usr/bin/sha3sum to /usr/bin/sha3sum.remove-bak by coreutils-switch', none removed. 1295s Removing 'diversion of /usr/bin/sha512sum to /usr/bin/sha512sum.remove-bak by coreutils-switch' 1295s No diversion 'diversion of /usr/bin/shake128sum to /usr/bin/shake128sum.remove-bak by coreutils-switch', none removed. 1295s No diversion 'diversion of /usr/bin/shake256sum to /usr/bin/shake256sum.remove-bak by coreutils-switch', none removed. 1295s Removing 'diversion of /usr/bin/shred to /usr/bin/shred.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/shuf to /usr/bin/shuf.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/sleep to /usr/bin/sleep.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/sort to /usr/bin/sort.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/split to /usr/bin/split.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/stat to /usr/bin/stat.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/stty to /usr/bin/stty.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/sum to /usr/bin/sum.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/sync to /usr/bin/sync.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/tac to /usr/bin/tac.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/tail to /usr/bin/tail.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/tee to /usr/bin/tee.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/test to /usr/bin/test.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/timeout to /usr/bin/timeout.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/touch to /usr/bin/touch.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/tr to /usr/bin/tr.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/true to /usr/bin/true.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/truncate to /usr/bin/truncate.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/tsort to /usr/bin/tsort.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/tty to /usr/bin/tty.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/uname to /usr/bin/uname.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/unexpand to /usr/bin/unexpand.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/uniq to /usr/bin/uniq.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/unlink to /usr/bin/unlink.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/users to /usr/bin/users.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/vdir to /usr/bin/vdir.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/wc to /usr/bin/wc.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/who to /usr/bin/who.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/whoami to /usr/bin/whoami.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/bin/yes to /usr/bin/yes.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/share/man/man1/arch.1.gz to /usr/share/man/man1/arch.1.gz.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/share/man/man1/base32.1.gz to /usr/share/man/man1/base32.1.gz.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/share/man/man1/base64.1.gz to /usr/share/man/man1/base64.1.gz.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/share/man/man1/basename.1.gz to /usr/share/man/man1/basename.1.gz.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/share/man/man1/basenc.1.gz to /usr/share/man/man1/basenc.1.gz.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/share/man/man1/cat.1.gz to /usr/share/man/man1/cat.1.gz.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/share/man/man1/chcon.1.gz to /usr/share/man/man1/chcon.1.gz.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/share/man/man1/chgrp.1.gz to /usr/share/man/man1/chgrp.1.gz.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/share/man/man1/chmod.1.gz to /usr/share/man/man1/chmod.1.gz.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/share/man/man1/chown.1.gz to /usr/share/man/man1/chown.1.gz.remove-bak by coreutils-switch' 1295s No diversion 'diversion of /usr/share/man/man1/chroot.1.gz to /usr/share/man/man1/chroot.1.gz.remove-bak by coreutils-switch', none removed. 1295s Removing 'diversion of /usr/share/man/man1/cksum.1.gz to /usr/share/man/man1/cksum.1.gz.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/share/man/man1/comm.1.gz to /usr/share/man/man1/comm.1.gz.remove-bak by coreutils-switch' 1295s No diversion 'diversion of /usr/share/man/man1/coreutils.1.gz to /usr/share/man/man1/coreutils.1.gz.remove-bak by coreutils-switch', none removed. 1295s Removing 'diversion of /usr/share/man/man1/cp.1.gz to /usr/share/man/man1/cp.1.gz.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/share/man/man1/csplit.1.gz to /usr/share/man/man1/csplit.1.gz.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/share/man/man1/cut.1.gz to /usr/share/man/man1/cut.1.gz.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/share/man/man1/date.1.gz to /usr/share/man/man1/date.1.gz.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/share/man/man1/dd.1.gz to /usr/share/man/man1/dd.1.gz.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/share/man/man1/df.1.gz to /usr/share/man/man1/df.1.gz.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/share/man/man1/dir.1.gz to /usr/share/man/man1/dir.1.gz.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/share/man/man1/dircolors.1.gz to /usr/share/man/man1/dircolors.1.gz.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/share/man/man1/dirname.1.gz to /usr/share/man/man1/dirname.1.gz.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/share/man/man1/du.1.gz to /usr/share/man/man1/du.1.gz.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/share/man/man1/echo.1.gz to /usr/share/man/man1/echo.1.gz.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/share/man/man1/env.1.gz to /usr/share/man/man1/env.1.gz.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/share/man/man1/expand.1.gz to /usr/share/man/man1/expand.1.gz.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/share/man/man1/expr.1.gz to /usr/share/man/man1/expr.1.gz.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/share/man/man1/factor.1.gz to /usr/share/man/man1/factor.1.gz.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/share/man/man1/false.1.gz to /usr/share/man/man1/false.1.gz.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/share/man/man1/fmt.1.gz to /usr/share/man/man1/fmt.1.gz.remove-bak by coreutils-switch' 1295s Removing 'diversion of /usr/share/man/man1/fold.1.gz to /usr/share/man/man1/fold.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/groups.1.gz to /usr/share/man/man1/groups.1.gz.remove-bak by coreutils-switch' 1296s No diversion 'diversion of /usr/share/man/man1/hashsum.1.gz to /usr/share/man/man1/hashsum.1.gz.remove-bak by coreutils-switch', none removed. 1296s Removing 'diversion of /usr/share/man/man1/head.1.gz to /usr/share/man/man1/head.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/hostid.1.gz to /usr/share/man/man1/hostid.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/id.1.gz to /usr/share/man/man1/id.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/install.1.gz to /usr/share/man/man1/install.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/join.1.gz to /usr/share/man/man1/join.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/link.1.gz to /usr/share/man/man1/link.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/ln.1.gz to /usr/share/man/man1/ln.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/logname.1.gz to /usr/share/man/man1/logname.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/ls.1.gz to /usr/share/man/man1/ls.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/mkdir.1.gz to /usr/share/man/man1/mkdir.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/mkfifo.1.gz to /usr/share/man/man1/mkfifo.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/mknod.1.gz to /usr/share/man/man1/mknod.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/mktemp.1.gz to /usr/share/man/man1/mktemp.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/mv.1.gz to /usr/share/man/man1/mv.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/nice.1.gz to /usr/share/man/man1/nice.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/nl.1.gz to /usr/share/man/man1/nl.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/nohup.1.gz to /usr/share/man/man1/nohup.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/nproc.1.gz to /usr/share/man/man1/nproc.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/numfmt.1.gz to /usr/share/man/man1/numfmt.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/od.1.gz to /usr/share/man/man1/od.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/paste.1.gz to /usr/share/man/man1/paste.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/pathchk.1.gz to /usr/share/man/man1/pathchk.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/pinky.1.gz to /usr/share/man/man1/pinky.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/pr.1.gz to /usr/share/man/man1/pr.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/printenv.1.gz to /usr/share/man/man1/printenv.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/printf.1.gz to /usr/share/man/man1/printf.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/ptx.1.gz to /usr/share/man/man1/ptx.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/pwd.1.gz to /usr/share/man/man1/pwd.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/readlink.1.gz to /usr/share/man/man1/readlink.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/realpath.1.gz to /usr/share/man/man1/realpath.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/rm.1.gz to /usr/share/man/man1/rm.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/rmdir.1.gz to /usr/share/man/man1/rmdir.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/runcon.1.gz to /usr/share/man/man1/runcon.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/seq.1.gz to /usr/share/man/man1/seq.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/shred.1.gz to /usr/share/man/man1/shred.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/shuf.1.gz to /usr/share/man/man1/shuf.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/sleep.1.gz to /usr/share/man/man1/sleep.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/sort.1.gz to /usr/share/man/man1/sort.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/split.1.gz to /usr/share/man/man1/split.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/stat.1.gz to /usr/share/man/man1/stat.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/stty.1.gz to /usr/share/man/man1/stty.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/sum.1.gz to /usr/share/man/man1/sum.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/sync.1.gz to /usr/share/man/man1/sync.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/tac.1.gz to /usr/share/man/man1/tac.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/tail.1.gz to /usr/share/man/man1/tail.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/tee.1.gz to /usr/share/man/man1/tee.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/test.1.gz to /usr/share/man/man1/test.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/timeout.1.gz to /usr/share/man/man1/timeout.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/touch.1.gz to /usr/share/man/man1/touch.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/tr.1.gz to /usr/share/man/man1/tr.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/true.1.gz to /usr/share/man/man1/true.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/truncate.1.gz to /usr/share/man/man1/truncate.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/tsort.1.gz to /usr/share/man/man1/tsort.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/tty.1.gz to /usr/share/man/man1/tty.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/uname.1.gz to /usr/share/man/man1/uname.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/unexpand.1.gz to /usr/share/man/man1/unexpand.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/uniq.1.gz to /usr/share/man/man1/uniq.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/unlink.1.gz to /usr/share/man/man1/unlink.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/users.1.gz to /usr/share/man/man1/users.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/vdir.1.gz to /usr/share/man/man1/vdir.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/wc.1.gz to /usr/share/man/man1/wc.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/who.1.gz to /usr/share/man/man1/who.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/whoami.1.gz to /usr/share/man/man1/whoami.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/yes.1.gz to /usr/share/man/man1/yes.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/[.1.gz to /usr/share/man/man1/[.1.gz.remove-bak by coreutils-switch' 1296s Unpacking coreutils-from-uutils (0.0.0~ubuntu20) ... 1296s Setting up coreutils-from-uutils (0.0.0~ubuntu20) ... 1296s Removing 'diversion of /usr/share/man/man1/sha512sum.1.gz to /usr/share/man/man1/sha512sum.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/sha1sum.1.gz to /usr/share/man/man1/sha1sum.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/sha384sum.1.gz to /usr/share/man/man1/sha384sum.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/b2sum.1.gz to /usr/share/man/man1/b2sum.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/share/man/man1/sha256sum.1.gz to /usr/share/man/man1/sha256sum.1.gz.remove-bak by coreutils-switch' 1296s Removing 'diversion of /usr/sbin/chroot to /usr/sbin/chroot.remove-bak by coreutils-switch' 1297s Removing 'diversion of /usr/bin/stdbuf to /usr/bin/stdbuf.remove-bak by coreutils-switch' 1297s Removing 'diversion of /usr/share/man/man1/stdbuf.1.gz to /usr/share/man/man1/stdbuf.1.gz.remove-bak by coreutils-switch' 1297s Removing 'diversion of /usr/share/man/man1/sha224sum.1.gz to /usr/share/man/man1/sha224sum.1.gz.remove-bak by coreutils-switch' 1297s Removing 'diversion of /usr/share/man/man1/md5sum.1.gz to /usr/share/man/man1/md5sum.1.gz.remove-bak by coreutils-switch' 1297s Removing 'diversion of /usr/share/man/man8/chroot.8.gz to /usr/share/man/man8/chroot.8.gz.remove-bak by coreutils-switch' 1297s Selecting previously unselected package libc-dev-bin. 1297s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 65640 files and directories currently installed.) 1297s Preparing to unpack .../00-libc-dev-bin_2.42-0ubuntu1_armhf.deb ... 1297s Unpacking libc-dev-bin (2.42-0ubuntu1) ... 1297s Selecting previously unselected package linux-libc-dev:armhf. 1297s Preparing to unpack .../01-linux-libc-dev_6.16.0-16.16_armhf.deb ... 1297s Unpacking linux-libc-dev:armhf (6.16.0-16.16) ... 1297s Selecting previously unselected package libcrypt-dev:armhf. 1297s Preparing to unpack .../02-libcrypt-dev_1%3a4.4.38-1_armhf.deb ... 1297s Unpacking libcrypt-dev:armhf (1:4.4.38-1) ... 1297s Selecting previously unselected package rpcsvc-proto. 1297s Preparing to unpack .../03-rpcsvc-proto_1.4.3-1_armhf.deb ... 1297s Unpacking rpcsvc-proto (1.4.3-1) ... 1297s Selecting previously unselected package libc6-dev:armhf. 1297s Preparing to unpack .../04-libc6-dev_2.42-0ubuntu1_armhf.deb ... 1297s Unpacking libc6-dev:armhf (2.42-0ubuntu1) ... 1297s Selecting previously unselected package libisl23:armhf. 1297s Preparing to unpack .../05-libisl23_0.27-1_armhf.deb ... 1297s Unpacking libisl23:armhf (0.27-1) ... 1297s Selecting previously unselected package libmpc3:armhf. 1297s Preparing to unpack .../06-libmpc3_1.3.1-1build3_armhf.deb ... 1297s Unpacking libmpc3:armhf (1.3.1-1build3) ... 1297s Selecting previously unselected package cpp-15-arm-linux-gnueabihf. 1297s Preparing to unpack .../07-cpp-15-arm-linux-gnueabihf_15.2.0-2ubuntu1_armhf.deb ... 1297s Unpacking cpp-15-arm-linux-gnueabihf (15.2.0-2ubuntu1) ... 1300s Selecting previously unselected package cpp-15. 1300s Preparing to unpack .../08-cpp-15_15.2.0-2ubuntu1_armhf.deb ... 1300s Unpacking cpp-15 (15.2.0-2ubuntu1) ... 1300s Selecting previously unselected package cpp-arm-linux-gnueabihf. 1300s Preparing to unpack .../09-cpp-arm-linux-gnueabihf_4%3a15.1.0-1ubuntu1_armhf.deb ... 1300s Unpacking cpp-arm-linux-gnueabihf (4:15.1.0-1ubuntu1) ... 1300s Selecting previously unselected package cpp. 1300s Preparing to unpack .../10-cpp_4%3a15.1.0-1ubuntu1_armhf.deb ... 1300s Unpacking cpp (4:15.1.0-1ubuntu1) ... 1300s Selecting previously unselected package libcc1-0:armhf. 1300s Preparing to unpack .../11-libcc1-0_15.2.0-2ubuntu1_armhf.deb ... 1300s Unpacking libcc1-0:armhf (15.2.0-2ubuntu1) ... 1300s Selecting previously unselected package libgomp1:armhf. 1300s Preparing to unpack .../12-libgomp1_15.2.0-2ubuntu1_armhf.deb ... 1300s Unpacking libgomp1:armhf (15.2.0-2ubuntu1) ... 1300s Selecting previously unselected package libasan8:armhf. 1300s Preparing to unpack .../13-libasan8_15.2.0-2ubuntu1_armhf.deb ... 1300s Unpacking libasan8:armhf (15.2.0-2ubuntu1) ... 1300s Selecting previously unselected package libubsan1:armhf. 1301s Preparing to unpack .../14-libubsan1_15.2.0-2ubuntu1_armhf.deb ... 1301s Unpacking libubsan1:armhf (15.2.0-2ubuntu1) ... 1301s Selecting previously unselected package libgcc-15-dev:armhf. 1301s Preparing to unpack .../15-libgcc-15-dev_15.2.0-2ubuntu1_armhf.deb ... 1301s Unpacking libgcc-15-dev:armhf (15.2.0-2ubuntu1) ... 1301s Selecting previously unselected package gcc-15-arm-linux-gnueabihf. 1301s Preparing to unpack .../16-gcc-15-arm-linux-gnueabihf_15.2.0-2ubuntu1_armhf.deb ... 1301s Unpacking gcc-15-arm-linux-gnueabihf (15.2.0-2ubuntu1) ... 1304s Selecting previously unselected package gcc-15. 1304s Preparing to unpack .../17-gcc-15_15.2.0-2ubuntu1_armhf.deb ... 1304s Unpacking gcc-15 (15.2.0-2ubuntu1) ... 1304s Selecting previously unselected package gcc-arm-linux-gnueabihf. 1304s Preparing to unpack .../18-gcc-arm-linux-gnueabihf_4%3a15.1.0-1ubuntu1_armhf.deb ... 1304s Unpacking gcc-arm-linux-gnueabihf (4:15.1.0-1ubuntu1) ... 1304s Selecting previously unselected package gcc. 1304s Preparing to unpack .../19-gcc_4%3a15.1.0-1ubuntu1_armhf.deb ... 1304s Unpacking gcc (4:15.1.0-1ubuntu1) ... 1304s Selecting previously unselected package libstdc++-15-dev:armhf. 1304s Preparing to unpack .../20-libstdc++-15-dev_15.2.0-2ubuntu1_armhf.deb ... 1304s Unpacking libstdc++-15-dev:armhf (15.2.0-2ubuntu1) ... 1304s Selecting previously unselected package g++-15-arm-linux-gnueabihf. 1304s Preparing to unpack .../21-g++-15-arm-linux-gnueabihf_15.2.0-2ubuntu1_armhf.deb ... 1304s Unpacking g++-15-arm-linux-gnueabihf (15.2.0-2ubuntu1) ... 1308s Selecting previously unselected package g++-15. 1308s Preparing to unpack .../22-g++-15_15.2.0-2ubuntu1_armhf.deb ... 1308s Unpacking g++-15 (15.2.0-2ubuntu1) ... 1308s Selecting previously unselected package g++-arm-linux-gnueabihf. 1308s Preparing to unpack .../23-g++-arm-linux-gnueabihf_4%3a15.1.0-1ubuntu1_armhf.deb ... 1308s Unpacking g++-arm-linux-gnueabihf (4:15.1.0-1ubuntu1) ... 1308s Selecting previously unselected package g++. 1308s Preparing to unpack .../24-g++_4%3a15.1.0-1ubuntu1_armhf.deb ... 1308s Unpacking g++ (4:15.1.0-1ubuntu1) ... 1308s Selecting previously unselected package build-essential. 1308s Preparing to unpack .../25-build-essential_12.12ubuntu2_armhf.deb ... 1308s Unpacking build-essential (12.12ubuntu2) ... 1308s Selecting previously unselected package gir1.2-glib-2.0-dev:armhf. 1308s Preparing to unpack .../26-gir1.2-glib-2.0-dev_2.85.3-1_armhf.deb ... 1308s Unpacking gir1.2-glib-2.0-dev:armhf (2.85.3-1) ... 1308s Selecting previously unselected package native-architecture. 1308s Preparing to unpack .../27-native-architecture_0.2.6_all.deb ... 1308s Unpacking native-architecture (0.2.6) ... 1308s Selecting previously unselected package libgirepository-2.0-0:armhf. 1308s Preparing to unpack .../28-libgirepository-2.0-0_2.85.3-1_armhf.deb ... 1308s Unpacking libgirepository-2.0-0:armhf (2.85.3-1) ... 1308s Selecting previously unselected package girepository-tools:armhf. 1308s Preparing to unpack .../29-girepository-tools_2.85.3-1_armhf.deb ... 1308s Unpacking girepository-tools:armhf (2.85.3-1) ... 1308s Selecting previously unselected package libffi-dev:armhf. 1308s Preparing to unpack .../30-libffi-dev_3.5.2-1_armhf.deb ... 1308s Unpacking libffi-dev:armhf (3.5.2-1) ... 1308s Selecting previously unselected package uuid-dev:armhf. 1308s Preparing to unpack .../31-uuid-dev_2.41-4ubuntu3_armhf.deb ... 1308s Unpacking uuid-dev:armhf (2.41-4ubuntu3) ... 1308s Selecting previously unselected package libblkid-dev:armhf. 1308s Preparing to unpack .../32-libblkid-dev_2.41-4ubuntu3_armhf.deb ... 1308s Unpacking libblkid-dev:armhf (2.41-4ubuntu3) ... 1308s Selecting previously unselected package libsepol-dev:armhf. 1308s Preparing to unpack .../33-libsepol-dev_3.8.1-1_armhf.deb ... 1308s Unpacking libsepol-dev:armhf (3.8.1-1) ... 1308s Selecting previously unselected package libpcre2-16-0:armhf. 1308s Preparing to unpack .../34-libpcre2-16-0_10.46-1_armhf.deb ... 1308s Unpacking libpcre2-16-0:armhf (10.46-1) ... 1308s Selecting previously unselected package libpcre2-32-0:armhf. 1308s Preparing to unpack .../35-libpcre2-32-0_10.46-1_armhf.deb ... 1308s Unpacking libpcre2-32-0:armhf (10.46-1) ... 1308s Selecting previously unselected package libpcre2-posix3:armhf. 1309s Preparing to unpack .../36-libpcre2-posix3_10.46-1_armhf.deb ... 1309s Unpacking libpcre2-posix3:armhf (10.46-1) ... 1309s Selecting previously unselected package libpcre2-dev:armhf. 1309s Preparing to unpack .../37-libpcre2-dev_10.46-1_armhf.deb ... 1309s Unpacking libpcre2-dev:armhf (10.46-1) ... 1309s Selecting previously unselected package libselinux1-dev:armhf. 1309s Preparing to unpack .../38-libselinux1-dev_3.8.1-1_armhf.deb ... 1309s Unpacking libselinux1-dev:armhf (3.8.1-1) ... 1309s Selecting previously unselected package libmount-dev:armhf. 1309s Preparing to unpack .../39-libmount-dev_2.41-4ubuntu3_armhf.deb ... 1309s Unpacking libmount-dev:armhf (2.41-4ubuntu3) ... 1309s Selecting previously unselected package libsysprof-capture-4-dev:armhf. 1309s Preparing to unpack .../40-libsysprof-capture-4-dev_48.0-2_armhf.deb ... 1309s Unpacking libsysprof-capture-4-dev:armhf (48.0-2) ... 1309s Selecting previously unselected package libpkgconf3:armhf. 1309s Preparing to unpack .../41-libpkgconf3_1.8.1-4_armhf.deb ... 1309s Unpacking libpkgconf3:armhf (1.8.1-4) ... 1309s Selecting previously unselected package pkgconf-bin. 1309s Preparing to unpack .../42-pkgconf-bin_1.8.1-4_armhf.deb ... 1309s Unpacking pkgconf-bin (1.8.1-4) ... 1309s Selecting previously unselected package pkgconf:armhf. 1309s Preparing to unpack .../43-pkgconf_1.8.1-4_armhf.deb ... 1309s Unpacking pkgconf:armhf (1.8.1-4) ... 1309s Selecting previously unselected package zlib1g-dev:armhf. 1309s Preparing to unpack .../44-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu1_armhf.deb ... 1309s Unpacking zlib1g-dev:armhf (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 1309s Selecting previously unselected package libgio-2.0-dev:armhf. 1309s Preparing to unpack .../45-libgio-2.0-dev_2.85.3-1_armhf.deb ... 1309s Unpacking libgio-2.0-dev:armhf (2.85.3-1) ... 1309s Selecting previously unselected package libgio-2.0-dev-bin. 1309s Preparing to unpack .../46-libgio-2.0-dev-bin_2.85.3-1_armhf.deb ... 1309s Unpacking libgio-2.0-dev-bin (2.85.3-1) ... 1309s Selecting previously unselected package libglib2.0-bin. 1309s Preparing to unpack .../47-libglib2.0-bin_2.85.3-1_armhf.deb ... 1309s Unpacking libglib2.0-bin (2.85.3-1) ... 1309s Selecting previously unselected package libglib2.0-dev-bin. 1310s Preparing to unpack .../48-libglib2.0-dev-bin_2.85.3-1_armhf.deb ... 1310s Unpacking libglib2.0-dev-bin (2.85.3-1) ... 1310s Selecting previously unselected package libglib2.0-dev:armhf. 1310s Preparing to unpack .../49-libglib2.0-dev_2.85.3-1_armhf.deb ... 1310s Unpacking libglib2.0-dev:armhf (2.85.3-1) ... 1310s Setting up libgio-2.0-dev-bin (2.85.3-1) ... 1310s Setting up native-architecture (0.2.6) ... 1310s Setting up libgirepository-2.0-0:armhf (2.85.3-1) ... 1310s Setting up linux-libc-dev:armhf (6.16.0-16.16) ... 1310s Setting up libglib2.0-bin (2.85.3-1) ... 1310s Setting up libgomp1:armhf (15.2.0-2ubuntu1) ... 1310s Setting up libffi-dev:armhf (3.5.2-1) ... 1310s Setting up libpcre2-16-0:armhf (10.46-1) ... 1310s Setting up libsysprof-capture-4-dev:armhf (48.0-2) ... 1310s Setting up libpcre2-32-0:armhf (10.46-1) ... 1310s Setting up libpkgconf3:armhf (1.8.1-4) ... 1310s Setting up rpcsvc-proto (1.4.3-1) ... 1310s Setting up libmpc3:armhf (1.3.1-1build3) ... 1310s Setting up libsepol-dev:armhf (3.8.1-1) ... 1310s Setting up pkgconf-bin (1.8.1-4) ... 1310s Setting up libubsan1:armhf (15.2.0-2ubuntu1) ... 1310s Setting up libpcre2-posix3:armhf (10.46-1) ... 1310s Setting up gir1.2-glib-2.0-dev:armhf (2.85.3-1) ... 1310s Setting up libcrypt-dev:armhf (1:4.4.38-1) ... 1310s Setting up libasan8:armhf (15.2.0-2ubuntu1) ... 1310s Setting up libisl23:armhf (0.27-1) ... 1310s Setting up libc-dev-bin (2.42-0ubuntu1) ... 1310s Setting up cpp-15-arm-linux-gnueabihf (15.2.0-2ubuntu1) ... 1310s Setting up libcc1-0:armhf (15.2.0-2ubuntu1) ... 1310s Setting up cpp-arm-linux-gnueabihf (4:15.1.0-1ubuntu1) ... 1310s Setting up girepository-tools:armhf (2.85.3-1) ... 1310s Setting up libgcc-15-dev:armhf (15.2.0-2ubuntu1) ... 1310s Setting up gcc-15-arm-linux-gnueabihf (15.2.0-2ubuntu1) ... 1310s Setting up pkgconf:armhf (1.8.1-4) ... 1310s Setting up cpp-15 (15.2.0-2ubuntu1) ... 1310s Setting up cpp (4:15.1.0-1ubuntu1) ... 1310s Setting up libc6-dev:armhf (2.42-0ubuntu1) ... 1310s Setting up gcc-arm-linux-gnueabihf (4:15.1.0-1ubuntu1) ... 1310s Setting up libglib2.0-dev-bin (2.85.3-1) ... 1310s Setting up libpcre2-dev:armhf (10.46-1) ... 1310s Setting up libselinux1-dev:armhf (3.8.1-1) ... 1310s Setting up gcc-15 (15.2.0-2ubuntu1) ... 1310s Setting up libstdc++-15-dev:armhf (15.2.0-2ubuntu1) ... 1310s Setting up uuid-dev:armhf (2.41-4ubuntu3) ... 1310s Setting up zlib1g-dev:armhf (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 1310s Setting up libblkid-dev:armhf (2.41-4ubuntu3) ... 1310s Setting up g++-15-arm-linux-gnueabihf (15.2.0-2ubuntu1) ... 1310s Setting up gcc (4:15.1.0-1ubuntu1) ... 1310s Setting up g++-15 (15.2.0-2ubuntu1) ... 1310s Setting up libmount-dev:armhf (2.41-4ubuntu3) ... 1310s Setting up g++-arm-linux-gnueabihf (4:15.1.0-1ubuntu1) ... 1310s Setting up libgio-2.0-dev:armhf (2.85.3-1) ... 1310s Setting up g++ (4:15.1.0-1ubuntu1) ... 1310s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 1310s Setting up build-essential (12.12ubuntu2) ... 1310s Processing triggers for install-info (7.1.1-1) ... 1310s Processing triggers for libc-bin (2.42-0ubuntu1) ... 1310s Processing triggers for man-db (2.13.1-1) ... 1312s Processing triggers for libglib2.0-0t64:armhf (2.85.3-1) ... 1312s No schema files found: doing nothing. 1312s Setting up libglib2.0-dev:armhf (2.85.3-1) ... 1329s autopkgtest [17:07:18]: test libglib2.0-dev: [----------------------- 1331s + debian/tests/build 1331s + mode=dynamic 1331s + getopt -o --long static -n debian/tests/build -- 1331s + getopt_temp= -- 1331s + eval set -- -- 1331s + set -- -- 1331s + true 1331s + shift 1331s + break 1331s + mktemp -d 1331s + WORKDIR=/tmp/tmp.g9Cp6zMfeY 1331s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 1331s + cd /tmp/tmp.g9Cp6zMfeY 1331s + [ -n ] 1331s + CROSS_COMPILE= 1331s + cat 1331s + cat 1331s + cat 1331s + cat 1331s + cat 1331s + cat 1331s + cflags= 1331s + pcflags= 1331s + packages=glib-2.0 1331s + pkg-config --cflags --libs glib-2.0 1331s + gcc -o glib-dynamic glib.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 1332s build (glib, dynamic): OK 1332s + echo build (glib, dynamic): OK 1332s + [ -x glib-dynamic ] 1332s + foo=bar ./glib-dynamic 1332s + echo run (glib, dynamic): OK 1332s + cflags= 1332s + pcflags= 1332s + packages=gobject-2.0 1332s run (glib, dynamic): OK 1332s + pkg-config --cflags --libs gobject-2.0 1332s + gcc -o gobject-dynamic gobject.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 1332s build (gobject, dynamic): OK 1332s run (gobject, dynamic): OK 1332s + echo build (gobject, dynamic): OK 1332s + [ -x gobject-dynamic ] 1332s + foo=bar ./gobject-dynamic 1332s + echo run (gobject, dynamic): OK 1332s + cflags= 1332s + pcflags= 1332s + packages=gio-2.0 1332s + pkg-config --cflags --libs gio-2.0 1332s + gcc -o gio-dynamic gio.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 1332s + echo build (gio, dynamic): OK 1332s + [ -x gio-dynamic ] 1332s + foo=bar ./gio-dynamic 1332s build (gio, dynamic): OK 1332s + echo run (gio, dynamic): OK 1332s + cflags= 1332s + pcflags= 1332s + packages=gio-unix-2.0 1332s run (gio, dynamic): OK 1332s + pkg-config --cflags --libs gio-unix-2.0 1332s + gcc -o gio-unix-dynamic gio-unix.c -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 1332s + echo build (gio-unix, dynamic): OK 1332s + [ -x gio-unix-dynamic ] 1332s + foo=bar ./gio-unix-dynamic 1332s build (gio-unix, dynamic): OK 1332s + echo run (gio-unix, dynamic): OK 1332s + cflags= 1332s + pcflags= 1332s + packages=gmodule-2.0 1332s run (gio-unix, dynamic): OK 1332s + pkg-config --cflags --libs gmodule-2.0 1332s + gcc -o gmodule-dynamic gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -lglib-2.0 1332s build (gmodule, dynamic): OK 1332s + echo build (gmodule, dynamic): OK 1332s + [ -x gmodule-dynamic ] 1332s + foo=bar ./gmodule-dynamic 1332s + echo run (gmodule, dynamic): OK 1332s + cflags= 1332s + pcflags= 1332s + run (gmodule, dynamic): OK 1332s packages=gthread-2.0 1332s + pkg-config --cflags --libs gthread-2.0 1332s + gcc -o gthread-dynamic gthread.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 1333s + echo build (gthread, dynamic): OK 1333s + [ -x gthread-dynamic ] 1333s + foo=bar ./gthread-dynamic 1333s build (gthread, dynamic): OK 1333s run (gthread, dynamic): OK 1333s + echo run (gthread, dynamic): OK 1333s + rm -rf /tmp/tmp.g9Cp6zMfeY 1333s + debian/tests/build-static 1333s + mode=dynamic 1333s + getopt -o --long static -n debian/tests/build -- --static 1333s + getopt_temp= --static -- 1333s + eval set -- --static -- 1333s + set -- --static -- 1333s + true 1333s + mode=static 1333s + shift 1333s + continue 1333s + true 1333s + shift 1333s + break 1333s + mktemp -d 1333s + WORKDIR=/tmp/tmp.vHynG6ZvTp 1333s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 1333s + cd /tmp/tmp.vHynG6ZvTp 1333s + [ -n ] 1333s + CROSS_COMPILE= 1333s + cat 1333s + cat 1333s + cat 1333s + cat 1333s + cat 1333s + cat 1333s + cflags= 1333s + pcflags= 1333s + packages=glib-2.0 1333s + cflags=-static 1333s + pcflags=--static 1333s + pkg-config --static --cflags --libs glib-2.0 1333s + gcc -static -o glib-static glib.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 1333s /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/15/../../../arm-linux-gnueabihf/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 1333s (.text+0x92): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1333s /usr/bin/ld: (.text+0x19c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1333s /usr/bin/ld: (.text+0xba): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1333s build (glib, static): OK 1333s + echo build (glib, static): OK 1333s + [ -x glib-static ] 1333s + foo=bar ./glib-static 1333s + echo run (glib, static): OK 1333s + cflags= 1333s + pcflags= 1333s + packages=gobject-2.0 1333s + cflags=-static 1333s + pcflags=--static 1333s run (glib, static): OK 1333s + pkg-config --static --cflags --libs gobject-2.0 1333s + gcc -static -o gobject-static gobject.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 -lffi 1333s /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/15/../../../arm-linux-gnueabihf/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 1333s (.text+0x92): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1333s /usr/bin/ld: (.text+0x19c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1333s /usr/bin/ld: (.text+0xba): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1333s build (gobject, static): OK 1333s + echo build (gobject, static): OK 1333s + [ -x gobject-static ] 1333s + foo=bar ./gobject-static 1333s + echo run (gobject, static): OK 1333s + cflags= 1333s + pcflags= 1333s + packages=gio-2.0 1333s + cflags=-static 1333s + pcflags=--static 1333s + continue 1333s + cflags= 1333s + pcflags= 1333s + packages=gio-unix-2.0 1333s + cflags=-static 1333s + pcflags=--static 1333s + continue 1333s + cflags= 1333s + pcflags= 1333s + packages=gmodule-2.0 1333s + cflags=-static 1333s + pcflags=--static 1333s run (gobject, static): OK 1333s + pkg-config --static --cflags --libs gmodule-2.0 1333s + gcc -static -o gmodule-static gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 1333s /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/15/../../../arm-linux-gnueabihf/libgmodule-2.0.a(gmodule.c.o): in function `g_module_open_full': 1333s (.text+0x424): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1333s /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/15/../../../arm-linux-gnueabihf/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 1333s (.text+0x92): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1333s /usr/bin/ld: (.text+0x19c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1333s /usr/bin/ld: (.text+0xba): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1334s + echo build (gmodule, static): OK 1334s + [ -x gmodule-static ] 1334s + foo=bar ./gmodule-static 1334s build (gmodule, static): OK 1334s + echo run (gmodule, static): OK 1334s + cflags= 1334s + pcflags= 1334s + packages=gthread-2.0 1334s + cflags=-static 1334s + pcflags=--static 1334s + pkg-config --static --cflags --libs gthread-2.0 1334s + gcc -static -o gthread-static gthread.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 1334s run (gmodule, static): OK 1334s /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/15/../../../arm-linux-gnueabihf/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 1334s (.text+0x92): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1334s /usr/bin/ld: (.text+0x19c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1334s /usr/bin/ld: (.text+0xba): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 1334s build (gthread, static): OK 1334s + echo build (gthread, static): OK 1334s + [ -x gthread-static ] 1334s + foo=bar ./gthread-static 1334s run (gthread, static): OK 1334s + echo run (gthread, static): OK 1334s + rm -rf /tmp/tmp.vHynG6ZvTp 1334s + debian/tests/girepository-tools 1334s + cd /tmp/autopkgtest.w4sS0P/autopkgtest_tmp 1334s + dpkg-architecture -qDEB_HOST_GNU_TYPE 1334s + DEB_HOST_GNU_TYPE=arm-linux-gnueabihf 1334s + dpkg-architecture -qDEB_HOST_MULTIARCH 1334s + DEB_HOST_MULTIARCH=arm-linux-gnueabihf 1334s + arm-linux-gnueabihf-gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 1334s typelib: GLib-2.0 1334s + arm-linux-gnueabihf-gi-compile-repository -o GLib.typelib /usr/lib/arm-linux-gnueabihf/gir-1.0/GLib-2.0.gir 1334s + arm-linux-gnueabihf-gi-decompile-typelib -o GLib.gir GLib.typelib 1334s + debian/tests/libgio-2.0-dev-bin 1334s + gdbus-codegen --help 1334s usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 1334s [--c-namespace NAMESPACE] [--c-generate-object-manager] 1334s [--c-generate-autocleanup {none,objects,all}] 1334s [--generate-docbook OUTFILES] [--generate-md OUTFILES] 1334s [--generate-rst OUTFILES] [--pragma-once] 1334s [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 1334s [--glib-min-required VERSION] 1334s [--glib-max-allowed VERSION] 1334s [--symbol-decorator SYMBOL_DECORATOR] 1334s [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 1334s [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 1334s [--generate-c-code OUTFILES | --header | --body | 1334s --interface-info-header | --interface-info-body] 1334s [--output FILE | --output-directory OUTDIR] 1334s FILE [FILE ...] 1334s 1334s D-Bus code and documentation generator 1334s 1334s positional arguments: 1334s FILE D-Bus introspection XML file 1334s 1334s options: 1334s -h, --help show this help message and exit 1334s --interface-prefix PREFIX 1334s String to strip from D-Bus interface names for code 1334s and docs 1334s --c-namespace NAMESPACE 1334s The namespace to use for generated C code 1334s --c-generate-object-manager 1334s Generate a GDBusObjectManagerClient subclass when 1334s generating C code 1334s --c-generate-autocleanup {none,objects,all} 1334s Generate autocleanup support 1334s --generate-docbook OUTFILES 1334s Generate Docbook in OUTFILES-org.Project.IFace.xml 1334s --generate-md OUTFILES 1334s Generate Markdown in OUTFILES-org.Project.IFace.md 1334s --generate-rst OUTFILES 1334s Generate reStructuredText in OUTFILES- 1334s org.Project.IFace.rst 1334s --pragma-once Use "pragma once" as the inclusion guard 1334s --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 1334s Add annotation (may be used several times) 1334s --glib-min-required VERSION 1334s Minimum version of GLib to be supported by the 1334s outputted code (default: 2.30) 1334s --glib-max-allowed VERSION 1334s Maximum version of GLib to be used by the outputted 1334s code (default: current GLib version) 1334s --symbol-decorator SYMBOL_DECORATOR 1334s Macro used to decorate a symbol in the outputted 1334s header, possibly to export symbols 1334s --symbol-decorator-header SYMBOL_DECORATOR_HEADER 1334s Additional header required for decorator specified by 1334s --symbol-decorator 1334s --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 1334s Additional define required for decorator specified by 1334s --symbol-decorator 1334s --generate-c-code OUTFILES 1334s Generate C code in OUTFILES.[ch] 1334s --header Generate C headers 1334s --body Generate C code 1334s --interface-info-header 1334s Generate GDBusInterfaceInfo C header 1334s --interface-info-body 1334s Generate GDBusInterfaceInfo C code 1334s --output FILE Write output into the specified file 1334s --output-directory OUTDIR 1334s Location to output generated files 1334s + glib-compile-resources --version 1334s 2.85.3 1334s + glib-genmarshal --version 1334s glib-genmarshal version 2.85.3 1334s glib-genmarshal comes with ABSOLUTELY NO WARRANTY. 1334s You may redistribute copies of glib-genmarshal under the terms of 1334s the GNU General Public License which can be found in the 1334s GLib source package. Sources, examples and contact 1334s information are available at http://www.gtk.org 1334s + glib-gettextize --version 1334s /usr/bin/glib-gettextize (GNU glib) 2.85.3 1334s Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. 1334s This is free software; see the source for copying conditions. There is NO 1334s warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 1334s Written by Ulrich Drepper 1334s + glib-mkenums --version 1334s glib-mkenums version 2.85.3 1334s glib-mkenums comes with ABSOLUTELY NO WARRANTY. 1334s You may redistribute copies of glib-mkenums under the terms of 1334s the GNU General Public License which can be found in the 1334s GLib source package. Sources, examples and contact 1334s information are available at http://www.gtk.org 1334s + gobject-query tree 1334s GObject 1334s gtester version 2.85.3 1334s + gtester --version 1334s + gtester-report --version 1334s gtester-report (GLib utils) version 2.85.3. 1334s + cd /tmp/autopkgtest.w4sS0P/autopkgtest_tmp 1334s + dpkg-architecture -qDEB_HOST_MULTIARCH 1334s + DEB_HOST_MULTIARCH=arm-linux-gnueabihf 1334s + gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 1334s typelib: GLib-2.0 1334s + gi-compile-repository -o GLib.typelib /usr/lib/arm-linux-gnueabihf/gir-1.0/GLib-2.0.gir 1335s + gi-decompile-typelib -o GLib.gir GLib.typelib 1335s autopkgtest [17:07:24]: test libglib2.0-dev: -----------------------] 1339s libglib2.0-dev PASS (superficial) 1339s autopkgtest [17:07:28]: test libglib2.0-dev: - - - - - - - - - - results - - - - - - - - - - 1343s autopkgtest [17:07:32]: test installed-tests: preparing testbed 1366s autopkgtest [17:07:55]: testbed dpkg architecture: armhf 1367s autopkgtest [17:07:56]: testbed apt version: 3.1.5ubuntu1 1371s autopkgtest [17:08:00]: @@@@@@@@@@@@@@@@@@@@ test bed setup 1373s autopkgtest [17:08:02]: testbed release detected to be: questing 1380s autopkgtest [17:08:09]: updating testbed package index (apt update) 1382s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [265 kB] 1382s Get:2 http://ftpmaster.internal/ubuntu questing InRelease [265 kB] 1383s Get:3 http://ftpmaster.internal/ubuntu questing-updates InRelease [126 kB] 1383s Get:4 http://ftpmaster.internal/ubuntu questing-security InRelease [126 kB] 1383s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/restricted Sources [3848 B] 1383s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [59.7 kB] 1383s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [14.1 kB] 1383s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [239 kB] 1384s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/main armhf Packages [81.3 kB] 1384s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/main armhf c-n-f Metadata [2824 B] 1384s Get:11 http://ftpmaster.internal/ubuntu questing-proposed/restricted armhf Packages [728 B] 1384s Get:12 http://ftpmaster.internal/ubuntu questing-proposed/restricted armhf c-n-f Metadata [120 B] 1384s Get:13 http://ftpmaster.internal/ubuntu questing-proposed/universe armhf Packages [203 kB] 1384s Get:14 http://ftpmaster.internal/ubuntu questing-proposed/universe armhf c-n-f Metadata [6536 B] 1384s Get:15 http://ftpmaster.internal/ubuntu questing-proposed/multiverse armhf Packages [3200 B] 1384s Get:16 http://ftpmaster.internal/ubuntu questing-proposed/multiverse armhf c-n-f Metadata [268 B] 1384s Get:17 http://ftpmaster.internal/ubuntu questing/multiverse Sources [310 kB] 1384s Get:18 http://ftpmaster.internal/ubuntu questing/universe Sources [21.1 MB] 1408s Get:19 http://ftpmaster.internal/ubuntu questing/main Sources [1398 kB] 1409s Get:20 http://ftpmaster.internal/ubuntu questing/restricted Sources [15.7 kB] 1409s Get:21 http://ftpmaster.internal/ubuntu questing/main armhf Packages [1348 kB] 1411s Get:22 http://ftpmaster.internal/ubuntu questing/main armhf c-n-f Metadata [29.4 kB] 1411s Get:23 http://ftpmaster.internal/ubuntu questing/restricted armhf Packages [1640 B] 1411s Get:24 http://ftpmaster.internal/ubuntu questing/universe armhf Packages [15.0 MB] 1429s Get:25 http://ftpmaster.internal/ubuntu questing/universe armhf c-n-f Metadata [278 kB] 1430s Get:26 http://ftpmaster.internal/ubuntu questing/multiverse armhf Packages [182 kB] 1432s Fetched 41.1 MB in 49s (835 kB/s) 1434s Reading package lists... 1439s autopkgtest [17:09:08]: upgrading testbed (apt dist-upgrade and autopurge) 1441s Reading package lists... 1441s Building dependency tree... 1441s Reading state information... 1442s Calculating upgrade... 1443s The following packages will be upgraded: 1443s cryptsetup-bin dash libbrotli1 libcryptsetup12 1443s 4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1443s Need to get 893 kB of archives. 1443s After this operation, 0 B of additional disk space will be used. 1443s Get:1 http://ftpmaster.internal/ubuntu questing/main armhf dash armhf 0.5.12-12ubuntu2 [87.6 kB] 1444s Get:2 http://ftpmaster.internal/ubuntu questing/main armhf libcryptsetup12 armhf 2:2.8.0-1ubuntu2 [254 kB] 1444s Get:3 http://ftpmaster.internal/ubuntu questing/main armhf cryptsetup-bin armhf 2:2.8.0-1ubuntu2 [232 kB] 1444s Get:4 http://ftpmaster.internal/ubuntu questing/main armhf libbrotli1 armhf 1.1.0-2build5 [320 kB] 1445s Preconfiguring packages ... 1445s Fetched 893 kB in 1s (647 kB/s) 1445s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 64903 files and directories currently installed.) 1445s Preparing to unpack .../dash_0.5.12-12ubuntu2_armhf.deb ... 1445s Unpacking dash (0.5.12-12ubuntu2) over (0.5.12-12ubuntu1) ... 1445s Setting up dash (0.5.12-12ubuntu2) ... 1446s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 64903 files and directories currently installed.) 1446s Preparing to unpack .../libcryptsetup12_2%3a2.8.0-1ubuntu2_armhf.deb ... 1446s Unpacking libcryptsetup12:armhf (2:2.8.0-1ubuntu2) over (2:2.8.0-1ubuntu1) ... 1446s Preparing to unpack .../cryptsetup-bin_2%3a2.8.0-1ubuntu2_armhf.deb ... 1446s Unpacking cryptsetup-bin (2:2.8.0-1ubuntu2) over (2:2.8.0-1ubuntu1) ... 1446s Preparing to unpack .../libbrotli1_1.1.0-2build5_armhf.deb ... 1446s Unpacking libbrotli1:armhf (1.1.0-2build5) over (1.1.0-2build4) ... 1446s Setting up libbrotli1:armhf (1.1.0-2build5) ... 1446s Setting up libcryptsetup12:armhf (2:2.8.0-1ubuntu2) ... 1446s Setting up cryptsetup-bin (2:2.8.0-1ubuntu2) ... 1446s Processing triggers for man-db (2.13.1-1) ... 1447s Processing triggers for debianutils (5.23.2) ... 1447s Processing triggers for libc-bin (2.42-0ubuntu1) ... 1449s Reading package lists... 1450s Building dependency tree... 1450s Reading state information... 1450s Solving dependencies... 1451s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1453s autopkgtest [17:09:22]: rebooting testbed after setup commands that affected boot 1516s Reading package lists... 1516s Building dependency tree... 1516s Reading state information... 1517s Solving dependencies... 1518s The following NEW packages will be installed: 1518s dbus-x11 desktop-file-utils gir1.2-glib-2.0-dev girepository-tools 1518s gnome-desktop-testing libfontenc1 libfreetype6 libgbm1 libgio-2.0-dev-bin 1518s libgirepository-2.0-0 libgl1 libgl1-mesa-dri libglib2.0-bin 1518s libglib2.0-dev-bin libglib2.0-tests libglvnd0 libglx-mesa0 libglx0 libice6 1518s libllvm20 libpixman-1-0 libsm6 libvulkan1 libx11-xcb1 libxaw7 libxcb-dri3-0 1518s libxcb-glx0 libxcb-present0 libxcb-randr0 libxcb-shm0 libxcb-sync1 1518s libxcb-xfixes0 libxfont2 libxkbfile1 libxmu6 libxpm4 libxrandr2 libxrender1 1518s libxshmfence1 libxt6t64 libxxf86vm1 mesa-libgallium native-architecture 1518s python3-dbusmock tzdata-legacy x11-common x11-xkb-utils xserver-common xvfb 1518s 0 upgraded, 49 newly installed, 0 to remove and 0 not upgraded. 1518s Need to get 45.4 MB of archives. 1518s After this operation, 211 MB of additional disk space will be used. 1518s Get:1 http://ftpmaster.internal/ubuntu questing/main armhf dbus-x11 armhf 1.16.2-2ubuntu1 [22.7 kB] 1518s Get:2 http://ftpmaster.internal/ubuntu questing/main armhf desktop-file-utils armhf 0.28-1 [48.5 kB] 1518s Get:3 http://ftpmaster.internal/ubuntu questing/main armhf gir1.2-glib-2.0-dev armhf 2.85.3-1 [868 kB] 1519s Get:4 http://ftpmaster.internal/ubuntu questing/main armhf native-architecture all 0.2.6 [2140 B] 1519s Get:5 http://ftpmaster.internal/ubuntu questing/main armhf libgirepository-2.0-0 armhf 2.85.3-1 [99.9 kB] 1519s Get:6 http://ftpmaster.internal/ubuntu questing/main armhf girepository-tools armhf 2.85.3-1 [109 kB] 1520s Get:7 http://ftpmaster.internal/ubuntu questing/universe armhf gnome-desktop-testing armhf 2021.1-4 [16.2 kB] 1520s Get:8 http://ftpmaster.internal/ubuntu questing/main armhf libfontenc1 armhf 1:1.1.8-1build1 [11.5 kB] 1520s Get:9 http://ftpmaster.internal/ubuntu questing/main armhf libfreetype6 armhf 2.13.3+dfsg-1 [330 kB] 1520s Get:10 http://ftpmaster.internal/ubuntu questing/main armhf libllvm20 armhf 1:20.1.8-0ubuntu1 [29.5 MB] 1559s Get:11 http://ftpmaster.internal/ubuntu questing/main armhf libx11-xcb1 armhf 2:1.8.12-1 [7916 B] 1559s Get:12 http://ftpmaster.internal/ubuntu questing/main armhf libxcb-dri3-0 armhf 1.17.0-2 [7120 B] 1559s Get:13 http://ftpmaster.internal/ubuntu questing/main armhf libxcb-present0 armhf 1.17.0-2 [5940 B] 1559s Get:14 http://ftpmaster.internal/ubuntu questing/main armhf libxcb-randr0 armhf 1.17.0-2 [17.0 kB] 1559s Get:15 http://ftpmaster.internal/ubuntu questing/main armhf libxcb-sync1 armhf 1.17.0-2 [8732 B] 1559s Get:16 http://ftpmaster.internal/ubuntu questing/main armhf libxcb-xfixes0 armhf 1.17.0-2 [10.0 kB] 1559s Get:17 http://ftpmaster.internal/ubuntu questing/main armhf libxshmfence1 armhf 1.3.3-1 [4948 B] 1560s Get:18 http://ftpmaster.internal/ubuntu questing/main armhf mesa-libgallium armhf 25.2.1-2ubuntu1 [8778 kB] 1570s Get:19 http://ftpmaster.internal/ubuntu questing/main armhf libgbm1 armhf 25.2.1-2ubuntu1 [30.0 kB] 1570s Get:20 http://ftpmaster.internal/ubuntu questing/main armhf libgio-2.0-dev-bin armhf 2.85.3-1 [130 kB] 1571s Get:21 http://ftpmaster.internal/ubuntu questing/main armhf libvulkan1 armhf 1.4.321.0-1 [130 kB] 1571s Get:22 http://ftpmaster.internal/ubuntu questing/main armhf libgl1-mesa-dri armhf 25.2.1-2ubuntu1 [32.2 kB] 1571s Get:23 http://ftpmaster.internal/ubuntu questing/main armhf libglib2.0-bin armhf 2.85.3-1 [92.3 kB] 1571s Get:24 http://ftpmaster.internal/ubuntu questing/main armhf libglib2.0-dev-bin armhf 2.85.3-1 [18.2 kB] 1571s Get:25 http://ftpmaster.internal/ubuntu questing/universe armhf python3-dbusmock all 0.36.0-1 [93.3 kB] 1571s Get:26 http://ftpmaster.internal/ubuntu questing/main armhf tzdata-legacy all 2025b-3ubuntu1 [99.3 kB] 1571s Get:27 http://ftpmaster.internal/ubuntu questing/universe armhf libglib2.0-tests armhf 2.85.3-1 [2839 kB] 1575s Get:28 http://ftpmaster.internal/ubuntu questing/main armhf libxcb-glx0 armhf 1.17.0-2 [22.6 kB] 1575s Get:29 http://ftpmaster.internal/ubuntu questing/main armhf libxcb-shm0 armhf 1.17.0-2 [5774 B] 1575s Get:30 http://ftpmaster.internal/ubuntu questing/main armhf libxxf86vm1 armhf 1:1.1.4-1build4 [8068 B] 1575s Get:31 http://ftpmaster.internal/ubuntu questing/main armhf libglx-mesa0 armhf 25.2.1-2ubuntu1 [87.2 kB] 1575s Get:32 http://ftpmaster.internal/ubuntu questing/main armhf x11-common all 1:7.7+24ubuntu1 [22.4 kB] 1575s Get:33 http://ftpmaster.internal/ubuntu questing/main armhf libice6 armhf 2:1.1.1-1 [36.5 kB] 1575s Get:34 http://ftpmaster.internal/ubuntu questing/main armhf libpixman-1-0 armhf 0.44.0-3 [183 kB] 1576s Get:35 http://ftpmaster.internal/ubuntu questing/main armhf libsm6 armhf 2:1.2.6-1 [15.3 kB] 1576s Get:36 http://ftpmaster.internal/ubuntu questing/main armhf libxt6t64 armhf 1:1.2.1-1.2build1 [145 kB] 1576s Get:37 http://ftpmaster.internal/ubuntu questing/main armhf libxmu6 armhf 2:1.1.3-3build2 [40.4 kB] 1576s Get:38 http://ftpmaster.internal/ubuntu questing/main armhf libxpm4 armhf 1:3.5.17-1build2 [30.1 kB] 1576s Get:39 http://ftpmaster.internal/ubuntu questing/main armhf libxaw7 armhf 2:1.0.16-1 [154 kB] 1576s Get:40 http://ftpmaster.internal/ubuntu questing/main armhf libxfont2 armhf 1:2.0.6-1build1 [80.3 kB] 1576s Get:41 http://ftpmaster.internal/ubuntu questing/main armhf libxkbfile1 armhf 1:1.1.0-1build4 [60.0 kB] 1576s Get:42 http://ftpmaster.internal/ubuntu questing/main armhf libxrender1 armhf 1:0.9.12-1 [16.6 kB] 1576s Get:43 http://ftpmaster.internal/ubuntu questing/main armhf libxrandr2 armhf 2:1.5.4-1 [15.8 kB] 1576s Get:44 http://ftpmaster.internal/ubuntu questing/main armhf x11-xkb-utils armhf 7.7+9 [159 kB] 1576s Get:45 http://ftpmaster.internal/ubuntu questing/main armhf xserver-common all 2:21.1.18-1ubuntu1 [34.6 kB] 1576s Get:46 http://ftpmaster.internal/ubuntu questing/main armhf libglvnd0 armhf 1.7.0-1build1 [83.7 kB] 1577s Get:47 http://ftpmaster.internal/ubuntu questing/main armhf libglx0 armhf 1.7.0-1build1 [39.3 kB] 1577s Get:48 http://ftpmaster.internal/ubuntu questing/main armhf libgl1 armhf 1.7.0-1build1 [105 kB] 1577s Get:49 http://ftpmaster.internal/ubuntu questing/universe armhf xvfb armhf 2:21.1.18-1ubuntu1 [732 kB] 1578s Fetched 45.4 MB in 60s (759 kB/s) 1578s Selecting previously unselected package dbus-x11. 1578s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 64903 files and directories currently installed.) 1578s Preparing to unpack .../00-dbus-x11_1.16.2-2ubuntu1_armhf.deb ... 1578s Unpacking dbus-x11 (1.16.2-2ubuntu1) ... 1578s Selecting previously unselected package desktop-file-utils. 1578s Preparing to unpack .../01-desktop-file-utils_0.28-1_armhf.deb ... 1578s Unpacking desktop-file-utils (0.28-1) ... 1578s Selecting previously unselected package gir1.2-glib-2.0-dev:armhf. 1579s Preparing to unpack .../02-gir1.2-glib-2.0-dev_2.85.3-1_armhf.deb ... 1579s Unpacking gir1.2-glib-2.0-dev:armhf (2.85.3-1) ... 1579s Selecting previously unselected package native-architecture. 1579s Preparing to unpack .../03-native-architecture_0.2.6_all.deb ... 1579s Unpacking native-architecture (0.2.6) ... 1579s Selecting previously unselected package libgirepository-2.0-0:armhf. 1579s Preparing to unpack .../04-libgirepository-2.0-0_2.85.3-1_armhf.deb ... 1579s Unpacking libgirepository-2.0-0:armhf (2.85.3-1) ... 1579s Selecting previously unselected package girepository-tools:armhf. 1579s Preparing to unpack .../05-girepository-tools_2.85.3-1_armhf.deb ... 1579s Unpacking girepository-tools:armhf (2.85.3-1) ... 1579s Selecting previously unselected package gnome-desktop-testing. 1579s Preparing to unpack .../06-gnome-desktop-testing_2021.1-4_armhf.deb ... 1579s Unpacking gnome-desktop-testing (2021.1-4) ... 1579s Selecting previously unselected package libfontenc1:armhf. 1579s Preparing to unpack .../07-libfontenc1_1%3a1.1.8-1build1_armhf.deb ... 1579s Unpacking libfontenc1:armhf (1:1.1.8-1build1) ... 1579s Selecting previously unselected package libfreetype6:armhf. 1579s Preparing to unpack .../08-libfreetype6_2.13.3+dfsg-1_armhf.deb ... 1579s Unpacking libfreetype6:armhf (2.13.3+dfsg-1) ... 1579s Selecting previously unselected package libllvm20:armhf. 1579s Preparing to unpack .../09-libllvm20_1%3a20.1.8-0ubuntu1_armhf.deb ... 1579s Unpacking libllvm20:armhf (1:20.1.8-0ubuntu1) ... 1580s Selecting previously unselected package libx11-xcb1:armhf. 1580s Preparing to unpack .../10-libx11-xcb1_2%3a1.8.12-1_armhf.deb ... 1580s Unpacking libx11-xcb1:armhf (2:1.8.12-1) ... 1580s Selecting previously unselected package libxcb-dri3-0:armhf. 1580s Preparing to unpack .../11-libxcb-dri3-0_1.17.0-2_armhf.deb ... 1580s Unpacking libxcb-dri3-0:armhf (1.17.0-2) ... 1580s Selecting previously unselected package libxcb-present0:armhf. 1580s Preparing to unpack .../12-libxcb-present0_1.17.0-2_armhf.deb ... 1580s Unpacking libxcb-present0:armhf (1.17.0-2) ... 1581s Selecting previously unselected package libxcb-randr0:armhf. 1581s Preparing to unpack .../13-libxcb-randr0_1.17.0-2_armhf.deb ... 1581s Unpacking libxcb-randr0:armhf (1.17.0-2) ... 1581s Selecting previously unselected package libxcb-sync1:armhf. 1581s Preparing to unpack .../14-libxcb-sync1_1.17.0-2_armhf.deb ... 1581s Unpacking libxcb-sync1:armhf (1.17.0-2) ... 1581s Selecting previously unselected package libxcb-xfixes0:armhf. 1581s Preparing to unpack .../15-libxcb-xfixes0_1.17.0-2_armhf.deb ... 1581s Unpacking libxcb-xfixes0:armhf (1.17.0-2) ... 1581s Selecting previously unselected package libxshmfence1:armhf. 1581s Preparing to unpack .../16-libxshmfence1_1.3.3-1_armhf.deb ... 1581s Unpacking libxshmfence1:armhf (1.3.3-1) ... 1581s Selecting previously unselected package mesa-libgallium:armhf. 1581s Preparing to unpack .../17-mesa-libgallium_25.2.1-2ubuntu1_armhf.deb ... 1581s Unpacking mesa-libgallium:armhf (25.2.1-2ubuntu1) ... 1581s Selecting previously unselected package libgbm1:armhf. 1581s Preparing to unpack .../18-libgbm1_25.2.1-2ubuntu1_armhf.deb ... 1581s Unpacking libgbm1:armhf (25.2.1-2ubuntu1) ... 1581s Selecting previously unselected package libgio-2.0-dev-bin. 1581s Preparing to unpack .../19-libgio-2.0-dev-bin_2.85.3-1_armhf.deb ... 1581s Unpacking libgio-2.0-dev-bin (2.85.3-1) ... 1581s Selecting previously unselected package libvulkan1:armhf. 1581s Preparing to unpack .../20-libvulkan1_1.4.321.0-1_armhf.deb ... 1581s Unpacking libvulkan1:armhf (1.4.321.0-1) ... 1581s Selecting previously unselected package libgl1-mesa-dri:armhf. 1581s Preparing to unpack .../21-libgl1-mesa-dri_25.2.1-2ubuntu1_armhf.deb ... 1581s Unpacking libgl1-mesa-dri:armhf (25.2.1-2ubuntu1) ... 1581s Selecting previously unselected package libglib2.0-bin. 1581s Preparing to unpack .../22-libglib2.0-bin_2.85.3-1_armhf.deb ... 1581s Unpacking libglib2.0-bin (2.85.3-1) ... 1581s Selecting previously unselected package libglib2.0-dev-bin. 1581s Preparing to unpack .../23-libglib2.0-dev-bin_2.85.3-1_armhf.deb ... 1581s Unpacking libglib2.0-dev-bin (2.85.3-1) ... 1581s Selecting previously unselected package python3-dbusmock. 1581s Preparing to unpack .../24-python3-dbusmock_0.36.0-1_all.deb ... 1581s Unpacking python3-dbusmock (0.36.0-1) ... 1581s Selecting previously unselected package tzdata-legacy. 1582s Preparing to unpack .../25-tzdata-legacy_2025b-3ubuntu1_all.deb ... 1582s Unpacking tzdata-legacy (2025b-3ubuntu1) ... 1582s Selecting previously unselected package libglib2.0-tests. 1582s Preparing to unpack .../26-libglib2.0-tests_2.85.3-1_armhf.deb ... 1582s Unpacking libglib2.0-tests (2.85.3-1) ... 1582s Selecting previously unselected package libxcb-glx0:armhf. 1582s Preparing to unpack .../27-libxcb-glx0_1.17.0-2_armhf.deb ... 1582s Unpacking libxcb-glx0:armhf (1.17.0-2) ... 1582s Selecting previously unselected package libxcb-shm0:armhf. 1582s Preparing to unpack .../28-libxcb-shm0_1.17.0-2_armhf.deb ... 1582s Unpacking libxcb-shm0:armhf (1.17.0-2) ... 1582s Selecting previously unselected package libxxf86vm1:armhf. 1582s Preparing to unpack .../29-libxxf86vm1_1%3a1.1.4-1build4_armhf.deb ... 1582s Unpacking libxxf86vm1:armhf (1:1.1.4-1build4) ... 1582s Selecting previously unselected package libglx-mesa0:armhf. 1582s Preparing to unpack .../30-libglx-mesa0_25.2.1-2ubuntu1_armhf.deb ... 1582s Unpacking libglx-mesa0:armhf (25.2.1-2ubuntu1) ... 1582s Selecting previously unselected package x11-common. 1582s Preparing to unpack .../31-x11-common_1%3a7.7+24ubuntu1_all.deb ... 1582s Unpacking x11-common (1:7.7+24ubuntu1) ... 1582s Selecting previously unselected package libice6:armhf. 1582s Preparing to unpack .../32-libice6_2%3a1.1.1-1_armhf.deb ... 1582s Unpacking libice6:armhf (2:1.1.1-1) ... 1582s Selecting previously unselected package libpixman-1-0:armhf. 1582s Preparing to unpack .../33-libpixman-1-0_0.44.0-3_armhf.deb ... 1582s Unpacking libpixman-1-0:armhf (0.44.0-3) ... 1582s Selecting previously unselected package libsm6:armhf. 1582s Preparing to unpack .../34-libsm6_2%3a1.2.6-1_armhf.deb ... 1582s Unpacking libsm6:armhf (2:1.2.6-1) ... 1582s Selecting previously unselected package libxt6t64:armhf. 1582s Preparing to unpack .../35-libxt6t64_1%3a1.2.1-1.2build1_armhf.deb ... 1582s Unpacking libxt6t64:armhf (1:1.2.1-1.2build1) ... 1582s Selecting previously unselected package libxmu6:armhf. 1583s Preparing to unpack .../36-libxmu6_2%3a1.1.3-3build2_armhf.deb ... 1583s Unpacking libxmu6:armhf (2:1.1.3-3build2) ... 1583s Selecting previously unselected package libxpm4:armhf. 1583s Preparing to unpack .../37-libxpm4_1%3a3.5.17-1build2_armhf.deb ... 1583s Unpacking libxpm4:armhf (1:3.5.17-1build2) ... 1583s Selecting previously unselected package libxaw7:armhf. 1583s Preparing to unpack .../38-libxaw7_2%3a1.0.16-1_armhf.deb ... 1583s Unpacking libxaw7:armhf (2:1.0.16-1) ... 1583s Selecting previously unselected package libxfont2:armhf. 1583s Preparing to unpack .../39-libxfont2_1%3a2.0.6-1build1_armhf.deb ... 1583s Unpacking libxfont2:armhf (1:2.0.6-1build1) ... 1583s Selecting previously unselected package libxkbfile1:armhf. 1583s Preparing to unpack .../40-libxkbfile1_1%3a1.1.0-1build4_armhf.deb ... 1583s Unpacking libxkbfile1:armhf (1:1.1.0-1build4) ... 1583s Selecting previously unselected package libxrender1:armhf. 1583s Preparing to unpack .../41-libxrender1_1%3a0.9.12-1_armhf.deb ... 1583s Unpacking libxrender1:armhf (1:0.9.12-1) ... 1583s Selecting previously unselected package libxrandr2:armhf. 1583s Preparing to unpack .../42-libxrandr2_2%3a1.5.4-1_armhf.deb ... 1583s Unpacking libxrandr2:armhf (2:1.5.4-1) ... 1583s Selecting previously unselected package x11-xkb-utils. 1583s Preparing to unpack .../43-x11-xkb-utils_7.7+9_armhf.deb ... 1583s Unpacking x11-xkb-utils (7.7+9) ... 1583s Selecting previously unselected package xserver-common. 1583s Preparing to unpack .../44-xserver-common_2%3a21.1.18-1ubuntu1_all.deb ... 1583s Unpacking xserver-common (2:21.1.18-1ubuntu1) ... 1583s Selecting previously unselected package libglvnd0:armhf. 1583s Preparing to unpack .../45-libglvnd0_1.7.0-1build1_armhf.deb ... 1583s Unpacking libglvnd0:armhf (1.7.0-1build1) ... 1583s Selecting previously unselected package libglx0:armhf. 1583s Preparing to unpack .../46-libglx0_1.7.0-1build1_armhf.deb ... 1583s Unpacking libglx0:armhf (1.7.0-1build1) ... 1583s Selecting previously unselected package libgl1:armhf. 1583s Preparing to unpack .../47-libgl1_1.7.0-1build1_armhf.deb ... 1583s Unpacking libgl1:armhf (1.7.0-1build1) ... 1583s Selecting previously unselected package xvfb. 1583s Preparing to unpack .../48-xvfb_2%3a21.1.18-1ubuntu1_armhf.deb ... 1583s Unpacking xvfb (2:21.1.18-1ubuntu1) ... 1583s Setting up gnome-desktop-testing (2021.1-4) ... 1583s Setting up libxcb-dri3-0:armhf (1.17.0-2) ... 1583s Setting up libpixman-1-0:armhf (0.44.0-3) ... 1583s Setting up libx11-xcb1:armhf (2:1.8.12-1) ... 1583s Setting up libgio-2.0-dev-bin (2.85.3-1) ... 1584s Setting up native-architecture (0.2.6) ... 1584s Setting up libxcb-xfixes0:armhf (1.17.0-2) ... 1584s Setting up desktop-file-utils (0.28-1) ... 1584s Setting up libxpm4:armhf (1:3.5.17-1build2) ... 1584s Setting up libxrender1:armhf (1:0.9.12-1) ... 1584s Setting up libgirepository-2.0-0:armhf (2.85.3-1) ... 1584s Setting up libglvnd0:armhf (1.7.0-1build1) ... 1584s Setting up libxcb-glx0:armhf (1.17.0-2) ... 1584s Setting up x11-common (1:7.7+24ubuntu1) ... 1584s Setting up libglib2.0-bin (2.85.3-1) ... 1584s Setting up libxcb-shm0:armhf (1.17.0-2) ... 1584s Setting up python3-dbusmock (0.36.0-1) ... 1584s Setting up tzdata-legacy (2025b-3ubuntu1) ... 1584s Setting up libxxf86vm1:armhf (1:1.1.4-1build4) ... 1584s Setting up libxcb-present0:armhf (1.17.0-2) ... 1584s Setting up libfontenc1:armhf (1:1.1.8-1build1) ... 1584s Setting up libfreetype6:armhf (2.13.3+dfsg-1) ... 1584s Setting up libxcb-sync1:armhf (1.17.0-2) ... 1584s Setting up libxrandr2:armhf (2:1.5.4-1) ... 1584s Setting up libllvm20:armhf (1:20.1.8-0ubuntu1) ... 1584s Setting up libvulkan1:armhf (1.4.321.0-1) ... 1584s Setting up gir1.2-glib-2.0-dev:armhf (2.85.3-1) ... 1584s Setting up libxshmfence1:armhf (1.3.3-1) ... 1584s Setting up dbus-x11 (1.16.2-2ubuntu1) ... 1584s Setting up libxcb-randr0:armhf (1.17.0-2) ... 1584s Setting up libxkbfile1:armhf (1:1.1.0-1build4) ... 1584s Setting up libxfont2:armhf (1:2.0.6-1build1) ... 1584s Setting up libice6:armhf (2:1.1.1-1) ... 1584s Setting up mesa-libgallium:armhf (25.2.1-2ubuntu1) ... 1584s Setting up girepository-tools:armhf (2.85.3-1) ... 1584s Setting up libgbm1:armhf (25.2.1-2ubuntu1) ... 1584s Setting up libgl1-mesa-dri:armhf (25.2.1-2ubuntu1) ... 1584s Setting up libsm6:armhf (2:1.2.6-1) ... 1584s Setting up libglib2.0-dev-bin (2.85.3-1) ... 1584s Setting up libglx-mesa0:armhf (25.2.1-2ubuntu1) ... 1584s Setting up libglx0:armhf (1.7.0-1build1) ... 1584s Setting up libgl1:armhf (1.7.0-1build1) ... 1584s Setting up libxt6t64:armhf (1:1.2.1-1.2build1) ... 1584s Setting up libglib2.0-tests (2.85.3-1) ... 1585s Setting up libxmu6:armhf (2:1.1.3-3build2) ... 1585s Setting up libxaw7:armhf (2:1.0.16-1) ... 1585s Setting up x11-xkb-utils (7.7+9) ... 1585s Setting up xserver-common (2:21.1.18-1ubuntu1) ... 1585s Setting up xvfb (2:21.1.18-1ubuntu1) ... 1585s Processing triggers for man-db (2.13.1-1) ... 1585s Processing triggers for libc-bin (2.42-0ubuntu1) ... 1601s autopkgtest [17:11:50]: test installed-tests: [----------------------- 1603s Running as: uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu),4(adm),24(cdrom),27(sudo),30(dip),103(lxd) 1603s passwd entry: ubuntu:x:1000:1000:Ubuntu:/home/ubuntu:/bin/bash 1603s group entry: ubuntu:x:1000: 1603s Environment: 1603s ADTTMP=/tmp/autopkgtest.w4sS0P/autopkgtest_tmp 1603s ADT_ARTIFACTS=/tmp/autopkgtest.w4sS0P/installed-tests-artifacts 1603s ADT_TEST_TRIGGERS=build-essential/12.12ubuntu2 1603s AUTOPKGTEST_ARTIFACTS=/tmp/autopkgtest.w4sS0P/installed-tests-artifacts 1603s AUTOPKGTEST_TESTBED_ARCH=armhf 1603s AUTOPKGTEST_TEST_ARCH=armhf 1603s AUTOPKGTEST_TMP=/tmp/autopkgtest.w4sS0P/autopkgtest_tmp 1603s DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus 1603s DEBIAN_FRONTEND=noninteractive 1603s DEB_BUILD_OPTIONS=parallel=8 1603s GIO_USE_VFS=local 1603s GIO_USE_VOLUME_MONITOR=unix 1603s HOME=/home/ubuntu 1603s LANG=C.UTF-8 1603s LOGNAME=ubuntu 1603s MAIL=/var/mail/ubuntu 1603s OLDPWD=/root 1603s PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin 1603s PWD=/tmp/autopkgtest.w4sS0P/build.Tqa/src 1603s SHELL=/bin/bash 1603s SHLVL=1 1603s USER=ubuntu 1603s XDG_RUNTIME_DIR=/tmp/autopkgtest.w4sS0P/autopkgtest_tmp 1603s XDG_SESSION_CLASS=background 1603s XDG_SESSION_ID=c1 1603s XDG_SESSION_TYPE=unspecified 1603s http_proxy=http://squid.internal:3128 1603s https_proxy=http://squid.internal:3128 1603s no_proxy=127.0.0.1,127.0.1.1,localhost,localdomain,internal,login.ubuntu.com,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com,radosgw.ps5.canonical.com 1603s run-with-locales: de_DE=ISO-8859-1... 1603s Character set: ISO-8859-1 1603s Source file: de_DE 1603s Output: /tmp/tmp.LqUb3uV7We/de_DE 1604s run-with-locales: de_DE.utf8... 1604s Character set: UTF-8 1604s Source file: de_DE 1604s Output: /tmp/tmp.LqUb3uV7We/de_DE.utf8 1607s run-with-locales: de_DE@euro.utf8... 1607s Character set: UTF-8 1607s Source file: de_DE@euro 1607s Output: /tmp/tmp.LqUb3uV7We/de_DE@euro.utf8 1611s run-with-locales: el_GR.utf8... 1611s Character set: UTF-8 1611s Source file: el_GR 1611s Output: /tmp/tmp.LqUb3uV7We/el_GR.utf8 1614s run-with-locales: en_GB=ISO-8859-1... 1614s Character set: ISO-8859-1 1614s Source file: en_GB 1614s Output: /tmp/tmp.LqUb3uV7We/en_GB 1615s run-with-locales: en_GB.utf8... 1615s Character set: UTF-8 1615s Source file: en_GB 1615s Output: /tmp/tmp.LqUb3uV7We/en_GB.utf8 1618s run-with-locales: en_US=ISO-8859-1... 1618s Character set: ISO-8859-1 1618s Source file: en_US 1618s Output: /tmp/tmp.LqUb3uV7We/en_US 1619s run-with-locales: en_US.utf8... 1619s Character set: UTF-8 1619s Source file: en_US 1619s Output: /tmp/tmp.LqUb3uV7We/en_US.utf8 1623s run-with-locales: es_ES.utf8... 1623s Character set: UTF-8 1623s Source file: es_ES 1623s Output: /tmp/tmp.LqUb3uV7We/es_ES.utf8 1626s run-with-locales: fa_IR=UTF-8... 1626s Character set: UTF-8 1626s Source file: fa_IR 1626s Output: /tmp/tmp.LqUb3uV7We/fa_IR 1629s run-with-locales: fa_IR.utf8... 1629s Character set: UTF-8 1629s Source file: fa_IR 1629s Output: /tmp/tmp.LqUb3uV7We/fa_IR.utf8 1632s run-with-locales: fr_FR.utf8... 1632s Character set: UTF-8 1632s Source file: fr_FR 1632s Output: /tmp/tmp.LqUb3uV7We/fr_FR.utf8 1636s run-with-locales: hr_HR.utf8... 1636s Character set: UTF-8 1636s Source file: hr_HR 1636s Output: /tmp/tmp.LqUb3uV7We/hr_HR.utf8 1639s run-with-locales: ja_JP.utf8... 1639s Character set: UTF-8 1639s Source file: ja_JP 1639s Output: /tmp/tmp.LqUb3uV7We/ja_JP.utf8 1640s run-with-locales: ja_JP.EUC-JP... 1640s Character set: EUC-JP 1640s Source file: ja_JP 1640s Output: /tmp/tmp.LqUb3uV7We/ja_JP.eucjp 1642s run-with-locales: lt_LT.utf8... 1642s Character set: UTF-8 1642s Source file: lt_LT 1642s Output: /tmp/tmp.LqUb3uV7We/lt_LT.utf8 1644s run-with-locales: pl_PL=ISO-8859-2... 1644s Character set: ISO-8859-2 1644s Source file: pl_PL 1644s Output: /tmp/tmp.LqUb3uV7We/pl_PL 1644s run-with-locales: pl_PL.ISO-8859-2... 1644s Character set: ISO-8859-2 1644s Source file: pl_PL 1644s Output: /tmp/tmp.LqUb3uV7We/pl_PL.iso88592 1645s run-with-locales: pl_PL.utf8... 1645s Character set: UTF-8 1645s Source file: pl_PL 1645s Output: /tmp/tmp.LqUb3uV7We/pl_PL.utf8 1649s run-with-locales: ru_RU=ISO-8859-5... 1649s Character set: ISO-8859-5 1649s Source file: ru_RU 1649s Output: /tmp/tmp.LqUb3uV7We/ru_RU 1649s run-with-locales: ru_RU.utf8... 1649s Character set: UTF-8 1649s Source file: ru_RU 1649s Output: /tmp/tmp.LqUb3uV7We/ru_RU.utf8 1653s run-with-locales: sr_RS=UTF-8... 1653s Character set: UTF-8 1653s Source file: sr_RS 1653s Output: /tmp/tmp.LqUb3uV7We/sr_RS 1657s run-with-locales: sr_RS@latin=UTF-8... 1657s Character set: UTF-8 1657s Source file: sr_RS@latin 1657s Output: /tmp/tmp.LqUb3uV7We/sr_RS@latin 1661s run-with-locales: sv_SE=ISO-8859-1... 1661s Character set: ISO-8859-1 1661s Source file: sv_SE 1661s Output: /tmp/tmp.LqUb3uV7We/sv_SE 1661s run-with-locales: sv_SE.utf8... 1661s Character set: UTF-8 1661s Source file: sv_SE 1661s Output: /tmp/tmp.LqUb3uV7We/sv_SE.utf8 1665s run-with-locales: tr_TR=ISO-8859-9... 1665s Character set: ISO-8859-9 1665s Source file: tr_TR 1665s Output: /tmp/tmp.LqUb3uV7We/tr_TR 1665s run-with-locales: tr_TR.utf8... 1665s Character set: UTF-8 1665s Source file: tr_TR 1665s Output: /tmp/tmp.LqUb3uV7We/tr_TR.utf8 1669s run-with-locales: tt_RU=UTF-8... 1669s Character set: UTF-8 1669s Source file: tt_RU 1669s Output: /tmp/tmp.LqUb3uV7We/tt_RU 1673s run-with-locales: tt_RU.utf8... 1673s Character set: UTF-8 1673s Source file: tt_RU 1673s Output: /tmp/tmp.LqUb3uV7We/tt_RU.utf8 1677s run-with-locales: tt_RU@iqtelif=UTF-8... 1677s Character set: UTF-8 1677s Source file: tt_RU@iqtelif 1677s Output: /tmp/tmp.LqUb3uV7We/tt_RU@iqtelif 1681s /tmp/tmp.LqUb3uV7We 1681s /tmp/tmp.LqUb3uV7We/de_DE 1681s /tmp/tmp.LqUb3uV7We/de_DE/LC_CTYPE 1681s /tmp/tmp.LqUb3uV7We/de_DE/LC_NUMERIC 1681s /tmp/tmp.LqUb3uV7We/de_DE/LC_TIME 1681s /tmp/tmp.LqUb3uV7We/de_DE/LC_COLLATE 1681s /tmp/tmp.LqUb3uV7We/de_DE/LC_MONETARY 1681s /tmp/tmp.LqUb3uV7We/de_DE/LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/de_DE/LC_MESSAGES/SYS_LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/de_DE/LC_PAPER 1681s /tmp/tmp.LqUb3uV7We/de_DE/LC_NAME 1681s /tmp/tmp.LqUb3uV7We/de_DE/LC_ADDRESS 1681s /tmp/tmp.LqUb3uV7We/de_DE/LC_TELEPHONE 1681s /tmp/tmp.LqUb3uV7We/de_DE/LC_MEASUREMENT 1681s /tmp/tmp.LqUb3uV7We/de_DE/LC_IDENTIFICATION 1681s /tmp/tmp.LqUb3uV7We/de_DE.utf8 1681s /tmp/tmp.LqUb3uV7We/de_DE.utf8/LC_CTYPE 1681s /tmp/tmp.LqUb3uV7We/de_DE.utf8/LC_NUMERIC 1681s /tmp/tmp.LqUb3uV7We/de_DE.utf8/LC_TIME 1681s /tmp/tmp.LqUb3uV7We/de_DE.utf8/LC_COLLATE 1681s /tmp/tmp.LqUb3uV7We/de_DE.utf8/LC_MONETARY 1681s /tmp/tmp.LqUb3uV7We/de_DE.utf8/LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/de_DE.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/de_DE.utf8/LC_PAPER 1681s /tmp/tmp.LqUb3uV7We/de_DE.utf8/LC_NAME 1681s /tmp/tmp.LqUb3uV7We/de_DE.utf8/LC_ADDRESS 1681s /tmp/tmp.LqUb3uV7We/de_DE.utf8/LC_TELEPHONE 1681s /tmp/tmp.LqUb3uV7We/de_DE.utf8/LC_MEASUREMENT 1681s /tmp/tmp.LqUb3uV7We/de_DE.utf8/LC_IDENTIFICATION 1681s /tmp/tmp.LqUb3uV7We/de_DE@euro.utf8 1681s /tmp/tmp.LqUb3uV7We/de_DE@euro.utf8/LC_CTYPE 1681s /tmp/tmp.LqUb3uV7We/de_DE@euro.utf8/LC_NUMERIC 1681s /tmp/tmp.LqUb3uV7We/de_DE@euro.utf8/LC_TIME 1681s /tmp/tmp.LqUb3uV7We/de_DE@euro.utf8/LC_COLLATE 1681s /tmp/tmp.LqUb3uV7We/de_DE@euro.utf8/LC_MONETARY 1681s /tmp/tmp.LqUb3uV7We/de_DE@euro.utf8/LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/de_DE@euro.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/de_DE@euro.utf8/LC_PAPER 1681s /tmp/tmp.LqUb3uV7We/de_DE@euro.utf8/LC_NAME 1681s /tmp/tmp.LqUb3uV7We/de_DE@euro.utf8/LC_ADDRESS 1681s /tmp/tmp.LqUb3uV7We/de_DE@euro.utf8/LC_TELEPHONE 1681s /tmp/tmp.LqUb3uV7We/de_DE@euro.utf8/LC_MEASUREMENT 1681s /tmp/tmp.LqUb3uV7We/de_DE@euro.utf8/LC_IDENTIFICATION 1681s /tmp/tmp.LqUb3uV7We/el_GR.utf8 1681s /tmp/tmp.LqUb3uV7We/el_GR.utf8/LC_CTYPE 1681s /tmp/tmp.LqUb3uV7We/el_GR.utf8/LC_NUMERIC 1681s /tmp/tmp.LqUb3uV7We/el_GR.utf8/LC_TIME 1681s /tmp/tmp.LqUb3uV7We/el_GR.utf8/LC_COLLATE 1681s /tmp/tmp.LqUb3uV7We/el_GR.utf8/LC_MONETARY 1681s /tmp/tmp.LqUb3uV7We/el_GR.utf8/LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/el_GR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/el_GR.utf8/LC_PAPER 1681s /tmp/tmp.LqUb3uV7We/el_GR.utf8/LC_NAME 1681s /tmp/tmp.LqUb3uV7We/el_GR.utf8/LC_ADDRESS 1681s /tmp/tmp.LqUb3uV7We/el_GR.utf8/LC_TELEPHONE 1681s /tmp/tmp.LqUb3uV7We/el_GR.utf8/LC_MEASUREMENT 1681s /tmp/tmp.LqUb3uV7We/el_GR.utf8/LC_IDENTIFICATION 1681s /tmp/tmp.LqUb3uV7We/en_GB 1681s /tmp/tmp.LqUb3uV7We/en_GB/LC_CTYPE 1681s /tmp/tmp.LqUb3uV7We/en_GB/LC_NUMERIC 1681s /tmp/tmp.LqUb3uV7We/en_GB/LC_TIME 1681s /tmp/tmp.LqUb3uV7We/en_GB/LC_COLLATE 1681s /tmp/tmp.LqUb3uV7We/en_GB/LC_MONETARY 1681s /tmp/tmp.LqUb3uV7We/en_GB/LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/en_GB/LC_MESSAGES/SYS_LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/en_GB/LC_PAPER 1681s /tmp/tmp.LqUb3uV7We/en_GB/LC_NAME 1681s /tmp/tmp.LqUb3uV7We/en_GB/LC_ADDRESS 1681s /tmp/tmp.LqUb3uV7We/en_GB/LC_TELEPHONE 1681s /tmp/tmp.LqUb3uV7We/en_GB/LC_MEASUREMENT 1681s /tmp/tmp.LqUb3uV7We/en_GB/LC_IDENTIFICATION 1681s /tmp/tmp.LqUb3uV7We/en_GB.utf8 1681s /tmp/tmp.LqUb3uV7We/en_GB.utf8/LC_CTYPE 1681s /tmp/tmp.LqUb3uV7We/en_GB.utf8/LC_NUMERIC 1681s /tmp/tmp.LqUb3uV7We/en_GB.utf8/LC_TIME 1681s /tmp/tmp.LqUb3uV7We/en_GB.utf8/LC_COLLATE 1681s /tmp/tmp.LqUb3uV7We/en_GB.utf8/LC_MONETARY 1681s /tmp/tmp.LqUb3uV7We/en_GB.utf8/LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/en_GB.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/en_GB.utf8/LC_PAPER 1681s /tmp/tmp.LqUb3uV7We/en_GB.utf8/LC_NAME 1681s /tmp/tmp.LqUb3uV7We/en_GB.utf8/LC_ADDRESS 1681s /tmp/tmp.LqUb3uV7We/en_GB.utf8/LC_TELEPHONE 1681s /tmp/tmp.LqUb3uV7We/en_GB.utf8/LC_MEASUREMENT 1681s /tmp/tmp.LqUb3uV7We/en_GB.utf8/LC_IDENTIFICATION 1681s /tmp/tmp.LqUb3uV7We/en_US 1681s /tmp/tmp.LqUb3uV7We/en_US/LC_CTYPE 1681s /tmp/tmp.LqUb3uV7We/en_US/LC_NUMERIC 1681s /tmp/tmp.LqUb3uV7We/en_US/LC_TIME 1681s /tmp/tmp.LqUb3uV7We/en_US/LC_COLLATE 1681s /tmp/tmp.LqUb3uV7We/en_US/LC_MONETARY 1681s /tmp/tmp.LqUb3uV7We/en_US/LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/en_US/LC_MESSAGES/SYS_LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/en_US/LC_PAPER 1681s /tmp/tmp.LqUb3uV7We/en_US/LC_NAME 1681s /tmp/tmp.LqUb3uV7We/en_US/LC_ADDRESS 1681s /tmp/tmp.LqUb3uV7We/en_US/LC_TELEPHONE 1681s /tmp/tmp.LqUb3uV7We/en_US/LC_MEASUREMENT 1681s /tmp/tmp.LqUb3uV7We/en_US/LC_IDENTIFICATION 1681s /tmp/tmp.LqUb3uV7We/en_US.utf8 1681s /tmp/tmp.LqUb3uV7We/en_US.utf8/LC_CTYPE 1681s /tmp/tmp.LqUb3uV7We/en_US.utf8/LC_NUMERIC 1681s /tmp/tmp.LqUb3uV7We/en_US.utf8/LC_TIME 1681s /tmp/tmp.LqUb3uV7We/en_US.utf8/LC_COLLATE 1681s /tmp/tmp.LqUb3uV7We/en_US.utf8/LC_MONETARY 1681s /tmp/tmp.LqUb3uV7We/en_US.utf8/LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/en_US.utf8/LC_PAPER 1681s /tmp/tmp.LqUb3uV7We/en_US.utf8/LC_NAME 1681s /tmp/tmp.LqUb3uV7We/en_US.utf8/LC_ADDRESS 1681s /tmp/tmp.LqUb3uV7We/en_US.utf8/LC_TELEPHONE 1681s /tmp/tmp.LqUb3uV7We/en_US.utf8/LC_MEASUREMENT 1681s /tmp/tmp.LqUb3uV7We/en_US.utf8/LC_IDENTIFICATION 1681s /tmp/tmp.LqUb3uV7We/es_ES.utf8 1681s /tmp/tmp.LqUb3uV7We/es_ES.utf8/LC_CTYPE 1681s /tmp/tmp.LqUb3uV7We/es_ES.utf8/LC_NUMERIC 1681s /tmp/tmp.LqUb3uV7We/es_ES.utf8/LC_TIME 1681s /tmp/tmp.LqUb3uV7We/es_ES.utf8/LC_COLLATE 1681s /tmp/tmp.LqUb3uV7We/es_ES.utf8/LC_MONETARY 1681s /tmp/tmp.LqUb3uV7We/es_ES.utf8/LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/es_ES.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/es_ES.utf8/LC_PAPER 1681s /tmp/tmp.LqUb3uV7We/es_ES.utf8/LC_NAME 1681s /tmp/tmp.LqUb3uV7We/es_ES.utf8/LC_ADDRESS 1681s /tmp/tmp.LqUb3uV7We/es_ES.utf8/LC_TELEPHONE 1681s /tmp/tmp.LqUb3uV7We/es_ES.utf8/LC_MEASUREMENT 1681s /tmp/tmp.LqUb3uV7We/es_ES.utf8/LC_IDENTIFICATION 1681s /tmp/tmp.LqUb3uV7We/fa_IR 1681s /tmp/tmp.LqUb3uV7We/fa_IR/LC_CTYPE 1681s /tmp/tmp.LqUb3uV7We/fa_IR/LC_NUMERIC 1681s /tmp/tmp.LqUb3uV7We/fa_IR/LC_TIME 1681s /tmp/tmp.LqUb3uV7We/fa_IR/LC_COLLATE 1681s /tmp/tmp.LqUb3uV7We/fa_IR/LC_MONETARY 1681s /tmp/tmp.LqUb3uV7We/fa_IR/LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/fa_IR/LC_MESSAGES/SYS_LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/fa_IR/LC_PAPER 1681s /tmp/tmp.LqUb3uV7We/fa_IR/LC_NAME 1681s /tmp/tmp.LqUb3uV7We/fa_IR/LC_ADDRESS 1681s /tmp/tmp.LqUb3uV7We/fa_IR/LC_TELEPHONE 1681s /tmp/tmp.LqUb3uV7We/fa_IR/LC_MEASUREMENT 1681s /tmp/tmp.LqUb3uV7We/fa_IR/LC_IDENTIFICATION 1681s /tmp/tmp.LqUb3uV7We/fa_IR.utf8 1681s /tmp/tmp.LqUb3uV7We/fa_IR.utf8/LC_CTYPE 1681s /tmp/tmp.LqUb3uV7We/fa_IR.utf8/LC_NUMERIC 1681s /tmp/tmp.LqUb3uV7We/fa_IR.utf8/LC_TIME 1681s /tmp/tmp.LqUb3uV7We/fa_IR.utf8/LC_COLLATE 1681s /tmp/tmp.LqUb3uV7We/fa_IR.utf8/LC_MONETARY 1681s /tmp/tmp.LqUb3uV7We/fa_IR.utf8/LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/fa_IR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/fa_IR.utf8/LC_PAPER 1681s /tmp/tmp.LqUb3uV7We/fa_IR.utf8/LC_NAME 1681s /tmp/tmp.LqUb3uV7We/fa_IR.utf8/LC_ADDRESS 1681s /tmp/tmp.LqUb3uV7We/fa_IR.utf8/LC_TELEPHONE 1681s /tmp/tmp.LqUb3uV7We/fa_IR.utf8/LC_MEASUREMENT 1681s /tmp/tmp.LqUb3uV7We/fa_IR.utf8/LC_IDENTIFICATION 1681s /tmp/tmp.LqUb3uV7We/fr_FR.utf8 1681s /tmp/tmp.LqUb3uV7We/fr_FR.utf8/LC_CTYPE 1681s /tmp/tmp.LqUb3uV7We/fr_FR.utf8/LC_NUMERIC 1681s /tmp/tmp.LqUb3uV7We/fr_FR.utf8/LC_TIME 1681s /tmp/tmp.LqUb3uV7We/fr_FR.utf8/LC_COLLATE 1681s /tmp/tmp.LqUb3uV7We/fr_FR.utf8/LC_MONETARY 1681s /tmp/tmp.LqUb3uV7We/fr_FR.utf8/LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/fr_FR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/fr_FR.utf8/LC_PAPER 1681s /tmp/tmp.LqUb3uV7We/fr_FR.utf8/LC_NAME 1681s /tmp/tmp.LqUb3uV7We/fr_FR.utf8/LC_ADDRESS 1681s /tmp/tmp.LqUb3uV7We/fr_FR.utf8/LC_TELEPHONE 1681s /tmp/tmp.LqUb3uV7We/fr_FR.utf8/LC_MEASUREMENT 1681s /tmp/tmp.LqUb3uV7We/fr_FR.utf8/LC_IDENTIFICATION 1681s /tmp/tmp.LqUb3uV7We/hr_HR.utf8 1681s /tmp/tmp.LqUb3uV7We/hr_HR.utf8/LC_CTYPE 1681s /tmp/tmp.LqUb3uV7We/hr_HR.utf8/LC_NUMERIC 1681s /tmp/tmp.LqUb3uV7We/hr_HR.utf8/LC_TIME 1681s /tmp/tmp.LqUb3uV7We/hr_HR.utf8/LC_COLLATE 1681s /tmp/tmp.LqUb3uV7We/hr_HR.utf8/LC_MONETARY 1681s /tmp/tmp.LqUb3uV7We/hr_HR.utf8/LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/hr_HR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/hr_HR.utf8/LC_PAPER 1681s /tmp/tmp.LqUb3uV7We/hr_HR.utf8/LC_NAME 1681s /tmp/tmp.LqUb3uV7We/hr_HR.utf8/LC_ADDRESS 1681s /tmp/tmp.LqUb3uV7We/hr_HR.utf8/LC_TELEPHONE 1681s /tmp/tmp.LqUb3uV7We/hr_HR.utf8/LC_MEASUREMENT 1681s /tmp/tmp.LqUb3uV7We/hr_HR.utf8/LC_IDENTIFICATION 1681s /tmp/tmp.LqUb3uV7We/ja_JP.utf8 1681s /tmp/tmp.LqUb3uV7We/ja_JP.utf8/LC_CTYPE 1681s /tmp/tmp.LqUb3uV7We/ja_JP.utf8/LC_NUMERIC 1681s /tmp/tmp.LqUb3uV7We/ja_JP.utf8/LC_TIME 1681s /tmp/tmp.LqUb3uV7We/ja_JP.utf8/LC_COLLATE 1681s /tmp/tmp.LqUb3uV7We/ja_JP.utf8/LC_MONETARY 1681s /tmp/tmp.LqUb3uV7We/ja_JP.utf8/LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/ja_JP.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/ja_JP.utf8/LC_PAPER 1681s /tmp/tmp.LqUb3uV7We/ja_JP.utf8/LC_NAME 1681s /tmp/tmp.LqUb3uV7We/ja_JP.utf8/LC_ADDRESS 1681s /tmp/tmp.LqUb3uV7We/ja_JP.utf8/LC_TELEPHONE 1681s /tmp/tmp.LqUb3uV7We/ja_JP.utf8/LC_MEASUREMENT 1681s /tmp/tmp.LqUb3uV7We/ja_JP.utf8/LC_IDENTIFICATION 1681s /tmp/tmp.LqUb3uV7We/ja_JP.eucjp 1681s /tmp/tmp.LqUb3uV7We/ja_JP.eucjp/LC_CTYPE 1681s /tmp/tmp.LqUb3uV7We/ja_JP.eucjp/LC_NUMERIC 1681s /tmp/tmp.LqUb3uV7We/ja_JP.eucjp/LC_TIME 1681s /tmp/tmp.LqUb3uV7We/ja_JP.eucjp/LC_COLLATE 1681s /tmp/tmp.LqUb3uV7We/ja_JP.eucjp/LC_MONETARY 1681s /tmp/tmp.LqUb3uV7We/ja_JP.eucjp/LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/ja_JP.eucjp/LC_MESSAGES/SYS_LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/ja_JP.eucjp/LC_PAPER 1681s /tmp/tmp.LqUb3uV7We/ja_JP.eucjp/LC_NAME 1681s /tmp/tmp.LqUb3uV7We/ja_JP.eucjp/LC_ADDRESS 1681s /tmp/tmp.LqUb3uV7We/ja_JP.eucjp/LC_TELEPHONE 1681s /tmp/tmp.LqUb3uV7We/ja_JP.eucjp/LC_MEASUREMENT 1681s /tmp/tmp.LqUb3uV7We/ja_JP.eucjp/LC_IDENTIFICATION 1681s /tmp/tmp.LqUb3uV7We/lt_LT.utf8 1681s /tmp/tmp.LqUb3uV7We/lt_LT.utf8/LC_CTYPE 1681s /tmp/tmp.LqUb3uV7We/lt_LT.utf8/LC_NUMERIC 1681s /tmp/tmp.LqUb3uV7We/lt_LT.utf8/LC_TIME 1681s /tmp/tmp.LqUb3uV7We/lt_LT.utf8/LC_COLLATE 1681s /tmp/tmp.LqUb3uV7We/lt_LT.utf8/LC_MONETARY 1681s /tmp/tmp.LqUb3uV7We/lt_LT.utf8/LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/lt_LT.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/lt_LT.utf8/LC_PAPER 1681s /tmp/tmp.LqUb3uV7We/lt_LT.utf8/LC_NAME 1681s /tmp/tmp.LqUb3uV7We/lt_LT.utf8/LC_ADDRESS 1681s /tmp/tmp.LqUb3uV7We/lt_LT.utf8/LC_TELEPHONE 1681s /tmp/tmp.LqUb3uV7We/lt_LT.utf8/LC_MEASUREMENT 1681s /tmp/tmp.LqUb3uV7We/lt_LT.utf8/LC_IDENTIFICATION 1681s /tmp/tmp.LqUb3uV7We/pl_PL 1681s /tmp/tmp.LqUb3uV7We/pl_PL/LC_CTYPE 1681s /tmp/tmp.LqUb3uV7We/pl_PL/LC_NUMERIC 1681s /tmp/tmp.LqUb3uV7We/pl_PL/LC_TIME 1681s /tmp/tmp.LqUb3uV7We/pl_PL/LC_COLLATE 1681s /tmp/tmp.LqUb3uV7We/pl_PL/LC_MONETARY 1681s /tmp/tmp.LqUb3uV7We/pl_PL/LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/pl_PL/LC_MESSAGES/SYS_LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/pl_PL/LC_PAPER 1681s /tmp/tmp.LqUb3uV7We/pl_PL/LC_NAME 1681s /tmp/tmp.LqUb3uV7We/pl_PL/LC_ADDRESS 1681s /tmp/tmp.LqUb3uV7We/pl_PL/LC_TELEPHONE 1681s /tmp/tmp.LqUb3uV7We/pl_PL/LC_MEASUREMENT 1681s /tmp/tmp.LqUb3uV7We/pl_PL/LC_IDENTIFICATION 1681s /tmp/tmp.LqUb3uV7We/pl_PL.iso88592 1681s /tmp/tmp.LqUb3uV7We/pl_PL.iso88592/LC_CTYPE 1681s /tmp/tmp.LqUb3uV7We/pl_PL.iso88592/LC_NUMERIC 1681s /tmp/tmp.LqUb3uV7We/pl_PL.iso88592/LC_TIME 1681s /tmp/tmp.LqUb3uV7We/pl_PL.iso88592/LC_COLLATE 1681s /tmp/tmp.LqUb3uV7We/pl_PL.iso88592/LC_MONETARY 1681s /tmp/tmp.LqUb3uV7We/pl_PL.iso88592/LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/pl_PL.iso88592/LC_MESSAGES/SYS_LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/pl_PL.iso88592/LC_PAPER 1681s /tmp/tmp.LqUb3uV7We/pl_PL.iso88592/LC_NAME 1681s /tmp/tmp.LqUb3uV7We/pl_PL.iso88592/LC_ADDRESS 1681s /tmp/tmp.LqUb3uV7We/pl_PL.iso88592/LC_TELEPHONE 1681s /tmp/tmp.LqUb3uV7We/pl_PL.iso88592/LC_MEASUREMENT 1681s /tmp/tmp.LqUb3uV7We/pl_PL.iso88592/LC_IDENTIFICATION 1681s /tmp/tmp.LqUb3uV7We/pl_PL.utf8 1681s /tmp/tmp.LqUb3uV7We/pl_PL.utf8/LC_CTYPE 1681s /tmp/tmp.LqUb3uV7We/pl_PL.utf8/LC_NUMERIC 1681s /tmp/tmp.LqUb3uV7We/pl_PL.utf8/LC_TIME 1681s /tmp/tmp.LqUb3uV7We/pl_PL.utf8/LC_COLLATE 1681s /tmp/tmp.LqUb3uV7We/pl_PL.utf8/LC_MONETARY 1681s /tmp/tmp.LqUb3uV7We/pl_PL.utf8/LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/pl_PL.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/pl_PL.utf8/LC_PAPER 1681s /tmp/tmp.LqUb3uV7We/pl_PL.utf8/LC_NAME 1681s /tmp/tmp.LqUb3uV7We/pl_PL.utf8/LC_ADDRESS 1681s /tmp/tmp.LqUb3uV7We/pl_PL.utf8/LC_TELEPHONE 1681s /tmp/tmp.LqUb3uV7We/pl_PL.utf8/LC_MEASUREMENT 1681s /tmp/tmp.LqUb3uV7We/pl_PL.utf8/LC_IDENTIFICATION 1681s /tmp/tmp.LqUb3uV7We/ru_RU 1681s /tmp/tmp.LqUb3uV7We/ru_RU/LC_CTYPE 1681s /tmp/tmp.LqUb3uV7We/ru_RU/LC_NUMERIC 1681s /tmp/tmp.LqUb3uV7We/ru_RU/LC_TIME 1681s /tmp/tmp.LqUb3uV7We/ru_RU/LC_COLLATE 1681s /tmp/tmp.LqUb3uV7We/ru_RU/LC_MONETARY 1681s /tmp/tmp.LqUb3uV7We/ru_RU/LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/ru_RU/LC_MESSAGES/SYS_LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/ru_RU/LC_PAPER 1681s /tmp/tmp.LqUb3uV7We/ru_RU/LC_NAME 1681s /tmp/tmp.LqUb3uV7We/ru_RU/LC_ADDRESS 1681s /tmp/tmp.LqUb3uV7We/ru_RU/LC_TELEPHONE 1681s /tmp/tmp.LqUb3uV7We/ru_RU/LC_MEASUREMENT 1681s /tmp/tmp.LqUb3uV7We/ru_RU/LC_IDENTIFICATION 1681s /tmp/tmp.LqUb3uV7We/ru_RU.utf8 1681s /tmp/tmp.LqUb3uV7We/ru_RU.utf8/LC_CTYPE 1681s /tmp/tmp.LqUb3uV7We/ru_RU.utf8/LC_NUMERIC 1681s /tmp/tmp.LqUb3uV7We/ru_RU.utf8/LC_TIME 1681s /tmp/tmp.LqUb3uV7We/ru_RU.utf8/LC_COLLATE 1681s /tmp/tmp.LqUb3uV7We/ru_RU.utf8/LC_MONETARY 1681s /tmp/tmp.LqUb3uV7We/ru_RU.utf8/LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/ru_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/ru_RU.utf8/LC_PAPER 1681s /tmp/tmp.LqUb3uV7We/ru_RU.utf8/LC_NAME 1681s /tmp/tmp.LqUb3uV7We/ru_RU.utf8/LC_ADDRESS 1681s /tmp/tmp.LqUb3uV7We/ru_RU.utf8/LC_TELEPHONE 1681s /tmp/tmp.LqUb3uV7We/ru_RU.utf8/LC_MEASUREMENT 1681s /tmp/tmp.LqUb3uV7W1..330 1681s # Running test: glib/reference.test 1681s e/ru_RU.utf8/LC_IDENTIFICATION 1681s /tmp/tmp.LqUb3uV7We/sr_RS 1681s /tmp/tmp.LqUb3uV7We/sr_RS/LC_CTYPE 1681s /tmp/tmp.LqUb3uV7We/sr_RS/LC_NUMERIC 1681s /tmp/tmp.LqUb3uV7We/sr_RS/LC_TIME 1681s /tmp/tmp.LqUb3uV7We/sr_RS/LC_COLLATE 1681s /tmp/tmp.LqUb3uV7We/sr_RS/LC_MONETARY 1681s /tmp/tmp.LqUb3uV7We/sr_RS/LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/sr_RS/LC_MESSAGES/SYS_LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/sr_RS/LC_PAPER 1681s /tmp/tmp.LqUb3uV7We/sr_RS/LC_NAME 1681s /tmp/tmp.LqUb3uV7We/sr_RS/LC_ADDRESS 1681s /tmp/tmp.LqUb3uV7We/sr_RS/LC_TELEPHONE 1681s /tmp/tmp.LqUb3uV7We/sr_RS/LC_MEASUREMENT 1681s /tmp/tmp.LqUb3uV7We/sr_RS/LC_IDENTIFICATION 1681s /tmp/tmp.LqUb3uV7We/sr_RS@latin 1681s /tmp/tmp.LqUb3uV7We/sr_RS@latin/LC_CTYPE 1681s /tmp/tmp.LqUb3uV7We/sr_RS@latin/LC_NUMERIC 1681s /tmp/tmp.LqUb3uV7We/sr_RS@latin/LC_TIME 1681s /tmp/tmp.LqUb3uV7We/sr_RS@latin/LC_COLLATE 1681s /tmp/tmp.LqUb3uV7We/sr_RS@latin/LC_MONETARY 1681s /tmp/tmp.LqUb3uV7We/sr_RS@latin/LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/sr_RS@latin/LC_MESSAGES/SYS_LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/sr_RS@latin/LC_PAPER 1681s /tmp/tmp.LqUb3uV7We/sr_RS@latin/LC_NAME 1681s /tmp/tmp.LqUb3uV7We/sr_RS@latin/LC_ADDRESS 1681s /tmp/tmp.LqUb3uV7We/sr_RS@latin/LC_TELEPHONE 1681s /tmp/tmp.LqUb3uV7We/sr_RS@latin/LC_MEASUREMENT 1681s /tmp/tmp.LqUb3uV7We/sr_RS@latin/LC_IDENTIFICATION 1681s /tmp/tmp.LqUb3uV7We/sv_SE 1681s /tmp/tmp.LqUb3uV7We/sv_SE/LC_CTYPE 1681s /tmp/tmp.LqUb3uV7We/sv_SE/LC_NUMERIC 1681s /tmp/tmp.LqUb3uV7We/sv_SE/LC_TIME 1681s /tmp/tmp.LqUb3uV7We/sv_SE/LC_COLLATE 1681s /tmp/tmp.LqUb3uV7We/sv_SE/LC_MONETARY 1681s /tmp/tmp.LqUb3uV7We/sv_SE/LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/sv_SE/LC_MESSAGES/SYS_LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/sv_SE/LC_PAPER 1681s /tmp/tmp.LqUb3uV7We/sv_SE/LC_NAME 1681s /tmp/tmp.LqUb3uV7We/sv_SE/LC_ADDRESS 1681s /tmp/tmp.LqUb3uV7We/sv_SE/LC_TELEPHONE 1681s /tmp/tmp.LqUb3uV7We/sv_SE/LC_MEASUREMENT 1681s /tmp/tmp.LqUb3uV7We/sv_SE/LC_IDENTIFICATION 1681s /tmp/tmp.LqUb3uV7We/sv_SE.utf8 1681s /tmp/tmp.LqUb3uV7We/sv_SE.utf8/LC_CTYPE 1681s /tmp/tmp.LqUb3uV7We/sv_SE.utf8/LC_NUMERIC 1681s /tmp/tmp.LqUb3uV7We/sv_SE.utf8/LC_TIME 1681s /tmp/tmp.LqUb3uV7We/sv_SE.utf8/LC_COLLATE 1681s /tmp/tmp.LqUb3uV7We/sv_SE.utf8/LC_MONETARY 1681s /tmp/tmp.LqUb3uV7We/sv_SE.utf8/LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/sv_SE.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/sv_SE.utf8/LC_PAPER 1681s /tmp/tmp.LqUb3uV7We/sv_SE.utf8/LC_NAME 1681s /tmp/tmp.LqUb3uV7We/sv_SE.utf8/LC_ADDRESS 1681s /tmp/tmp.LqUb3uV7We/sv_SE.utf8/LC_TELEPHONE 1681s /tmp/tmp.LqUb3uV7We/sv_SE.utf8/LC_MEASUREMENT 1681s /tmp/tmp.LqUb3uV7We/sv_SE.utf8/LC_IDENTIFICATION 1681s /tmp/tmp.LqUb3uV7We/tr_TR 1681s /tmp/tmp.LqUb3uV7We/tr_TR/LC_CTYPE 1681s /tmp/tmp.LqUb3uV7We/tr_TR/LC_NUMERIC 1681s /tmp/tmp.LqUb3uV7We/tr_TR/LC_TIME 1681s /tmp/tmp.LqUb3uV7We/tr_TR/LC_COLLATE 1681s /tmp/tmp.LqUb3uV7We/tr_TR/LC_MONETARY 1681s /tmp/tmp.LqUb3uV7We/tr_TR/LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/tr_TR/LC_MESSAGES/SYS_LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/tr_TR/LC_PAPER 1681s /tmp/tmp.LqUb3uV7We/tr_TR/LC_NAME 1681s /tmp/tmp.LqUb3uV7We/tr_TR/LC_ADDRESS 1681s /tmp/tmp.LqUb3uV7We/tr_TR/LC_TELEPHONE 1681s /tmp/tmp.LqUb3uV7We/tr_TR/LC_MEASUREMENT 1681s /tmp/tmp.LqUb3uV7We/tr_TR/LC_IDENTIFICATION 1681s /tmp/tmp.LqUb3uV7We/tr_TR.utf8 1681s /tmp/tmp.LqUb3uV7We/tr_TR.utf8/LC_CTYPE 1681s /tmp/tmp.LqUb3uV7We/tr_TR.utf8/LC_NUMERIC 1681s /tmp/tmp.LqUb3uV7We/tr_TR.utf8/LC_TIME 1681s /tmp/tmp.LqUb3uV7We/tr_TR.utf8/LC_COLLATE 1681s /tmp/tmp.LqUb3uV7We/tr_TR.utf8/LC_MONETARY 1681s /tmp/tmp.LqUb3uV7We/tr_TR.utf8/LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/tr_TR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/tr_TR.utf8/LC_PAPER 1681s /tmp/tmp.LqUb3uV7We/tr_TR.utf8/LC_NAME 1681s /tmp/tmp.LqUb3uV7We/tr_TR.utf8/LC_ADDRESS 1681s /tmp/tmp.LqUb3uV7We/tr_TR.utf8/LC_TELEPHONE 1681s /tmp/tmp.LqUb3uV7We/tr_TR.utf8/LC_MEASUREMENT 1681s /tmp/tmp.LqUb3uV7We/tr_TR.utf8/LC_IDENTIFICATION 1681s /tmp/tmp.LqUb3uV7We/tt_RU 1681s /tmp/tmp.LqUb3uV7We/tt_RU/LC_CTYPE 1681s /tmp/tmp.LqUb3uV7We/tt_RU/LC_NUMERIC 1681s /tmp/tmp.LqUb3uV7We/tt_RU/LC_TIME 1681s /tmp/tmp.LqUb3uV7We/tt_RU/LC_COLLATE 1681s /tmp/tmp.LqUb3uV7We/tt_RU/LC_MONETARY 1681s /tmp/tmp.LqUb3uV7We/tt_RU/LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/tt_RU/LC_MESSAGES/SYS_LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/tt_RU/LC_PAPER 1681s /tmp/tmp.LqUb3uV7We/tt_RU/LC_NAME 1681s /tmp/tmp.LqUb3uV7We/tt_RU/LC_ADDRESS 1681s /tmp/tmp.LqUb3uV7We/tt_RU/LC_TELEPHONE 1681s /tmp/tmp.LqUb3uV7We/tt_RU/LC_MEASUREMENT 1681s /tmp/tmp.LqUb3uV7We/tt_RU/LC_IDENTIFICATION 1681s /tmp/tmp.LqUb3uV7We/tt_RU.utf8 1681s /tmp/tmp.LqUb3uV7We/tt_RU.utf8/LC_CTYPE 1681s /tmp/tmp.LqUb3uV7We/tt_RU.utf8/LC_NUMERIC 1681s /tmp/tmp.LqUb3uV7We/tt_RU.utf8/LC_TIME 1681s /tmp/tmp.LqUb3uV7We/tt_RU.utf8/LC_COLLATE 1681s /tmp/tmp.LqUb3uV7We/tt_RU.utf8/LC_MONETARY 1681s /tmp/tmp.LqUb3uV7We/tt_RU.utf8/LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/tt_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/tt_RU.utf8/LC_PAPER 1681s /tmp/tmp.LqUb3uV7We/tt_RU.utf8/LC_NAME 1681s /tmp/tmp.LqUb3uV7We/tt_RU.utf8/LC_ADDRESS 1681s /tmp/tmp.LqUb3uV7We/tt_RU.utf8/LC_TELEPHONE 1681s /tmp/tmp.LqUb3uV7We/tt_RU.utf8/LC_MEASUREMENT 1681s /tmp/tmp.LqUb3uV7We/tt_RU.utf8/LC_IDENTIFICATION 1681s /tmp/tmp.LqUb3uV7We/tt_RU@iqtelif 1681s /tmp/tmp.LqUb3uV7We/tt_RU@iqtelif/LC_CTYPE 1681s /tmp/tmp.LqUb3uV7We/tt_RU@iqtelif/LC_NUMERIC 1681s /tmp/tmp.LqUb3uV7We/tt_RU@iqtelif/LC_TIME 1681s /tmp/tmp.LqUb3uV7We/tt_RU@iqtelif/LC_COLLATE 1681s /tmp/tmp.LqUb3uV7We/tt_RU@iqtelif/LC_MONETARY 1681s /tmp/tmp.LqUb3uV7We/tt_RU@iqtelif/LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/tt_RU@iqtelif/LC_MESSAGES/SYS_LC_MESSAGES 1681s /tmp/tmp.LqUb3uV7We/tt_RU@iqtelif/LC_PAPER 1681s /tmp/tmp.LqUb3uV7We/tt_RU@iqtelif/LC_NAME 1681s /tmp/tmp.LqUb3uV7We/tt_RU@iqtelif/LC_ADDRESS 1681s /tmp/tmp.LqUb3uV7We/tt_RU@iqtelif/LC_TELEPHONE 1681s /tmp/tmp.LqUb3uV7We/tt_RU@iqtelif/LC_MEASUREMENT 1681s /tmp/tmp.LqUb3uV7We/tt_RU@iqtelif/LC_IDENTIFICATION 1681s TAP version 14 1681s # random seed: R02S930c77f532e3999f1ab00a5a12f8dcb0 1681s 1..29 1681s # Start of type tests 1681s ok 1 /type/fundamentals 1681s ok 2 /type/qdata 1681s ok 3 /type/query 1681s ok 4 /type/class-private 1681s # End of type tests 1681s # Start of object tests 1681s ok 5 /object/clear 1681s ok 6 /object/clear-function 1681s ok 7 /object/set 1681s ok 8 /object/set-function 1681s ok 9 /object/value 1681s ok 10 /object/initially-unowned 1681s ok 11 /object/weak-pointer 1681s ok 12 /object/weak-ref 1681s ok 13 /object/toggle-ref 1681s ok 14 /object/qdata 1681s ok 15 /object/qdata2 1681s # Start of set tests 1681s # /object/set/derived-type summary: Check that g_set_object() doesn’t give strict aliasing warnings when used on types derived from GObject 1681s ok 16 /object/set/derived-type 1681s # End of set tests 1681s # Start of weak-pointer tests 1681s ok 17 /object/weak-pointer/clear 1681s ok 18 /object/weak-pointer/clear-function 1681s ok 19 /object/weak-pointer/set 1681s ok 20 /object/weak-pointer/set-function 1681s # End of weak-pointer tests 1681s # Start of weak-ref tests 1681s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1681s # /object/weak-ref/on-dispose summary: Test that a weak ref set during dispose vfunc is cleared 1681s ok 21 /object/weak-ref/on-dispose 1681s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/865 1681s # /object/weak-ref/on-run-dispose summary: Test that a weak ref is cleared on g_object_run_dispose() 1681s ok 22 /object/weak-ref/on-run-dispose 1681s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1681s # /object/weak-ref/on-toggle-notify summary: Test that a weak ref set on toggle notify is cleared 1681s ok 23 /object/weak-ref/on-toggle-notify 1681s ok 24 /object/weak-ref/in-toggle-notify 1681s ok 25 /object/weak-ref/many 1681s # Start of concurrent tests 1681s ok 26 /object/weak-ref/concurrent/0 1681s ok 27 /object/weak-ref/concurrent/1 1681s # End of concurrent tests 1681s # End of weak-ref tests 1681s # Start of toggle-ref tests 1681s ok 28 /object/toggle-ref/ref-on-dispose 1681s ok 29 /object/toggle-ref/ref-and-notify-on-dispose 1681s # End of toggle-ref tests 1681s # End of object tests 1681s ok - glib/reference.test 1681s # Running test: glib/thread-deprecated.test 1681s TAP version 14 1681s # random seed: R02S712dec50a721ec237e36cabe4c3df6bc 1681s 1..6 1681s # Start of thread tests 1681s ok 1 /thread/mutex 1681s ok 2 /thread/static-rec-mutex 1686s ok 3 /thread/static-private 1686s # slow test /thread/static-private executed in 4.41 secs 1686s # Executing: glib/thread-deprecated.test 1691s ok 4 /thread/static-rw-lock 1691s # slow test /thread/static-rw-lock executed in 5.00 secs 1691s ok 5 /thread/once 1691s # Executing: glib/thread-deprecated.test 1696s # Executing: glib/thread-deprecated.test 1701s ok 6 /thread/rerun-all 1701s # slow test /thread/rerun-all executed in 10.03 secs 1701s # End of thread tests 1701s ok - glib/thread-deprecated.test 1701s # Running test: glib/enums.test 1701s TAP version 14 1701s # random seed: R02S76522ea6a40ba01ca7348ea21cfcb787 1701s 1..4 1701s # Start of enum tests 1701s ok 1 /enum/basic 1701s ok 2 /enum/define-type 1701s # End of enum tests 1701s # Start of flags tests 1701s ok 3 /flags/basic 1701s ok 4 /flags/define-type 1701s # End of flags tests 1701s ok - glib/enums.test 1701s # Running test: glib/memory-input-stream.test 1701s TAP version 14 1701s # random seed: R02S6f1696862dd4d4299d5f10000979148b 1701s 1..6 1701s # Start of memory-input-stream tests 1701s ok 1 /memory-input-stream/read-chunks 1701s ok 2 /memory-input-stream/async 1701s ok 3 /memory-input-stream/seek 1701s ok 4 /memory-input-stream/truncate 1701s ok 5 /memory-input-stream/read-bytes 1701s ok 6 /memory-input-stream/from-bytes 1701s # End of memory-input-stream tests 1701s ok - glib/memory-input-stream.test 1701s # Running test: glib/file-enumerator.test 1701s TAP version 14 1701s # random seed: R02S05981445aed996dd15d897387a752753 1701s 1..1 1701s # Start of file-enumerator tests 1701s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1701s ok 1 /file-enumerator/close-on-dispose 1701s # End of file-enumerator tests 1701s ok - glib/file-enumerator.test 1701s # Running test: glib/gdbus-close-pending.test 1701s TAP version 14 1701s # random seed: R02S12c3d833e204f41c416f49cc8bc77109 1701s 1..2 1701s # Start of gdbus tests 1701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-close-pending_HWKGC3/gdbus/close-pending/.dirs/home 1701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-close-pending_HWKGC3/gdbus/close-pending/.dirs/cache 1701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-close-pending_HWKGC3/gdbus/close-pending/.dirs/system-config1:/tmp/test_gdbus-close-pending_HWKGC3/gdbus/close-pending/.dirs/system-config2 1701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-close-pending_HWKGC3/gdbus/close-pending/.dirs/config 1701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-close-pending_HWKGC3/gdbus/close-pending/.dirs/system-data1:/tmp/test_gdbus-close-pending_HWKGC3/gdbus/close-pending/.dirs/system-data2 1701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-close-pending_HWKGC3/gdbus/close-pending/.dirs/data 1701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-close-pending_HWKGC3/gdbus/close-pending/.dirs/state 1701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-close-pending_HWKGC3/gdbus/close-pending/.dirs/runtime 1701s ok 1 /gdbus/close-pending 1701s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-close-pending_HWKGC3/gdbus/unref-pending/.dirs/home 1701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-close-pending_HWKGC3/gdbus/unref-pending/.dirs/cache 1701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-close-pending_HWKGC3/gdbus/unref-pending/.dirs/system-config1:/tmp/test_gdbus-close-pending_HWKGC3/gdbus/unref-pending/.dirs/system-config2 1701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-close-pending_HWKGC3/gdbus/unref-pending/.dirs/config 1701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-close-pending_HWKGC3/gdbus/unref-pending/.dirs/system-data1:/tmp/test_gdbus-close-pending_HWKGC3/gdbus/unref-pending/.dirs/system-data2 1701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-close-pending_HWKGC3/gdbus/unref-pending/.dirs/data 1701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-close-pending_HWKGC3/gdbus/unref-pending/.dirs/state 1701s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-close-pending_HWKGC3/gdbus/unref-pending/.dirs/runtime 1701s # Executing: glib/gdbus-close-pending.test 1702s ok 2 /gdbus/unref-pending 1702s # End of gdbus tests 1702s ok - glib/gdbus-close-pending.test 1702s # Running test: glib/gdbus-test-codegen-old.test 1702s TAP version 14 1702s # random seed: R02S4fc10262ad56725dc66d11c27392a2a7 1702s 1..8 1702s # Start of gdbus tests 1702s # Start of codegen tests 1702s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/annotations/.dirs/home 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/annotations/.dirs/cache 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/annotations/.dirs/system-config2 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/annotations/.dirs/config 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/annotations/.dirs/system-data2 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/annotations/.dirs/data 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/annotations/.dirs/state 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/annotations/.dirs/runtime 1702s ok 1 /gdbus/codegen/annotations 1702s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/interface_stability/.dirs/home 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/interface_stability/.dirs/cache 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/interface_stability/.dirs/system-config2 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/interface_stability/.dirs/config 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/interface_stability/.dirs/system-data2 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/interface_stability/.dirs/data 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/interface_stability/.dirs/state 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/interface_stability/.dirs/runtime 1702s ok 2 /gdbus/codegen/interface_stability 1702s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/object-manager/.dirs/home 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/object-manager/.dirs/cache 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/object-manager/.dirs/system-config2 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/object-manager/.dirs/config 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/object-manager/.dirs/system-data2 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/object-manager/.dirs/data 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/object-manager/.dirs/state 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/object-manager/.dirs/runtime 1702s ok 3 /gdbus/codegen/object-manager 1702s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/property-naming/.dirs/home 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/property-naming/.dirs/cache 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/property-naming/.dirs/system-config2 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/property-naming/.dirs/config 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/property-naming/.dirs/system-data2 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/property-naming/.dirs/data 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/property-naming/.dirs/state 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/property-naming/.dirs/runtime 1702s ok 4 /gdbus/codegen/property-naming 1702s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/autocleanups/.dirs/home 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/autocleanups/.dirs/cache 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/autocleanups/.dirs/system-config2 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/autocleanups/.dirs/config 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/autocleanups/.dirs/system-data2 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/autocleanups/.dirs/data 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/autocleanups/.dirs/state 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/autocleanups/.dirs/runtime 1702s ok 5 /gdbus/codegen/autocleanups 1702s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/deprecations/.dirs/home 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/deprecations/.dirs/cache 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/deprecations/.dirs/system-config2 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/deprecations/.dirs/config 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/deprecations/.dirs/system-data2 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/deprecations/.dirs/data 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/deprecations/.dirs/state 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/deprecations/.dirs/runtime 1702s ok 6 /gdbus/codegen/deprecations 1702s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/standalone-interface-info/.dirs/home 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/standalone-interface-info/.dirs/cache 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/standalone-interface-info/.dirs/system-config2 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/standalone-interface-info/.dirs/config 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/standalone-interface-info/.dirs/system-data2 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/standalone-interface-info/.dirs/data 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/standalone-interface-info/.dirs/state 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/standalone-interface-info/.dirs/runtime 1702s ok 7 /gdbus/codegen/standalone-interface-info 1702s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/unix-fd-list/.dirs/home 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/unix-fd-list/.dirs/cache 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/unix-fd-list/.dirs/system-config2 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/unix-fd-list/.dirs/config 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/unix-fd-list/.dirs/system-data2 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/unix-fd-list/.dirs/data 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/unix-fd-list/.dirs/state 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_HVXAC3/gdbus/codegen/unix-fd-list/.dirs/runtime 1702s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 1702s ok 8 /gdbus/codegen/unix-fd-list 1702s # End of codegen tests 1702s # End of gdbus tests 1702s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1702s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1702s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1702s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1702s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1702s ok - glib/gdbus-test-codegen-old.test 1702s # Running test: glib/mount-operation.test 1702s TAP version 14 1702s # random seed: R02S4b96ef7c0fc5c475dbd30e700123ce36 1702s 1..2 1702s # Start of mount-operation tests 1702s ok 1 /mount-operation/construction 1702s ok 2 /mount-operation/properties 1702s # End of mount-operation tests 1702s ok - glib/mount-operation.test 1702s # Running test: glib/gdbus-peer.test 1702s TAP version 14 1702s # random seed: R02Sa9b14238fbb4dae4cdc94af077f2b9fe 1702s 1..12 1702s # Start of gdbus tests 1702s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/.dirs/home 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/.dirs/cache 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/.dirs/system-config1:/tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/.dirs/system-config2 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/.dirs/config 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/.dirs/system-data1:/tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/.dirs/system-data2 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/.dirs/data 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/.dirs/state 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/.dirs/runtime 1702s # Testing with unix:dir address 1702s # Testing with unix:tmpdir address 1702s # Testing with unix:path address 1702s ok 1 /gdbus/peer-to-peer 1702s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/delayed-message-processing/.dirs/home 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/delayed-message-processing/.dirs/cache 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_OJLEC3/gdbus/delayed-message-processing/.dirs/system-config1:/tmp/test_gdbus-peer_OJLEC3/gdbus/delayed-message-processing/.dirs/system-config2 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/delayed-message-processing/.dirs/config 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_OJLEC3/gdbus/delayed-message-processing/.dirs/system-data1:/tmp/test_gdbus-peer_OJLEC3/gdbus/delayed-message-processing/.dirs/system-data2 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/delayed-message-processing/.dirs/data 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/delayed-message-processing/.dirs/state 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_OJLEC3/gdbus/delayed-message-processing/.dirs/runtime 1702s # Testing with unix:dir address 1702s ok 2 /gdbus/delayed-message-processing 1702s # slow test /gdbus/delayed-message-processing executed in 0.52 secs 1702s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/nonce-tcp/.dirs/home 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/nonce-tcp/.dirs/cache 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_OJLEC3/gdbus/nonce-tcp/.dirs/system-config1:/tmp/test_gdbus-peer_OJLEC3/gdbus/nonce-tcp/.dirs/system-config2 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/nonce-tcp/.dirs/config 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_OJLEC3/gdbus/nonce-tcp/.dirs/system-data1:/tmp/test_gdbus-peer_OJLEC3/gdbus/nonce-tcp/.dirs/system-data2 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/nonce-tcp/.dirs/data 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/nonce-tcp/.dirs/state 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_OJLEC3/gdbus/nonce-tcp/.dirs/runtime 1702s ok 3 /gdbus/nonce-tcp 1702s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/tcp-anonymous/.dirs/home 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/tcp-anonymous/.dirs/cache 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_OJLEC3/gdbus/tcp-anonymous/.dirs/system-config1:/tmp/test_gdbus-peer_OJLEC3/gdbus/tcp-anonymous/.dirs/system-config2 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/tcp-anonymous/.dirs/config 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_OJLEC3/gdbus/tcp-anonymous/.dirs/system-data1:/tmp/test_gdbus-peer_OJLEC3/gdbus/tcp-anonymous/.dirs/system-data2 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/tcp-anonymous/.dirs/data 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/tcp-anonymous/.dirs/state 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_OJLEC3/gdbus/tcp-anonymous/.dirs/runtime 1702s ok 4 /gdbus/tcp-anonymous 1702s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/credentials/.dirs/home 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/credentials/.dirs/cache 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_OJLEC3/gdbus/credentials/.dirs/system-config1:/tmp/test_gdbus-peer_OJLEC3/gdbus/credentials/.dirs/system-config2 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/credentials/.dirs/config 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_OJLEC3/gdbus/credentials/.dirs/system-data1:/tmp/test_gdbus-peer_OJLEC3/gdbus/credentials/.dirs/system-data2 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/credentials/.dirs/data 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/credentials/.dirs/state 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_OJLEC3/gdbus/credentials/.dirs/runtime 1702s ok 5 /gdbus/credentials 1702s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/codegen-peer-to-peer/.dirs/home 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/codegen-peer-to-peer/.dirs/cache 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_OJLEC3/gdbus/codegen-peer-to-peer/.dirs/system-config1:/tmp/test_gdbus-peer_OJLEC3/gdbus/codegen-peer-to-peer/.dirs/system-config2 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/codegen-peer-to-peer/.dirs/config 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_OJLEC3/gdbus/codegen-peer-to-peer/.dirs/system-data1:/tmp/test_gdbus-peer_OJLEC3/gdbus/codegen-peer-to-peer/.dirs/system-data2 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/codegen-peer-to-peer/.dirs/data 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/codegen-peer-to-peer/.dirs/state 1702s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_OJLEC3/gdbus/codegen-peer-to-peer/.dirs/runtime 1702s # Testing with unix:dir address 1702s # Machine ID: ce6cca3d1db548fa9d45c07e51aed887 1703s ok 6 /gdbus/codegen-peer-to-peer 1703s # slow test /gdbus/codegen-peer-to-peer executed in 1.11 secs 1703s # Start of peer-to-peer tests 1703s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/signals/.dirs/home 1703s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/signals/.dirs/cache 1703s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/signals/.dirs/system-config1:/tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/signals/.dirs/system-config2 1703s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/signals/.dirs/config 1703s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/signals/.dirs/system-data1:/tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/signals/.dirs/system-data2 1703s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/signals/.dirs/data 1703s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/signals/.dirs/state 1703s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/signals/.dirs/runtime 1703s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1620 1703s # Testing with unix:dir address 1703s ok 7 /gdbus/peer-to-peer/signals 1703s # Start of invalid tests 1703s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/server/.dirs/home 1703s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/server/.dirs/cache 1703s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/server/.dirs/system-config1:/tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/server/.dirs/system-config2 1703s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/server/.dirs/config 1703s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/server/.dirs/system-data1:/tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/server/.dirs/system-data2 1703s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/server/.dirs/data 1703s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/server/.dirs/state 1703s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/server/.dirs/runtime 1703s ok 8 /gdbus/peer-to-peer/invalid/server 1703s # Start of conn tests 1703s # Start of stream tests 1703s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/home 1703s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/cache 1703s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-config1:/tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-config2 1703s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/config 1703s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-data1:/tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-data2 1703s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/data 1703s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/state 1703s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/runtime 1704s ok - glib/gdbus-peer.test 1704s # Running test: glib/simple-async-result.test 1704s ok - glib/simple-async-result.test 1704s # Running test: glib/pollable.test 1704s ok 9 /gdbus/peer-to-peer/invalid/conn/stream/async 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-config1:/tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-data1:/tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/runtime 1704s ok 10 /gdbus/peer-to-peer/invalid/conn/stream/sync 1704s # End of stream tests 1704s # Start of addr tests 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-config1:/tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-data1:/tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/runtime 1704s ok 11 /gdbus/peer-to-peer/invalid/conn/addr/async 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-config1:/tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-data1:/tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_OJLEC3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/runtime 1704s ok 12 /gdbus/peer-to-peer/invalid/conn/addr/sync 1704s # End of addr tests 1704s # End of conn tests 1704s # End of invalid tests 1704s # End of peer-to-peer tests 1704s # End of gdbus tests 1704s TAP version 14 1704s # random seed: R02Sa2c38be2e7fe15f4ac81d4cab3fd9094 1704s 1..2 1704s # Start of gio tests 1704s # Start of simple-async-result tests 1704s ok 1 /gio/simple-async-result/test 1704s # GLib-GIO-DEBUG: GTask 0x1f86dd0 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1704s ok 2 /gio/simple-async-result/valid 1704s # End of simple-async-result tests 1704s # End of gio tests 1704s TAP version 14 1704s # random seed: R02Sf713f495269489189541600638415971 1704s 1..6 1704s # Start of pollable tests 1704s ok 1 /pollable/converter 1704s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1704s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x105f1618 and GSocketClientAsyncConnectData 0x105ee870 1704s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1704s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1704s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x105f51f0 for GSocketClientAsyncConnectData 0x105ee870 1704s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1704s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1704s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1704s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1704s ok 2 /pollable/socket 1704s # Start of unix tests 1704s # /pollable/unix/pipe summary: Test that pipes are considered pollable, just like sockets 1704s ok 3 /pollable/unix/pipe 1704s # /pollable/unix/pty summary: Test that PTYs are considered pollable 1704s ok 4 /pollable/unix/pty 1704s # /pollable/unix/file summary: Test that regular files are not considered pollable 1704s ok 5 /pollable/unix/file 1704s # /pollable/unix/nulldev summary: Test that /dev/null is not considered pollable, but only if on a system where we are able to tell it apart from devices that actually implement poll 1704s ok 6 /pollable/unix/nulldev 1704s # End of unix tests 1704s # End of pollable tests 1704s ok - glib/pollable.test 1704s # Running test: glib/gdbus-message.test 1704s TAP version 14 1704s # random seed: R02S531cbabb64a1fada3b4dbd9d7ef4767d 1704s 1..3 1704s # Start of gdbus tests 1704s # Start of message tests 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_CIXCC3/gdbus/message/lock/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_CIXCC3/gdbus/message/lock/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_CIXCC3/gdbus/message/lock/.dirs/system-config1:/tmp/test_gdbus-message_CIXCC3/gdbus/message/lock/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_CIXCC3/gdbus/message/lock/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_CIXCC3/gdbus/message/lock/.dirs/system-data1:/tmp/test_gdbus-message_CIXCC3/gdbus/message/lock/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_CIXCC3/gdbus/message/lock/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_CIXCC3/gdbus/message/lock/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_CIXCC3/gdbus/message/lock/.dirs/runtime 1704s ok 1 /gdbus/message/lock 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_CIXCC3/gdbus/message/copy/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_CIXCC3/gdbus/message/copy/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_CIXCC3/gdbus/message/copy/.dirs/system-config1:/tmp/test_gdbus-message_CIXCC3/gdbus/message/copy/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_CIXCC3/gdbus/message/copy/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_CIXCC3/gdbus/message/copy/.dirs/system-data1:/tmp/test_gdbus-message_CIXCC3/gdbus/message/copy/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_CIXCC3/gdbus/message/copy/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_CIXCC3/gdbus/message/copy/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_CIXCC3/gdbus/message/copy/.dirs/runtime 1704s ok 2 /gdbus/message/copy 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_CIXCC3/gdbus/message/bytes-needed/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_CIXCC3/gdbus/message/bytes-needed/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_CIXCC3/gdbus/message/bytes-needed/.dirs/system-config1:/tmp/test_gdbus-message_CIXCC3/gdbus/message/bytes-needed/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_CIXCC3/gdbus/message/bytes-needed/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_CIXCC3/gdbus/message/bytes-needed/.dirs/system-data1:/tmp/test_gdbus-message_CIXCC3/gdbus/message/bytes-needed/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_CIXCC3/gdbus/message/bytes-needed/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_CIXCC3/gdbus/message/bytes-needed/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_CIXCC3/gdbus/message/bytes-needed/.dirs/runtime 1704s # Vector: 0 1704s # Vector: 1 1704s # Vector: 2 1704s # Vector: 3 1704s # Vector: 4 1704s # Vector: 5 1704s ok - glib/gdbus-message.test 1704s # Running test: glib/fileutils.test 1704s ok 3 /gdbus/message/bytes-needed 1704s # End of message tests 1704s # End of gdbus tests 1704s TAP version 14 1704s # random seed: R02S5900ded91b21f7c9795531f8c58be663 1704s 1..27 1704s # Start of fileutils tests 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_JIFCC3/fileutils/paths/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/paths/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/paths/.dirs/system-config1:/tmp/test_fileutils_JIFCC3/fileutils/paths/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_JIFCC3/fileutils/paths/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/paths/.dirs/system-data1:/tmp/test_fileutils_JIFCC3/fileutils/paths/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_JIFCC3/fileutils/paths/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/paths/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_JIFCC3/fileutils/paths/.dirs/runtime 1704s ok 1 /fileutils/paths 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_JIFCC3/fileutils/build-path/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/build-path/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/build-path/.dirs/system-config1:/tmp/test_fileutils_JIFCC3/fileutils/build-path/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_JIFCC3/fileutils/build-path/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/build-path/.dirs/system-data1:/tmp/test_fileutils_JIFCC3/fileutils/build-path/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_JIFCC3/fileutils/build-path/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/build-path/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_JIFCC3/fileutils/build-path/.dirs/runtime 1704s ok 2 /fileutils/build-path 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_JIFCC3/fileutils/build-pathv/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/build-pathv/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/build-pathv/.dirs/system-config1:/tmp/test_fileutils_JIFCC3/fileutils/build-pathv/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_JIFCC3/fileutils/build-pathv/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/build-pathv/.dirs/system-data1:/tmp/test_fileutils_JIFCC3/fileutils/build-pathv/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_JIFCC3/fileutils/build-pathv/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/build-pathv/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_JIFCC3/fileutils/build-pathv/.dirs/runtime 1704s ok 3 /fileutils/build-pathv 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_JIFCC3/fileutils/build-filename/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/build-filename/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/build-filename/.dirs/system-config1:/tmp/test_fileutils_JIFCC3/fileutils/build-filename/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_JIFCC3/fileutils/build-filename/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/build-filename/.dirs/system-data1:/tmp/test_fileutils_JIFCC3/fileutils/build-filename/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_JIFCC3/fileutils/build-filename/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/build-filename/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_JIFCC3/fileutils/build-filename/.dirs/runtime 1704s ok 4 /fileutils/build-filename 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_JIFCC3/fileutils/build-filenamev/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/build-filenamev/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/build-filenamev/.dirs/system-config1:/tmp/test_fileutils_JIFCC3/fileutils/build-filenamev/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_JIFCC3/fileutils/build-filenamev/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/build-filenamev/.dirs/system-data1:/tmp/test_fileutils_JIFCC3/fileutils/build-filenamev/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_JIFCC3/fileutils/build-filenamev/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/build-filenamev/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_JIFCC3/fileutils/build-filenamev/.dirs/runtime 1704s ok 5 /fileutils/build-filenamev 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_JIFCC3/fileutils/mkdir-with-parents/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/mkdir-with-parents/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/mkdir-with-parents/.dirs/system-config1:/tmp/test_fileutils_JIFCC3/fileutils/mkdir-with-parents/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_JIFCC3/fileutils/mkdir-with-parents/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/mkdir-with-parents/.dirs/system-data1:/tmp/test_fileutils_JIFCC3/fileutils/mkdir-with-parents/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_JIFCC3/fileutils/mkdir-with-parents/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/mkdir-with-parents/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_JIFCC3/fileutils/mkdir-with-parents/.dirs/runtime 1704s # We do not have CAP_DAC_OVERRIDE or equivalent 1704s # Checking g_mkdir_with_parents() in subdir ./hum/ 1704s # Checking g_mkdir_with_parents() in subdir ./hii///haa/hee/ 1704s ok 6 /fileutils/mkdir-with-parents 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_JIFCC3/fileutils/mkdir-with-parents-permission/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/mkdir-with-parents-permission/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/mkdir-with-parents-permission/.dirs/system-config1:/tmp/test_fileutils_JIFCC3/fileutils/mkdir-with-parents-permission/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_JIFCC3/fileutils/mkdir-with-parents-permission/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/mkdir-with-parents-permission/.dirs/system-data1:/tmp/test_fileutils_JIFCC3/fileutils/mkdir-with-parents-permission/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_JIFCC3/fileutils/mkdir-with-parents-permission/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/mkdir-with-parents-permission/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_JIFCC3/fileutils/mkdir-with-parents-permission/.dirs/runtime 1704s # We do not have CAP_DAC_OVERRIDE or equivalent 1704s ok 7 /fileutils/mkdir-with-parents-permission 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_JIFCC3/fileutils/format-size-for-display/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/format-size-for-display/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/format-size-for-display/.dirs/system-config1:/tmp/test_fileutils_JIFCC3/fileutils/format-size-for-display/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_JIFCC3/fileutils/format-size-for-display/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/format-size-for-display/.dirs/system-data1:/tmp/test_fileutils_JIFCC3/fileutils/format-size-for-display/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_JIFCC3/fileutils/format-size-for-display/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/format-size-for-display/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_JIFCC3/fileutils/format-size-for-display/.dirs/runtime 1704s ok 8 /fileutils/format-size-for-display 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_JIFCC3/fileutils/errors/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/errors/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/errors/.dirs/system-config1:/tmp/test_fileutils_JIFCC3/fileutils/errors/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_JIFCC3/fileutils/errors/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/errors/.dirs/system-data1:/tmp/test_fileutils_JIFCC3/fileutils/errors/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_JIFCC3/fileutils/errors/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/errors/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_JIFCC3/fileutils/errors/.dirs/runtime 1704s ok 9 /fileutils/errors 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_JIFCC3/fileutils/basename/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/basename/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/basename/.dirs/system-config1:/tmp/test_fileutils_JIFCC3/fileutils/basename/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_JIFCC3/fileutils/basename/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/basename/.dirs/system-data1:/tmp/test_fileutils_JIFCC3/fileutils/basename/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_JIFCC3/fileutils/basename/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/basename/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_JIFCC3/fileutils/basename/.dirs/runtime 1704s ok 10 /fileutils/basename 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_JIFCC3/fileutils/get-basename/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/get-basename/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/get-basename/.dirs/system-config1:/tmp/test_fileutils_JIFCC3/fileutils/get-basename/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_JIFCC3/fileutils/get-basename/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/get-basename/.dirs/system-data1:/tmp/test_fileutils_JIFCC3/fileutils/get-basename/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_JIFCC3/fileutils/get-basename/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/get-basename/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_JIFCC3/fileutils/get-basename/.dirs/runtime 1704s ok 11 /fileutils/get-basename 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_JIFCC3/fileutils/dirname/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/dirname/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/dirname/.dirs/system-config1:/tmp/test_fileutils_JIFCC3/fileutils/dirname/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_JIFCC3/fileutils/dirname/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/dirname/.dirs/system-data1:/tmp/test_fileutils_JIFCC3/fileutils/dirname/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_JIFCC3/fileutils/dirname/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/dirname/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_JIFCC3/fileutils/dirname/.dirs/runtime 1704s ok 12 /fileutils/dirname 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_JIFCC3/fileutils/dir-make-tmp/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/dir-make-tmp/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/dir-make-tmp/.dirs/system-config1:/tmp/test_fileutils_JIFCC3/fileutils/dir-make-tmp/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_JIFCC3/fileutils/dir-make-tmp/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/dir-make-tmp/.dirs/system-data1:/tmp/test_fileutils_JIFCC3/fileutils/dir-make-tmp/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_JIFCC3/fileutils/dir-make-tmp/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/dir-make-tmp/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_JIFCC3/fileutils/dir-make-tmp/.dirs/runtime 1704s ok 13 /fileutils/dir-make-tmp 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_JIFCC3/fileutils/file-open-tmp/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/file-open-tmp/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/file-open-tmp/.dirs/system-config1:/tmp/test_fileutils_JIFCC3/fileutils/file-open-tmp/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_JIFCC3/fileutils/file-open-tmp/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/file-open-tmp/.dirs/system-data1:/tmp/test_fileutils_JIFCC3/fileutils/file-open-tmp/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_JIFCC3/fileutils/file-open-tmp/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/file-open-tmp/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_JIFCC3/fileutils/file-open-tmp/.dirs/runtime 1704s ok 14 /fileutils/file-open-tmp 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_JIFCC3/fileutils/file-test/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/file-test/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/file-test/.dirs/system-config1:/tmp/test_fileutils_JIFCC3/fileutils/file-test/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_JIFCC3/fileutils/file-test/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/file-test/.dirs/system-data1:/tmp/test_fileutils_JIFCC3/fileutils/file-test/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_JIFCC3/fileutils/file-test/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/file-test/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_JIFCC3/fileutils/file-test/.dirs/runtime 1704s ok 15 /fileutils/file-test 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_JIFCC3/fileutils/mkstemp/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/mkstemp/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/mkstemp/.dirs/system-config1:/tmp/test_fileutils_JIFCC3/fileutils/mkstemp/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_JIFCC3/fileutils/mkstemp/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/mkstemp/.dirs/system-data1:/tmp/test_fileutils_JIFCC3/fileutils/mkstemp/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_JIFCC3/fileutils/mkstemp/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/mkstemp/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_JIFCC3/fileutils/mkstemp/.dirs/runtime 1704s ok 16 /fileutils/mkstemp 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_JIFCC3/fileutils/mkdtemp/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/mkdtemp/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/mkdtemp/.dirs/system-config1:/tmp/test_fileutils_JIFCC3/fileutils/mkdtemp/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_JIFCC3/fileutils/mkdtemp/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/mkdtemp/.dirs/system-data1:/tmp/test_fileutils_JIFCC3/fileutils/mkdtemp/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_JIFCC3/fileutils/mkdtemp/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/mkdtemp/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_JIFCC3/fileutils/mkdtemp/.dirs/runtime 1704s ok 17 /fileutils/mkdtemp 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_JIFCC3/fileutils/get-contents/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/get-contents/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/get-contents/.dirs/system-config1:/tmp/test_fileutils_JIFCC3/fileutils/get-contents/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_JIFCC3/fileutils/get-contents/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/get-contents/.dirs/system-data1:/tmp/test_fileutils_JIFCC3/fileutils/get-contents/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_JIFCC3/fileutils/get-contents/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/get-contents/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_JIFCC3/fileutils/get-contents/.dirs/runtime 1704s ok 18 /fileutils/get-contents 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_JIFCC3/fileutils/get-contents-large-file/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/get-contents-large-file/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/get-contents-large-file/.dirs/system-config1:/tmp/test_fileutils_JIFCC3/fileutils/get-contents-large-file/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_JIFCC3/fileutils/get-contents-large-file/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/get-contents-large-file/.dirs/system-data1:/tmp/test_fileutils_JIFCC3/fileutils/get-contents-large-file/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_JIFCC3/fileutils/get-contents-large-file/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/get-contents-large-file/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_JIFCC3/fileutils/get-contents-large-file/.dirs/runtime 1704s ok 19 /fileutils/get-contents-large-file # SKIP Skipping slow largefile test 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_JIFCC3/fileutils/set-contents/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/set-contents/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/set-contents/.dirs/system-config1:/tmp/test_fileutils_JIFCC3/fileutils/set-contents/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_JIFCC3/fileutils/set-contents/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/set-contents/.dirs/system-data1:/tmp/test_fileutils_JIFCC3/fileutils/set-contents/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_JIFCC3/fileutils/set-contents/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/set-contents/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_JIFCC3/fileutils/set-contents/.dirs/runtime 1704s ok 20 /fileutils/set-contents 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_JIFCC3/fileutils/set-contents-full/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/set-contents-full/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/set-contents-full/.dirs/system-config1:/tmp/test_fileutils_JIFCC3/fileutils/set-contents-full/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_JIFCC3/fileutils/set-contents-full/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/set-contents-full/.dirs/system-data1:/tmp/test_fileutils_JIFCC3/fileutils/set-contents-full/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_JIFCC3/fileutils/set-contents-full/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/set-contents-full/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_JIFCC3/fileutils/set-contents-full/.dirs/runtime 1704s # /fileutils/set-contents-full summary: Test g_file_set_contents_full() with various flags 1704s # Flags 0 and test 0 1704s # Flags 0 and test 1 1704s # Flags 0 and test 2 1704s # Flags 0 and test 3 1704s # Flags 0 and test 4 1704s # Flags 0 and test 5 1704s # Flags 0 and test 6 1704s # Flags 1 and test 0 1704s # Flags 1 and test 1 1704s # Flags 1 and test 2 1704s # Flags 1 and test 3 1704s # Flags 1 and test 4 1704s # Flags 1 and test 5 1704s # Flags 1 and test 6 1704s # Flags 2 and test 0 1704s # Flags 2 and test 1 1704s # Flags 2 and test 2 1704s # Flags 2 and test 3 1704s # Flags 2 and test 4 1704s # Flags 2 and test 5 1704s # Flags 2 and test 6 1704s # Flags 3 and test 0 1704s # Flags 3 and test 1 1704s # Flags 3 and test 2 1704s # Flags 3 and test 3 1704s # Flags 3 and test 4 1704s # Flags 3 and test 5 1704s # Flags 3 and test 6 1704s # Flags 4 and test 0 1704s # Flags 4 and test 1 1704s # Flags 4 and test 2 1704s # Flags 4 and test 3 1704s # Flags 4 and test 4 1704s # Flags 4 and test 5 1704s # Flags 4 and test 6 1704s # Flags 5 and test 0 1704s # Flags 5 and test 1 1704s # Flags 5 and test 2 1704s # Flags 5 and test 3 1704s # Flags 5 and test 4 1704s # Flags 5 and test 5 1704s # Flags 5 and test 6 1704s # Flags 6 and test 0 1704s # Flags 6 and test 1 1704s # Flags 6 and test 2 1704s # Flags 6 and test 3 1704s # Flags 6 and test 4 1704s # Flags 6 and test 5 1704s # Flags 6 and test 6 1704s ok 21 /fileutils/set-contents-full 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_JIFCC3/fileutils/read-link/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/read-link/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/read-link/.dirs/system-config1:/tmp/test_fileutils_JIFCC3/fileutils/read-link/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_JIFCC3/fileutils/read-link/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/read-link/.dirs/system-data1:/tmp/test_fileutils_JIFCC3/fileutils/read-link/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_JIFCC3/fileutils/read-link/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/read-link/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_JIFCC3/fileutils/read-link/.dirs/runtime 1704s ok 22 /fileutils/read-link 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_JIFCC3/fileutils/stdio-wrappers/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/stdio-wrappers/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/stdio-wrappers/.dirs/system-config1:/tmp/test_fileutils_JIFCC3/fileutils/stdio-wrappers/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_JIFCC3/fileutils/stdio-wrappers/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/stdio-wrappers/.dirs/system-data1:/tmp/test_fileutils_JIFCC3/fileutils/stdio-wrappers/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_JIFCC3/fileutils/stdio-wrappers/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/stdio-wrappers/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_JIFCC3/fileutils/stdio-wrappers/.dirs/runtime 1704s # We do not have CAP_DAC_OVERRIDE or equivalent 1704s ok 23 /fileutils/stdio-wrappers 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_JIFCC3/fileutils/fopen-modes/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/fopen-modes/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/fopen-modes/.dirs/system-config1:/tmp/test_fileutils_JIFCC3/fileutils/fopen-modes/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_JIFCC3/fileutils/fopen-modes/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/fopen-modes/.dirs/system-data1:/tmp/test_fileutils_JIFCC3/fileutils/fopen-modes/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_JIFCC3/fileutils/fopen-modes/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/fopen-modes/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_JIFCC3/fileutils/fopen-modes/.dirs/runtime 1704s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/119 1704s # Testing fopen() mode 'w' 1704s # Testing fopen() mode 'r' 1704s # Testing fopen() mode 'a' 1704s # Testing fopen() mode 'w+' 1704s # Testing fopen() mode 'r+' 1704s # Testing fopen() mode 'a+' 1704s # Testing fopen() mode 'wb' 1704s # Testing fopen() mode 'rb' 1704s # Testing fopen() mode 'ab' 1704s # Testing fopen() mode 'w+b' 1704s # Testing fopen() mode 'r+b' 1704s # Testing fopen() mode 'a+b' 1704s # Testing fopen() mode 'wb+' 1704s # Testing fopen() mode 'rb+' 1704s # Testing fopen() mode 'ab+' 1704s # Testing fopen() mode 'we' 1704s # Testing fopen() mode 're' 1704s # Testing fopen() mode 'ae' 1704s # Testing fopen() mode 'w+e' 1704s # Testing fopen() mode 'r+e' 1704s # Testing fopen() mode 'a+e' 1704s # Testing fopen() mode 'wbe' 1704s # Testing fopen() mode 'rbe' 1704s # Testing fopen() mode 'abe' 1704s # Testing fopen() mode 'w+be' 1704s # Testing fopen() mode 'r+be' 1704s # Testing fopen() mode 'a+be' 1704s # Testing fopen() mode 'wb+e' 1704s # Testing fopen() mode 'rb+e' 1704s # Testing fopen() mode 'ab+e' 1704s # Testing fopen() mode 'web' 1704s # Testing fopen() mode 'reb' 1704s # Testing fopen() mode 'aeb' 1704s # Testing fopen() mode 'w+eb' 1704s # Testing fopen() mode 'r+eb' 1704s # Testing fopen() mode 'a+eb' 1704s # Testing fopen() mode 'web+' 1704s # Testing fopen() mode 'reb+' 1704s # Testing fopen() mode 'aeb+' 1704s ok 24 /fileutils/fopen-modes 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_JIFCC3/fileutils/clear-fd/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/clear-fd/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/clear-fd/.dirs/system-config1:/tmp/test_fileutils_JIFCC3/fileutils/clear-fd/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_JIFCC3/fileutils/clear-fd/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/clear-fd/.dirs/system-data1:/tmp/test_fileutils_JIFCC3/fileutils/clear-fd/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_JIFCC3/fileutils/clear-fd/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/clear-fd/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_JIFCC3/fileutils/clear-fd/.dirs/runtime 1704s # /fileutils/clear-fd summary: Test g_clear_fd() and g_autofd 1704s # Will be closed by autocleanup: 3, -42 1704s # Testing error handling 1704s ok 25 /fileutils/clear-fd 1704s # Start of set-contents-full tests 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_JIFCC3/fileutils/set-contents-full/read-only-file/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/set-contents-full/read-only-file/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/set-contents-full/read-only-file/.dirs/system-config1:/tmp/test_fileutils_JIFCC3/fileutils/set-contents-full/read-only-file/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_JIFCC3/fileutils/set-contents-full/read-only-file/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/set-contents-full/read-only-file/.dirs/system-data1:/tmp/test_fileutils_JIFCC3/fileutils/set-contents-full/read-only-file/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_JIFCC3/fileutils/set-contents-full/read-only-file/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/set-contents-full/read-only-file/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_JIFCC3/fileutils/set-contents-full/read-only-file/.dirs/runtime 1704s # We do not have CAP_DAC_OVERRIDE or equivalent 1704s # /fileutils/set-contents-full/read-only-file summary: Test g_file_set_contents_full() on a read-only file 1704s ok 26 /fileutils/set-contents-full/read-only-file 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_JIFCC3/fileutils/set-contents-full/read-only-directory/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/set-contents-full/read-only-directory/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/set-contents-full/read-only-directory/.dirs/system-config1:/tmp/test_fileutils_JIFCC3/fileutils/set-contents-full/read-only-directory/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_JIFCC3/fileutils/set-contents-full/read-only-directory/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_JIFCC3/fileutils/set-contents-full/read-only-directory/.dirs/system-data1:/tmp/test_fileutils_JIFCC3/fileutils/set-contents-full/read-only-directory/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_JIFCC3/fileutils/set-contents-full/read-only-directory/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_JIFCC3/fileutils/set-contents-full/read-only-directory/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_JIFCC3/fileutils/set-contents-full/read-only-directory/.dirs/runtime 1704s # /fileutils/set-contents-full/read-only-directory summary: Test g_file_set_contents_full() on a file in a read-only directory 1704s # Flags 0 1704s # We do not have CAP_DAC_OVERRIDE or equivalent 1704s # Flags 1 1704s # We do not have CAP_DAC_OVERRIDE or equivalent 1704s # Flags 2 1704s # We do not have CAP_DAC_OVERRIDE or equivalent 1704s # Flags 3 1704s # We do not have CAP_DAC_OVERRIDE or equivalent 1704s # Flags 4 1704s # We do not have CAP_DAC_OVERRIDE or equivalent 1704s # Flags 5 1704s # We do not have CAP_DAC_OVERRIDE or equivalent 1704s # Flags 6 1704s # We do not have CAP_DAC_OVERRIDE or equivalent 1704s ok 27 /fileutils/set-contents-full/read-only-directory 1704s # End of set-contents-full tests 1704s # Start of clear-fd tests 1704s # Start of subprocess tests 1704s # End of subprocess tests 1704s # End of clear-fd tests 1704s # End of fileutils tests 1704s Unable to clean up temporary directory /tmp/test_fileutils_JIFCC3/glib-file-set-contents-full-rodir-B7OEC3: Directory not empty 1704s Unable to clean up temporary directory /tmp/test_fileutils_JIFCC3/glib-file-set-contents-full-rodir-XANEC3: Directory not empty 1704s Unable to clean up temporary directory /tmp/test_fileutils_JIFCC3/glib-file-set-contents-full-rodir-NR2DC3: Directory not empty 1704s Unable to clean up temporary directory /tmp/test_fileutils_JIFCC3/glib-file-set-contents-full-rodir-T50DC3: Directory not empty 1704s Unable to clean up temporary directory /tmp/test_fileutils_JIFCC3/glib-file-set-contents-full-rodir-QU5DC3: Directory not empty 1704s Unable to clean up temporary directory /tmp/test_fileutils_JIFCC3/glib-file-set-contents-full-rodir-M83DC3: Directory not empty 1704s Unable to clean up temporary directory /tmp/test_fileutils_JIFCC3/glib-file-set-contents-full-rodir-EM5DC3: Directory not empty 1704s Unable to clean up temporary directory /tmp/test_fileutils_JIFCC3: Directory not empty 1704s ok - glib/fileutils.test 1704s TAP version 14 1704s # random seed: R02Sbedcc9d3f409d8ee5a0d0e849dc383a0 1704s 1..4 1704s # Start of sandbox tests 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_RJTDC3/sandbox/none/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_RJTDC3/sandbox/none/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_RJTDC3/sandbox/none/.dirs/system-config1:/tmp/test_sandbox_RJTDC3/sandbox/none/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_RJTDC3/sandbox/none/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_RJTDC3/sandbox/none/.dirs/system-data1:/tmp/test_sandbox_RJTDC3/sandbox/none/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_RJTDC3/sandbox/none/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_RJTDC3/sandbox/none/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_RJTDC3/sandbox/none/.dirs/runtime 1704s ok 1 /sandbox/none 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_RJTDC3/sandbox/snap/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_RJTDC3/sandbox/snap/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_RJTDC3/sandbox/snap/.dirs/system-config1:/tmp/test_sandbox_RJTDC3/sandbox/snap/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_RJTDC3/sandbox/snap/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_RJTDC3/sandbox/snap/.dirs/system-data1:/tmp/test_sandbox_RJTDC3/sandbox/snap/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_RJTDC3/sandbox/snap/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_RJTDC3/sandbox/snap/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_RJTDC3/sandbox/snap/.dirs/runtime 1704s # Running test: glib/sandbox.test 1704s # Created snap.yaml in /tmp/test_sandbox_RJTDC3/snap/current/meta/snap.yaml 1704s ok 2 /sandbox/snap 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_RJTDC3/sandbox/classic-snap/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_RJTDC3/sandbox/classic-snap/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_RJTDC3/sandbox/classic-snap/.dirs/system-config1:/tmp/test_sandbox_RJTDC3/sandbox/classic-snap/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_RJTDC3/sandbox/classic-snap/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_RJTDC3/sandbox/classic-snap/.dirs/system-data1:/tmp/test_sandbox_RJTDC3/sandbox/classic-snap/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_RJTDC3/sandbox/classic-snap/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_RJTDC3/sandbox/classic-snap/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_RJTDC3/sandbox/classic-snap/.dirs/runtime 1704s # Created snap.yaml in /tmp/test_sandbox_RJTDC3/snap/current/meta/snap.yaml 1704s ok 3 /sandbox/classic-snap 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_RJTDC3/sandbox/flatpak/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_RJTDC3/sandbox/flatpak/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_RJTDC3/sandbox/flatpak/.dirs/system-config1:/tmp/test_sandbox_RJTDC3/sandbox/flatpak/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_RJTDC3/sandbox/flatpak/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_RJTDC3/sandbox/flatpak/.dirs/system-data1:/tmp/test_sandbox_RJTDC3/sandbox/flatpak/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_RJTDC3/sandbox/flatpak/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_RJTDC3/sandbox/flatpak/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_RJTDC3/sandbox/flatpak/.dirs/runtime 1704s # Creating .flatpak-info in /tmp/test_sandbox_RJTDC3/sandbox/flatpak/.dirs/runtime/.flatpak-info 1704s ok 4 /sandbox/flatpak 1704s # End of sandbox tests 1704s ok - glib/sandbox.test 1704s # Running test: glib/pathbuf.test 1704s TAP version 14 1704s # random seed: R02S96daeb05ab26b1bc82c841a2291a4986 1704s 1..3 1704s # Start of pathbuf tests 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_TSBDC3/pathbuf/init/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_TSBDC3/pathbuf/init/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_TSBDC3/pathbuf/init/.dirs/system-config1:/tmp/test_pathbuf_TSBDC3/pathbuf/init/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_TSBDC3/pathbuf/init/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_TSBDC3/pathbuf/init/.dirs/system-data1:/tmp/test_pathbuf_TSBDC3/pathbuf/init/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_TSBDC3/pathbuf/init/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_TSBDC3/pathbuf/init/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_TSBDC3/pathbuf/init/.dirs/runtime 1704s # Initializing empty path buf 1704s # Initializing with empty path 1704s # Initializing with full path 1704s # Initializing with no path 1704s # Allocating GPathBuf on the heap 1704s ok 1 /pathbuf/init 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_TSBDC3/pathbuf/push-pop/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_TSBDC3/pathbuf/push-pop/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_TSBDC3/pathbuf/push-pop/.dirs/system-config1:/tmp/test_pathbuf_TSBDC3/pathbuf/push-pop/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_TSBDC3/pathbuf/push-pop/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_TSBDC3/pathbuf/push-pop/.dirs/system-data1:/tmp/test_pathbuf_TSBDC3/pathbuf/push-pop/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_TSBDC3/pathbuf/push-pop/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_TSBDC3/pathbuf/push-pop/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_TSBDC3/pathbuf/push-pop/.dirs/runtime 1704s # Pushing relative path component 1704s # Pushing absolute path component 1704s # Popping a path component 1704s # Can't pop the last element of a path buffer 1704s ok 2 /pathbuf/push-pop 1704s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_TSBDC3/pathbuf/filename-extension/.dirs/home 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_TSBDC3/pathbuf/filename-extension/.dirs/cache 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_TSBDC3/pathbuf/filename-extension/.dirs/system-config1:/tmp/test_pathbuf_TSBDC3/pathbuf/filename-extension/.dirs/system-config2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_TSBDC3/pathbuf/filename-extension/.dirs/config 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_TSBDC3/pathbuf/filename-extension/.dirs/system-data1:/tmp/test_pathbuf_TSBDC3/pathbuf/filename-extension/.dirs/system-data2 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_TSBDC3/pathbuf/filename-extension/.dirs/data 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_TSBDC3/pathbuf/filename-extension/.dirs/state 1704s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_TSBDC3/pathbuf/filename-extension/.dirs/runtime 1704s ok 3 /pathbuf/filename-extension 1704s # End of pathbuf tests 1704s ok - glib/pathbuf.test 1704s # Running test: glib/socket.test 1704s TAP version 14 1704s # random seed: R02Sb9ebc3acd6681a3323118cb58780e6ba 1704s 1..30 1704s # Start of socket tests 1705s ok 1 /socket/ipv4_sync 1705s # slow test /socket/ipv4_sync executed in 1.00 secs 1706s ok 2 /socket/ipv4_async 1706s # slow test /socket/ipv4_async executed in 1.00 secs 1706s ok 3 /socket/ipv6_sync 1706s ok 4 /socket/ipv6_async 1706s ok 5 /socket/ipv6_v4mapped 1706s # Executing: glib/socket.test 1707s ok 6 /socket/close_graceful 1707s # slow test /socket/close_graceful executed in 1.00 secs 1707s ok 7 /socket/timed_wait # SKIP Not running timing heavy test 1707s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=741707 1707s ok 8 /socket/fd_reuse 1707s ok 9 /socket/address 1707s ok 10 /socket/unix-from-fd 1707s ok 11 /socket/unix-connection 1707s ok 12 /socket/unix-connection-ancillary-data 1707s ok 13 /socket/source-postmortem 1707s ok 14 /socket/read_write 1707s ok 15 /socket/read_writev 1707s # /socket/receive_bytes summary: Test basic functionality of g_socket_receive_bytes() 1707s ok 16 /socket/receive_bytes 1707s # /socket/receive_bytes_from summary: Test basic functionality of g_socket_receive_bytes_from() 1707s ok 17 /socket/receive_bytes_from 1707s # Start of ipv4_sync tests 1707s ok 18 /socket/ipv4_sync/datagram 1707s # Start of datagram tests 1708s ok 19 /socket/ipv4_sync/datagram/timeouts 1708s # slow test /socket/ipv4_sync/datagram/timeouts executed in 1.10 secs 1708s # End of datagram tests 1708s # End of ipv4_sync tests 1708s # Start of ipv6_sync tests 1708s ok 20 /socket/ipv6_sync/datagram 1708s # Start of datagram tests 1709s ok 21 /socket/ipv6_sync/datagram/timeouts 1709s # slow test /socket/ipv6_sync/datagram/timeouts executed in 1.10 secs 1709s # End of datagram tests 1709s # End of ipv6_sync tests 1709s # Start of reuse tests 1709s ok 22 /socket/reuse/tcp 1709s ok 23 /socket/reuse/udp 1709s # End of reuse tests 1709s # Start of get_available tests 1709s ok 24 /socket/get_available/datagram 1709s ok 25 /socket/get_available/stream 1709s # End of get_available tests 1709s # Start of credentials tests 1709s ok - glib/socket.test 1709s # Supported on this OS: GCredentials:linux-ucred:pid=0 1709s ok 26 /socket/credentials/tcp_client 1709s # Supported on this OS: GCredentials:linux-ucred:pid=0 1709s ok 27 /socket/credentials/tcp_server 1709s # Supported on this OS: GCredentials:linux-ucred:pid=1611,uid=1000,gid=1000 1709s ok 28 /socket/credentials/unix_socketpair 1709s # End of credentials tests 1709s # Start of accept tests 1709s # /socket/accept/cancelled summary: Calling g_socket_accept() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 1709s ok 29 /socket/accept/cancelled 1709s # End of accept tests 1709s # Start of connect tests 1709s # /socket/connect/cancelled summary: Calling g_socket_connect() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 1709s ok 30 /socket/connect/cancelled 1709s # End of connect tests 1709s # End of socket tests 1709s # Running test: glib/slice.test 1709s TAP version 14 1709s # random seed: R02S63aed92fc18ca06ad9821e17a6e74ab4 1709s 1..3 1709s # Start of slice tests 1709s ok 1 /slice/copy 1709s ok 2 /slice/chain 1711s ok 3 /slice/allocate 1711s # slow test /slice/allocate executed in 2.11 secs 1711s # End of slice tests 1711s ok - glib/slice.test 1711s # Running test: glib/hash.test 1711s TAP version 14 1711s # random seed: R02S3d57921a3d75a45cd75d937ad45b024c 1711s 1..34 1711s # Start of hash tests 1711s ok 1 /hash/misc 1711s ok 2 /hash/one 1711s ok 3 /hash/honeyman 1711s ok 4 /hash/direct 1711s ok 5 /hash/direct2 1711s ok 6 /hash/int 1711s ok 7 /hash/int64 1711s ok 8 /hash/double 1711s ok 9 /hash/string 1711s ok 10 /hash/set 1711s ok 11 /hash/set-ref 1711s ok 12 /hash/ref 1711s ok 13 /hash/remove-all 1711s ok 14 /hash/recursive-remove-all 1711s ok 15 /hash/find 1711s ok 16 /hash/foreach 1711s ok 17 /hash/foreach-steal 1711s ok 18 /hash/steal-extended 1711s ok 19 /hash/steal-all-keys 1711s ok 20 /hash/steal-all-values 1711s ok 21 /hash/lookup-extended 1711s ok 22 /hash/new-similar 1711s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642944 1711s ok 23 /hash/lookup-null-key 1711s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=650459 1711s ok 24 /hash/destroy-modify 1711s ok 25 /hash/consistency 1711s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=662544 1711s ok 26 /hash/iter-replace 1711s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=692815 1711s ok 27 /hash/set-insert-corruption 1711s ok 28 /hash/set-to-strv 1711s ok 29 /hash/get-keys-as-ptr-array 1711s ok 30 /hash/get-values-as-ptr-array 1711s ok - glib/hash.test 1711s # Running test: glib/bindinggroup.test 1711s ok - glib/bindinggroup.test 1711s # Running test: glib/gdbus-proxy-threads.test 1711s ok 31 /hash/primes 1711s # Start of int64 tests 1711s # /hash/int64/collisions summary: Check int64 Hash collisions caused by ignoring high word 1711s ok 32 /hash/int64/collisions 1711s # End of int64 tests 1711s # Start of double tests 1711s # /hash/double/collisions summary: Check double Hash collisions caused by int conversion and by numbers larger than 2^64-1 (G_MAXUINT64) 1711s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2771 1711s ok 33 /hash/double/collisions 1711s # End of double tests 1711s # Start of recursive-remove-all tests 1711s # End of recursive-remove-all tests 1711s # Start of steal-extended tests 1711s ok 34 /hash/steal-extended/optional 1711s # End of steal-extended tests 1711s # End of hash tests 1711s TAP version 14 1711s # random seed: R02Sf13d2bf944826f7bb8a53c827aea2e82 1711s 1..11 1711s # Start of GObject tests 1711s # Start of BindingGroup tests 1711s ok 1 /GObject/BindingGroup/invalid 1711s ok 2 /GObject/BindingGroup/default 1711s ok 3 /GObject/BindingGroup/bidirectional 1711s ok 4 /GObject/BindingGroup/transform 1711s ok 5 /GObject/BindingGroup/transform-closures 1711s ok 6 /GObject/BindingGroup/same-object 1711s ok 7 /GObject/BindingGroup/weak-ref-source 1711s ok 8 /GObject/BindingGroup/weak-ref-target 1711s ok 9 /GObject/BindingGroup/properties 1711s ok 10 /GObject/BindingGroup/weak-notify-no-bindings 1711s ok 11 /GObject/BindingGroup/empty-closures 1711s # End of BindingGroup tests 1711s # End of GObject tests 1711s TAP version 14 1711s # random seed: R02Scaa273d445b9e287818a911b3b2ca751 1711s 1..1 1711s # Start of gdbus tests 1711s # Start of proxy tests 1711s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-threads_MVP2B3/gdbus/proxy/vs-threads/.dirs/home 1711s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-threads_MVP2B3/gdbus/proxy/vs-threads/.dirs/cache 1711s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-threads_MVP2B3/gdbus/proxy/vs-threads/.dirs/system-config1:/tmp/test_gdbus-proxy-threads_MVP2B3/gdbus/proxy/vs-threads/.dirs/system-config2 1711s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-threads_MVP2B3/gdbus/proxy/vs-threads/.dirs/config 1711s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-threads_MVP2B3/gdbus/proxy/vs-threads/.dirs/system-data1:/tmp/test_gdbus-proxy-threads_MVP2B3/gdbus/proxy/vs-threads/.dirs/system-data2 1711s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-threads_MVP2B3/gdbus/proxy/vs-threads/.dirs/data 1711s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-threads_MVP2B3/gdbus/proxy/vs-threads/.dirs/state 1711s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-threads_MVP2B3/gdbus/proxy/vs-threads/.dirs/runtime 1711s # Executing: glib/gdbus-proxy-threads.test 1713s ok 1 /gdbus/proxy/vs-threads 1713s # slow test /gdbus/proxy/vs-threads executed in 2.11 secs 1713s # End of proxy tests 1713s # End of gdbus tests 1713s cleaning up pid 1671 1713s ok - glib/gdbus-proxy-threads.test 1713s # Running test: glib/private.test 1713s TAP version 14 1713s # random seed: R02S0097ba588b6b8ca456b809696efdc1e6 1713s 1..8 1713s # Start of thread tests 1713s ok 1 /thread/private1 1715s ok 2 /thread/private2 1715s # slow test /thread/private2 executed in 1.09 secs 1715s ok 3 /thread/private3 1715s ok 4 /thread/staticprivate1 1715s ok 5 /thread/staticprivate2 1715s ok 6 /thread/staticprivate3 1716s ok 7 /thread/staticprivate4 1716s # slow test /thread/staticprivate4 executed in 1.10 secs 1716s ok 8 /thread/staticprivate5 1716s # End of thread tests 1716s ok - glib/private.test 1716s # Running test: glib/simple-proxy.test 1716s TAP version 14 1716s # random seed: R02S327f4b240727d9bb3b1dfd9632f096b6 1716s 1..3 1716s # Start of static-proxy tests 1716s ok 1 /static-proxy/uri 1716s ok 2 /static-proxy/socks 1716s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string *.eee.xx:8000 1716s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 10.0.0.1:8000 1716s ok 3 /static-proxy/ignore 1716s # End of static-proxy tests 1716s ok - glib/simple-proxy.test 1716s # Running test: glib/tls-bindings.test 1716s TAP version 14 1716s # random seed: R02S6424316d67fe0df811da495e7e53204b 1716s 1..2 1716s # Start of tls-connection tests 1716s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ‘gio-tls-backend’ 1716s ok 1 /tls-connection/get-tls-channel-binding 1716s ok - glib/tls-bindings.test 1716s # Running test: glib/repository.test 1716s ok 2 /tls-connection/get-dtls-channel-binding 1716s # End of tls-connection tests 1716s TAP version 14 1716s # random seed: R02S9875790881a59b00fd8b0e73657571d5 1716s 1..24 1716s # Start of repository tests 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_VGTFC3/repository/basic/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_VGTFC3/repository/basic/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_VGTFC3/repository/basic/.dirs/system-config1:/tmp/test_repository_VGTFC3/repository/basic/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_VGTFC3/repository/basic/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_VGTFC3/repository/basic/.dirs/system-data1:/tmp/test_repository_VGTFC3/repository/basic/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_VGTFC3/repository/basic/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_VGTFC3/repository/basic/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_VGTFC3/repository/basic/.dirs/runtime 1716s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1716s # /repository/basic summary: Test basic opening of a repository and requiring a typelib 1716s ok 1 /repository/basic 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_VGTFC3/repository/info/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_VGTFC3/repository/info/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_VGTFC3/repository/info/.dirs/system-config1:/tmp/test_repository_VGTFC3/repository/info/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_VGTFC3/repository/info/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_VGTFC3/repository/info/.dirs/system-data1:/tmp/test_repository_VGTFC3/repository/info/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_VGTFC3/repository/info/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_VGTFC3/repository/info/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_VGTFC3/repository/info/.dirs/runtime 1716s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1716s # /repository/info summary: Test retrieving some basic info blobs from a typelib 1716s ok 2 /repository/info 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_VGTFC3/repository/dependencies/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_VGTFC3/repository/dependencies/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_VGTFC3/repository/dependencies/.dirs/system-config1:/tmp/test_repository_VGTFC3/repository/dependencies/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_VGTFC3/repository/dependencies/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_VGTFC3/repository/dependencies/.dirs/system-data1:/tmp/test_repository_VGTFC3/repository/dependencies/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_VGTFC3/repository/dependencies/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_VGTFC3/repository/dependencies/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_VGTFC3/repository/dependencies/.dirs/runtime 1716s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1716s # /repository/dependencies summary: Test ensures namespace dependencies are correctly exposed 1716s ok 3 /repository/dependencies 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_VGTFC3/repository/arg-info/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_VGTFC3/repository/arg-info/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_VGTFC3/repository/arg-info/.dirs/system-config1:/tmp/test_repository_VGTFC3/repository/arg-info/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_VGTFC3/repository/arg-info/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_VGTFC3/repository/arg-info/.dirs/system-data1:/tmp/test_repository_VGTFC3/repository/arg-info/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_VGTFC3/repository/arg-info/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_VGTFC3/repository/arg-info/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_VGTFC3/repository/arg-info/.dirs/runtime 1716s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1716s # /repository/arg-info summary: Test retrieving GIArgInfos from a typelib 1716s ok 4 /repository/arg-info 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_VGTFC3/repository/callable-info/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_VGTFC3/repository/callable-info/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_VGTFC3/repository/callable-info/.dirs/system-config1:/tmp/test_repository_VGTFC3/repository/callable-info/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_VGTFC3/repository/callable-info/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_VGTFC3/repository/callable-info/.dirs/system-data1:/tmp/test_repository_VGTFC3/repository/callable-info/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_VGTFC3/repository/callable-info/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_VGTFC3/repository/callable-info/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_VGTFC3/repository/callable-info/.dirs/runtime 1716s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1716s # /repository/callable-info summary: Test retrieving GICallableInfos from a typelib 1716s ok 5 /repository/callable-info 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_VGTFC3/repository/callback-info/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_VGTFC3/repository/callback-info/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_VGTFC3/repository/callback-info/.dirs/system-config1:/tmp/test_repository_VGTFC3/repository/callback-info/.dirs/system-config2 1716s ok - glib/repository.test 1716s # Running test: glib/giomodule.test 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_VGTFC3/repository/callback-info/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_VGTFC3/repository/callback-info/.dirs/system-data1:/tmp/test_repository_VGTFC3/repository/callback-info/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_VGTFC3/repository/callback-info/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_VGTFC3/repository/callback-info/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_VGTFC3/repository/callback-info/.dirs/runtime 1716s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1716s # /repository/callback-info summary: Test retrieving GICallbackInfos from a typelib 1716s ok 6 /repository/callback-info 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_VGTFC3/repository/char-types/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_VGTFC3/repository/char-types/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_VGTFC3/repository/char-types/.dirs/system-config1:/tmp/test_repository_VGTFC3/repository/char-types/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_VGTFC3/repository/char-types/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_VGTFC3/repository/char-types/.dirs/system-data1:/tmp/test_repository_VGTFC3/repository/char-types/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_VGTFC3/repository/char-types/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_VGTFC3/repository/char-types/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_VGTFC3/repository/char-types/.dirs/runtime 1716s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1716s # /repository/char-types summary: Test that signed and unsigned char GITypeInfo have GITypeTag of INT8 and UINT8 respectively 1716s ok 7 /repository/char-types 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_VGTFC3/repository/constructor-return-type/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_VGTFC3/repository/constructor-return-type/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_VGTFC3/repository/constructor-return-type/.dirs/system-config1:/tmp/test_repository_VGTFC3/repository/constructor-return-type/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_VGTFC3/repository/constructor-return-type/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_VGTFC3/repository/constructor-return-type/.dirs/system-data1:/tmp/test_repository_VGTFC3/repository/constructor-return-type/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_VGTFC3/repository/constructor-return-type/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_VGTFC3/repository/constructor-return-type/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_VGTFC3/repository/constructor-return-type/.dirs/runtime 1716s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1716s # /repository/constructor-return-type summary: Test the return type of a constructor, g_object_newv() 1716s ok 8 /repository/constructor-return-type 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_VGTFC3/repository/enum-info-c-identifier/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_VGTFC3/repository/enum-info-c-identifier/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_VGTFC3/repository/enum-info-c-identifier/.dirs/system-config1:/tmp/test_repository_VGTFC3/repository/enum-info-c-identifier/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_VGTFC3/repository/enum-info-c-identifier/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_VGTFC3/repository/enum-info-c-identifier/.dirs/system-data1:/tmp/test_repository_VGTFC3/repository/enum-info-c-identifier/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_VGTFC3/repository/enum-info-c-identifier/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_VGTFC3/repository/enum-info-c-identifier/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_VGTFC3/repository/enum-info-c-identifier/.dirs/runtime 1716s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1716s # /repository/enum-info-c-identifier summary: Test that every enum member has a C identifier 1716s ok 9 /repository/enum-info-c-identifier 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_VGTFC3/repository/enum-info-static-methods/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_VGTFC3/repository/enum-info-static-methods/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_VGTFC3/repository/enum-info-static-methods/.dirs/system-config1:/tmp/test_repository_VGTFC3/repository/enum-info-static-methods/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_VGTFC3/repository/enum-info-static-methods/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_VGTFC3/repository/enum-info-static-methods/.dirs/system-data1:/tmp/test_repository_VGTFC3/repository/enum-info-static-methods/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_VGTFC3/repository/enum-info-static-methods/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_VGTFC3/repository/enum-info-static-methods/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_VGTFC3/repository/enum-info-static-methods/.dirs/runtime 1716s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1716s # /repository/enum-info-static-methods summary: Test an enum with methods 1716s ok 10 /repository/enum-info-static-methods 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_VGTFC3/repository/error-quark/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_VGTFC3/repository/error-quark/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_VGTFC3/repository/error-quark/.dirs/system-config1:/tmp/test_repository_VGTFC3/repository/error-quark/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_VGTFC3/repository/error-quark/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_VGTFC3/repository/error-quark/.dirs/system-data1:/tmp/test_repository_VGTFC3/repository/error-quark/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_VGTFC3/repository/error-quark/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_VGTFC3/repository/error-quark/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_VGTFC3/repository/error-quark/.dirs/runtime 1716s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1716s # /repository/error-quark summary: Test finding an error quark by error domain 1716s ok 11 /repository/error-quark 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_VGTFC3/repository/flags-info-c-identifier/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_VGTFC3/repository/flags-info-c-identifier/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_VGTFC3/repository/flags-info-c-identifier/.dirs/system-config1:/tmp/test_repository_VGTFC3/repository/flags-info-c-identifier/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_VGTFC3/repository/flags-info-c-identifier/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_VGTFC3/repository/flags-info-c-identifier/.dirs/system-data1:/tmp/test_repository_VGTFC3/repository/flags-info-c-identifier/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_VGTFC3/repository/flags-info-c-identifier/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_VGTFC3/repository/flags-info-c-identifier/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_VGTFC3/repository/flags-info-c-identifier/.dirs/runtime 1716s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1716s # /repository/flags-info-c-identifier summary: Test that every flags member has a C identifier 1716s ok 12 /repository/flags-info-c-identifier 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_VGTFC3/repository/fundamental-ref-func/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_VGTFC3/repository/fundamental-ref-func/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_VGTFC3/repository/fundamental-ref-func/.dirs/system-config1:/tmp/test_repository_VGTFC3/repository/fundamental-ref-func/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_VGTFC3/repository/fundamental-ref-func/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_VGTFC3/repository/fundamental-ref-func/.dirs/system-data1:/tmp/test_repository_VGTFC3/repository/fundamental-ref-func/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_VGTFC3/repository/fundamental-ref-func/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_VGTFC3/repository/fundamental-ref-func/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_VGTFC3/repository/fundamental-ref-func/.dirs/runtime 1716s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1716s # /repository/fundamental-ref-func summary: Test getting the ref func of a fundamental type 1716s ok 13 /repository/fundamental-ref-func 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_VGTFC3/repository/instance-method-ownership-transfer/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_VGTFC3/repository/instance-method-ownership-transfer/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_VGTFC3/repository/instance-method-ownership-transfer/.dirs/system-config1:/tmp/test_repository_VGTFC3/repository/instance-method-ownership-transfer/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_VGTFC3/repository/instance-method-ownership-transfer/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_VGTFC3/repository/instance-method-ownership-transfer/.dirs/system-data1:/tmp/test_repository_VGTFC3/repository/instance-method-ownership-transfer/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_VGTFC3/repository/instance-method-ownership-transfer/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_VGTFC3/repository/instance-method-ownership-transfer/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_VGTFC3/repository/instance-method-ownership-transfer/.dirs/runtime 1716s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1716s # /repository/instance-method-ownership-transfer summary: Test two methods of the same object having opposite ownership transfer of the instance parameter 1716s ok 14 /repository/instance-method-ownership-transfer 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_VGTFC3/repository/object-gtype-interfaces/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_VGTFC3/repository/object-gtype-interfaces/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_VGTFC3/repository/object-gtype-interfaces/.dirs/system-config1:/tmp/test_repository_VGTFC3/repository/object-gtype-interfaces/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_VGTFC3/repository/object-gtype-interfaces/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_VGTFC3/repository/object-gtype-interfaces/.dirs/system-data1:/tmp/test_repository_VGTFC3/repository/object-gtype-interfaces/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_VGTFC3/repository/object-gtype-interfaces/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_VGTFC3/repository/object-gtype-interfaces/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_VGTFC3/repository/object-gtype-interfaces/.dirs/runtime 1716s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1716s # /repository/object-gtype-interfaces summary: Test gi_repository_get_object_gtype_interfaces() 1716s ok 15 /repository/object-gtype-interfaces 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_VGTFC3/repository/signal-info-with-array-length-arg/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_VGTFC3/repository/signal-info-with-array-length-arg/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_VGTFC3/repository/signal-info-with-array-length-arg/.dirs/system-config1:/tmp/test_repository_VGTFC3/repository/signal-info-with-array-length-arg/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_VGTFC3/repository/signal-info-with-array-length-arg/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_VGTFC3/repository/signal-info-with-array-length-arg/.dirs/system-data1:/tmp/test_repository_VGTFC3/repository/signal-info-with-array-length-arg/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_VGTFC3/repository/signal-info-with-array-length-arg/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_VGTFC3/repository/signal-info-with-array-length-arg/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_VGTFC3/repository/signal-info-with-array-length-arg/.dirs/runtime 1716s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1716s # /repository/signal-info-with-array-length-arg summary: Test finding the associated array length argument of an array parameter of a signal 1716s ok 16 /repository/signal-info-with-array-length-arg 1716s ok - glib/giomodule.test 1716s # Running test: glib/dataset.test 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_VGTFC3/repository/type-info-name/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_VGTFC3/repository/type-info-name/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_VGTFC3/repository/type-info-name/.dirs/system-config1:/tmp/test_repository_VGTFC3/repository/type-info-name/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_VGTFC3/repository/type-info-name/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_VGTFC3/repository/type-info-name/.dirs/system-data1:/tmp/test_repository_VGTFC3/repository/type-info-name/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_VGTFC3/repository/type-info-name/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_VGTFC3/repository/type-info-name/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_VGTFC3/repository/type-info-name/.dirs/runtime 1716s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1716s # /repository/type-info-name summary: Test that gi_base_info_get_name() returns null for GITypeInfo 1716s # Bug Reference: https://gitlab.gnome.org/GNOME/gobject-introspection/issues/96 1716s ok 17 /repository/type-info-name 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_VGTFC3/repository/vfunc-info-with-no-invoker/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_VGTFC3/repository/vfunc-info-with-no-invoker/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_VGTFC3/repository/vfunc-info-with-no-invoker/.dirs/system-config1:/tmp/test_repository_VGTFC3/repository/vfunc-info-with-no-invoker/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_VGTFC3/repository/vfunc-info-with-no-invoker/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_VGTFC3/repository/vfunc-info-with-no-invoker/.dirs/system-data1:/tmp/test_repository_VGTFC3/repository/vfunc-info-with-no-invoker/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_VGTFC3/repository/vfunc-info-with-no-invoker/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_VGTFC3/repository/vfunc-info-with-no-invoker/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_VGTFC3/repository/vfunc-info-with-no-invoker/.dirs/runtime 1716s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1716s # /repository/vfunc-info-with-no-invoker summary: Test vfunc with no known invoker on object, such as GObject.dispose 1716s ok 18 /repository/vfunc-info-with-no-invoker 1716s ok - glib/dataset.test 1716s # Running test: glib/pattern.test 1716s ok - glib/pattern.test 1716s # Running test: glib/utils.test 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_VGTFC3/repository/vfunc-info-with-invoker-on-interface/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_VGTFC3/repository/vfunc-info-with-invoker-on-interface/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_VGTFC3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-config1:/tmp/test_repository_VGTFC3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_VGTFC3/repository/vfunc-info-with-invoker-on-interface/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_VGTFC3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-data1:/tmp/test_repository_VGTFC3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_VGTFC3/repository/vfunc-info-with-invoker-on-interface/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_VGTFC3/repository/vfunc-info-with-invoker-on-interface/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_VGTFC3/repository/vfunc-info-with-invoker-on-interface/.dirs/runtime 1716s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1716s # /repository/vfunc-info-with-invoker-on-interface summary: Test vfunc with invoker on interface, such as GFile.read_async 1716s ok 19 /repository/vfunc-info-with-invoker-on-interface 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_VGTFC3/repository/vfunc-info-with-invoker-on-object/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_VGTFC3/repository/vfunc-info-with-invoker-on-object/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_VGTFC3/repository/vfunc-info-with-invoker-on-object/.dirs/system-config1:/tmp/test_repository_VGTFC3/repository/vfunc-info-with-invoker-on-object/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_VGTFC3/repository/vfunc-info-with-invoker-on-object/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_VGTFC3/repository/vfunc-info-with-invoker-on-object/.dirs/system-data1:/tmp/test_repository_VGTFC3/repository/vfunc-info-with-invoker-on-object/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_VGTFC3/repository/vfunc-info-with-invoker-on-object/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_VGTFC3/repository/vfunc-info-with-invoker-on-object/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_VGTFC3/repository/vfunc-info-with-invoker-on-object/.dirs/runtime 1716s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1716s # /repository/vfunc-info-with-invoker-on-object summary: Test vfunc with invoker on object, such as GAppLaunchContext.get_display 1716s ok 20 /repository/vfunc-info-with-invoker-on-object 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_VGTFC3/repository/find-by-gtype/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_VGTFC3/repository/find-by-gtype/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_VGTFC3/repository/find-by-gtype/.dirs/system-config1:/tmp/test_repository_VGTFC3/repository/find-by-gtype/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_VGTFC3/repository/find-by-gtype/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_VGTFC3/repository/find-by-gtype/.dirs/system-data1:/tmp/test_repository_VGTFC3/repository/find-by-gtype/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_VGTFC3/repository/find-by-gtype/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_VGTFC3/repository/find-by-gtype/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_VGTFC3/repository/find-by-gtype/.dirs/runtime 1716s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1716s # /repository/find-by-gtype summary: Test finding a GType 1716s ok 21 /repository/find-by-gtype 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_VGTFC3/repository/loaded-namespaces/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_VGTFC3/repository/loaded-namespaces/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_VGTFC3/repository/loaded-namespaces/.dirs/system-config1:/tmp/test_repository_VGTFC3/repository/loaded-namespaces/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_VGTFC3/repository/loaded-namespaces/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_VGTFC3/repository/loaded-namespaces/.dirs/system-data1:/tmp/test_repository_VGTFC3/repository/loaded-namespaces/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_VGTFC3/repository/loaded-namespaces/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_VGTFC3/repository/loaded-namespaces/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_VGTFC3/repository/loaded-namespaces/.dirs/runtime 1716s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1716s # /repository/loaded-namespaces summary: Test listing loaded namespaces 1716s ok 22 /repository/loaded-namespaces 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_VGTFC3/repository/dup_default/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_VGTFC3/repository/dup_default/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_VGTFC3/repository/dup_default/.dirs/system-config1:/tmp/test_repository_VGTFC3/repository/dup_default/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_VGTFC3/repository/dup_default/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_VGTFC3/repository/dup_default/.dirs/system-data1:/tmp/test_repository_VGTFC3/repository/dup_default/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_VGTFC3/repository/dup_default/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_VGTFC3/repository/dup_default/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_VGTFC3/repository/dup_default/.dirs/runtime 1716s ok 23 /repository/dup_default 1716s # Start of base-info tests 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_VGTFC3/repository/base-info/clear/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_VGTFC3/repository/base-info/clear/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_VGTFC3/repository/base-info/clear/.dirs/system-config1:/tmp/test_repository_VGTFC3/repository/base-info/clear/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_VGTFC3/repository/base-info/clear/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_VGTFC3/repository/base-info/clear/.dirs/system-data1:/tmp/test_repository_VGTFC3/repository/base-info/clear/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_VGTFC3/repository/base-info/clear/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_VGTFC3/repository/base-info/clear/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_VGTFC3/repository/base-info/clear/.dirs/runtime 1716s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1716s # /repository/base-info/clear summary: Test calling gi_base_info_clear() on a zero-filled struct 1716s ok 24 /repository/base-info/clear 1716s # End of base-info tests 1716s # End of repository tests 1716s TAP version 14 1716s # random seed: R02Sda3fddb362280379963fc98eec398157 1716s 1..3 1716s # Start of giomodule tests 1716s ok 1 /giomodule/extension-point 1716s ok 2 /giomodule/module-scan-all 1716s ok 3 /giomodule/module-scan-all-with-scope 1716s # End of giomodule tests 1716s TAP version 14 1716s # random seed: R02S5fcaf90677e5c66233e33cdfc4f360ea 1716s 1..15 1716s # Start of quark tests 1716s ok 1 /quark/basic 1716s ok 2 /quark/string 1716s # End of quark tests 1716s # Start of dataset tests 1716s ok 3 /dataset/basic 1716s ok 4 /dataset/id 1716s ok 5 /dataset/full 1716s ok 6 /dataset/foreach 1716s ok 7 /dataset/destroy 1716s # End of dataset tests 1716s # Start of datalist tests 1716s ok 8 /datalist/id 1716s ok 9 /datalist/recursive-clear 1716s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2672 1716s ok 10 /datalist/id-remove-multiple 1716s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2672 1716s ok 11 /datalist/id-remove-multiple-destroy-order 1716s ok 12 /datalist/update-atomic 1716s # Start of basic tests 1716s ok 13 /datalist/basic/few 1716s ok 14 /datalist/basic/many 1716s # End of basic tests 1716s # Start of id-remove-multiple tests 1716s ok 15 /datalist/id-remove-multiple/resize 1716s # End of id-remove-multiple tests 1716s # End of datalist tests 1716s TAP version 14 1716s # random seed: R02S417f8d1b61f65b2e8a57fdd86f7aaa0d 1716s 1..90 1716s # Start of pattern tests 1716s # Start of compile tests 1716s ok 1 /pattern/compile/0 1716s ok 2 /pattern/compile/1 1716s ok 3 /pattern/compile/2 1716s ok 4 /pattern/compile/3 1716s ok 5 /pattern/compile/4 1716s ok 6 /pattern/compile/5 1716s ok 7 /pattern/compile/6 1716s ok 8 /pattern/compile/7 1716s ok 9 /pattern/compile/8 1716s ok 10 /pattern/compile/9 1716s ok 11 /pattern/compile/10 1716s ok 12 /pattern/compile/11 1716s ok 13 /pattern/compile/12 1716s ok 14 /pattern/compile/13 1716s # End of compile tests 1716s # Start of copy tests 1716s ok 15 /pattern/copy/0 1716s ok 16 /pattern/copy/1 1716s ok 17 /pattern/copy/2 1716s ok 18 /pattern/copy/3 1716s ok 19 /pattern/copy/4 1716s ok 20 /pattern/copy/5 1716s ok 21 /pattern/copy/6 1716s ok 22 /pattern/copy/7 1716s ok 23 /pattern/copy/8 1716s ok 24 /pattern/copy/9 1716s ok 25 /pattern/copy/10 1716s ok 26 /pattern/copy/11 1716s ok 27 /pattern/copy/12 1716s ok 28 /pattern/copy/13 1716s # End of copy tests 1716s # Start of match tests 1716s ok 29 /pattern/match/0 1716s ok 30 /pattern/match/1 1716s ok 31 /pattern/match/2 1716s ok 32 /pattern/match/3 1716s ok 33 /pattern/match/4 1716s ok 34 /pattern/match/5 1716s ok 35 /pattern/match/6 1716s ok 36 /pattern/match/7 1716s ok 37 /pattern/match/8 1716s ok 38 /pattern/match/9 1716s ok 39 /pattern/match/10 1716s ok 40 /pattern/match/11 1716s ok 41 /pattern/match/12 1716s ok 42 /pattern/match/13 1716s ok 43 /pattern/match/14 1716s ok 44 /pattern/match/15 1716s ok 45 /pattern/match/16 1716s ok 46 /pattern/match/17 1716s ok 47 /pattern/match/18 1716s ok 48 /pattern/match/19 1716s ok 49 /pattern/match/20 1716s ok 50 /pattern/match/21 1716s ok 51 /pattern/match/22 1716s ok 52 /pattern/match/23 1716s ok 53 /pattern/match/24 1716s ok 54 /pattern/match/25 1716s ok 55 /pattern/match/26 1716s ok 56 /pattern/match/27 1716s ok 57 /pattern/match/28 1716s ok 58 /pattern/match/29 1716s ok 59 /pattern/match/30 1716s ok 60 /pattern/match/31 1716s ok 61 /pattern/match/32 1716s ok 62 /pattern/match/33 1716s ok 63 /pattern/match/34 1716s ok 64 /pattern/match/35 1716s ok 65 /pattern/match/36 1716s ok 66 /pattern/match/37 1716s ok 67 /pattern/match/38 1716s ok 68 /pattern/match/39 1716s ok 69 /pattern/match/40 1716s ok 70 /pattern/match/41 1716s ok 71 /pattern/match/42 1716s ok 72 /pattern/match/43 1716s ok 73 /pattern/match/44 1716s ok 74 /pattern/match/45 1716s ok 75 /pattern/match/46 1716s ok 76 /pattern/match/47 1716s ok 77 /pattern/match/48 1716s ok 78 /pattern/match/49 1716s ok 79 /pattern/match/50 1716s # End of match tests 1716s # Start of equal tests 1716s ok 80 /pattern/equal/0 1716s ok 81 /pattern/equal/1 1716s ok 82 /pattern/equal/2 1716s ok 83 /pattern/equal/3 1716s ok 84 /pattern/equal/4 1716s ok 85 /pattern/equal/5 1716s ok 86 /pattern/equal/6 1716s ok 87 /pattern/equal/7 1716s ok 88 /pattern/equal/8 1716s ok 89 /pattern/equal/9 1716s ok 90 /pattern/equal/10 1716s # End of equal tests 1716s # End of pattern tests 1716s TAP version 14 1716s # random seed: R02Sd4b443bec27f67e58227151a28268e76 1716s 1..41 1716s # Start of utils tests 1716s ok 1 /utils/language-names 1716s # Testing locale ‘en’ 1716s # Testing locale ‘sr@latin’ 1716s # Testing locale ‘fr_BE’ 1716s # Testing locale ‘sr_SR@latin’ 1716s # Testing locale ‘sr_SR@latin.UTF-8’ 1716s # Testing locale ‘sr@latin_invalid’ 1716s # Testing locale ‘sr.UTF-8@latin’ 1716s # Testing locale ‘sr.UTF-8_latin’ 1716s # Testing locale ‘sr.UTF-8@latin_invalid’ 1716s ok 2 /utils/locale-variants 1716s ok 3 /utils/version 1716s ok 4 /utils/appname 1716s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1716s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1716s ok 5 /utils/prgname-thread-safety 1716s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1716s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1716s ok 6 /utils/tmpdir 1716s ok 7 /utils/basic_bits 1716s ok 8 /utils/bits 1716s ok 9 /utils/swap 1716s ok 10 /utils/find-program 1716s ok 11 /utils/find-program-for-path 1716s ok 12 /utils/debug 1716s ok 13 /utils/codeset 1716s ok 14 /utils/codeset2 1716s ok 15 /utils/console-charset 1716s ok 16 /utils/gettext 1716s ok 17 /utils/username 1716s ok 18 /utils/realname 1716s ok 19 /utils/hostname 1716s ok 20 /utils/xdgdirs 1716s ok 21 /utils/specialdir 1716s # NAME: Ubuntu 1716s ok 22 /utils/os-info 1716s ok 23 /utils/clear-pointer 1716s ok 24 /utils/clear-pointer-cast 1716s ok 25 /utils/take-pointer 1716s ok 26 /utils/clear-source 1716s ok 27 /utils/misc-mem 1716s # /utils/aligned-mem summary: Aligned memory allocator 1716s # Alignment must not be zero 1716s # Alignment must be a power of two 1716s # Alignment must be a multiple of sizeof(void*) 1716s ok 28 /utils/aligned-mem 1716s # /utils/free-sized summary: Check that g_free_sized() works 1716s ok 29 /utils/free-sized 1716s ok 30 /utils/nullify 1716s ok 31 /utils/atexit 1716s ok 32 /utils/check-setuid 1716s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1716s ok 33 /utils/int-limits 1716s ok 34 /utils/clear-list 1716s ok 35 /utils/clear-slist 1716s ok 36 /utils/steal-handle-id 1716s # Start of specialdir tests 1716s ok 37 /utils/specialdir/desktop 1716s # End of specialdir tests 1716s # Start of clear-pointer tests 1716s ok 38 /utils/clear-pointer/side-effects 1716s # End of clear-pointer tests 1716s # Start of aligned-mem tests 1716s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1716s ok 39 /utils/aligned-mem/alignment 1716s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1716s ok 40 /utils/aligned-mem/zeroed 1716s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1716s ok 41 /utils/aligned-mem/free-sized 1716s # Start of subprocess tests 1716s # End of subprocess tests 1716s # End of aligned-mem tests 1716s # End of utils tests 1716s ok - glib/utils.test 1716s # Running test: glib/g-file-info-filesystem-readonly.test 1716s TAP version 14 1716s # random seed: R02Sed11ae615dcade0d0fd119df94066f03 1716s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=787731 1716s 1..2 1716s # Start of g-file-info-filesystem-readonly tests 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_g-file-info-filesystem-readonly_NK0DC3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_g-file-info-filesystem-readonly_NK0DC3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_g-file-info-filesystem-readonly_NK0DC3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-config1:/tmp/test_g-file-info-filesystem-readonly_NK0DC3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_g-file-info-filesystem-readonly_NK0DC3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_g-file-info-filesystem-readonly_NK0DC3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-data1:/tmp/test_g-file-info-filesystem-readonly_NK0DC3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_g-file-info-filesystem-readonly_NK0DC3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_g-file-info-filesystem-readonly_NK0DC3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_g-file-info-filesystem-readonly_NK0DC3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/runtime 1716s ok 1 /g-file-info-filesystem-readonly/test-fs-ro # SKIP 'bindfs' and 'fusermount' commands are needed to run this test 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_g-file-info-filesystem-readonly_NK0DC3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_g-file-info-filesystem-readonly_NK0DC3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_g-file-info-filesystem-readonly_NK0DC3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-config1:/tmp/test_g-file-info-filesystem-readonly_NK0DC3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_g-file-info-filesystem-readonly_NK0DC3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_g-file-info-filesystem-readonly_NK0DC3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-data1:/tmp/test_g-file-info-filesystem-readonly_NK0DC3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_g-file-info-filesystem-readonly_NK0DC3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_g-file-info-filesystem-readonly_NK0DC3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_g-file-info-filesystem-readonly_NK0DC3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/runtime 1716s ok 2 /g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor # SKIP 'bindfs' and 'fusermount' commands are needed to run this test 1716s # End of g-file-info-filesystem-readonly tests 1716s ok - glib/g-file-info-filesystem-readonly.test 1716s # Running test: glib/gdbus-proxy-unique-name.test 1716s TAP version 14 1716s # random seed: R02Sbaf4d075b98a5d8364d16c0686a55716 1716s 1..1 1716s # Start of gdbus tests 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-unique-name_WSJDC3/gdbus/proxy-unique-name/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-unique-name_WSJDC3/gdbus/proxy-unique-name/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-unique-name_WSJDC3/gdbus/proxy-unique-name/.dirs/system-config1:/tmp/test_gdbus-proxy-unique-name_WSJDC3/gdbus/proxy-unique-name/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-unique-name_WSJDC3/gdbus/proxy-unique-name/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-unique-name_WSJDC3/gdbus/proxy-unique-name/.dirs/system-data1:/tmp/test_gdbus-proxy-unique-name_WSJDC3/gdbus/proxy-unique-name/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-unique-name_WSJDC3/gdbus/proxy-unique-name/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-unique-name_WSJDC3/gdbus/proxy-unique-name/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-unique-name_WSJDC3/gdbus/proxy-unique-name/.dirs/runtime 1716s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1716s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1716s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1716s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1716s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1716s ok 1 /gdbus/proxy-unique-name 1716s # End of gdbus tests 1716s ok - glib/gdbus-proxy-unique-name.test 1716s # Running test: glib/autoptr.test 1716s TAP version 14 1716s # random seed: R02Sc32360ff1d4ba709d6d3e15ae7d1a8ff 1716s 1..6 1716s # Start of autoptr tests 1716s ok 1 /autoptr/autoptr 1716s ok 2 /autoptr/autoptr_steal 1716s ok 3 /autoptr/autolist 1716s ok 4 /autoptr/autoslist 1716s ok 5 /autoptr/autoqueue 1716s ok 6 /autoptr/autoclass 1716s # End of autoptr tests 1716s ok - glib/autoptr.test 1716s # Running test: glib/testfilemonitor.test 1716s TAP version 14 1716s # random seed: R02Sadc7e08b811e71cdcf42c48ff2181017 1716s 1..8 1716s # Start of monitor tests 1716s ok 1 /monitor/atomic-replace # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1716s ok 2 /monitor/file-changes # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1716s ok 3 /monitor/dir-monitor # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1716s ok 4 /monitor/dir-not-existent # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1716s ok 5 /monitor/cross-dir-moves # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1716s ok 6 /monitor/finalize-in-callback # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1716s # /monitor/root summary: Test that GFileMonitor can monitor the root directory. 1716s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3241 1716s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1716s ok 7 /monitor/root # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1716s # Start of file tests 1716s ok 8 /monitor/file/hard-links # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1716s # End of file tests 1716s # End of monitor tests 1716s ok - glib/testfilemonitor.test 1716s # Running test: glib/utils-c-89.test 1716s TAP version 14 1716s # random seed: R02S24941778e8fa4c5596dbecd77e271252 1716s 1..41 1716s # Start of utils tests 1716s ok 1 /utils/language-names 1716s # Testing locale ‘en’ 1716s # Testing locale ‘sr@latin’ 1716s # Testing locale ‘fr_BE’ 1716s # Testing locale ‘sr_SR@latin’ 1716s # Testing locale ‘sr_SR@latin.UTF-8’ 1716s # Testing locale ‘sr@latin_invalid’ 1716s # Testing locale ‘sr.UTF-8@latin’ 1716s # Testing locale ‘sr.UTF-8_latin’ 1716s # Testing locale ‘sr.UTF-8@latin_invalid’ 1716s ok 2 /utils/locale-variants 1716s ok 3 /utils/version 1716s ok 4 /utils/appname 1716s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1716s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1716s ok 5 /utils/prgname-thread-safety 1716s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1716s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1716s ok 6 /utils/tmpdir 1716s ok 7 /utils/basic_bits 1716s ok 8 /utils/bits 1716s ok 9 /utils/swap 1716s ok 10 /utils/find-program 1716s ok 11 /utils/find-program-for-path 1716s ok 12 /utils/debug 1716s ok 13 /utils/codeset 1716s ok 14 /utils/codeset2 1716s ok 15 /utils/console-charset 1716s ok 16 /utils/gettext 1716s ok 17 /utils/username 1716s ok 18 /utils/realname 1716s ok 19 /utils/hostname 1716s ok 20 /utils/xdgdirs 1716s ok 21 /utils/specialdir 1716s # NAME: Ubuntu 1716s ok 22 /utils/os-info 1716s ok 23 /utils/clear-pointer 1716s ok 24 /utils/clear-pointer-cast 1716s ok 25 /utils/take-pointer 1716s ok 26 /utils/clear-source 1716s ok 27 /utils/misc-mem 1716s # /utils/aligned-mem summary: Aligned memory allocator 1716s # Alignment must not be zero 1716s # Alignment must be a power of two 1716s # Alignment must be a multiple of sizeof(void*) 1716s ok 28 /utils/aligned-mem 1716s # /utils/free-sized summary: Check that g_free_sized() works 1716s ok 29 /utils/free-sized 1716s ok 30 /utils/nullify 1716s ok 31 /utils/atexit 1716s ok 32 /utils/check-setuid 1716s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1716s ok 33 /utils/int-limits 1716s ok 34 /utils/clear-list 1716s ok 35 /utils/clear-slist 1716s ok 36 /utils/steal-handle-id 1716s # Start of specialdir tests 1716s ok 37 /utils/specialdir/desktop 1716s # End of specialdir tests 1716s # Start of clear-pointer tests 1716s ok 38 /utils/clear-pointer/side-effects 1716s # End of clear-pointer tests 1716s # Start of aligned-mem tests 1716s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1716s ok 39 /utils/aligned-mem/alignment 1716s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1716s ok 40 /utils/aligned-mem/zeroed 1716s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1716s ok 41 /utils/aligned-mem/free-sized 1716s # Start of subprocess tests 1716s # End of subprocess tests 1716s # End of aligned-mem tests 1716s # End of utils tests 1716s ok - glib/utils-c-89.test 1716s # Running test: glib/file.test 1716s TAP version 14 1716s # random seed: R02Scf90dceae86d2744ad9c7cb0244aa2ce 1716s 1..55 1716s # Start of file tests 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/basic/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/basic/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/basic/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/basic/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/basic/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/basic/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/basic/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/basic/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/basic/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/basic/.dirs/runtime 1716s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1716s ok 1 /file/basic 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/build-filename/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/build-filename/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/build-filename/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/build-filename/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/build-filename/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/build-filename/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/build-filename/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/build-filename/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/build-filename/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/build-filename/.dirs/runtime 1716s ok 2 /file/build-filename 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/build-filenamev/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/build-filenamev/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/build-filenamev/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/build-filenamev/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/build-filenamev/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/build-filenamev/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/build-filenamev/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/build-filenamev/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/build-filenamev/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/build-filenamev/.dirs/runtime 1716s ok 3 /file/build-filenamev 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/parent/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/parent/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/parent/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/parent/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/parent/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/parent/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/parent/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/parent/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/parent/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/parent/.dirs/runtime 1716s ok 4 /file/parent 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/child/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/child/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/child/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/child/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/child/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/child/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/child/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/child/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/child/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/child/.dirs/runtime 1716s ok 5 /file/child 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/empty-path/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/empty-path/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/empty-path/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/empty-path/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/empty-path/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/empty-path/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/empty-path/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/empty-path/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/empty-path/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/empty-path/.dirs/runtime 1716s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2328 1716s # /file/empty-path summary: Check that creating a file with an empty path results in errors 1716s ok 6 /file/empty-path 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/type/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/type/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/type/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/type/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/type/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/type/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/type/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/type/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/type/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/type/.dirs/runtime 1716s ok 7 /file/type 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/parse-name/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/parse-name/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/parse-name/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/parse-name/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/parse-name/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/parse-name/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/parse-name/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/parse-name/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/parse-name/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/parse-name/.dirs/runtime 1716s ok 8 /file/parse-name 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/replace-load/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/replace-load/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/replace-load/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/replace-load/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/replace-load/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/replace-load/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/replace-load/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/replace-load/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/replace-load/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/replace-load/.dirs/runtime 1716s ok 9 /file/replace-load 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/replace-cancel/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/replace-cancel/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/replace-cancel/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/replace-cancel/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/replace-cancel/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/replace-cancel/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/replace-cancel/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/replace-cancel/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/replace-cancel/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/replace-cancel/.dirs/runtime 1716s # Bug Reference: https://bugzilla.gnome.org/629301 1716s ok 10 /file/replace-cancel 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/replace-symlink/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/replace-symlink/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/replace-symlink/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/replace-symlink/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/replace-symlink/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/replace-symlink/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/replace-symlink/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/replace-symlink/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/replace-symlink/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/replace-symlink/.dirs/runtime 1716s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2325 1716s # /file/replace-symlink summary: Test that G_FILE_CREATE_REPLACE_DESTINATION doesn’t follow symlinks 1716s # Using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_symlink_HHTGC3 1716s ok 11 /file/replace-symlink 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/async-new-tmp/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/async-new-tmp/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/async-new-tmp/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/async-new-tmp/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/async-new-tmp/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/async-new-tmp/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/async-new-tmp/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/async-new-tmp/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/async-new-tmp/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/async-new-tmp/.dirs/runtime 1716s ok 12 /file/async-new-tmp 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/async-new-tmp-dir/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/async-new-tmp-dir/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/async-new-tmp-dir/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/async-new-tmp-dir/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/async-new-tmp-dir/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/async-new-tmp-dir/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/async-new-tmp-dir/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/async-new-tmp-dir/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/async-new-tmp-dir/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/async-new-tmp-dir/.dirs/runtime 1716s ok 13 /file/async-new-tmp-dir 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/async-delete/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/async-delete/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/async-delete/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/async-delete/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/async-delete/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/async-delete/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/async-delete/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/async-delete/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/async-delete/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/async-delete/.dirs/runtime 1716s ok 14 /file/async-delete 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/async-make-symlink/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/async-make-symlink/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/async-make-symlink/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/async-make-symlink/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/async-make-symlink/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/async-make-symlink/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/async-make-symlink/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/async-make-symlink/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/async-make-symlink/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/async-make-symlink/.dirs/runtime 1716s ok 15 /file/async-make-symlink 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/copy-preserve-mode/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/copy-preserve-mode/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/copy-preserve-mode/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/copy-preserve-mode/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/copy-preserve-mode/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/copy-preserve-mode/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/copy-preserve-mode/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/copy-preserve-mode/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/copy-preserve-mode/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/copy-preserve-mode/.dirs/runtime 1716s # Current umask: 2 1716s # Vector 0 1716s # Vector 1 1716s # Vector 2 1716s # Vector 3 1716s # Vector 4 1716s # Vector 5 1716s # Vector 6 1716s # Vector 7 1716s # Vector 8 1716s # Vector 9 1716s # Vector 10 1716s ok 16 /file/copy-preserve-mode 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/copy-async-with-closures/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/copy-async-with-closures/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/copy-async-with-closures/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/copy-async-with-closures/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/copy-async-with-closures/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/copy-async-with-closures/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/copy-async-with-closures/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/copy-async-with-closures/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/copy-async-with-closures/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/copy-async-with-closures/.dirs/runtime 1716s ok 17 /file/copy-async-with-closures 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/measure/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/measure/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/measure/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/measure/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/measure/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/measure/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/measure/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/measure/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/measure/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/measure/.dirs/runtime 1716s ok 18 /file/measure 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/measure-async/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/measure-async/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/measure-async/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/measure-async/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/measure-async/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/measure-async/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/measure-async/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/measure-async/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/measure-async/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/measure-async/.dirs/runtime 1716s ok 19 /file/measure-async 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/load-bytes/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/load-bytes/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/load-bytes/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/load-bytes/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/load-bytes/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/load-bytes/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/load-bytes/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/load-bytes/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/load-bytes/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/load-bytes/.dirs/runtime 1716s ok 20 /file/load-bytes 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/load-bytes-async/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/load-bytes-async/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/load-bytes-async/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/load-bytes-async/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/load-bytes-async/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/load-bytes-async/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/load-bytes-async/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/load-bytes-async/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/load-bytes-async/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/load-bytes-async/.dirs/runtime 1716s ok 21 /file/load-bytes-async 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/load-bytes-4gb/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/load-bytes-4gb/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/load-bytes-4gb/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/load-bytes-4gb/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/load-bytes-4gb/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/load-bytes-4gb/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/load-bytes-4gb/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/load-bytes-4gb/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/load-bytes-4gb/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/load-bytes-4gb/.dirs/runtime 1716s ok 22 /file/load-bytes-4gb # SKIP Skipping slow >4GB file test 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/load-contents-4gb/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/load-contents-4gb/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/load-contents-4gb/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/load-contents-4gb/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/load-contents-4gb/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/load-contents-4gb/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/load-contents-4gb/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/load-contents-4gb/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/load-contents-4gb/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/load-contents-4gb/.dirs/runtime 1716s ok 23 /file/load-contents-4gb # SKIP Skipping slow >4GB file test 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/load-contents-4gb-async/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/load-contents-4gb-async/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/load-contents-4gb-async/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/load-contents-4gb-async/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/load-contents-4gb-async/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/load-contents-4gb-async/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/load-contents-4gb-async/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/load-contents-4gb-async/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/load-contents-4gb-async/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/load-contents-4gb-async/.dirs/runtime 1716s ok 24 /file/load-contents-4gb-async # SKIP Skipping slow >4GB file test 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/writev/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/writev/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/writev/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/writev/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/writev/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/writev/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/writev/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/writev/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/writev/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/writev/.dirs/runtime 1716s ok 25 /file/writev 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/build-attribute-list-for-copy/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/build-attribute-list-for-copy/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/build-attribute-list-for-copy/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/build-attribute-list-for-copy/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/build-attribute-list-for-copy/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/build-attribute-list-for-copy/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/build-attribute-list-for-copy/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/build-attribute-list-for-copy/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/build-attribute-list-for-copy/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/build-attribute-list-for-copy/.dirs/runtime 1716s # Attributes for copy: standard::size,time::modified,time::modified-nsec,time::modified-usec,unix::mode,xattr::* 1716s # Attributes for copy: standard::size,time::modified,time::modified-nsec,time::modified-usec,xattr::* 1716s # Attributes for copy: standard::size,time::access,time::access-nsec,time::access-usec,time::modified,time::modified-nsec,time::modified-usec,unix::gid,unix::mode,unix::uid,xattr::*,xattr-sys::* 1716s # Attributes for copy: standard::size,time::access,time::access-nsec,time::access-usec,time::modified,time::modified-nsec,time::modified-usec,unix::gid,unix::uid,xattr::*,xattr-sys::* 1716s # Attributes for copy: standard::size,time::access,time::access-nsec,time::access-usec,unix::gid,unix::mode,unix::uid,xattr::*,xattr-sys::* 1716s # Attributes for copy: standard::size,xattr::* 1716s # Attributes for copy: standard::size,unix::mode,xattr::* 1716s ok 26 /file/build-attribute-list-for-copy 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/move_async/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/move_async/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/move_async/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/move_async/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/move_async/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/move_async/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/move_async/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/move_async/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/move_async/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/move_async/.dirs/runtime 1716s ok 27 /file/move_async 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/move-async-with-closures/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/move-async-with-closures/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/move-async-with-closures/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/move-async-with-closures/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/move-async-with-closures/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/move-async-with-closures/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/move-async-with-closures/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/move-async-with-closures/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/move-async-with-closures/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/move-async-with-closures/.dirs/runtime 1716s ok 28 /file/move-async-with-closures 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/query-zero-length-content-type/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/query-zero-length-content-type/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/query-zero-length-content-type/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/query-zero-length-content-type/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/query-zero-length-content-type/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/query-zero-length-content-type/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/query-zero-length-content-type/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/query-zero-length-content-type/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/query-zero-length-content-type/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/query-zero-length-content-type/.dirs/runtime 1716s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=755795 1716s # /file/query-zero-length-content-type summary: empty files should always be considered application/x-zerosize 1716s ok 29 /file/query-zero-length-content-type 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/query-default-handler-file/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/query-default-handler-file/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/query-default-handler-file/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/query-default-handler-file/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/query-default-handler-file/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/query-default-handler-file/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/query-default-handler-file/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/query-default-handler-file/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/query-default-handler-file/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/query-default-handler-file/.dirs/runtime 1716s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_4Q0GC3/file/query-default-handler-file/.dirs/data/applications 1716s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_4Q0GC3/file/query-default-handler-file/.dirs/config 1716s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_4Q0GC3/file/query-default-handler-file/.dirs/config 1716s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_4Q0GC3/file/query-default-handler-file/.dirs/config 1716s ok 30 /file/query-default-handler-file 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/query-default-handler-file-async/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/query-default-handler-file-async/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/query-default-handler-file-async/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/query-default-handler-file-async/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/query-default-handler-file-async/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/query-default-handler-file-async/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/query-default-handler-file-async/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/query-default-handler-file-async/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/query-default-handler-file-async/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/query-default-handler-file-async/.dirs/runtime 1716s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_4Q0GC3/file/query-default-handler-file-async/.dirs/data/applications 1716s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_4Q0GC3/file/query-default-handler-file-async/.dirs/config 1716s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_4Q0GC3/file/query-default-handler-file/.dirs/config to /tmp/test_file_4Q0GC3/file/query-default-handler-file-async/.dirs/config 1716s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_4Q0GC3/file/query-default-handler-file-async/.dirs/config 1716s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_4Q0GC3/file/query-default-handler-file-async/.dirs/config 1716s ok 31 /file/query-default-handler-file-async 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/query-default-handler-uri/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/query-default-handler-uri/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/query-default-handler-uri/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/query-default-handler-uri/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/query-default-handler-uri/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/query-default-handler-uri/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/query-default-handler-uri/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/query-default-handler-uri/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/query-default-handler-uri/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/query-default-handler-uri/.dirs/runtime 1716s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_4Q0GC3/file/query-default-handler-uri/.dirs/data/applications 1716s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_4Q0GC3/file/query-default-handler-uri/.dirs/config 1716s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_4Q0GC3/file/query-default-handler-file-async/.dirs/config to /tmp/test_file_4Q0GC3/file/query-default-handler-uri/.dirs/config 1716s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_4Q0GC3/file/query-default-handler-uri/.dirs/config 1716s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_4Q0GC3/file/query-default-handler-uri/.dirs/config 1716s ok 32 /file/query-default-handler-uri 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/query-default-handler-uri-async/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/query-default-handler-uri-async/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/query-default-handler-uri-async/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/query-default-handler-uri-async/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/query-default-handler-uri-async/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/query-default-handler-uri-async/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/query-default-handler-uri-async/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/query-default-handler-uri-async/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/query-default-handler-uri-async/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/query-default-handler-uri-async/.dirs/runtime 1716s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_4Q0GC3/file/query-default-handler-uri-async/.dirs/data/applications 1716s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_4Q0GC3/file/query-default-handler-uri-async/.dirs/config 1716s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_4Q0GC3/file/query-default-handler-uri/.dirs/config to /tmp/test_file_4Q0GC3/file/query-default-handler-uri-async/.dirs/config 1716s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_4Q0GC3/file/query-default-handler-uri-async/.dirs/config 1716s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_4Q0GC3/file/query-default-handler-uri-async/.dirs/config 1716s ok 33 /file/query-default-handler-uri-async 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/enumerator-cancellation/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/enumerator-cancellation/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/enumerator-cancellation/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/enumerator-cancellation/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/enumerator-cancellation/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/enumerator-cancellation/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/enumerator-cancellation/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/enumerator-cancellation/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/enumerator-cancellation/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/enumerator-cancellation/.dirs/runtime 1716s ok 34 /file/enumerator-cancellation 1716s # Start of async-create-delete tests 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/async-create-delete/0/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/async-create-delete/0/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/async-create-delete/0/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/async-create-delete/0/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/async-create-delete/0/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/async-create-delete/0/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/async-create-delete/0/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/async-create-delete/0/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/async-create-delete/0/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/async-create-delete/0/.dirs/runtime 1716s ok 35 /file/async-create-delete/0 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/async-create-delete/1/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/async-create-delete/1/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/async-create-delete/1/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/async-create-delete/1/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/async-create-delete/1/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/async-create-delete/1/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/async-create-delete/1/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/async-create-delete/1/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/async-create-delete/1/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/async-create-delete/1/.dirs/runtime 1716s ok 36 /file/async-create-delete/1 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/async-create-delete/10/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/async-create-delete/10/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/async-create-delete/10/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/async-create-delete/10/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/async-create-delete/10/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/async-create-delete/10/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/async-create-delete/10/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/async-create-delete/10/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/async-create-delete/10/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/async-create-delete/10/.dirs/runtime 1716s ok 37 /file/async-create-delete/10 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/async-create-delete/25/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/async-create-delete/25/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/async-create-delete/25/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/async-create-delete/25/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/async-create-delete/25/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/async-create-delete/25/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/async-create-delete/25/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/async-create-delete/25/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/async-create-delete/25/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/async-create-delete/25/.dirs/runtime 1716s ok 38 /file/async-create-delete/25 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/async-create-delete/4096/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/async-create-delete/4096/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/async-create-delete/4096/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/async-create-delete/4096/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/async-create-delete/4096/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/async-create-delete/4096/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/async-create-delete/4096/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/async-create-delete/4096/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/async-create-delete/4096/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/async-create-delete/4096/.dirs/runtime 1716s ok 39 /file/async-create-delete/4096 1716s # End of async-create-delete tests 1716s # Start of replace-symlink tests 1716s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/replace-symlink/using-etag/.dirs/home 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/replace-symlink/using-etag/.dirs/cache 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/replace-symlink/using-etag/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/replace-symlink/using-etag/.dirs/system-config2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/replace-symlink/using-etag/.dirs/config 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/replace-symlink/using-etag/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/replace-symlink/using-etag/.dirs/system-data2 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/replace-symlink/using-etag/.dirs/data 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/replace-symlink/using-etag/.dirs/state 1716s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/replace-symlink/using-etag/.dirs/runtime 1716s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2417 1716s # /file/replace-symlink/using-etag summary: Test that ETag checks work when replacing a file through a symlink 1716s # Using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_symlink_using_etag_1CE2B3 1716s # Executing: glib/file.test 1718s ok 40 /file/replace-symlink/using-etag 1718s # slow test /file/replace-symlink/using-etag executed in 2.00 secs 1718s # End of replace-symlink tests 1718s # Start of replace tests 1718s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/replace/write-only/.dirs/home 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/replace/write-only/.dirs/cache 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/replace/write-only/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/replace/write-only/.dirs/system-config2 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/replace/write-only/.dirs/config 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/replace/write-only/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/replace/write-only/.dirs/system-data2 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/replace/write-only/.dirs/data 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/replace/write-only/.dirs/state 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/replace/write-only/.dirs/runtime 1718s # /file/replace/write-only summary: Test various situations for g_file_replace() 1718s # Current umask: 2 1718s # Test 0, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_QZE7B3 1718s # Test 1, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_X3E7B3 1718s # Test 2, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_OXD7B3 1718s # Test 3, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_XLG7B3 1718s # Test 4, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_0YG7B3 1718s # Test 5, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_D5G7B3 1718s # Test 6, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_6YL7B3 1718s # Test 7, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_O6N7B3 1718s # Test 8, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_XLO7B3 1718s # Test 9, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_NSO7B3 1718s # Test 10, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_H6M7B3 1718s # Test 11, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_N626B3 1718s # Test 12, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_KA36B3 1718s # Test 13, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_CL06B3 1718s # Test 14, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_QO56B3 1718s # Test 15, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_0576B3 1718s # Test 16, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_SA76B3 1718s # Test 17, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_XMC7B3 1718s # Test 18, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_DSP6B3 1718s # Test 19, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_KQO6B3 1718s # Test 20, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_RWQ6B3 1718s # Test 21, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_XRV6B3 1718s # Test 22, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_2SU6B3 1718s # Test 23, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_30U6B3 1718s # Test 24, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_I0Z6B3 1718s # Test 25, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_UCY6B3 1718s # Test 26, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_2PC6B3 1718s # Test 27, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_PYC6B3 1718s # Test 28, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_ULB6B3 1718s # Test 29, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_3MG6B3 1718s # Test 30, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_61G6B3 1718s # Test 31, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_G9G6B3 1718s # Test 32, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_1WI6B3 1718s # Test 33, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_LRH6B3 1718s # Test 34, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_66H6B3 1718s # Test 35, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_0OI6B3 1718s # Test 36, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_2PK6B3 1718s # Test 37, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_BK05B3 1718s # Test 38, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_F5Y5B3 1718s # Test 39, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_RZ35B3 1718s # Test 40, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_2E25B3 1718s # Test 41, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_I965B3 1718s # Test 42, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_HO55B3 1718s # Test 43, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_LIA6B3 1718s # Test 44, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_8F95B3 1718s # Test 45, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_6DN5B3 1718s # Test 46, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_H0L5B3 1718s # Test 47, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_P5L5B3 1718s # Test 48, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_5ER5B3 1718s # We do not have CAP_DAC_OVERRIDE or equivalent 1718s ok 41 /file/replace/write-only 1718s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/replace/read-write/.dirs/home 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/replace/read-write/.dirs/cache 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/replace/read-write/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/replace/read-write/.dirs/system-config2 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/replace/read-write/.dirs/config 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/replace/read-write/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/replace/read-write/.dirs/system-data2 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/replace/read-write/.dirs/data 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/replace/read-write/.dirs/state 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/replace/read-write/.dirs/runtime 1718s # /file/replace/read-write summary: Test various situations for g_file_replace() 1718s # Current umask: 2 1718s # Test 0, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_9PR5B3 1718s # Test 1, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_T3O5B3 1718s # Test 2, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_SOT5B3 1718s # Test 3, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_KSS5B3 1718s # Test 4, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_CXS5B3 1718s # Test 5, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_MAT5B3 1718s # Test 6, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_2EV5B3 1718s # Test 7, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_PCB5B3 1718s # Test 8, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_42B5B3 1718s # Test 9, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_I7B5B3 1718s # Test 10, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_V0D5B3 1718s # Test 11, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_A3C5B3 1718s # Test 12, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_M4C5B3 1718s # Test 13, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_HTD5B3 1718s # Test 14, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_5IF5B3 1718s # Test 15, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_ZAL5B3 1718s # Test 16, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_CXJ5B3 1718s # Test 17, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_6OW4B3 1718s # Test 18, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_0I14B3 1718s # Test 19, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_DWZ4B3 1718s # Test 20, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_EK54B3 1718s # Test 21, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_9234B3 1718s # Test 22, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_S654B3 1718s # Test 23, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_0A64B3 1718s # Test 24, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_4E89B3 1718s # Test 25, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_YG79B3 1718s # Test 26, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_L2AAC3 1718s # Test 27, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_I8AAC3 1718s # Test 28, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_C399B3 1718s # Test 29, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_XWEAC3 1718s # Test 30, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_PCFAC3 1718s # Test 31, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_LJFAC3 1718s # Test 32, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_2FHAC3 1718s # Test 33, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_08FAC3 1718s # Test 34, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_JCGAC3 1718s # Test 35, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_DRGAC3 1718s # Test 36, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_1HW9B3 1718s # Test 37, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_FFY9B3 1718s # Test 38, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_D5W9B3 1718s # Test 39, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_7E29B3 1718s # Test 40, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_N509B3 1718s # Test 41, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_V129B3 1718s # Test 42, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_V8I9B3 1718s # Test 43, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_VRH9B3 1718s # Test 44, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_85M9B3 1718s # Test 45, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_35J9B3 1718s # Test 46, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_MUO9B3 1718s # Test 47, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_XDP9B3 1718s # Test 48, using temporary directory /tmp/test_file_4Q0GC3/g_file_replace_V6N9B3 1718s # We do not have CAP_DAC_OVERRIDE or equivalent 1718s ok 42 /file/replace/read-write 1718s # End of replace tests 1718s # Start of copy tests 1718s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/copy/progress/.dirs/home 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/copy/progress/.dirs/cache 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/copy/progress/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/copy/progress/.dirs/system-config2 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/copy/progress/.dirs/config 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/copy/progress/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/copy/progress/.dirs/system-data2 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/copy/progress/.dirs/data 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/copy/progress/.dirs/state 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/copy/progress/.dirs/runtime 1718s ok 43 /file/copy/progress 1718s # End of copy tests 1718s # Start of writev tests 1718s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/writev/no-bytes-written/.dirs/home 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/writev/no-bytes-written/.dirs/cache 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/writev/no-bytes-written/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/writev/no-bytes-written/.dirs/system-config2 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/writev/no-bytes-written/.dirs/config 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/writev/no-bytes-written/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/writev/no-bytes-written/.dirs/system-data2 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/writev/no-bytes-written/.dirs/data 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/writev/no-bytes-written/.dirs/state 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/writev/no-bytes-written/.dirs/runtime 1718s ok 44 /file/writev/no-bytes-written 1718s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/writev/no-vectors/.dirs/home 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/writev/no-vectors/.dirs/cache 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/writev/no-vectors/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/writev/no-vectors/.dirs/system-config2 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/writev/no-vectors/.dirs/config 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/writev/no-vectors/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/writev/no-vectors/.dirs/system-data2 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/writev/no-vectors/.dirs/data 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/writev/no-vectors/.dirs/state 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/writev/no-vectors/.dirs/runtime 1718s ok 45 /file/writev/no-vectors 1718s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/writev/empty-vectors/.dirs/home 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/writev/empty-vectors/.dirs/cache 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/writev/empty-vectors/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/writev/empty-vectors/.dirs/system-config2 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/writev/empty-vectors/.dirs/config 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/writev/empty-vectors/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/writev/empty-vectors/.dirs/system-data2 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/writev/empty-vectors/.dirs/data 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/writev/empty-vectors/.dirs/state 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/writev/empty-vectors/.dirs/runtime 1718s ok 46 /file/writev/empty-vectors 1718s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/writev/too-big-vectors/.dirs/home 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/writev/too-big-vectors/.dirs/cache 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/writev/too-big-vectors/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/writev/too-big-vectors/.dirs/system-config2 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/writev/too-big-vectors/.dirs/config 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/writev/too-big-vectors/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/writev/too-big-vectors/.dirs/system-data2 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/writev/too-big-vectors/.dirs/data 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/writev/too-big-vectors/.dirs/state 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/writev/too-big-vectors/.dirs/runtime 1718s ok 47 /file/writev/too-big-vectors 1718s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/writev/async/.dirs/home 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/writev/async/.dirs/cache 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/writev/async/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/writev/async/.dirs/system-config2 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/writev/async/.dirs/config 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/writev/async/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/writev/async/.dirs/system-data2 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/writev/async/.dirs/data 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/writev/async/.dirs/state 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/writev/async/.dirs/runtime 1718s ok 48 /file/writev/async 1718s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/writev/async_all/.dirs/home 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/writev/async_all/.dirs/cache 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/writev/async_all/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/writev/async_all/.dirs/system-config2 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/writev/async_all/.dirs/config 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/writev/async_all/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/writev/async_all/.dirs/system-data2 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/writev/async_all/.dirs/data 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/writev/async_all/.dirs/state 1718s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/writev/async_all/.dirs/runtime 1718s ok 49 /file/writev/async_all 1718s ok - glib/file.test 1718s # Running test: glib/init.test 1719s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/writev/async_all-empty-vectors/.dirs/home 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/writev/async_all-empty-vectors/.dirs/cache 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/writev/async_all-empty-vectors/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/writev/async_all-empty-vectors/.dirs/system-config2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/writev/async_all-empty-vectors/.dirs/config 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/writev/async_all-empty-vectors/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/writev/async_all-empty-vectors/.dirs/system-data2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/writev/async_all-empty-vectors/.dirs/data 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/writev/async_all-empty-vectors/.dirs/state 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/writev/async_all-empty-vectors/.dirs/runtime 1719s ok 50 /file/writev/async_all-empty-vectors 1719s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/writev/async_all-no-vectors/.dirs/home 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/writev/async_all-no-vectors/.dirs/cache 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/writev/async_all-no-vectors/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/writev/async_all-no-vectors/.dirs/system-config2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/writev/async_all-no-vectors/.dirs/config 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/writev/async_all-no-vectors/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/writev/async_all-no-vectors/.dirs/system-data2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/writev/async_all-no-vectors/.dirs/data 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/writev/async_all-no-vectors/.dirs/state 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/writev/async_all-no-vectors/.dirs/runtime 1719s ok 51 /file/writev/async_all-no-vectors 1719s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/writev/async_all-to-big-vectors/.dirs/home 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/writev/async_all-to-big-vectors/.dirs/cache 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/writev/async_all-to-big-vectors/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/writev/async_all-to-big-vectors/.dirs/system-config2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/writev/async_all-to-big-vectors/.dirs/config 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/writev/async_all-to-big-vectors/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/writev/async_all-to-big-vectors/.dirs/system-data2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/writev/async_all-to-big-vectors/.dirs/data 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/writev/async_all-to-big-vectors/.dirs/state 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/writev/async_all-to-big-vectors/.dirs/runtime 1719s ok 52 /file/writev/async_all-to-big-vectors 1719s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/writev/async_all-cancellation/.dirs/home 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/writev/async_all-cancellation/.dirs/cache 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/writev/async_all-cancellation/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/writev/async_all-cancellation/.dirs/system-config2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/writev/async_all-cancellation/.dirs/config 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/writev/async_all-cancellation/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/writev/async_all-cancellation/.dirs/system-data2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/writev/async_all-cancellation/.dirs/data 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/writev/async_all-cancellation/.dirs/state 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/writev/async_all-cancellation/.dirs/runtime 1719s ok 53 /file/writev/async_all-cancellation 1719s # End of writev tests 1719s # Start of from-uri tests 1719s ok - glib/init.test 1719s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/from-uri/ignores-query-string/.dirs/home 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/from-uri/ignores-query-string/.dirs/cache 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/from-uri/ignores-query-string/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/from-uri/ignores-query-string/.dirs/system-config2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/from-uri/ignores-query-string/.dirs/config 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/from-uri/ignores-query-string/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/from-uri/ignores-query-string/.dirs/system-data2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/from-uri/ignores-query-string/.dirs/data 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/from-uri/ignores-query-string/.dirs/state 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/from-uri/ignores-query-string/.dirs/runtime 1719s ok 54 /file/from-uri/ignores-query-string 1719s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_4Q0GC3/file/from-uri/ignores-fragment/.dirs/home 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_4Q0GC3/file/from-uri/ignores-fragment/.dirs/cache 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_4Q0GC3/file/from-uri/ignores-fragment/.dirs/system-config1:/tmp/test_file_4Q0GC3/file/from-uri/ignores-fragment/.dirs/system-config2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_4Q0GC3/file/from-uri/ignores-fragment/.dirs/config 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_4Q0GC3/file/from-uri/ignores-fragment/.dirs/system-data1:/tmp/test_file_4Q0GC3/file/from-uri/ignores-fragment/.dirs/system-data2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_4Q0GC3/file/from-uri/ignores-fragment/.dirs/data 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_4Q0GC3/file/from-uri/ignores-fragment/.dirs/state 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_4Q0GC3/file/from-uri/ignores-fragment/.dirs/runtime 1719s ok 55 /file/from-uri/ignores-fragment 1719s # End of from-uri tests 1719s # End of file tests 1719s TAP version 14 1719s # random seed: R02Sf7b20fe8677b5879f73233835bbd8de3 1719s 1..2 1719s # Start of thread tests 1719s # Start of deprecated tests 1719s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_init_EDG9B3/thread/deprecated/init/.dirs/home 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_init_EDG9B3/thread/deprecated/init/.dirs/cache 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_init_EDG9B3/thread/deprecated/init/.dirs/system-config1:/tmp/test_init_EDG9B3/thread/deprecated/init/.dirs/system-config2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_init_EDG9B3/thread/deprecated/init/.dirs/config 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_init_EDG9B3/thread/deprecated/init/.dirs/system-data1:/tmp/test_init_EDG9B3/thread/deprecated/init/.dirs/system-data2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_init_EDG9B3/thread/deprecated/init/.dirs/data 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_init_EDG9B3/thread/deprecated/init/.dirs/state 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_init_EDG9B3/thread/deprecated/init/.dirs/runtime 1719s ok 1 /thread/deprecated/init 1719s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_init_EDG9B3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/home 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_init_EDG9B3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/cache 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_init_EDG9B3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-config1:/tmp/test_init_EDG9B3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-config2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_init_EDG9B3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/config 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_init_EDG9B3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-data1:/tmp/test_init_EDG9B3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-data2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_init_EDG9B3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/data 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_init_EDG9B3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/state 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_init_EDG9B3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/runtime 1719s ok 2 /thread/deprecated/init-with-errorcheck-mutexes 1719s # End of deprecated tests 1719s # End of thread tests 1719s # Running test: glib/gdbus-names.test 1719s TAP version 14 1719s # random seed: R02S42e0d91359ebd0f37abe10893c1048bd 1719s 1..10 1719s # Start of gdbus tests 1719s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/validate-names/.dirs/home 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/validate-names/.dirs/cache 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_YAZ8B3/gdbus/validate-names/.dirs/system-config1:/tmp/test_gdbus-names_YAZ8B3/gdbus/validate-names/.dirs/system-config2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/validate-names/.dirs/config 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_YAZ8B3/gdbus/validate-names/.dirs/system-data1:/tmp/test_gdbus-names_YAZ8B3/gdbus/validate-names/.dirs/system-data2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/validate-names/.dirs/data 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/validate-names/.dirs/state 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_YAZ8B3/gdbus/validate-names/.dirs/runtime 1719s ok 1 /gdbus/validate-names 1719s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-own-name/.dirs/home 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-own-name/.dirs/cache 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-own-name/.dirs/system-config1:/tmp/test_gdbus-names_YAZ8B3/gdbus/bus-own-name/.dirs/system-config2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-own-name/.dirs/config 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-own-name/.dirs/system-data1:/tmp/test_gdbus-names_YAZ8B3/gdbus/bus-own-name/.dirs/system-data2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-own-name/.dirs/data 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-own-name/.dirs/state 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-own-name/.dirs/runtime 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s ok 2 /gdbus/bus-own-name 1719s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name/.dirs/home 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name/.dirs/cache 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name/.dirs/system-config1:/tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name/.dirs/system-config2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name/.dirs/config 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name/.dirs/system-data1:/tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name/.dirs/system-data2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name/.dirs/data 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name/.dirs/state 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name/.dirs/runtime 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s ok 3 /gdbus/bus-watch-name 1719s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-auto-start/.dirs/home 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-auto-start/.dirs/cache 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-auto-start/.dirs/system-config1:/tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-auto-start/.dirs/system-config2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-auto-start/.dirs/config 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-auto-start/.dirs/system-data1:/tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-auto-start/.dirs/system-data2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-auto-start/.dirs/data 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-auto-start/.dirs/state 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-auto-start/.dirs/runtime 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s ok 4 /gdbus/bus-watch-name-auto-start 1719s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/home 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/cache 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-config1:/tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-config2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/config 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-data1:/tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-data2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/data 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/state 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-auto-start-service-exist/.dirs/runtime 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1719s dbus-daemon[1796]: [session uid=1000 pid=1796 pidfd=4] Activating service name='org.gtk.GDBus.FakeService' requested by ':1.0' (uid=1000 pid=1787 comm="/usr/libexec/installed-tests/glib/gdbus-names" label="unconfined") 1719s # Acquired a message bus connection 1719s dbus-daemon[1796]: [session uid=1000 pid=1796 pidfd=4] Successfully activated service 'org.gtk.GDBus.FakeService' 1719s # Acquired the name org.gtk.GDBus.FakeService 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s ok 5 /gdbus/bus-watch-name-auto-start-service-exist 1719s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-closures/.dirs/home 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-closures/.dirs/cache 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-closures/.dirs/system-config1:/tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-closures/.dirs/system-config2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-closures/.dirs/config 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-closures/.dirs/system-data1:/tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-closures/.dirs/system-data2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-closures/.dirs/data 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-closures/.dirs/state 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-closures/.dirs/runtime 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s ok 6 /gdbus/bus-watch-name-closures 1719s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-closures-auto-start/.dirs/home 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-closures-auto-start/.dirs/cache 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-closures-auto-start/.dirs/system-config1:/tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-closures-auto-start/.dirs/system-config2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-closures-auto-start/.dirs/config 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-closures-auto-start/.dirs/system-data1:/tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-closures-auto-start/.dirs/system-data2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-closures-auto-start/.dirs/data 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-closures-auto-start/.dirs/state 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-name-closures-auto-start/.dirs/runtime 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s ok 7 /gdbus/bus-watch-name-closures-auto-start 1719s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-different-context/.dirs/home 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-different-context/.dirs/cache 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-different-context/.dirs/system-config1:/tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-different-context/.dirs/system-config2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-different-context/.dirs/config 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-different-context/.dirs/system-data1:/tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-different-context/.dirs/system-data2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-different-context/.dirs/data 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-different-context/.dirs/state 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-watch-different-context/.dirs/runtime 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s ok 8 /gdbus/bus-watch-different-context 1719s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-unwatch-early/.dirs/home 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-unwatch-early/.dirs/cache 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-unwatch-early/.dirs/system-config1:/tmp/test_gdbus-names_YAZ8B3/gdbus/bus-unwatch-early/.dirs/system-config2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-unwatch-early/.dirs/config 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-unwatch-early/.dirs/system-data1:/tmp/test_gdbus-names_YAZ8B3/gdbus/bus-unwatch-early/.dirs/system-data2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-unwatch-early/.dirs/data 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-unwatch-early/.dirs/state 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_YAZ8B3/gdbus/bus-unwatch-early/.dirs/runtime 1719s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/604 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1719s ok 9 /gdbus/bus-unwatch-early 1719s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/escape-object-path/.dirs/home 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/escape-object-path/.dirs/cache 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_YAZ8B3/gdbus/escape-object-path/.dirs/system-config1:/tmp/test_gdbus-names_YAZ8B3/gdbus/escape-object-path/.dirs/system-config2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/escape-object-path/.dirs/config 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_YAZ8B3/gdbus/escape-object-path/.dirs/system-data1:/tmp/test_gdbus-names_YAZ8B3/gdbus/escape-object-path/.dirs/system-data2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/escape-object-path/.dirs/data 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_YAZ8B3/gdbus/escape-object-path/.dirs/state 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_YAZ8B3/gdbus/escape-object-path/.dirs/runtime 1719s ok 10 /gdbus/escape-object-path 1719s # End of gdbus tests 1719s ok - glib/gdbus-names.test 1719s # Running test: glib/io-stream.test 1719s TAP version 14 1719s # random seed: R02Sb78e988ca80cfaca991746f517273069 1719s 1..3 1719s # Start of io-stream tests 1719s ok 1 /io-stream/copy-chunks 1719s # Start of close tests 1719s # Start of async tests 1719s ok 2 /io-stream/close/async/memory 1719s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1719s ok 3 /io-stream/close/async/file 1719s # End of async tests 1719s # End of close tests 1719s # End of io-stream tests 1719s ok - glib/io-stream.test 1719s # Running test: glib/gdbus-non-socket.test 1719s TAP version 14 1719s # random seed: R02S8e76abb6f4d9ea6e28e4b7fe14d9a811 1719s 1..1 1719s # Start of gdbus tests 1719s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-non-socket_U7FFC3/gdbus/non-socket/.dirs/home 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-non-socket_U7FFC3/gdbus/non-socket/.dirs/cache 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-non-socket_U7FFC3/gdbus/non-socket/.dirs/system-config1:/tmp/test_gdbus-non-socket_U7FFC3/gdbus/non-socket/.dirs/system-config2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-non-socket_U7FFC3/gdbus/non-socket/.dirs/config 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-non-socket_U7FFC3/gdbus/non-socket/.dirs/system-data1:/tmp/test_gdbus-non-socket_U7FFC3/gdbus/non-socket/.dirs/system-data2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-non-socket_U7FFC3/gdbus/non-socket/.dirs/data 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-non-socket_U7FFC3/gdbus/non-socket/.dirs/state 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-non-socket_U7FFC3/gdbus/non-socket/.dirs/runtime 1719s ok 1 /gdbus/non-socket 1719s # End of gdbus tests 1719s ok - glib/gdbus-non-socket.test 1719s # Running test: glib/socket-service.test 1719s TAP version 14 1719s # random seed: R02S8430895cca55054cb49e6ad969909ea4 1719s 1..4 1719s # Start of socket-service tests 1719s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1719s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xe70c590 and GSocketClientAsyncConnectData 0xe702c50 1719s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1719s ok 1 /socket-service/start-stop 1719s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xe707e80 and GSocketClientAsyncConnectData 0xe707e08 1719s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1719s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1719s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xe705d88 for GSocketClientAsyncConnectData 0xe702c50 1719s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1719s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1719s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1719s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1719s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1719s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xe7024a8 for GSocketClientAsyncConnectData 0xe707e08 1719s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1719s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1719s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1719s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1719s ok 2 /socket-service/read_write_async 1719s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xe7073a8 and GSocketClientAsyncConnectData 0xe7082c8 1719s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1719s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1719s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xe707b78 for GSocketClientAsyncConnectData 0xe7082c8 1719s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1719s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1719s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1719s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1719s ok 3 /socket-service/read_writev_async 1719s # Start of threaded tests 1719s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=712570 1719s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xe70a3d8 and GSocketClientAsyncConnectData 0xe709840 1719s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1719s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1719s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xe70a560 for GSocketClientAsyncConnectData 0xe709840 1719s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1719s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1719s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1719s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1719s ok 4 /socket-service/threaded/712570 1719s # End of threaded tests 1719s # End of socket-service tests 1719s ok - glib/socket-service.test 1719s # Running test: glib/atomic-c-99.test 1719s TAP version 14 1719s # random seed: R02S95668d14d2b84d4c3396b29b772c9ccb 1719s 1..2 1719s # Start of atomic tests 1719s ok 1 /atomic/types 1719s ok 2 /atomic/threaded 1719s # End of atomic tests 1719s ok - glib/atomic-c-99.test 1719s # Running test: glib/references.test 1719s TAP version 14 1719s # random seed: R02S5dff0922b2250ba089e84cc91bf96477 1719s 1..4 1719s # Start of gobject tests 1719s ok 1 /gobject/references 1719s ok 2 /gobject/references-many 1719s ok 3 /gobject/references_two 1719s ok 4 /gobject/references_run_dispose 1719s # End of gobject tests 1719s ok - glib/references.test 1719s # Running test: glib/type.test 1719s TAP version 14 1719s # random seed: R02Sa1f064979f711b1890c2e0589b26d39b 1719s 1..6 1719s # Start of type tests 1719s ok 1 /type/registration-serial 1719s ok 2 /type/interface-prerequisite 1719s ok 3 /type/interface-check 1719s ok 4 /type/next-base 1719s ok 5 /type/is-a 1719s # Invalid types can’t be queried. 1719s # Unclassed types can’t be queried. 1719s ok 6 /type/query 1719s # End of type tests 1719s ok - glib/type.test 1719s # Running test: glib/utils-isolated.test 1719s TAP version 14 1719s # random seed: R02S17e3505bf5ea96893d61a4735007ea79 1719s 1..11 1719s # Start of utils-isolated tests 1719s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/tmp-dir/.dirs/home 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/tmp-dir/.dirs/cache 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_U5H4B3/utils-isolated/tmp-dir/.dirs/system-config1:/tmp/test_utils-isolated_U5H4B3/utils-isolated/tmp-dir/.dirs/system-config2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/tmp-dir/.dirs/config 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_U5H4B3/utils-isolated/tmp-dir/.dirs/system-data1:/tmp/test_utils-isolated_U5H4B3/utils-isolated/tmp-dir/.dirs/system-data2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/tmp-dir/.dirs/data 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/tmp-dir/.dirs/state 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_U5H4B3/utils-isolated/tmp-dir/.dirs/runtime 1719s ok 1 /utils-isolated/tmp-dir 1719s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/home-dir/.dirs/home 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/home-dir/.dirs/cache 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_U5H4B3/utils-isolated/home-dir/.dirs/system-config1:/tmp/test_utils-isolated_U5H4B3/utils-isolated/home-dir/.dirs/system-config2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/home-dir/.dirs/config 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_U5H4B3/utils-isolated/home-dir/.dirs/system-data1:/tmp/test_utils-isolated_U5H4B3/utils-isolated/home-dir/.dirs/system-data2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/home-dir/.dirs/data 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/home-dir/.dirs/state 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_U5H4B3/utils-isolated/home-dir/.dirs/runtime 1719s ok 2 /utils-isolated/home-dir 1719s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-cache-dir/.dirs/home 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-cache-dir/.dirs/cache 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-cache-dir/.dirs/system-config1:/tmp/test_utils-isolated_U5H4B3/utils-isolated/user-cache-dir/.dirs/system-config2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-cache-dir/.dirs/config 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-cache-dir/.dirs/system-data1:/tmp/test_utils-isolated_U5H4B3/utils-isolated/user-cache-dir/.dirs/system-data2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-cache-dir/.dirs/data 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-cache-dir/.dirs/state 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-cache-dir/.dirs/runtime 1719s ok 3 /utils-isolated/user-cache-dir 1719s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/system-config-dirs/.dirs/home 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/system-config-dirs/.dirs/cache 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_U5H4B3/utils-isolated/system-config-dirs/.dirs/system-config1:/tmp/test_utils-isolated_U5H4B3/utils-isolated/system-config-dirs/.dirs/system-config2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/system-config-dirs/.dirs/config 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_U5H4B3/utils-isolated/system-config-dirs/.dirs/system-data1:/tmp/test_utils-isolated_U5H4B3/utils-isolated/system-config-dirs/.dirs/system-data2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/system-config-dirs/.dirs/data 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/system-config-dirs/.dirs/state 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_U5H4B3/utils-isolated/system-config-dirs/.dirs/runtime 1719s ok 4 /utils-isolated/system-config-dirs 1719s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-config-dir/.dirs/home 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-config-dir/.dirs/cache 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-config-dir/.dirs/system-config1:/tmp/test_utils-isolated_U5H4B3/utils-isolated/user-config-dir/.dirs/system-config2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-config-dir/.dirs/config 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-config-dir/.dirs/system-data1:/tmp/test_utils-isolated_U5H4B3/utils-isolated/user-config-dir/.dirs/system-data2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-config-dir/.dirs/data 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-config-dir/.dirs/state 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-config-dir/.dirs/runtime 1719s ok 5 /utils-isolated/user-config-dir 1719s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/system-data-dirs/.dirs/home 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/system-data-dirs/.dirs/cache 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_U5H4B3/utils-isolated/system-data-dirs/.dirs/system-config1:/tmp/test_utils-isolated_U5H4B3/utils-isolated/system-data-dirs/.dirs/system-config2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/system-data-dirs/.dirs/config 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_U5H4B3/utils-isolated/system-data-dirs/.dirs/system-data1:/tmp/test_utils-isolated_U5H4B3/utils-isolated/system-data-dirs/.dirs/system-data2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/system-data-dirs/.dirs/data 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/system-data-dirs/.dirs/state 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_U5H4B3/utils-isolated/system-data-dirs/.dirs/runtime 1719s ok 6 /utils-isolated/system-data-dirs 1719s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-data-dir/.dirs/home 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-data-dir/.dirs/cache 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-data-dir/.dirs/system-config1:/tmp/test_utils-isolated_U5H4B3/utils-isolated/user-data-dir/.dirs/system-config2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-data-dir/.dirs/config 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-data-dir/.dirs/system-data1:/tmp/test_utils-isolated_U5H4B3/utils-isolated/user-data-dir/.dirs/system-data2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-data-dir/.dirs/data 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-data-dir/.dirs/state 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-data-dir/.dirs/runtime 1719s ok 7 /utils-isolated/user-data-dir 1719s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-state-dir/.dirs/home 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-state-dir/.dirs/cache 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-state-dir/.dirs/system-config1:/tmp/test_utils-isolated_U5H4B3/utils-isolated/user-state-dir/.dirs/system-config2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-state-dir/.dirs/config 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-state-dir/.dirs/system-data1:/tmp/test_utils-isolated_U5H4B3/utils-isolated/user-state-dir/.dirs/system-data2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-state-dir/.dirs/data 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-state-dir/.dirs/state 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-state-dir/.dirs/runtime 1719s ok 8 /utils-isolated/user-state-dir 1719s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-runtime-dir/.dirs/home 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-runtime-dir/.dirs/cache 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-runtime-dir/.dirs/system-config1:/tmp/test_utils-isolated_U5H4B3/utils-isolated/user-runtime-dir/.dirs/system-config2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-runtime-dir/.dirs/config 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-runtime-dir/.dirs/system-data1:/tmp/test_utils-isolated_U5H4B3/utils-isolated/user-runtime-dir/.dirs/system-data2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-runtime-dir/.dirs/data 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-runtime-dir/.dirs/state 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_U5H4B3/utils-isolated/user-runtime-dir/.dirs/runtime 1719s ok 9 /utils-isolated/user-runtime-dir 1719s # Start of cleanup tests 1719s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/cleanup/handles-errors/.dirs/home 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/cleanup/handles-errors/.dirs/cache 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_U5H4B3/utils-isolated/cleanup/handles-errors/.dirs/system-config1:/tmp/test_utils-isolated_U5H4B3/utils-isolated/cleanup/handles-errors/.dirs/system-config2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/cleanup/handles-errors/.dirs/config 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_U5H4B3/utils-isolated/cleanup/handles-errors/.dirs/system-data1:/tmp/test_utils-isolated_U5H4B3/utils-isolated/cleanup/handles-errors/.dirs/system-data2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/cleanup/handles-errors/.dirs/data 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/cleanup/handles-errors/.dirs/state 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_U5H4B3/utils-isolated/cleanup/handles-errors/.dirs/runtime 1719s Unable to clean up temporary directory /tmp/test_utils-isolated_U5H4B3/utils-isolated/cleanup/handles-errors/.dirs/runtime: Directory not empty 1719s Unable to clean up temporary directory /tmp/test_utils-isolated_U5H4B3/utils-isolated/cleanup/handles-errors/.dirs: Directory not empty 1719s Unable to clean up temporary directory /tmp/test_utils-isolated_U5H4B3/utils-isolated/cleanup/handles-errors: Directory not empty 1719s ok 10 /utils-isolated/cleanup/handles-errors 1719s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/home 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/cache 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_U5H4B3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-config1:/tmp/test_utils-isolated_U5H4B3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-config2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/config 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_U5H4B3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-data1:/tmp/test_utils-isolated_U5H4B3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-data2 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/data 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_U5H4B3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/state 1719s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_U5H4B3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/runtime 1719s Unable to clean up temporary directory /tmp/test_utils-isolated_U5H4B3/utils-isolated/cleanup/doesnt-follow-symlinks: No such file or directory 1719s ok 11 /utils-isolated/cleanup/doesnt-follow-symlinks 1719s # End of cleanup tests 1719s # End of utils-isolated tests 1719s ok - glib/utils-isolated.test 1719s # Running test: glib/spawn-path-search.test 1719s TAP version 14 1719s # random seed: R02S11d0cba97d48e96940754f689905d113 1719s 1..7 1719s # Start of spawn tests 1719s # /spawn/do-not-search summary: Without G_SPAWN_SEARCH_PATH, spawn-test-helper means ./spawn-test-helper. 1719s # 1719s # this is spawn-test-helper from glib/tests 1719s # 1719s ok 1 /spawn/do-not-search 1719s # /spawn/search-path summary: With G_SPAWN_SEARCH_PATH, spawn-test-helper means $PATH/spawn-test-helper. 1719s # 1719s # this is spawn-test-helper from path-test-subdir 1719s # 1719s ok 2 /spawn/search-path 1719s # /spawn/search-path-from-envp summary: With G_SPAWN_SEARCH_PATH_FROM_ENVP, spawn-test-helper means $PATH/spawn-test-helper with $PATH from envp. 1719s # 1719s # this is spawn-test-helper from path-test-subdir 1719s # 1719s ok 3 /spawn/search-path-from-envp 1719s # /spawn/search-path-ambiguous summary: With G_SPAWN_SEARCH_PATH and G_SPAWN_SEARCH_PATH_FROM_ENVP, the latter wins. 1719s # 1719s # this is spawn-test-helper from path-test-subdir 1719s # 1719s ok 4 /spawn/search-path-ambiguous 1719s # 1719s # this is spawn-test-helper from path-test-subdir 1719s # 1719s ok 5 /spawn/search-path-heap-allocation 1719s # /spawn/search-path-fallback-in-environ summary: With G_SPAWN_SEARCH_PATH but no PATH, a fallback is used. 1719s # 1719s # this is spawn-test-helper from glib/tests 1719s # 1719s ok 6 /spawn/search-path-fallback-in-environ 1719s # /spawn/search-path-fallback-in-envp summary: With G_SPAWN_SEARCH_PATH_FROM_ENVP but no PATH, a fallback is used. 1719s # 1719s # this is spawn-test-helper from glib/tests 1719s # 1719s ok 7 /spawn/search-path-fallback-in-envp 1719s # End of spawn tests 1719s ok - glib/spawn-path-search.test 1719s # Running test: glib/gobject-private.test 1719s TAP version 14 1719s # random seed: R02S30bfceb1067a59b381ae1d29424aeb58 1719s 1..3 1719s # Start of private tests 1719s ok 1 /private/instance 1719s ok 2 /private/derived-instance 1719s ok 3 /private/mixed-derived-instance 1719s # End of private tests 1719s ok - glib/gobject-private.test 1719s # Running test: glib/mutex.test 1719s TAP version 14 1719s # random seed: R02S0b3f8e24795ed31001ddb317712b9d03 1719s 1..17 1719s # Start of thread tests 1719s ok 1 /thread/mutex1 1719s ok 2 /thread/mutex2 1719s ok 3 /thread/mutex3 1719s ok 4 /thread/mutex4 1721s # Executing: glib/mutex.test 1722s ok 5 /thread/mutex5 1722s # slow test /thread/mutex5 executed in 2.26 secs 1722s # Start of mutex tests 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1722s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1722s ok 6 /thread/mutex/errno 1722s # Start of perf tests 1722s # max perf: 1.000000 mips 1722s ok 7 /thread/mutex/perf/uncontended 1722s # Start of contended tests 1722s # max perf: 1.000000 mips 1722s ok 8 /thread/mutex/perf/contended/1 1722s # max perf: inf mips 1722s ok 9 /thread/mutex/perf/contended/2 1722s ok - glib/mutex.test 1722s # max perf: inf mips 1722s ok 10 /thread/mutex/perf/contended/3 1722s # max perf: 0.454545 mips 1722s ok 11 /thread/mutex/perf/contended/4 1722s # max perf: 0.375000 mips 1722s ok 12 /thread/mutex/perf/contended/5 1722s # max perf: 0.280000 mips 1722s ok 13 /thread/mutex/perf/contended/6 1722s # max perf: 0.153846 mips 1722s ok 14 /thread/mutex/perf/contended/7 1722s # max perf: 0.281250 mips 1722s ok 15 /thread/mutex/perf/contended/8 1722s # max perf: 0.243902 mips 1722s ok 16 /thread/mutex/perf/contended/9 1722s # max perf: 0.057895 mips 1722s ok 17 /thread/mutex/perf/contended/10 1722s # End of contended tests 1722s # End of perf tests 1722s # End of mutex tests 1722s # End of thread tests 1722s TAP version 14 1722s # random seed: R02Se265d866103d5935baa73708d727d08a 1722s 1..52 1722s # Start of shell tests 1722s # Start of cmdline tests 1722s test cmdline: foo bar 1722s ok 1 /shell/cmdline/0 1722s test cmdline: foo 'bar' 1722s ok 2 /shell/cmdline/1 1722s test cmdline: foo "bar" 1722s ok 3 /shell/cmdline/2 1722s test cmdline: foo '' 'bar' 1722s ok 4 /shell/cmdline/3 1722s test cmdline: foo "bar"'baz'blah'foo'\''blah'"boo" 1722s ok 5 /shell/cmdline/4 1722s test cmdline: foo blah foo bar baz 1722s ok 6 /shell/cmdline/5 1722s test cmdline: foo ' spaces more spaces lots of spaces in this ' 1722s ok 7 /shell/cmdline/6 1722s test cmdline: foo \ 1722s bar 1722s ok 8 /shell/cmdline/7 1722s test cmdline: foo '' '' 1722s ok 9 /shell/cmdline/8 1722s test cmdline: foo \" la la la 1722s ok 10 /shell/cmdline/9 1722s test cmdline: foo \ foo woo woo\ 1722s ok 11 /shell/cmdline/10 1722s test cmdline: foo "yada yada \$\"" 1722s ok 12 /shell/cmdline/11 1722s test cmdline: foo "c:\\" 1722s ok 13 /shell/cmdline/12 1722s test cmdline: foo # bla bla bla 1722s bar 1722s ok 14 /shell/cmdline/13 1722s test cmdline: foo a#b 1722s ok 15 /shell/cmdline/14 1722s test cmdline: #foo 1722s ok 16 /shell/cmdline/15 1722s test cmdline: foo bar \ 1722s ok 17 /shell/cmdline/16 1722s test cmdline: foo 'bar baz 1722s ok 18 /shell/cmdline/17 1722s test cmdline: foo '"bar" baz 1722s ok 19 /shell/cmdline/18 1722s test cmdline: 1722s ok 20 /shell/cmdline/19 1722s test cmdline: 1722s ok 21 /shell/cmdline/20 1722s test cmdline: # foo bar 1722s ok 22 /shell/cmdline/21 1722s test cmdline: # 1722s ok 23 /shell/cmdline/22 1722s test cmdline: foo '/bar/summer'\''09 tours.pdf' 1722s ok 24 /shell/cmdline/23 1722s # End of cmdline tests 1722s # Start of quote tests 1722s ok 25 /shell/quote/0 1722s ok 26 /shell/quote/1 1722s ok 27 /shell/quote/2 1722s ok 28 /shell/quote/3 1722s ok 29 /shell/quote/4 1722s ok 30 /shell/quote/5 1722s ok 31 /shell/quote/6 1722s # End of quote tests 1722s # Start of unquote tests 1722s ok 32 /shell/unquote/0 1722s ok 33 /shell/unquote/1 1722s ok 34 /shell/unquote/2 1722s ok 35 /shell/unquote/3 1722s ok 36 /shell/unquote/4 1722s ok 37 /shell/unquote/5 1722s ok 38 /shell/unquote/6 1722s ok 39 /shell/unquote/7 1722s ok 40 /shell/unquote/8 1722s ok 41 /shell/unquote/9 1722s ok 42 /shell/unquote/10 1722s ok 43 /shell/unquote/11 1722s ok 44 /shell/unquote/12 1722s ok 45 /shell/unquote/13 1722s ok 46 /shell/unquote/14 1722s ok 47 /shell/unquote/15 1722s ok 48 /shell/unquote/16 1722s ok 49 /shell/unquote/17 1722s ok 50 /shell/unquote/18 1722s ok 51 /shell/unquote/19 1722s ok 52 /shell/unquote/20 1722s # End of unquote tests 1722s # End of shell tests 1722s TAP version 14 1722s # random seed: R02S9962489ea10a9b3e0f335a987f639e33 1722s 1..2 1722s # Start of gdbus tests 1722s # Start of connection tests 1722s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-slow_2SQHC3/gdbus/connection/flush/.dirs/home 1722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-slow_2SQHC3/gdbus/connection/flush/.dirs/cache 1722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-slow_2SQHC3/gdbus/connection/flush/.dirs/system-config1:/tmp/test_gdbus-connection-slow_2SQHC3/gdbus/connection/flush/.dirs/system-config2 1722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-slow_2SQHC3/gdbus/connection/flush/.dirs/config 1722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-slow_2SQHC3/gdbus/connection/flush/.dirs/system-data1:/tmp/test_gdbus-connection-slow_2SQHC3/gdbus/connection/flush/.dirs/system-data2 1722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-slow_2SQHC3/gdbus/connection/flush/.dirs/data 1722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-slow_2SQHC3/gdbus/connection/flush/.dirs/state 1722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-slow_2SQHC3/gdbus/connection/flush/.dirs/runtime 1722s # Running test: glib/shell.test 1722s ok - glib/shell.test 1722s # Running test: glib/gdbus-connection-slow.test 1722s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1722s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1722s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1722s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1722s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1722s ok 1 /gdbus/connection/flush 1722s # slow test /gdbus/connection/flush executed in 0.57 secs 1722s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-slow_2SQHC3/gdbus/connection/large_message/.dirs/home 1722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-slow_2SQHC3/gdbus/connection/large_message/.dirs/cache 1722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-slow_2SQHC3/gdbus/connection/large_message/.dirs/system-config1:/tmp/test_gdbus-connection-slow_2SQHC3/gdbus/connection/large_message/.dirs/system-config2 1722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-slow_2SQHC3/gdbus/connection/large_message/.dirs/config 1722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-slow_2SQHC3/gdbus/connection/large_message/.dirs/system-data1:/tmp/test_gdbus-connection-slow_2SQHC3/gdbus/connection/large_message/.dirs/system-data2 1722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-slow_2SQHC3/gdbus/connection/large_message/.dirs/data 1722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-slow_2SQHC3/gdbus/connection/large_message/.dirs/state 1722s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-slow_2SQHC3/gdbus/connection/large_message/.dirs/runtime 1722s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1722s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1722s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1722s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1722s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1722s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1723s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1723s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1723s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1723s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1723s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1723s ok 2 /gdbus/connection/large_message 1723s # slow test /gdbus/connection/large_message executed in 0.61 secs 1723s # End of connection tests 1723s # End of gdbus tests 1723s ok - glib/gdbus-connection-slow.test 1723s # Running test: glib/portal-support-flatpak-network-only.test 1723s TAP version 14 1723s # random seed: R02S473309c6b2a6f274f5d20ffe6ce3e4fa 1723s 1..1 1723s # Start of portal-support tests 1723s # Start of flatpak tests 1723s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-network-only_8XR1B3/portal-support/flatpak/network/.dirs/home 1723s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-network-only_8XR1B3/portal-support/flatpak/network/.dirs/cache 1723s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-network-only_8XR1B3/portal-support/flatpak/network/.dirs/system-config1:/tmp/test_portal-support-flatpak-network-only_8XR1B3/portal-support/flatpak/network/.dirs/system-config2 1723s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-network-only_8XR1B3/portal-support/flatpak/network/.dirs/config 1723s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-network-only_8XR1B3/portal-support/flatpak/network/.dirs/system-data1:/tmp/test_portal-support-flatpak-network-only_8XR1B3/portal-support/flatpak/network/.dirs/system-data2 1723s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-network-only_8XR1B3/portal-support/flatpak/network/.dirs/data 1723s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-network-only_8XR1B3/portal-support/flatpak/network/.dirs/state 1723s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-network-only_8XR1B3/portal-support/flatpak/network/.dirs/runtime 1723s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-network-only_8XR1B3/portal-support/flatpak/network/.dirs/runtime/.flatpak-info 1723s ok 1 /portal-support/flatpak/network 1723s # End of flatpak tests 1723s # End of portal-support tests 1723s ok - glib/portal-support-flatpak-network-only.test 1723s # Running test: glib/spawn-multithreaded.test 1723s TAP version 14 1723s # random seed: R02Sd0b9a10cc74669872d55d3b82efff4f2 1723s 1..4 1723s # Start of gthread tests 1724s # Child 2391 (ttl 1) exited, status 0 1725s # Child 2392 (ttl 2) exited, status 0 1725s ok 1 /gthread/spawn-childs 1725s # slow test /gthread/spawn-childs executed in 2.00 secs 1725s # Created pid: 2396 (ttl 1) 1725s # Created pid: 2397 (ttl 2) 1726s # Child 2396 (ttl 1) exited, status 0 1726s # Executing: glib/spawn-multithreaded.test 1727s # Child 2397 (ttl 2) exited, status 0 1727s ok 2 /gthread/spawn-childs-threads 1727s # slow test /gthread/spawn-childs-threads executed in 2.01 secs 1727s ok - glib/spawn-multithreaded.test 1727s # Running test: glib/keyfile.test 1727s ok - glib/keyfile.test 1727s # Running test: glib/convert.test 1727s ok - glib/convert.test 1727s # Running test: glib/cond.test 1727s ok 3 /gthread/spawn-sync 1727s ok 4 /gthread/spawn-async 1727s # End of gthread tests 1727s TAP version 14 1727s # random seed: R02S81479a103b6f72293d213846f6a92244 1727s 1..36 1727s # Start of keyfile tests 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/line-ends/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/line-ends/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/line-ends/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/line-ends/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/line-ends/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/line-ends/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/line-ends/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/line-ends/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/line-ends/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/line-ends/.dirs/runtime 1727s ok 1 /keyfile/line-ends 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/whitespace/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/whitespace/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/whitespace/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/whitespace/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/whitespace/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/whitespace/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/whitespace/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/whitespace/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/whitespace/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/whitespace/.dirs/runtime 1727s ok 2 /keyfile/whitespace 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/comments/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/comments/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/comments/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/comments/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/comments/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/comments/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/comments/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/comments/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/comments/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/comments/.dirs/runtime 1727s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3047 1727s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/104 1727s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3047 1727s ok 3 /keyfile/comments 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/listing/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/listing/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/listing/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/listing/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/listing/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/listing/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/listing/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/listing/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/listing/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/listing/.dirs/runtime 1727s ok 4 /keyfile/listing 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/string/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/string/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/string/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/string/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/string/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/string/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/string/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/string/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/string/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/string/.dirs/runtime 1727s ok 5 /keyfile/string 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/boolean/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/boolean/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/boolean/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/boolean/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/boolean/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/boolean/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/boolean/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/boolean/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/boolean/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/boolean/.dirs/runtime 1727s ok 6 /keyfile/boolean 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/number/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/number/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/number/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/number/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/number/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/number/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/number/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/number/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/number/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/number/.dirs/runtime 1727s ok 7 /keyfile/number 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/locale-string/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/locale-string/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/locale-string/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/locale-string/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/locale-string/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/locale-string/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/locale-string/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/locale-string/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/locale-string/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/locale-string/.dirs/runtime 1727s ok 8 /keyfile/locale-string 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/lists/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/lists/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/lists/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/lists/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/lists/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/lists/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/lists/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/lists/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/lists/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/lists/.dirs/runtime 1727s ok 9 /keyfile/lists 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/lists-set-get/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/lists-set-get/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/lists-set-get/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/lists-set-get/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/lists-set-get/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/lists-set-get/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/lists-set-get/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/lists-set-get/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/lists-set-get/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/lists-set-get/.dirs/runtime 1727s ok 10 /keyfile/lists-set-get 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/group-remove/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/group-remove/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/group-remove/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/group-remove/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/group-remove/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/group-remove/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/group-remove/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/group-remove/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/group-remove/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/group-remove/.dirs/runtime 1727s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=165887 1727s ok 11 /keyfile/group-remove 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/key-remove/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/key-remove/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/key-remove/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/key-remove/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/key-remove/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/key-remove/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/key-remove/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/key-remove/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/key-remove/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/key-remove/.dirs/runtime 1727s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=165980 1727s ok 12 /keyfile/key-remove 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/groups/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/groups/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/groups/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/groups/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/groups/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/groups/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/groups/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/groups/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/groups/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/groups/.dirs/runtime 1727s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=316309 1727s ok 13 /keyfile/groups 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/duplicate-keys/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/duplicate-keys/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/duplicate-keys/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/duplicate-keys/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/duplicate-keys/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/duplicate-keys/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/duplicate-keys/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/duplicate-keys/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/duplicate-keys/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/duplicate-keys/.dirs/runtime 1727s ok 14 /keyfile/duplicate-keys 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/duplicate-groups/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/duplicate-groups/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/duplicate-groups/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/duplicate-groups/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/duplicate-groups/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/duplicate-groups/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/duplicate-groups/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/duplicate-groups/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/duplicate-groups/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/duplicate-groups/.dirs/runtime 1727s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=157877 1727s ok 15 /keyfile/duplicate-groups 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/duplicate-groups2/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/duplicate-groups2/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/duplicate-groups2/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/duplicate-groups2/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/duplicate-groups2/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/duplicate-groups2/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/duplicate-groups2/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/duplicate-groups2/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/duplicate-groups2/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/duplicate-groups2/.dirs/runtime 1727s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=385910 1727s ok 16 /keyfile/duplicate-groups2 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/group-names/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/group-names/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/group-names/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/group-names/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/group-names/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/group-names/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/group-names/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/group-names/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/group-names/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/group-names/.dirs/runtime 1727s ok 17 /keyfile/group-names 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/key-names/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/key-names/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/key-names/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/key-names/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/key-names/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/key-names/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/key-names/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/key-names/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/key-names/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/key-names/.dirs/runtime 1727s ok 18 /keyfile/key-names 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/reload/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/reload/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/reload/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/reload/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/reload/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/reload/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/reload/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/reload/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/reload/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/reload/.dirs/runtime 1727s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=420686 1727s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2927 1727s ok 19 /keyfile/reload 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/int64/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/int64/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/int64/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/int64/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/int64/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/int64/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/int64/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/int64/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/int64/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/int64/.dirs/runtime 1727s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=614864 1727s ok 20 /keyfile/int64 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/load/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/load/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/load/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/load/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/load/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/load/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/load/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/load/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/load/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/load/.dirs/runtime 1727s ok 21 /keyfile/load 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/save/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/save/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/save/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/save/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/save/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/save/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/save/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/save/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/save/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/save/.dirs/runtime 1727s ok 22 /keyfile/save 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/load-fail/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/load-fail/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/load-fail/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/load-fail/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/load-fail/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/load-fail/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/load-fail/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/load-fail/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/load-fail/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/load-fail/.dirs/runtime 1727s ok 23 /keyfile/load-fail 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/non-utf8/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/non-utf8/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/non-utf8/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/non-utf8/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/non-utf8/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/non-utf8/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/non-utf8/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/non-utf8/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/non-utf8/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/non-utf8/.dirs/runtime 1727s ok 24 /keyfile/non-utf8 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/page-boundary/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/page-boundary/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/page-boundary/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/page-boundary/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/page-boundary/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/page-boundary/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/page-boundary/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/page-boundary/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/page-boundary/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/page-boundary/.dirs/runtime 1727s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=640695 1727s ok 25 /keyfile/page-boundary 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/ref/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/ref/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/ref/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/ref/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/ref/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/ref/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/ref/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/ref/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/ref/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/ref/.dirs/runtime 1727s ok 26 /keyfile/ref 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/replace-value/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/replace-value/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/replace-value/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/replace-value/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/replace-value/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/replace-value/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/replace-value/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/replace-value/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/replace-value/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/replace-value/.dirs/runtime 1727s ok 27 /keyfile/replace-value 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/list-separator/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/list-separator/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/list-separator/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/list-separator/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/list-separator/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/list-separator/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/list-separator/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/list-separator/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/list-separator/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/list-separator/.dirs/runtime 1727s ok 28 /keyfile/list-separator 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/empty-string/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/empty-string/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/empty-string/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/empty-string/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/empty-string/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/empty-string/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/empty-string/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/empty-string/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/empty-string/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/empty-string/.dirs/runtime 1727s ok 29 /keyfile/empty-string 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/limbo/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/limbo/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/limbo/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/limbo/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/limbo/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/limbo/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/limbo/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/limbo/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/limbo/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/limbo/.dirs/runtime 1727s ok 30 /keyfile/limbo 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/utf8/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/utf8/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/utf8/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/utf8/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/utf8/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/utf8/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/utf8/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/utf8/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/utf8/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/utf8/.dirs/runtime 1727s # Testing invalid encoding ‘non-UTF-8’ 1727s # Testing invalid encoding ‘UTF’ 1727s # Testing invalid encoding ‘UTF-9’ 1727s ok 31 /keyfile/utf8 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/roundtrip/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/roundtrip/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/roundtrip/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/roundtrip/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/roundtrip/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/roundtrip/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/roundtrip/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/roundtrip/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/roundtrip/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/roundtrip/.dirs/runtime 1727s ok 32 /keyfile/roundtrip 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/bytes/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/bytes/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/bytes/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/bytes/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/bytes/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/bytes/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/bytes/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/bytes/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/bytes/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/bytes/.dirs/runtime 1727s ok 33 /keyfile/bytes 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/get-locale/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/get-locale/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/get-locale/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/get-locale/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/get-locale/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/get-locale/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/get-locale/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/get-locale/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/get-locale/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/get-locale/.dirs/runtime 1727s ok 34 /keyfile/get-locale 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/free-when-not-last-ref/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/free-when-not-last-ref/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/free-when-not-last-ref/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/free-when-not-last-ref/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/free-when-not-last-ref/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/free-when-not-last-ref/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/free-when-not-last-ref/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/free-when-not-last-ref/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/free-when-not-last-ref/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/free-when-not-last-ref/.dirs/runtime 1727s ok 35 /keyfile/free-when-not-last-ref 1727s # Start of locale-string tests 1727s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_MLK0B3/keyfile/locale-string/multiple-loads/.dirs/home 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/locale-string/multiple-loads/.dirs/cache 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/locale-string/multiple-loads/.dirs/system-config1:/tmp/test_keyfile_MLK0B3/keyfile/locale-string/multiple-loads/.dirs/system-config2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_MLK0B3/keyfile/locale-string/multiple-loads/.dirs/config 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_MLK0B3/keyfile/locale-string/multiple-loads/.dirs/system-data1:/tmp/test_keyfile_MLK0B3/keyfile/locale-string/multiple-loads/.dirs/system-data2 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_MLK0B3/keyfile/locale-string/multiple-loads/.dirs/data 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_MLK0B3/keyfile/locale-string/multiple-loads/.dirs/state 1727s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_MLK0B3/keyfile/locale-string/multiple-loads/.dirs/runtime 1727s # /keyfile/locale-string/multiple-loads summary: Check that loading with translations multiple times works 1727s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2361 1727s ok 36 /keyfile/locale-string/multiple-loads 1727s # End of locale-string tests 1727s # End of keyfile tests 1727s TAP version 14 1727s # random seed: R02S7f57e3b7e55a7ae1cecc7b6ad48f83b6 1727s 1..14 1727s # Start of conversion tests 1727s ok 1 /conversion/no-conv 1727s ok 2 /conversion/iconv-state 1727s ok 3 /conversion/illegal-sequence 1727s ok 4 /conversion/byte-order 1727s ok 5 /conversion/unicode 1727s ok 6 /conversion/filename-utf8 1727s ok 7 /conversion/filename-display 1727s ok 8 /conversion/convert-embedded-nul 1727s # Start of locale-to-utf8 tests 1727s ok 9 /conversion/locale-to-utf8/embedded-nul 1727s # Start of embedded-nul tests 1727s # Start of subprocess tests 1727s # End of subprocess tests 1727s # End of embedded-nul tests 1727s # End of locale-to-utf8 tests 1727s # Start of locale-from-utf8 tests 1727s ok 10 /conversion/locale-from-utf8/embedded-nul 1727s # Start of embedded-nul tests 1727s # Start of subprocess tests 1727s # End of subprocess tests 1727s # End of embedded-nul tests 1727s # End of locale-from-utf8 tests 1727s # Start of filename-to-utf8 tests 1727s ok 11 /conversion/filename-to-utf8/embedded-nul 1727s # Start of embedded-nul tests 1727s # Start of subprocess tests 1727s # End of subprocess tests 1727s # End of embedded-nul tests 1727s # End of filename-to-utf8 tests 1727s # Start of filename-from-utf8 tests 1727s ok 12 /conversion/filename-from-utf8/embedded-nul 1727s # Start of embedded-nul tests 1727s # Start of subprocess tests 1727s # End of subprocess tests 1727s # End of embedded-nul tests 1727s # End of filename-from-utf8 tests 1727s # Start of filename-from-uri tests 1727s ok 13 /conversion/filename-from-uri/query-is-ignored 1727s ok 14 /conversion/filename-from-uri/fragment-is-ignored 1727s # End of filename-from-uri tests 1727s # End of conversion tests 1727s TAP version 14 1727s # random seed: R02S5f328182008064f1d5f1e2d6fdb09924 1727s 1..4 1727s # Start of thread tests 1727s ok 1 /thread/cond1 1727s ok 2 /thread/cond2 1727s # Start of cond tests 1728s ok 3 /thread/cond/wait-until 1728s # slow test /thread/cond/wait-until executed in 1.02 secs 1728s # Start of wait-until tests 1728s # /thread/cond/wait-until/contended-and-interrupted summary: Check proper handling of errno in g_cond_wait_until with a contended mutex 1728s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/957 1729s ok 4 /thread/cond/wait-until/contended-and-interrupted 1729s # slow test /thread/cond/wait-until/contended-and-interrupted executed in 1.10 secs 1729s # End of wait-until tests 1729s # End of cond tests 1729s # End of thread tests 1729s ok - glib/cond.test 1729s # Running test: glib/unix-fd.test 1729s TAP version 14 1729s # random seed: R02S72e76a06db98b3fc470c7877370f9cbe 1729s 1..2 1729s # Start of unix-fd tests 1729s ok 1 /unix-fd/fd-list 1729s ok 2 /unix-fd/scm 1729s # End of unix-fd tests 1729s ok - glib/unix-fd.test 1729s # Running test: glib/g-file-info.test 1729s TAP version 14 1729s # random seed: R02Se8a956fe0f0555bf83e71a6f7cd6d328 1729s 1..6 1729s # Start of g-file-info tests 1729s ok 1 /g-file-info/test_g_file_info 1729s # /g-file-info/xattrs summary: Test setting and getting escaped xattrs 1729s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1729s ok 2 /g-file-info/xattrs 1729s # /g-file-info/set-modified-date-time-precision summary: Test that g_file_info_set_modified_date_time() preserves microseconds 1729s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3116 1729s ok 3 /g-file-info/set-modified-date-time-precision 1729s # Start of test_g_file_info tests 1729s # /g-file-info/test_g_file_info/modification-time summary: Test that getting the modification time of a file works. 1729s ok 4 /g-file-info/test_g_file_info/modification-time 1729s # /g-file-info/test_g_file_info/access-time summary: Test that getting the access time of a file works. 1729s ok 5 /g-file-info/test_g_file_info/access-time 1729s # /g-file-info/test_g_file_info/creation-time summary: Test that getting the creation time of a file works. 1729s ok - glib/g-file-info.test 1729s # Running test: glib/g-icon.test 1729s ok - glib/g-icon.test 1729s # Running test: glib/gdbus-test-codegen.test 1729s ok 6 /g-file-info/test_g_file_info/creation-time 1729s # End of test_g_file_info tests 1729s # End of g-file-info tests 1729s TAP version 14 1729s # random seed: R02S423ec09fee6223571d3c8f71b80b744f 1729s 1..6 1729s # Start of icons tests 1729s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1729s ok 1 /icons/to-string 1729s ok 2 /icons/serialize 1729s ok 3 /icons/themed 1729s ok 4 /icons/emblemed 1729s ok 5 /icons/file 1729s ok 6 /icons/bytes 1729s # End of icons tests 1729s TAP version 14 1729s # random seed: R02S9539fda986b505e2de36b50eef37bec9 1729s 1..8 1729s # Start of gdbus tests 1729s # Start of codegen tests 1729s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/annotations/.dirs/home 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/annotations/.dirs/cache 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/annotations/.dirs/system-config2 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/annotations/.dirs/config 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/annotations/.dirs/system-data2 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/annotations/.dirs/data 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/annotations/.dirs/state 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/annotations/.dirs/runtime 1729s ok 1 /gdbus/codegen/annotations 1729s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/interface_stability/.dirs/home 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/interface_stability/.dirs/cache 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/interface_stability/.dirs/system-config2 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/interface_stability/.dirs/config 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/interface_stability/.dirs/system-data2 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/interface_stability/.dirs/data 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/interface_stability/.dirs/state 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/interface_stability/.dirs/runtime 1729s ok 2 /gdbus/codegen/interface_stability 1729s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/object-manager/.dirs/home 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/object-manager/.dirs/cache 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/object-manager/.dirs/system-config2 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/object-manager/.dirs/config 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/object-manager/.dirs/system-data2 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/object-manager/.dirs/data 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/object-manager/.dirs/state 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/object-manager/.dirs/runtime 1729s ok 3 /gdbus/codegen/object-manager 1729s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/property-naming/.dirs/home 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/property-naming/.dirs/cache 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/property-naming/.dirs/system-config2 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/property-naming/.dirs/config 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/property-naming/.dirs/system-data2 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/property-naming/.dirs/data 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/property-naming/.dirs/state 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/property-naming/.dirs/runtime 1729s ok 4 /gdbus/codegen/property-naming 1729s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/autocleanups/.dirs/home 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/autocleanups/.dirs/cache 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/autocleanups/.dirs/system-config2 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/autocleanups/.dirs/config 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/autocleanups/.dirs/system-data2 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/autocleanups/.dirs/data 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/autocleanups/.dirs/state 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/autocleanups/.dirs/runtime 1729s ok 5 /gdbus/codegen/autocleanups 1729s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/deprecations/.dirs/home 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/deprecations/.dirs/cache 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/deprecations/.dirs/system-config2 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/deprecations/.dirs/config 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/deprecations/.dirs/system-data2 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/deprecations/.dirs/data 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/deprecations/.dirs/state 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/deprecations/.dirs/runtime 1729s ok 6 /gdbus/codegen/deprecations 1729s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/standalone-interface-info/.dirs/home 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/standalone-interface-info/.dirs/cache 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/standalone-interface-info/.dirs/system-config2 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/standalone-interface-info/.dirs/config 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/standalone-interface-info/.dirs/system-data2 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/standalone-interface-info/.dirs/data 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/standalone-interface-info/.dirs/state 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/standalone-interface-info/.dirs/runtime 1729s ok 7 /gdbus/codegen/standalone-interface-info 1729s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/unix-fd-list/.dirs/home 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/unix-fd-list/.dirs/cache 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/unix-fd-list/.dirs/system-config2 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/unix-fd-list/.dirs/config 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/unix-fd-list/.dirs/system-data2 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/unix-fd-list/.dirs/data 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/unix-fd-list/.dirs/state 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_DGQ5B3/gdbus/codegen/unix-fd-list/.dirs/runtime 1729s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 1729s ok 8 /gdbus/codegen/unix-fd-list 1729s # End of codegen tests 1729s # End of gdbus tests 1729s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1729s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1729s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1729s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1729s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1729s ok - glib/gdbus-test-codegen.test 1729s # Running test: glib/gdbus-server-auth.test 1729s TAP version 14 1729s # random seed: R02S69725da67f2d971c6e8a0160b87282de 1729s 1..9 1729s # Start of gdbus tests 1729s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/.dirs/home 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/.dirs/cache 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/.dirs/system-config1:/tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/.dirs/system-config2 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/.dirs/config 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/.dirs/system-data1:/tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/.dirs/system-data2 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/.dirs/data 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/.dirs/state 1729s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/.dirs/runtime 1729s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_2RI9B3/gdbus-server-auth-RXI9B3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:false 1729s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_2RI9B3/gdbus-server-auth-RXI9B3/dbus-yOglNSrV 1729s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1729s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1729s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1729s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1729s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1729s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 2504 1729s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1729s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1729s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1729s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1729s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1729s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1729s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 2504 1729s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1729s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1729s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1729s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1729s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1729s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1729s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 2504 1729s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1729s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1729s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1729s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1729s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1729s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1729s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 2504 1729s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1729s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1729s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1729s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1729s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1729s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1729s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 2504 1729s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1729s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1729s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1729s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1729s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1729s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1729s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 2504 1729s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1729s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1729s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1729s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1729s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1729s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1729s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 2504 1729s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1729s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1729s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1729s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1729s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1729s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1729s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 2504 1729s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1729s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1729s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1729s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1729s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1729s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1729s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 2504 1729s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1729s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1729s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1729s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1729s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1729s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1730s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1730s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1730s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1730s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1730s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1730s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1730s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1730s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1730s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1730s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1730s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1730s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1730s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1730s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1730s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1730s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1730s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1730s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1730s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1730s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1730s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1730s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 2504 1730s ok 1 /gdbus/server-auth 1730s # Start of server-auth tests 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/abstract/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/abstract/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/abstract/.dirs/system-config1:/tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/abstract/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/abstract/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/abstract/.dirs/system-data1:/tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/abstract/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/abstract/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/abstract/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/abstract/.dirs/runtime 1730s # Testing GDBus server at unix:tmpdir=/tmp/test_gdbus-server-auth_2RI9B3/gdbus-server-auth-U7C9B3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:true tcp:false 1730s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_2RI9B3/gdbus-server-auth-U7C9B3/dbus-N5jXe2bp 1730s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1730s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1730s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1730s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1730s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1730s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1730s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1730s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1730s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1730s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1730s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1730s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1730s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1730s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1730s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1730s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1730s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1730s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1730s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1730s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1730s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1730s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1730s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1730s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1730s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1730s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1730s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1730s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1730s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1730s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1730s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1730s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1730s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1730s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1730s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1730s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1730s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1730s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1730s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1730s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1730s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1730s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1730s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 2504 1730s ok 2 /gdbus/server-auth/abstract 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/tcp/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/tcp/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/tcp/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/tcp/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/tcp/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/tcp/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/tcp/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/tcp/.dirs/runtime 1730s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:true 1730s ok 3 /gdbus/server-auth/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/anonymous/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/anonymous/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/anonymous/.dirs/system-config1:/tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/anonymous/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/anonymous/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/anonymous/.dirs/system-data1:/tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/anonymous/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/anonymous/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/anonymous/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/anonymous/.dirs/runtime 1730s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_2RI9B3/gdbus-server-auth-WDG8B3 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:false 1730s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_2RI9B3/gdbus-server-auth-WDG8B3/dbus-73l6rnbA 1730s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 2504 1730s ok 4 /gdbus/server-auth/anonymous 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/external/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/external/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/external/.dirs/system-config1:/tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/external/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/external/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/external/.dirs/system-data1:/tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/external/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/external/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/external/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/external/.dirs/runtime 1730s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_2RI9B3/gdbus-server-auth-ITECC3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1730s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_2RI9B3/gdbus-server-auth-ITECC3/dbus-KisQIV7E 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 2504 1730s ok 5 /gdbus/server-auth/external 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/sha1/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/sha1/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/sha1/.dirs/system-config1:/tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/sha1/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/sha1/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/sha1/.dirs/system-data1:/tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/sha1/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/sha1/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/sha1/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/sha1/.dirs/runtime 1730s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_2RI9B3/gdbus-server-auth-7H1BC3 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:false 1730s ok 6 /gdbus/server-auth/sha1 # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1730s # Start of anonymous tests 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/anonymous/tcp/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/anonymous/tcp/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/anonymous/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/anonymous/tcp/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/anonymous/tcp/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/anonymous/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/anonymous/tcp/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/anonymous/tcp/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/anonymous/tcp/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/anonymous/tcp/.dirs/runtime 1730s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:true 1730s ok 7 /gdbus/server-auth/anonymous/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1730s # End of anonymous tests 1730s # Start of external tests 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/external/require-same-user/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/external/require-same-user/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/external/require-same-user/.dirs/system-config1:/tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/external/require-same-user/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/external/require-same-user/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/external/require-same-user/.dirs/system-data1:/tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/external/require-same-user/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/external/require-same-user/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/external/require-same-user/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/external/require-same-user/.dirs/runtime 1730s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_2RI9B3/gdbus-server-auth-RD5BC3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1730s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_2RI9B3/gdbus-server-auth-RD5BC3/dbus-FkVdYk6i 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 2504 1730s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1730s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1730s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1730s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=2504,uid=1000,gid=1000 1730s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 2504 1730s ok 8 /gdbus/server-auth/external/require-same-user 1730s # End of external tests 1730s # Start of sha1 tests 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/sha1/tcp/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/sha1/tcp/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/sha1/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/sha1/tcp/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/sha1/tcp/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/sha1/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/sha1/tcp/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/sha1/tcp/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/sha1/tcp/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_2RI9B3/gdbus/server-auth/sha1/tcp/.dirs/runtime 1730s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:true 1730s ok 9 /gdbus/server-auth/sha1/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1730s # End of sha1 tests 1730s # End of server-auth tests 1730s # End of gdbus tests 1730s ok - glib/gdbus-server-auth.test 1730s # Running test: glib/memory-output-stream.test 1730s TAP version 14 1730s # random seed: R02Sedc2f6785328db26c5e33a2cf30c0b7b 1730s 1..10 1730s # Start of memory-output-stream tests 1730s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540423 1730s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=720080 1730s ok 1 /memory-output-stream/truncate 1730s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540459 1730s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540461 1730s ok 2 /memory-output-stream/get-data-size 1730s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=605733 1730s ok 3 /memory-output-stream/properties 1730s ok 4 /memory-output-stream/write-bytes 1730s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2471 1730s ok 5 /memory-output-stream/write-null 1730s ok 6 /memory-output-stream/writev 1730s ok 7 /memory-output-stream/writev_nonblocking 1730s ok 8 /memory-output-stream/steal_as_bytes 1730s # Start of seek tests 1730s ok 9 /memory-output-stream/seek/fixed 1730s ok 10 /memory-output-stream/seek/resizable 1730s # End of seek tests 1730s # End of memory-output-stream tests 1730s ok - glib/memory-output-stream.test 1730s # Running test: glib/gdbus-exit-on-close.test 1730s TAP version 14 1730s # random seed: R02Se068524a3bd889bc9936a388aca0da0d 1730s 1..4 1730s # Start of gdbus tests 1730s # Start of exit-on-close tests 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/default/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/default/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/default/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/default/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/default/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/default/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/default/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/default/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/default/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/default/.dirs/runtime 1730s ok 1 /gdbus/exit-on-close/default 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/true/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/true/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/true/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/true/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/true/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/true/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/true/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/true/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/true/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/true/.dirs/runtime 1730s ok 2 /gdbus/exit-on-close/true 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/false/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/false/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/false/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/false/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/false/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/false/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/false/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/false/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/false/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/false/.dirs/runtime 1730s ok 3 /gdbus/exit-on-close/false 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/we-close/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/we-close/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/we-close/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/we-close/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/we-close/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/we-close/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/we-close/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/we-close/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/we-close/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_G10AC3/gdbus/exit-on-close/we-close/.dirs/runtime 1730s ok 4 /gdbus/exit-on-close/we-close 1730s # Start of default tests 1730s # End of default tests 1730s # Start of true tests 1730s # End of true tests 1730s # Start of false tests 1730s # End of false tests 1730s # Start of we-close tests 1730s # End of we-close tests 1730s # End of exit-on-close tests 1730s # End of gdbus tests 1730s ok - glib/gdbus-exit-on-close.test 1730s # Running test: glib/autoptr-girepository.test 1730s TAP version 14 1730s # random seed: R02S3e241b65936e5abcc7adcb3c1dbe9fb5 1730s 1..24 1730s # Start of autoptr tests 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/repository/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/repository/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/repository/.dirs/system-config1:/tmp/test_autoptr-girepository_55DJC3/autoptr/repository/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/repository/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/repository/.dirs/system-data1:/tmp/test_autoptr-girepository_55DJC3/autoptr/repository/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/repository/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/repository/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_55DJC3/autoptr/repository/.dirs/runtime 1730s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1730s ok 1 /autoptr/repository 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/typelib/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/typelib/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/typelib/.dirs/system-config1:/tmp/test_autoptr-girepository_55DJC3/autoptr/typelib/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/typelib/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/typelib/.dirs/system-data1:/tmp/test_autoptr-girepository_55DJC3/autoptr/typelib/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/typelib/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/typelib/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_55DJC3/autoptr/typelib/.dirs/runtime 1730s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1730s ok 2 /autoptr/typelib 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/base-info/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/base-info/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/base-info/.dirs/system-config1:/tmp/test_autoptr-girepository_55DJC3/autoptr/base-info/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/base-info/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/base-info/.dirs/system-data1:/tmp/test_autoptr-girepository_55DJC3/autoptr/base-info/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/base-info/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/base-info/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_55DJC3/autoptr/base-info/.dirs/runtime 1730s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1730s ok 3 /autoptr/base-info 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/arg-info/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/arg-info/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/arg-info/.dirs/system-config1:/tmp/test_autoptr-girepository_55DJC3/autoptr/arg-info/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/arg-info/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/arg-info/.dirs/system-data1:/tmp/test_autoptr-girepository_55DJC3/autoptr/arg-info/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/arg-info/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/arg-info/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_55DJC3/autoptr/arg-info/.dirs/runtime 1730s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1730s ok 4 /autoptr/arg-info 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/callable-info/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/callable-info/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/callable-info/.dirs/system-config1:/tmp/test_autoptr-girepository_55DJC3/autoptr/callable-info/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/callable-info/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/callable-info/.dirs/system-data1:/tmp/test_autoptr-girepository_55DJC3/autoptr/callable-info/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/callable-info/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/callable-info/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_55DJC3/autoptr/callable-info/.dirs/runtime 1730s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1730s ok 5 /autoptr/callable-info 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/callback-info/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/callback-info/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/callback-info/.dirs/system-config1:/tmp/test_autoptr-girepository_55DJC3/autoptr/callback-info/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/callback-info/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/callback-info/.dirs/system-data1:/tmp/test_autoptr-girepository_55DJC3/autoptr/callback-info/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/callback-info/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/callback-info/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_55DJC3/autoptr/callback-info/.dirs/runtime 1730s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1730s ok 6 /autoptr/callback-info 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/constant-info/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/constant-info/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/constant-info/.dirs/system-config1:/tmp/test_autoptr-girepository_55DJC3/autoptr/constant-info/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/constant-info/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/constant-info/.dirs/system-data1:/tmp/test_autoptr-girepository_55DJC3/autoptr/constant-info/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/constant-info/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/constant-info/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_55DJC3/autoptr/constant-info/.dirs/runtime 1730s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1730s ok 7 /autoptr/constant-info 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/enum-info/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/enum-info/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/enum-info/.dirs/system-config1:/tmp/test_autoptr-girepository_55DJC3/autoptr/enum-info/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/enum-info/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/enum-info/.dirs/system-data1:/tmp/test_autoptr-girepository_55DJC3/autoptr/enum-info/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/enum-info/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/enum-info/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_55DJC3/autoptr/enum-info/.dirs/runtime 1730s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1730s ok 8 /autoptr/enum-info 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/field-info/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/field-info/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/field-info/.dirs/system-config1:/tmp/test_autoptr-girepository_55DJC3/autoptr/field-info/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/field-info/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/field-info/.dirs/system-data1:/tmp/test_autoptr-girepository_55DJC3/autoptr/field-info/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/field-info/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/field-info/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_55DJC3/autoptr/field-info/.dirs/runtime 1730s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1730s ok 9 /autoptr/field-info 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/flags-info/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/flags-info/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/flags-info/.dirs/system-config1:/tmp/test_autoptr-girepository_55DJC3/autoptr/flags-info/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/flags-info/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/flags-info/.dirs/system-data1:/tmp/test_autoptr-girepository_55DJC3/autoptr/flags-info/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/flags-info/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/flags-info/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_55DJC3/autoptr/flags-info/.dirs/runtime 1730s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1730s ok 10 /autoptr/flags-info 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/function-info/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/function-info/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/function-info/.dirs/system-config1:/tmp/test_autoptr-girepository_55DJC3/autoptr/function-info/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/function-info/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/function-info/.dirs/system-data1:/tmp/test_autoptr-girepository_55DJC3/autoptr/function-info/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/function-info/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/function-info/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_55DJC3/autoptr/function-info/.dirs/runtime 1730s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1730s ok 11 /autoptr/function-info 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/interface-info/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/interface-info/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/interface-info/.dirs/system-config1:/tmp/test_autoptr-girepository_55DJC3/autoptr/interface-info/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/interface-info/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/interface-info/.dirs/system-data1:/tmp/test_autoptr-girepository_55DJC3/autoptr/interface-info/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/interface-info/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/interface-info/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_55DJC3/autoptr/interface-info/.dirs/runtime 1730s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1730s ok 12 /autoptr/interface-info 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/object-info/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/object-info/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/object-info/.dirs/system-config1:/tmp/test_autoptr-girepository_55DJC3/autoptr/object-info/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/object-info/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/object-info/.dirs/system-data1:/tmp/test_autoptr-girepository_55DJC3/autoptr/object-info/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/object-info/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/object-info/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_55DJC3/autoptr/object-info/.dirs/runtime 1730s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1730s ok 13 /autoptr/object-info 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/property-info/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/property-info/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/property-info/.dirs/system-config1:/tmp/test_autoptr-girepository_55DJC3/autoptr/property-info/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/property-info/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/property-info/.dirs/system-data1:/tmp/test_autoptr-girepository_55DJC3/autoptr/property-info/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/property-info/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/property-info/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_55DJC3/autoptr/property-info/.dirs/runtime 1730s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1730s ok 14 /autoptr/property-info 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/registered-type-info/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/registered-type-info/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/registered-type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_55DJC3/autoptr/registered-type-info/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/registered-type-info/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/registered-type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_55DJC3/autoptr/registered-type-info/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/registered-type-info/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/registered-type-info/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_55DJC3/autoptr/registered-type-info/.dirs/runtime 1730s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1730s ok 15 /autoptr/registered-type-info 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/signal-info/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/signal-info/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/signal-info/.dirs/system-config1:/tmp/test_autoptr-girepository_55DJC3/autoptr/signal-info/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/signal-info/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/signal-info/.dirs/system-data1:/tmp/test_autoptr-girepository_55DJC3/autoptr/signal-info/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/signal-info/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/signal-info/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_55DJC3/autoptr/signal-info/.dirs/runtime 1730s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1730s ok 16 /autoptr/signal-info 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/struct-info/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/struct-info/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/struct-info/.dirs/system-config1:/tmp/test_autoptr-girepository_55DJC3/autoptr/struct-info/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/struct-info/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/struct-info/.dirs/system-data1:/tmp/test_autoptr-girepository_55DJC3/autoptr/struct-info/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/struct-info/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/struct-info/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_55DJC3/autoptr/struct-info/.dirs/runtime 1730s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1730s ok 17 /autoptr/struct-info 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/type-info/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/type-info/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_55DJC3/autoptr/type-info/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/type-info/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_55DJC3/autoptr/type-info/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/type-info/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/type-info/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_55DJC3/autoptr/type-info/.dirs/runtime 1730s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1730s ok 18 /autoptr/type-info 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/union-info/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/union-info/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/union-info/.dirs/system-config1:/tmp/test_autoptr-girepository_55DJC3/autoptr/union-info/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/union-info/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/union-info/.dirs/system-data1:/tmp/test_autoptr-girepository_55DJC3/autoptr/union-info/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/union-info/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/union-info/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_55DJC3/autoptr/union-info/.dirs/runtime 1730s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1730s ok 19 /autoptr/union-info 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/value-info/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/value-info/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/value-info/.dirs/system-config1:/tmp/test_autoptr-girepository_55DJC3/autoptr/value-info/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/value-info/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/value-info/.dirs/system-data1:/tmp/test_autoptr-girepository_55DJC3/autoptr/value-info/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/value-info/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/value-info/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_55DJC3/autoptr/value-info/.dirs/runtime 1730s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1730s ok 20 /autoptr/value-info 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/vfunc-info/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/vfunc-info/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/vfunc-info/.dirs/system-config1:/tmp/test_autoptr-girepository_55DJC3/autoptr/vfunc-info/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/vfunc-info/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_55DJC3/autoptr/vfunc-info/.dirs/system-data1:/tmp/test_autoptr-girepository_55DJC3/autoptr/vfunc-info/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/vfunc-info/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_55DJC3/autoptr/vfunc-info/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_55DJC3/autoptr/vfunc-info/.dirs/runtime 1730s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1730s ok 21 /autoptr/vfunc-info 1730s # End of autoptr tests 1730s # Start of auto tests 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_55DJC3/auto/arg-info/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_55DJC3/auto/arg-info/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_55DJC3/auto/arg-info/.dirs/system-config1:/tmp/test_autoptr-girepository_55DJC3/auto/arg-info/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_55DJC3/auto/arg-info/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_55DJC3/auto/arg-info/.dirs/system-data1:/tmp/test_autoptr-girepository_55DJC3/auto/arg-info/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_55DJC3/auto/arg-info/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_55DJC3/auto/arg-info/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_55DJC3/auto/arg-info/.dirs/runtime 1730s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1730s ok 22 /auto/arg-info 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_55DJC3/auto/type-info/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_55DJC3/auto/type-info/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_55DJC3/auto/type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_55DJC3/auto/type-info/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_55DJC3/auto/type-info/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_55DJC3/auto/type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_55DJC3/auto/type-info/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_55DJC3/auto/type-info/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_55DJC3/auto/type-info/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_55DJC3/auto/type-info/.dirs/runtime 1730s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1730s ok 23 /auto/type-info 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_55DJC3/auto/function-invoker/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_55DJC3/auto/function-invoker/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_55DJC3/auto/function-invoker/.dirs/system-config1:/tmp/test_autoptr-girepository_55DJC3/auto/function-invoker/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_55DJC3/auto/function-invoker/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_55DJC3/auto/function-invoker/.dirs/system-data1:/tmp/test_autoptr-girepository_55DJC3/auto/function-invoker/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_55DJC3/auto/function-invoker/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_55DJC3/auto/function-invoker/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_55DJC3/auto/function-invoker/.dirs/runtime 1730s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1730s ok - glib/autoptr-girepository.test 1730s ok 24 /auto/function-invoker 1730s # End of auto tests 1730s # Running test: glib/thumbnail-verification.test 1730s TAP version 14 1730s # random seed: R02S58f07fbac51d5ef0368200e6dc3193f8 1730s 1..1 1730s # Start of png-thumbs tests 1730s ok 1 /png-thumbs/validity 1730s # End of png-thumbs tests 1730s ok - glib/thumbnail-verification.test 1730s # Running test: glib/gdbus-sasl.test 1730s TAP version 14 1730s # random seed: R02Sf468bedaf509d50a3df900f31c800fb7 1730s 1..1 1730s # Start of gdbus tests 1730s # Start of sasl tests 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-sasl_GDI1B3/gdbus/sasl/server/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-sasl_GDI1B3/gdbus/sasl/server/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-sasl_GDI1B3/gdbus/sasl/server/.dirs/system-config1:/tmp/test_gdbus-sasl_GDI1B3/gdbus/sasl/server/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-sasl_GDI1B3/gdbus/sasl/server/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-sasl_GDI1B3/gdbus/sasl/server/.dirs/system-data1:/tmp/test_gdbus-sasl_GDI1B3/gdbus/sasl/server/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-sasl_GDI1B3/gdbus/sasl/server/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-sasl_GDI1B3/gdbus/sasl/server/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-sasl_GDI1B3/gdbus/sasl/server/.dirs/runtime 1730s # New handshake: EXTERNAL with incorrect initial response 1730s # C:“AUTH EXTERNAL 30” 1730s # Expect: /^REJECTED.*$/ 1730s # S:“REJECTED EXTERNAL DBUS_COOKIE_SHA1” 1730s # New handshake: EXTERNAL without initial response, failing to authenticate 1730s # C:“AUTH EXTERNAL” 1730s # Expect: /^DATA$/ 1730s # S:“DATA” 1730s # C:“DATA 30” 1730s # Expect: /^REJECTED.*$/ 1730s # S:“REJECTED EXTERNAL DBUS_COOKIE_SHA1” 1730s # New handshake: EXTERNAL with initial response 1730s # C:“AUTH EXTERNAL 31303030” 1730s # Expect: /^OK [0-9a-f]+$/ 1730s # S:“OK f14ba742362123db285d293d68b9c8d7” 1730s # New handshake: EXTERNAL without initial response 1730s # C:“AUTH EXTERNAL” 1730s # Expect: /^DATA$/ 1730s # S:“DATA” 1730s # C:“DATA 31303030” 1730s # Expect: /^OK [0-9a-f]+$/ 1730s # S:“OK f14ba742362123db285d293d68b9c8d7” 1730s # New handshake: EXTERNAL with empty authorization identity 1730s # C:“AUTH EXTERNAL” 1730s # Expect: /^DATA$/ 1730s # S:“DATA” 1730s # C:“DATA” 1730s # Expect: /^OK [0-9a-f]+$/ 1730s # S:“OK f14ba742362123db285d293d68b9c8d7” 1730s # New handshake: EXTERNAL with empty authorization identity and whitespace 1730s # C:“AUTH EXTERNAL” 1730s # Expect: /^DATA$/ 1730s # S:“DATA” 1730s # C:“DATA ” 1730s # Expect: /^OK [0-9a-f]+$/ 1730s # S:“OK f14ba742362123db285d293d68b9c8d7” 1730s ok 1 /gdbus/sasl/server 1730s # End of sasl tests 1730s # End of gdbus tests 1730s ok - glib/gdbus-sasl.test 1730s # Running test: glib/macros-c-11.test 1730s TAP version 14 1730s # random seed: R02S0340cacae9d1af14752e8fceb12c222d 1730s 1..4 1730s # Start of C tests 1730s ok 1 /C/standard-11 1730s # End of C tests 1730s # Start of alignof tests 1730s ok 2 /alignof/fallback 1730s # End of alignof tests 1730s # Start of assert tests 1730s ok 3 /assert/static 1730s # End of assert tests 1730s # Start of struct tests 1730s ok 4 /struct/sizeof_member 1730s # End of struct tests 1730s ok - glib/macros-c-11.test 1730s # Running test: glib/portal-support-snap-classic.test 1730s TAP version 14 1730s # random seed: R02S5f0f1a0a7f5ba7912e7cf3b2b6cf7fdd 1730s 1..3 1730s # Start of portal-support tests 1730s # Start of snap-classic tests 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/no-snapctl/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/no-snapctl/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/no-snapctl/.dirs/system-config1:/tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/no-snapctl/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/no-snapctl/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/no-snapctl/.dirs/system-data1:/tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/no-snapctl/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/no-snapctl/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/no-snapctl/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/no-snapctl/.dirs/runtime 1730s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/no-snapctl: No such file or directory 1730s ok 1 /portal-support/snap-classic/no-snapctl 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/none/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/none/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/none/.dirs/system-config1:/tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/none/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/none/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/none/.dirs/system-data1:/tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/none/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/none/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/none/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/none/.dirs/runtime 1730s # Created snap.yaml in /tmp/test_portal-support-snap-classic_UTO0B3/meta/snap.yaml 1730s # Created snapctl in /tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/none/.dirs/runtime/snapctl 1730s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/none: No such file or directory 1730s ok 2 /portal-support/snap-classic/none 1730s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/all/.dirs/home 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/all/.dirs/cache 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/all/.dirs/system-config1:/tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/all/.dirs/system-config2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/all/.dirs/config 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/all/.dirs/system-data1:/tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/all/.dirs/system-data2 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/all/.dirs/data 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/all/.dirs/state 1730s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/all/.dirs/runtime 1730s # Created snap.yaml in /tmp/test_portal-support-snap-classic_UTO0B3/meta/snap.yaml 1730s # Created snapctl in /tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/all/.dirs/runtime/snapctl 1730s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_UTO0B3/portal-support/snap-classic/all: No such file or directory 1730s ok 3 /portal-support/snap-classic/all 1730s # End of snap-classic tests 1730s # End of portal-support tests 1730s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_UTO0B3: No such file or directory 1730s ok - glib/portal-support-snap-classic.test 1730s # Running test: glib/rwlock.test 1730s TAP version 14 1730s # random seed: R02Se3ab5273e83a403e5be437edf52cffcb 1730s 1..8 1730s # Start of thread tests 1730s ok 1 /thread/rwlock1 1730s ok 2 /thread/rwlock2 1730s ok 3 /thread/rwlock3 1730s ok 4 /thread/rwlock4 1730s ok 5 /thread/rwlock5 1730s ok 6 /thread/rwlock6 1731s # Executing: glib/rwlock.test 1733s ok 7 /thread/rwlock7 1733s # slow test /thread/rwlock7 executed in 2.53 secs 1733s ok 8 /thread/rwlock8 1733s # End of thread tests 1733s ok - glib/rwlock.test 1733s # Running test: glib/utils-c-17.test 1733s TAP version 14 1733s # random seed: R02S748adc283fcf0c2faa1924027788634d 1733s 1..41 1733s # Start of utils tests 1733s ok 1 /utils/language-names 1733s # Testing locale ‘en’ 1733s # Testing locale ‘sr@latin’ 1733s # Testing locale ‘fr_BE’ 1733s # Testing locale ‘sr_SR@latin’ 1733s # Testing locale ‘sr_SR@latin.UTF-8’ 1733s # Testing locale ‘sr@latin_invalid’ 1733s # Testing locale ‘sr.UTF-8@latin’ 1733s # Testing locale ‘sr.UTF-8_latin’ 1733s # Testing locale ‘sr.UTF-8@latin_invalid’ 1733s ok 2 /utils/locale-variants 1733s ok 3 /utils/version 1733s ok 4 /utils/appname 1733s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1733s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1733s ok 5 /utils/prgname-thread-safety 1733s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1733s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1733s ok 6 /utils/tmpdir 1733s ok 7 /utils/basic_bits 1733s ok 8 /utils/bits 1733s ok 9 /utils/swap 1733s ok 10 /utils/find-program 1733s ok 11 /utils/find-program-for-path 1733s ok 12 /utils/debug 1733s ok 13 /utils/codeset 1733s ok 14 /utils/codeset2 1733s ok 15 /utils/console-charset 1733s ok 16 /utils/gettext 1733s ok - glib/utils-c-17.test 1733s # Running test: glib/array-test.test 1733s ok 17 /utils/username 1733s ok 18 /utils/realname 1733s ok 19 /utils/hostname 1733s ok 20 /utils/xdgdirs 1733s ok 21 /utils/specialdir 1733s # NAME: Ubuntu 1733s ok 22 /utils/os-info 1733s ok 23 /utils/clear-pointer 1733s ok 24 /utils/clear-pointer-cast 1733s ok 25 /utils/take-pointer 1733s ok 26 /utils/clear-source 1733s ok 27 /utils/misc-mem 1733s # /utils/aligned-mem summary: Aligned memory allocator 1733s # Alignment must not be zero 1733s # Alignment must be a power of two 1733s # Alignment must be a multiple of sizeof(void*) 1733s ok 28 /utils/aligned-mem 1733s # /utils/free-sized summary: Check that g_free_sized() works 1733s ok 29 /utils/free-sized 1733s ok 30 /utils/nullify 1733s ok 31 /utils/atexit 1733s ok 32 /utils/check-setuid 1733s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1733s ok 33 /utils/int-limits 1733s ok 34 /utils/clear-list 1733s ok 35 /utils/clear-slist 1733s ok 36 /utils/steal-handle-id 1733s # Start of specialdir tests 1733s ok 37 /utils/specialdir/desktop 1733s # End of specialdir tests 1733s # Start of clear-pointer tests 1733s ok 38 /utils/clear-pointer/side-effects 1733s # End of clear-pointer tests 1733s # Start of aligned-mem tests 1733s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1733s ok 39 /utils/aligned-mem/alignment 1733s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1733s ok 40 /utils/aligned-mem/zeroed 1733s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1733s ok 41 /utils/aligned-mem/free-sized 1733s # Start of subprocess tests 1733s # End of subprocess tests 1733s # End of aligned-mem tests 1733s # End of utils tests 1733s TAP version 14 1733s # random seed: R02S259a1e9c77d91376f341ede26402163d 1733s 1..120 1733s # Start of array tests 1733s ok 1 /array/ref-count 1733s ok 2 /array/steal 1733s ok 3 /array/clear-func 1733s ok 4 /array/binary-search 1733s ok 5 /array/overflow-append-vals 1733s ok 6 /array/overflow-set-size 1733s # Start of new tests 1733s ok 7 /array/new/zero-terminated 1733s ok 8 /array/new/take 1733s ok 9 /array/new/take-zero-terminated 1733s # Start of take tests 1733s ok 10 /array/new/take/empty 1733s ok 11 /array/new/take/overflow # SKIP Overflow test requires SIZE_WIDTH > UINT_WIDTH. 1733s ok 12 /array/new/take/zero-size 1733s # End of take tests 1733s # Start of take-zero-terminated tests 1733s ok 13 /array/new/take-zero-terminated/zero-size 1733s ok 14 /array/new/take-zero-terminated/null 1733s # End of take-zero-terminated tests 1733s # End of new tests 1733s # Start of copy tests 1733s # /array/copy/sized summary: Test that copying a newly-allocated sized array works. 1733s ok 15 /array/copy/sized 1733s ok 16 /array/copy/zero-terminated 1733s ok 17 /array/copy/non-zero-terminated-no-clear 1733s ok 18 /array/copy/non-zero-terminated-clear 1733s ok 19 /array/copy/zero-terminated-no-clear 1733s ok 20 /array/copy/zero-terminated-clear 1733s # End of copy tests 1733s # Start of remove-range tests 1733s ok 21 /array/remove-range/zero-terminated-null 1733s ok 22 /array/remove-range/non-zero-terminated-no-clear 1733s ok 23 /array/remove-range/non-zero-terminated-clear 1733s ok 24 /array/remove-range/zero-terminated-no-clear 1733s ok 25 /array/remove-range/zero-terminated-clear 1733s # End of remove-range tests 1733s # Start of set-size tests 1733s ok 26 /array/set-size/zero-terminated-null 1733s ok 27 /array/set-size/non-zero-terminated-no-clear 1733s ok 28 /array/set-size/non-zero-terminated-clear 1733s ok 29 /array/set-size/zero-terminated-no-clear 1733s ok 30 /array/set-size/zero-terminated-clear 1733s # Start of sized tests 1733s ok 31 /array/set-size/sized/non-zero-terminated-no-clear 1733s ok 32 /array/set-size/sized/non-zero-terminated-clear 1733s ok 33 /array/set-size/sized/zero-terminated-no-clear 1733s ok 34 /array/set-size/sized/zero-terminated-clear 1733s # End of sized tests 1733s # End of set-size tests 1733s # Start of append-val tests 1733s ok 35 /array/append-val/non-zero-terminated-no-clear 1733s ok 36 /array/append-val/non-zero-terminated-clear 1733s ok 37 /array/append-val/zero-terminated-no-clear 1733s ok 38 /array/append-val/zero-terminated-clear 1733s # End of append-val tests 1733s # Start of prepend-val tests 1733s ok 39 /array/prepend-val/non-zero-terminated-no-clear 1733s ok 40 /array/prepend-val/non-zero-terminated-clear 1733s ok 41 /array/prepend-val/zero-terminated-no-clear 1733s ok 42 /array/prepend-val/zero-terminated-clear 1733s # End of prepend-val tests 1733s # Start of prepend-vals tests 1733s ok 43 /array/prepend-vals/non-zero-terminated-no-clear 1733s ok 44 /array/prepend-vals/non-zero-terminated-clear 1733s ok 45 /array/prepend-vals/zero-terminated-no-clear 1733s ok 46 /array/prepend-vals/zero-terminated-clear 1733s # End of prepend-vals tests 1733s # Start of insert-vals tests 1733s ok 47 /array/insert-vals/non-zero-terminated-no-clear 1733s ok 48 /array/insert-vals/non-zero-terminated-clear 1733s ok 49 /array/insert-vals/zero-terminated-no-clear 1733s ok 50 /array/insert-vals/zero-terminated-clear 1733s # End of insert-vals tests 1733s # Start of remove-index tests 1733s ok 51 /array/remove-index/non-zero-terminated-no-clear 1733s ok 52 /array/remove-index/non-zero-terminated-clear 1733s ok 53 /array/remove-index/zero-terminated-no-clear 1733s ok 54 /array/remove-index/zero-terminated-clear 1733s # End of remove-index tests 1733s # Start of remove-index-fast tests 1733s ok 55 /array/remove-index-fast/non-zero-terminated-no-clear 1733s ok 56 /array/remove-index-fast/non-zero-terminated-clear 1733s ok 57 /array/remove-index-fast/zero-terminated-no-clear 1733s ok 58 /array/remove-index-fast/zero-terminated-clear 1733s # End of remove-index-fast tests 1733s # Start of sort tests 1733s ok 59 /array/sort/non-zero-terminated-no-clear 1733s ok 60 /array/sort/non-zero-terminated-clear 1733s ok 61 /array/sort/zero-terminated-no-clear 1733s ok 62 /array/sort/zero-terminated-clear 1733s # End of sort tests 1733s # Start of sort-with-data tests 1733s ok 63 /array/sort-with-data/non-zero-terminated-no-clear 1733s ok 64 /array/sort-with-data/non-zero-terminated-clear 1733s ok 65 /array/sort-with-data/zero-terminated-no-clear 1733s ok 66 /array/sort-with-data/zero-terminated-clear 1733s # End of sort-with-data tests 1733s # End of array tests 1733s # Start of pointerarray tests 1733s ok 67 /pointerarray/add 1733s ok 68 /pointerarray/insert 1733s ok 69 /pointerarray/new-take 1733s ok 70 /pointerarray/new-take-null-terminated 1733s ok 71 /pointerarray/new-from-array 1733s ok 72 /pointerarray/new-from-null-terminated-array 1733s ok 73 /pointerarray/free-func 1733s ok 74 /pointerarray/array_extend_and_steal 1733s ok 75 /pointerarray/sort 1733s ok 76 /pointerarray/sort-with-data 1733s ok 77 /pointerarray/sort-values 1733s ok 78 /pointerarray/sort-values-with-data 1733s ok 79 /pointerarray/remove-range 1733s ok 80 /pointerarray/steal 1733s # Start of free tests 1733s # /pointerarray/free/null-terminated summary: Check that g_ptr_array_free() on an empty array returns a NULL-terminated empty array 1733s ok 81 /pointerarray/free/null-terminated 1733s # End of free tests 1733s # Start of new-take tests 1733s ok 82 /pointerarray/new-take/empty 1733s ok 83 /pointerarray/new-take/overflow # SKIP Overflow test requires SIZE_WIDTH > UINT_WIDTH. 1733s ok 84 /pointerarray/new-take/with-free-func 1733s # End of new-take tests 1733s # Start of new-take-null-terminated tests 1733s ok 85 /pointerarray/new-take-null-terminated/empty 1733s ok 86 /pointerarray/new-take-null-terminated/with-free-func 1733s ok 87 /pointerarray/new-take-null-terminated/from-gstrv 1733s # End of new-take-null-terminated tests 1733s # Start of new-from-array tests 1733s ok 88 /pointerarray/new-from-array/empty 1733s ok 89 /pointerarray/new-from-array/overflow # SKIP Overflow test requires SIZE_WIDTH > UINT_WIDTH. 1733s ok 90 /pointerarray/new-from-array/with-copy-and-free-func 1733s # End of new-from-array tests 1733s # Start of new-from-null-terminated-array tests 1733s ok 91 /pointerarray/new-from-null-terminated-array/empty 1733s ok 92 /pointerarray/new-from-null-terminated-array/with-copy-and-free-func 1733s ok 93 /pointerarray/new-from-null-terminated-array/from-gstrv 1733s # End of new-from-null-terminated-array tests 1733s # Start of ref-count tests 1733s ok 94 /pointerarray/ref-count/not-null-terminated 1733s ok 95 /pointerarray/ref-count/null-terminated 1733s # End of ref-count tests 1733s # Start of array_copy tests 1733s # /pointerarray/array_copy/not-null-terminated summary: Check all normal behaviour of stealing elements from one array to append to another, covering different array sizes and element copy functions 1733s ok 96 /pointerarray/array_copy/not-null-terminated 1733s # /pointerarray/array_copy/null-terminated summary: Check all normal behaviour of stealing elements from one array to append to another, covering different array sizes and element copy functions 1733s ok 97 /pointerarray/array_copy/null-terminated 1733s # End of array_copy tests 1733s # Start of array_extend tests 1733s ok 98 /pointerarray/array_extend/not-null-terminated 1733s ok 99 /pointerarray/array_extend/null-terminated 1733s # End of array_extend tests 1733s # Start of sort tests 1733s # /pointerarray/sort/example summary: Check that the doc-comment for g_ptr_array_sort() is correct 1733s ok 100 /pointerarray/sort/example 1733s # End of sort tests 1733s # Start of sort-with-data tests 1733s # /pointerarray/sort-with-data/example summary: Check that the doc-comment for g_ptr_array_sort_with_data() is correct 1733s ok 101 /pointerarray/sort-with-data/example 1733s # End of sort-with-data tests 1733s # Start of sort-values tests 1733s ok 102 /pointerarray/sort-values/example 1733s # End of sort-values tests 1733s # Start of sort-values-with-data tests 1733s ok - glib/array-test.test 1733s # Running test: glib/properties-refcount3.test 1733s ok 103 /pointerarray/sort-values-with-data/example 1733s # End of sort-values-with-data tests 1733s # Start of find tests 1733s ok 104 /pointerarray/find/empty 1733s ok 105 /pointerarray/find/non-empty 1733s # End of find tests 1733s # Start of steal_index tests 1733s ok 106 /pointerarray/steal_index/not-null-terminated 1733s ok 107 /pointerarray/steal_index/null-terminated 1733s # End of steal_index tests 1733s # End of pointerarray tests 1733s # Start of bytearray tests 1733s ok 108 /bytearray/steal 1733s ok 109 /bytearray/append 1733s ok 110 /bytearray/prepend 1733s ok 111 /bytearray/remove 1733s ok 112 /bytearray/remove-fast 1733s ok 113 /bytearray/remove-range 1733s ok 114 /bytearray/ref-count 1733s ok 115 /bytearray/set-size 1733s ok 116 /bytearray/sort 1733s ok 117 /bytearray/sort-with-data 1733s ok 118 /bytearray/new-take 1733s ok 119 /bytearray/new-take-overflow # SKIP Overflow test requires SIZE_WIDTH > UINT_WIDTH. 1733s ok 120 /bytearray/free-to-bytes 1733s # End of bytearray tests 1733s TAP version 14 1733s # random seed: R02S90152299f9c6cf39f6333d0602cdd69a 1733s 1..1 1733s # Start of gobject tests 1733s # Start of refcount tests 1736s # Executing: glib/properties-refcount3.test 1741s # Executing: glib/properties-refcount3.test 1746s # Executing: glib/properties-refcount3.test 1751s # Executing: glib/properties-refcount3.test 1756s # Executing: glib/properties-refcount3.test 1761s # Executing: glib/properties-refcount3.test 1764s ok - glib/properties-refcount3.test 1764s # 1764s # stopping 1764s # 1764s # stopped 1764s # 1764s # 6232327 94421 1764s # 1764s ok 1 /gobject/refcount/properties-3 1764s # slow test /gobject/refcount/properties-3 executed in 30.00 secs 1764s # End of refcount tests 1764s # End of gobject tests 1764s TAP version 14 1764s # random seed: R02Sfa7c70a5e877e9c3c26a309b19795f4e 1764s 1..14 1764s # Start of slist tests 1764s ok 1 /slist/sort 1764s ok 2 /slist/sort-with-data 1764s ok 3 /slist/insert-sorted 1764s ok 4 /slist/insert-sorted-with-data 1764s ok 5 /slist/reverse 1764s ok 6 /slist/nth 1764s ok 7 /slist/remove 1764s ok 8 /slist/remove-all 1764s ok 9 /slist/insert 1764s ok 10 /slist/position 1764s ok 11 /slist/concat 1764s ok 12 /slist/copy 1764s # Start of sort tests 1764s ok 13 /slist/sort/stable 1764s # End of sort tests 1764s # Start of copy tests 1764s ok 14 /slist/copy/deep 1764s # End of copy tests 1764s # End of slist tests 1764s # Running test: glib/slist.test 1764s ok - glib/slist.test 1764s # Running test: glib/logging.test 1764s ok - glib/logging.test 1764s # Running test: glib/properties.test 1764s ok - glib/properties.test 1764s # Running test: glib/include.test 1764s ok - glib/include.test 1764s # Running test: glib/vfs.test 1764s ok - glib/vfs.test 1764s # Running test: glib/properties-introspection.test 1764s ok - glib/properties-introspection.test 1764s # Running test: glib/closure.test 1764s ok - glib/closure.test 1764s # Running test: glib/markup-escape.test 1764s ok - glib/markup-escape.test 1764s # Running test: glib/macros-c-99.test 1764s ok - glib/macros-c-99.test 1764s # Running test: glib/io-channel.test 1764s ok - glib/io-channel.test 1764s # Running test: glib/object-info.test 1764s ok - glib/object-info.test 1764s # Running test: glib/error.test 1764s ok - glib/error.test 1764s # Running test: glib/thread-pool.test 1764s ok - glib/thread-pool.test 1764s # Running test: glib/markup-collect.test 1764s ok - glib/markup-collect.test 1764s # Running test: glib/filenamecompleter.test 1764s ok - glib/filenamecompleter.test 1764s # Running test: glib/portal-support-flatpak-gsettings-only.test 1764s ok - glib/portal-support-flatpak-gsettings-only.test 1764s # Running test: glib/power-profile-monitor.test 1764s ok - glib/power-profile-monitor.test 1764s # Running test: glib/messages-low-memory.py.test 1764s ok - glib/messages-low-memory.py.test 1764s # Running test: glib/data-input-stream.test 1764s ok - glib/data-input-stream.test 1764s # Running test: glib/inet-address.test 1764s ok - glib/inet-address.test 1764s # Running test: glib/mkenums.py.test 1764s TAP version 14 1764s # random seed: R02S6f408b6276f6d9fb187b21083e9d6d4f 1764s 1..19 1764s # Start of logging tests 1764s ok 1 /logging/default-handler 1764s ok 2 /logging/journald-handler 1764s ok 3 /logging/warnings 1764s ok 4 /logging/fatal-log-mask 1764s ok 5 /logging/always-fatal 1764s # bu-DEBUG: message 1764s # ba-DEBUG: message 1764s # ba-INFO: message 1764s ok 6 /logging/set-handler 1764s ok 7 /logging/print-handler 1764s ok 8 /logging/printerr-handler 1764s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=653052 1764s # The Log Message Handler 1764s # 1764s # The Good Fail Message Handler 1764s # 1764s ok 9 /logging/653052 1764s ok 10 /logging/gibberish 1764s # Start of default-handler tests 1764s # Start of subprocess tests 1764s # End of subprocess tests 1764s # End of default-handler tests 1764s # End of logging tests 1764s # Start of structured-logging tests 1764s ok 11 /structured-logging/no-state 1764s ok 12 /structured-logging/some-state 1764s ok 13 /structured-logging/robustness 1764s ok 14 /structured-logging/roundtrip1 1764s ok 15 /structured-logging/roundtrip2 1764s ok 16 /structured-logging/roundtrip3 1764s ok 17 /structured-logging/variant1 1764s ok 18 /structured-logging/variant2 1764s ok 19 /structured-logging/set-writer-func-twice 1764s # End of structured-logging tests 1764s TAP version 14 1764s # random seed: R02Sc1daf22c7ad3d46bf3c692bc08d5eab5 1764s 1..14 1764s # Start of properties tests 1764s ok 1 /properties/install 1764s ok 2 /properties/install-many 1764s ok 3 /properties/notify 1764s ok 4 /properties/notify-queue 1764s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=630357 1764s ok 5 /properties/construct 1764s # /properties/get-property summary: g_object_get_property() accepts uninitialized, initialized, and transformable values 1764s # Test g_object_get_property with an initialized value 1764s # Test g_object_get_property with an uninitialized value 1764s # Test g_object_get_property with a transformable value 1764s ok 6 /properties/get-property 1764s ok 7 /properties/testv_with_no_properties 1764s ok 8 /properties/testv_with_valid_properties 1764s ok 9 /properties/testv_with_invalid_property_type 1764s ok 10 /properties/testv_with_invalid_property_names 1764s ok 11 /properties/testv_getv 1764s ok 12 /properties/testv_notify_queue 1764s # Start of notify tests 1764s ok 13 /properties/notify/too-many-freezes 1764s # End of notify tests 1764s # Start of set-property tests 1764s # Start of variant tests 1764s # /properties/set-property/variant/floating summary: Test that setting a property to a floating variant consumes the reference 1764s ok 14 /properties/set-property/variant/floating 1764s # End of variant tests 1764s # End of set-property tests 1764s # End of properties tests 1764s TAP version 14 1764s # random seed: R02See6357f312ebbe42c678ba28c0f57c0e 1764s 1..1 1764s # Start of include tests 1764s ok 1 /include/rwlock 1764s # End of include tests 1764s TAP version 14 1764s # random seed: R02S77e1565915876110d9752968b382442f 1764s 1..3 1764s # Start of gvfs tests 1764s ok 1 /gvfs/local 1764s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1764s ok 2 /gvfs/register-scheme 1764s # Start of resource tests 1764s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3090 1764s # /gvfs/resource/malformed-escaping summary: Test that g_vfs_get_file_for_uri() returns an invalid file for an invalid URI 1764s ok 3 /gvfs/resource/malformed-escaping 1764s # End of resource tests 1764s # End of gvfs tests 1764s TAP version 14 1764s # random seed: R02Sa4ca62a9582cdc67e23ade25915a3b4c 1764s 1..2 1764s # Start of properties tests 1764s # /properties/introspection summary: Verify that introspecting properties on an interface initializes the GParamSpecPool. 1764s ok 1 /properties/introspection 1764s # /properties/collision summary: Verify that multiple threads create a single GParamSpecPool. 1764s ok 2 /properties/collision 1764s # End of properties tests 1764s TAP version 14 1764s # random seed: R02S2b59b432f7f071699b76cb740d0fcb75 1764s 1..6 1764s # Start of closure tests 1764s ok 1 /closure/idle 1764s ok 2 /closure/timeout 1764s ok 3 /closure/iochannel 1764s ok 4 /closure/child 1764s ok 5 /closure/fd 1764s ok 6 /closure/signal 1764s # End of closure tests 1764s TAP version 14 1764s # random seed: R02S94850fd90f12ba1a82a6191949143a6d 1764s 1..41 1764s # Start of markup tests 1764s ok 1 /markup/format 1764s # Start of escape-text tests 1764s ok 2 /markup/escape-text/0 1764s ok 3 /markup/escape-text/1 1764s ok 4 /markup/escape-text/2 1764s ok 5 /markup/escape-text/3 1764s ok 6 /markup/escape-text/4 1764s ok 7 /markup/escape-text/5 1764s ok 8 /markup/escape-text/6 1764s ok 9 /markup/escape-text/7 1764s ok 10 /markup/escape-text/8 1764s ok 11 /markup/escape-text/9 1764s ok 12 /markup/escape-text/10 1764s ok 13 /markup/escape-text/11 1764s ok 14 /markup/escape-text/12 1764s ok 15 /markup/escape-text/13 1764s ok 16 /markup/escape-text/14 1764s ok 17 /markup/escape-text/15 1764s ok 18 /markup/escape-text/16 1764s ok 19 /markup/escape-text/17 1764s ok 20 /markup/escape-text/18 1764s ok 21 /markup/escape-text/19 1764s ok 22 /markup/escape-text/20 1764s ok 23 /markup/escape-text/21 1764s ok 24 /markup/escape-text/22 1764s # End of escape-text tests 1764s # Start of escape-unichar tests 1764s ok 25 /markup/escape-unichar/0 1764s ok 26 /markup/escape-unichar/1 1764s ok 27 /markup/escape-unichar/2 1764s ok 28 /markup/escape-unichar/3 1764s ok 29 /markup/escape-unichar/4 1764s ok 30 /markup/escape-unichar/5 1764s ok 31 /markup/escape-unichar/6 1764s ok 32 /markup/escape-unichar/7 1764s ok 33 /markup/escape-unichar/8 1764s ok 34 /markup/escape-unichar/9 1764s ok 35 /markup/escape-unichar/10 1764s ok 36 /markup/escape-unichar/11 1764s ok 37 /markup/escape-unichar/12 1764s ok 38 /markup/escape-unichar/13 1764s ok 39 /markup/escape-unichar/14 1764s ok 40 /markup/escape-unichar/15 1764s ok 41 /markup/escape-unichar/16 1764s # End of escape-unichar tests 1764s # End of markup tests 1764s TAP version 14 1764s # random seed: R02Sf6d2ca3652210d04b98d6116ca110c57 1764s 1..4 1764s # Start of C tests 1764s ok 1 /C/standard-99 1764s # End of C tests 1764s # Start of alignof tests 1764s ok 2 /alignof/fallback 1764s # End of alignof tests 1764s # Start of assert tests 1764s ok 3 /assert/static 1764s # End of assert tests 1764s # Start of struct tests 1764s ok 4 /struct/sizeof_member 1764s # End of struct tests 1764s TAP version 14 1764s # random seed: R02S20754602ee7d59c70c1cf19e463d21d7 1764s 1..2 1764s # Start of io-channel tests 1764s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_io-channel_3D02B3/io-channel/read-write/.dirs/home 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_io-channel_3D02B3/io-channel/read-write/.dirs/cache 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_io-channel_3D02B3/io-channel/read-write/.dirs/system-config1:/tmp/test_io-channel_3D02B3/io-channel/read-write/.dirs/system-config2 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_io-channel_3D02B3/io-channel/read-write/.dirs/config 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_io-channel_3D02B3/io-channel/read-write/.dirs/system-data1:/tmp/test_io-channel_3D02B3/io-channel/read-write/.dirs/system-data2 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_io-channel_3D02B3/io-channel/read-write/.dirs/data 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_io-channel_3D02B3/io-channel/read-write/.dirs/state 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_io-channel_3D02B3/io-channel/read-write/.dirs/runtime 1764s # Line one 1764s # 1764s # Line two 1764s # 1764s # Line three 1764s # 1764s # /* Hello */ 1764s # 1764s # \x1234\x567890\x6666 1764s # 1764s # read 62 bytes, wrote 62 bytes 1764s ok 1 /io-channel/read-write 1764s # Start of read-line tests 1764s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_io-channel_3D02B3/io-channel/read-line/embedded-nuls/.dirs/home 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_io-channel_3D02B3/io-channel/read-line/embedded-nuls/.dirs/cache 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_io-channel_3D02B3/io-channel/read-line/embedded-nuls/.dirs/system-config1:/tmp/test_io-channel_3D02B3/io-channel/read-line/embedded-nuls/.dirs/system-config2 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_io-channel_3D02B3/io-channel/read-line/embedded-nuls/.dirs/config 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_io-channel_3D02B3/io-channel/read-line/embedded-nuls/.dirs/system-data1:/tmp/test_io-channel_3D02B3/io-channel/read-line/embedded-nuls/.dirs/system-data2 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_io-channel_3D02B3/io-channel/read-line/embedded-nuls/.dirs/data 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_io-channel_3D02B3/io-channel/read-line/embedded-nuls/.dirs/state 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_io-channel_3D02B3/io-channel/read-line/embedded-nuls/.dirs/runtime 1764s # /io-channel/read-line/embedded-nuls summary: Test that reading a line containing embedded nuls works when using non-standard line terminators. 1764s ok 2 /io-channel/read-line/embedded-nuls 1764s # End of read-line tests 1764s # End of io-channel tests 1764s TAP version 14 1764s # random seed: R02S32144cedf26275202ff346160a5d4e40 1764s 1..2 1764s # Start of object-info tests 1764s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_object-info_GXN2B3/object-info/find-method-using-interfaces/.dirs/home 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_object-info_GXN2B3/object-info/find-method-using-interfaces/.dirs/cache 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_object-info_GXN2B3/object-info/find-method-using-interfaces/.dirs/system-config1:/tmp/test_object-info_GXN2B3/object-info/find-method-using-interfaces/.dirs/system-config2 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_object-info_GXN2B3/object-info/find-method-using-interfaces/.dirs/config 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_object-info_GXN2B3/object-info/find-method-using-interfaces/.dirs/system-data1:/tmp/test_object-info_GXN2B3/object-info/find-method-using-interfaces/.dirs/system-data2 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_object-info_GXN2B3/object-info/find-method-using-interfaces/.dirs/data 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_object-info_GXN2B3/object-info/find-method-using-interfaces/.dirs/state 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_object-info_GXN2B3/object-info/find-method-using-interfaces/.dirs/runtime 1764s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1764s ok 1 /object-info/find-method-using-interfaces 1764s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_object-info_GXN2B3/object-info/find-vfunc-using-interfaces/.dirs/home 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_object-info_GXN2B3/object-info/find-vfunc-using-interfaces/.dirs/cache 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_object-info_GXN2B3/object-info/find-vfunc-using-interfaces/.dirs/system-config1:/tmp/test_object-info_GXN2B3/object-info/find-vfunc-using-interfaces/.dirs/system-config2 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_object-info_GXN2B3/object-info/find-vfunc-using-interfaces/.dirs/config 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_object-info_GXN2B3/object-info/find-vfunc-using-interfaces/.dirs/system-data1:/tmp/test_object-info_GXN2B3/object-info/find-vfunc-using-interfaces/.dirs/system-data2 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_object-info_GXN2B3/object-info/find-vfunc-using-interfaces/.dirs/data 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_object-info_GXN2B3/object-info/find-vfunc-using-interfaces/.dirs/state 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_object-info_GXN2B3/object-info/find-vfunc-using-interfaces/.dirs/runtime 1764s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1764s ok 2 /object-info/find-vfunc-using-interfaces 1764s # End of object-info tests 1764s TAP version 14 1764s # random seed: R02S54d5b54da38cdb04f95fe21d160500ea 1764s 1..3 1764s # Start of error tests 1764s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_JJ41B3/error/from-errno/.dirs/home 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_JJ41B3/error/from-errno/.dirs/cache 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_JJ41B3/error/from-errno/.dirs/system-config1:/tmp/test_error_JJ41B3/error/from-errno/.dirs/system-config2 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_JJ41B3/error/from-errno/.dirs/config 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_JJ41B3/error/from-errno/.dirs/system-data1:/tmp/test_error_JJ41B3/error/from-errno/.dirs/system-data2 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_JJ41B3/error/from-errno/.dirs/data 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_JJ41B3/error/from-errno/.dirs/state 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_JJ41B3/error/from-errno/.dirs/runtime 1764s ok 1 /error/from-errno 1764s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_JJ41B3/error/from-file-error/.dirs/home 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_JJ41B3/error/from-file-error/.dirs/cache 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_JJ41B3/error/from-file-error/.dirs/system-config1:/tmp/test_error_JJ41B3/error/from-file-error/.dirs/system-config2 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_JJ41B3/error/from-file-error/.dirs/config 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_JJ41B3/error/from-file-error/.dirs/system-data1:/tmp/test_error_JJ41B3/error/from-file-error/.dirs/system-data2 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_JJ41B3/error/from-file-error/.dirs/data 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_JJ41B3/error/from-file-error/.dirs/state 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_JJ41B3/error/from-file-error/.dirs/runtime 1764s ok 2 /error/from-file-error 1764s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_JJ41B3/error/from-win32-error/.dirs/home 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_JJ41B3/error/from-win32-error/.dirs/cache 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_JJ41B3/error/from-win32-error/.dirs/system-config1:/tmp/test_error_JJ41B3/error/from-win32-error/.dirs/system-config2 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_JJ41B3/error/from-win32-error/.dirs/config 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_JJ41B3/error/from-win32-error/.dirs/system-data1:/tmp/test_error_JJ41B3/error/from-win32-error/.dirs/system-data2 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_JJ41B3/error/from-win32-error/.dirs/data 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_JJ41B3/error/from-win32-error/.dirs/state 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_JJ41B3/error/from-win32-error/.dirs/runtime 1764s ok 3 /error/from-win32-error # SKIP Windows error codes can only be checked on Windows 1764s # End of error tests 1764s TAP version 14 1764s # random seed: R02S6cab5f4b03c978a15c87c9188f2c875e 1764s 1..6 1764s # Start of thread_pool tests 1764s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3712 1764s ok 1 /thread_pool/pool_fail 1764s # /thread_pool/shared summary: Tests that a shared, non-exclusive thread pool generally works. 1764s ok 2 /thread_pool/shared 1764s # /thread_pool/exclusive summary: Tests that an exclusive thread pool generally works. 1764s ok 3 /thread_pool/exclusive 1764s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2012 1764s # /thread_pool/create_shared_after_exclusive summary: Tests that creating a shared pool after an exclusive one works. 1764s ok 4 /thread_pool/create_shared_after_exclusive 1764s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/121 1764s ok 5 /thread_pool/create_full 1764s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2012 1764s # /thread_pool/create_exclusive_after_shared summary: Tests that creating an exclusive pool after a shared one works. 1764s ok 6 /thread_pool/create_exclusive_after_shared 1764s # End of thread_pool tests 1764s TAP version 14 1764s # random seed: R02S24d7a83ca16161eeff091411c408d056 1764s 1..21 1764s # Start of markup tests 1764s # Start of collect tests 1764s ok 1 /markup/collect/0 1764s ok 2 /markup/collect/1 1764s ok 3 /markup/collect/2 1764s ok 4 /markup/collect/3 1764s ok 5 /markup/collect/4 1764s ok 6 /markup/collect/5 1764s ok 7 /markup/collect/6 1764s ok 8 /markup/collect/7 1764s ok 9 /markup/collect/8 1764s ok 10 /markup/collect/9 1764s ok 11 /markup/collect/10 1764s ok 12 /markup/collect/11 1764s ok 13 /markup/collect/12 1764s ok 14 /markup/collect/13 1764s ok 15 /markup/collect/14 1764s ok 16 /markup/collect/15 1764s ok 17 /markup/collect/16 1764s ok 18 /markup/collect/17 1764s ok 19 /markup/collect/18 1764s ok 20 /markup/collect/19 1764s ok 21 /markup/collect/cleanup 1764s # End of collect tests 1764s # End of markup tests 1764s TAP version 14 1764s # random seed: R02Sbc600a68f37ab842d58eea9c1e5271c5 1764s 1..1 1764s # Start of filenamecompleter tests 1764s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_filenamecompleter_2S46B3/filenamecompleter/basic/.dirs/home 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_filenamecompleter_2S46B3/filenamecompleter/basic/.dirs/cache 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_filenamecompleter_2S46B3/filenamecompleter/basic/.dirs/system-config1:/tmp/test_filenamecompleter_2S46B3/filenamecompleter/basic/.dirs/system-config2 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_filenamecompleter_2S46B3/filenamecompleter/basic/.dirs/config 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_filenamecompleter_2S46B3/filenamecompleter/basic/.dirs/system-data1:/tmp/test_filenamecompleter_2S46B3/filenamecompleter/basic/.dirs/system-data2 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_filenamecompleter_2S46B3/filenamecompleter/basic/.dirs/data 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_filenamecompleter_2S46B3/filenamecompleter/basic/.dirs/state 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_filenamecompleter_2S46B3/filenamecompleter/basic/.dirs/runtime 1764s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1764s ok 1 /filenamecompleter/basic 1764s # End of filenamecompleter tests 1764s TAP version 14 1764s # random seed: R02S584597dd6ecd7f06e6c04e83b4333f10 1764s 1..1 1764s # Start of portal-support tests 1764s # Start of flatpak tests 1764s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-gsettings-only_2SF6B3/portal-support/flatpak/gsettings/.dirs/home 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-gsettings-only_2SF6B3/portal-support/flatpak/gsettings/.dirs/cache 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-gsettings-only_2SF6B3/portal-support/flatpak/gsettings/.dirs/system-config1:/tmp/test_portal-support-flatpak-gsettings-only_2SF6B3/portal-support/flatpak/gsettings/.dirs/system-config2 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-gsettings-only_2SF6B3/portal-support/flatpak/gsettings/.dirs/config 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-gsettings-only_2SF6B3/portal-support/flatpak/gsettings/.dirs/system-data1:/tmp/test_portal-support-flatpak-gsettings-only_2SF6B3/portal-support/flatpak/gsettings/.dirs/system-data2 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-gsettings-only_2SF6B3/portal-support/flatpak/gsettings/.dirs/data 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-gsettings-only_2SF6B3/portal-support/flatpak/gsettings/.dirs/state 1764s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-gsettings-only_2SF6B3/portal-support/flatpak/gsettings/.dirs/runtime 1764s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-gsettings-only_2SF6B3/portal-support/flatpak/gsettings/.dirs/runtime/.flatpak-info 1764s ok 1 /portal-support/flatpak/gsettings 1764s # End of flatpak tests 1764s # End of portal-support tests 1764s TAP version 14 1764s # random seed: R02S0c062bc44557da2b76eafd0347cdccc9 1764s 1..1 1764s # Start of power-profile-monitor tests 1764s # GLib-GIO-DEBUG: Failed to initialize portal (GPowerProfileMonitorPortal) for gio-power-profile-monitor: Not using portals 1764s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dbus (GPowerProfileMonitorDBus) for ‘gio-power-profile-monitor’ 1764s ok 1 /power-profile-monitor/default 1764s # End of power-profile-monitor tests 1764s TAP version 13 1764s ok 1 __main__.TestMessagesLowMemory.test_message_memory_allocation_failure 1764s # messages-low-memory: /usr/libexec/installed-tests/glib/messages-low-memory 1764s # tmpdir: /tmp/tmp5z6plde5 1764s # Running: ['/usr/libexec/installed-tests/glib/messages-low-memory'] 1764s # Return code: -6 1764s # Output: 1764s # 1764s # Error: 1764s # GLib-Message: 17:14:32.966: Simulates a situation in which we were crashing because of low-memory, leading malloc to fail instead of aborting 1764s # GLib-Message: 17:14:32.967: bug: https://gitlab.gnome.org/GNOME/glib/-/issues/2753 1764s # ../../../glib/gprintf.c:361: failed to allocate memory 1764s 1..1 1764s TAP version 14 1764s # random seed: R02S98e8aeb3b52a5393db1e1bcc0382cf2c 1764s 1..10 1764s # Start of data-input-stream tests 1764s ok 1 /data-input-stream/basic 1764s ok 2 /data-input-stream/read-lines-LF 1764s ok 3 /data-input-stream/read-lines-LF-valid-utf8 1764s ok 4 /data-input-stream/read-lines-LF-invalid-utf8 1764s ok 5 /data-input-stream/read-lines-CR 1764s ok 6 /data-input-stream/read-lines-CR-LF 1764s ok 7 /data-input-stream/read-lines-any 1764s ok 8 /data-input-stream/read-until 1764s # Test vector 0: part1 # part2 $ part3 ? part4 ? and #$?^ 1764s # Test vector 1: {"key": "value"}? and ? 1764s ok 9 /data-input-stream/read-upto 1764s ok 10 /data-input-stream/read-int 1764s # End of data-input-stream tests 1764s TAP version 14 1764s # random seed: R02Se16d1ed05316557f4e42bf0e223829cf 1764s 1..11 1764s # Start of inet-address tests 1764s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string ::1::2 1764s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 2001:1:2:3:4:5:6:7] 1764s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [2001:1:2:3:4:5:6:7 1764s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [2001:1:2:3:4:5:6:7] 1764s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [2001:1:2:3:4:5:6:7]:80 1764s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 0:1:2:3:4:5:6:7:8:9 1764s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string ::FFFFFFF 1764s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 204.152.189.116:80 1764s ok 1 /inet-address/parse 1764s ok 2 /inet-address/any 1764s ok 3 /inet-address/loopback 1764s ok 4 /inet-address/bytes 1764s ok 5 /inet-address/property 1764s # End of inet-address tests 1764s # Start of socket-address tests 1764s ok 6 /socket-address/basic 1764s ok 7 /socket-address/to-string 1764s # End of socket-address tests 1764s # Start of address-mask tests 1764s ok 8 /address-mask/parse 1764s ok 9 /address-mask/property 1764s ok 10 /address-mask/equal 1764s ok 11 /address-mask/match 1764s # End of address-mask tests 1764s TAP version 13 1764s ok 1 __main__.TestMkenums.test_available_in 1764s # glib-mkenums: /usr/bin/glib-mkenums 1764s # tmpdir: /tmp/tmp69tj5lz2 1764s # rspfile: False 1764s # /tmp/tmp69tj5lz2/tmp8zx7bh89.h: 1764s # typedef enum { 1764s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<2) 1764s # } GDBusServerFlags; 1764s # 1764s # /tmp/tmp69tj5lz2/tmptwtwolmn.template: 1764s # /*** BEGIN file-header ***/ 1764s # file-header 1764s # /*** END file-header ***/ 1764s # 1764s # /*** BEGIN file-production ***/ 1764s # file-production 1764s # filename: @filename@ 1764s # basename: @basename@ 1764s # /*** END file-production ***/ 1764s # 1764s # /*** BEGIN enumeration-production ***/ 1764s # enumeration-production 1764s # EnumName: @EnumName@ 1764s # enum_name: @enum_name@ 1764s # ENUMNAME: @ENUMNAME@ 1764s # ENUMSHORT: @ENUMSHORT@ 1764s # ENUMPREFIX: @ENUMPREFIX@ 1764s # enumsince: @enumsince@ 1764s # type: @type@ 1764s # Type: @Type@ 1764s # TYPE: @TYPE@ 1764s # /*** END enumeration-production ***/ 1764s # 1764s # /*** BEGIN value-header ***/ 1764s # value-header 1764s # EnumName: @EnumName@ 1764s # enum_name: @enum_name@ 1764s # ENUMNAME: @ENUMNAME@ 1764s # ENUMSHORT: @ENUMSHORT@ 1764s # ENUMPREFIX: @ENUMPREFIX@ 1764s # enumsince: @enumsince@ 1764s # type: @type@ 1764s # Type: @Type@ 1764s # TYPE: @TYPE@ 1764s # /*** END value-header ***/ 1764s # 1764s # /*** BEGIN value-production ***/ 1764s # value-production 1764s # VALUENAME: @VALUENAME@ 1764s # valuenick: @valuenick@ 1764s # valuenum: @valuenum@ 1764s # type: @type@ 1764s # Type: @Type@ 1764s # TYPE: @TYPE@ 1764s # /*** END value-production ***/ 1764s # 1764s # /*** BEGIN value-tail ***/ 1764s # value-tail 1764s # EnumName: @EnumName@ 1764s # enum_name: @enum_name@ 1764s # ENUMNAME: @ENUMNAME@ 1764s # ENUMSHORT: @ENUMSHORT@ 1764s # ENUMPREFIX: @ENUMPREFIX@ 1764s # enumsince: @enumsince@ 1764s # type: @type@ 1764s # Type: @Type@ 1764s # TYPE: @TYPE@ 1764s # /*** END value-tail ***/ 1764s # 1764s # /*** BEGIN comment ***/ 1764s # comment 1764s # comment: @comment@ 1764s # /*** END comment ***/ 1764s # 1764s # /*** BEGIN file-tail ***/ 1764s # file-tail 1764s # /*** END file-tail ***/ 1764s # 1764s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp69tj5lz2/tmptwtwolmn.template', '/tmp/tmp69tj5lz2/tmp8zx7bh89.h'] 1764s # Return code: 0 1764s # Output: 1764s # comment 1764s # comment: This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. 1764s # 1764s # 1764s # file-header 1764s # file-production 1764s # filename: /tmp/tmp69tj5lz2/tmp8zx7bh89.h 1764s # basename: tmp8zx7bh89.h 1764s # enumeration-production 1764s # EnumName: GDBusServerFlags 1764s # enum_name: g_dbus_server_flags 1764s # ENUMNAME: G_DBUS_SERVER_FLAGS 1764s # ENUMSHORT: DBUS_SERVER_FLAGS 1764s # ENUMPREFIX: G 1764s # enumsince: 1764s # type: flags 1764s # Type: Flags 1764s # TYPE: FLAGS 1764s # value-header 1764s # EnumName: GDBusServerFlags 1764s # enum_name: g_dbus_server_flags 1764s # ENUMNAME: G_DBUS_SERVER_FLAGS 1764s # ENUMSHORT: DBUS_SERVER_FLAGS 1764s # ENUMPREFIX: G 1764s # enumsince: 1764s # type: flags 1764s # Type: Flags 1764s # TYPE: FLAGS 1764s # value-production 1764s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1764s # valuenick: user 1764s # valuenum: 4 1764s # type: flags 1764s # Type: Flags 1764s # TYPE: FLAGS 1764s # value-tail 1764s # EnumName: GDBusServerFlags 1764s # enum_name: g_dbus_server_flags 1764s # ENUMNAME: G_DBUS_SERVER_FLAGS 1764s # ENUMSHORT: DBUS_SERVER_FLAGS 1764s # ENUMPREFIX: G 1764s # enumsince: 1764s # type: flags 1764s # Type: Flags 1764s # TYPE: FLAGS 1764s # file-tail 1764s # 1764s # comment 1764s # comment: Generated data ends here 1764s # Error: 1764s ok 2 __main__.TestMkenums.test_comma_in_enum_value 1764s # glib-mkenums: /usr/bin/glib-mkenums 1764s # tmpdir: /tmp/tmpzatbg76w 1764s # rspfile: False 1764s # /tmp/tmpzatbg76w/tmpfwnu_be4.h: 1764s # typedef enum { 1764s # ENUM_VALUE_WITH_COMMA = ',', 1764s # } TestCommaEnum; 1764s # 1764s # /tmp/tmpzatbg76w/tmpovt2mkdf.template: 1764s # /*** BEGIN file-header ***/ 1764s # file-header 1764s # /*** END file-header ***/ 1764s # 1764s # /*** BEGIN file-production ***/ 1764s # file-production 1764s # filename: @filename@ 1764s # basename: @basename@ 1764s # /*** END file-production ***/ 1764s # 1764s # /*** BEGIN enumeration-production ***/ 1764s # enumeration-production 1764s # EnumName: @EnumName@ 1764s # enum_name: @enum_name@ 1764s # ENUMNAME: @ENUMNAME@ 1764s # ENUMSHORT: @ENUMSHORT@ 1764s # ENUMPREFIX: @ENUMPREFIX@ 1764s # enumsince: @enumsince@ 1764s # type: @type@ 1764s # Type: @Type@ 1764s # TYPE: @TYPE@ 1764s # /*** END enumeration-production ***/ 1764s # 1764s # /*** BEGIN value-header ***/ 1764s # value-header 1764s # EnumName: @EnumName@ 1764s # enum_name: @enum_name@ 1764s # ENUMNAME: @ENUMNAME@ 1764s # ENUMSHORT: @ENUMSHORT@ 1764s # ENUMPREFIX: @ENUMPREFIX@ 1764s # enumsince: @enumsince@ 1764s # type: @type@ 1764s # Type: @Type@ 1764s # TYPE: @TYPE@ 1764s # /*** END value-header ***/ 1764s # 1764s # /*** BEGIN value-production ***/ 1764s # value-production 1764s # VALUENAME: @VALUENAME@ 1764s # valuenick: @valuenick@ 1764s # valuenum: @valuenum@ 1764s # type: @type@ 1764s # Type: @Type@ 1764s # TYPE: @TYPE@ 1764s # /*** END value-production ***/ 1764s # 1764s # /*** BEGIN value-tail ***/ 1764s # value-tail 1764s # EnumName: @EnumName@ 1764s # enum_name: @enum_name@ 1764s # ENUMNAME: @ENUMNAME@ 1764s # ENUMSHORT: @ENUMSHORT@ 1764s # ENUMPREFIX: @ENUMPREFIX@ 1764s # enumsince: @enumsince@ 1764s # type: @type@ 1764s # Type: @Type@ 1764s # TYPE: @TYPE@ 1764s # /*** END value-tail ***/ 1764s # 1764s # /*** BEGIN comment ***/ 1764s # comment 1764s # comment: @comment@ 1764s # /*** END comment ***/ 1764s # 1764s # /*** BEGIN file-tail ***/ 1764s # file-tail 1764s # /*** END file-tail ***/ 1764s # 1764s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpzatbg76w/tmpovt2mkdf.template', '/tmp/tmpzatbg76w/tmpfwnu_be4.h'] 1764s # Return code: 0 1764s # Output: 1764s # comment 1764s # comment: This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. 1764s # 1764s # 1764s # file-header 1764s # file-production 1764s # filename: /tmp/tmpzatbg76w/tmpfwnu_be4.h 1764s # basename: tmpfwnu_be4.h 1764s # enumeration-production 1764s # EnumName: TestCommaEnum 1764s # enum_name: test_comma_enum 1764s # ENUMNAME: TEST_COMMA_ENUM 1764s # ENUMSHORT: COMMA_ENUM 1764s # ENUMPREFIX: TEST 1764s # enumsince: 1764s # type: enum 1764s # Type: Enum 1764s # TYPE: ENUM 1764s # value-header 1764s # EnumName: TestCommaEnum 1764s # enum_name: test_comma_enum 1764s # ENUMNAME: TEST_COMMA_ENUM 1764s # ENUMSHORT: COMMA_ENUM 1764s # ENUMPREFIX: TEST 1764s # enumsince: 1764s # type: enum 1764s # Type: Enum 1764s # TYPE: ENUM 1764s # value-production 1764s # VALUENAME: ENUM_VALUE_WITH_COMMA 1764s # valuenick: comma 1764s # valuenum: 44 1764s # type: enum 1764s # Type: Enum 1764s # TYPE: ENUM 1764s # value-tail 1764s # EnumName: TestCommaEnum 1764s # enum_name: test_comma_enum 1764s # ENUMNAME: TEST_COMMA_ENUM 1764s # ENUMSHORT: COMMA_ENUM 1764s # ENUMPREFIX: TEST 1764s # enumsince: 1764s # type: enum 1764s # Type: Enum 1764s # TYPE: ENUM 1764s # file-tail 1764s # 1764s # comment 1764s # comment: Generated data ends here 1764s # Error: 1764s ok 3 __main__.TestMkenums.test_deprecated_in 1764s # glib-mkenums: /usr/bin/glib-mkenums 1764s # tmpdir: /tmp/tmp5qtw6nbn 1764s # rspfile: False 1764s # /tmp/tmp5qtw6nbn/tmp0qa624t1.h: 1764s # typedef enum { 1764s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_DEPRECATED_ENUMERATOR_IN_2_68 = (1<<2) 1764s # } GDBusServerFlags; 1764s # 1764s # /tmp/tmp5qtw6nbn/tmpqxv8mq78.template: 1764s # /*** BEGIN file-header ***/ 1764s # file-header 1764s # /*** END file-header ***/ 1764s # 1764s # /*** BEGIN file-production ***/ 1764s # file-production 1764s # filename: @filename@ 1764s # basename: @basename@ 1764s # /*** END file-production ***/ 1764s # 1764s # /*** BEGIN enumeration-production ***/ 1764s # enumeration-production 1764s # EnumName: @EnumName@ 1764s # enum_name: @enum_name@ 1764s # ENUMNAME: @ENUMNAME@ 1764s # ENUMSHORT: @ENUMSHORT@ 1764s # ENUMPREFIX: @ENUMPREFIX@ 1764s # enumsince: @enumsince@ 1764s # type: @type@ 1764s # Type: @Type@ 1764s # TYPE: @TYPE@ 1764s # /*** END enumeration-production ***/ 1764s # 1764s # /*** BEGIN value-header ***/ 1764s # value-header 1764s # EnumName: @EnumName@ 1764s # enum_name: @enum_name@ 1764s # ENUMNAME: @ENUMNAME@ 1764s # ENUMSHORT: @ENUMSHORT@ 1764s # ENUMPREFIX: @ENUMPREFIX@ 1764s # enumsince: @enumsince@ 1764s # type: @type@ 1764s # Type: @Type@ 1764s # TYPE: @TYPE@ 1764s # /*** END value-header ***/ 1764s # 1764s # /*** BEGIN value-production ***/ 1764s # value-production 1764s # VALUENAME: @VALUENAME@ 1764s # valuenick: @valuenick@ 1764s # valuenum: @valuenum@ 1764s # type: @type@ 1764s # Type: @Type@ 1764s # TYPE: @TYPE@ 1764s # /*** END value-production ***/ 1764s # 1764s # /*** BEGIN value-tail ***/ 1764s # value-tail 1764s # EnumName: @EnumName@ 1764s # enum_name: @enum_name@ 1764s # ENUMNAME: @ENUMNAME@ 1764s # ENUMSHORT: @ENUMSHORT@ 1764s # ENUMPREFIX: @ENUMPREFIX@ 1764s # enumsince: @enumsince@ 1764s # type: @type@ 1764s # Type: @Type@ 1764s # TYPE: @TYPE@ 1764s # /*** END value-tail ***/ 1764s # 1764s # /*** BEGIN comment ***/ 1764s # comment 1764s # comment: @comment@ 1764s # /*** END comment ***/ 1764s # 1764s # /*** BEGIN file-tail ***/ 1764s # file-tail 1764s # /*** END file-tail ***/ 1764s # 1764s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp5qtw6nbn/tmpqxv8mq78.template', '/tmp/tmp5qtw6nbn/tmp0qa624t1.h'] 1764s # Return code: 0 1764s # Output: 1764s # comment 1764s # comment: This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. 1764s # 1764s # 1764s # file-header 1764s # file-production 1764s # filename: /tmp/tmp5qtw6nbn/tmp0qa624t1.h 1764s # basename: tmp0qa624t1.h 1764s # enumeration-production 1764s # EnumName: GDBusServerFlags 1764s # enum_name: g_dbus_server_flags 1764s # ENUMNAME: G_DBUS_SERVER_FLAGS 1764s # ENUMSHORT: DBUS_SERVER_FLAGS 1764s # ENUMPREFIX: G 1764s # enumsince: 1764s # type: flags 1764s # Type: Flags 1764s # TYPE: FLAGS 1764s # value-header 1764s # EnumName: GDBusServerFlags 1764s # enum_name: g_dbus_server_flags 1764s # ENUMNAME: G_DBUS_SERVER_FLAGS 1764s # ENUMSHORT: DBUS_SERVER_FLAGS 1764s # ENUMPREFIX: G 1764s # enumsince: 1764s # type: flags 1764s # Type: Flags 1764s # TYPE: FLAGS 1764s # value-production 1764s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1764s # valuenick: user 1764s # valuenum: 4 1764s # type: flags 1764s # Type: Flags 1764s # TYPE: FLAGS 1764s # value-tail 1764s # EnumName: GDBusServerFlags 1764s # enum_name: g_dbus_server_flags 1764s # ENUMNAME: G_DBUS_SERVER_FLAGS 1764s # ENUMSHORT: DBUS_SERVER_FLAGS 1764s # ENUMPREFIX: G 1764s # enumsince: 1764s # type: flags 1764s # Type: Flags 1764s # TYPE: FLAGS 1764s # file-tail 1764s # 1764s # comment 1764s # comment: Generated data ends here 1764s # Error: 1764s ok 4 __main__.TestMkenums.test_deprecated_in_for 1764s # glib-mkenums: /usr/bin/glib-mkenums 1764s # tmpdir: /tmp/tmp69ii9luq 1764s # rspfile: False 1764s # /tmp/tmp69ii9luq/tmp6le5_tg5.h: 1764s # typedef enum { 1764s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_DEPRECATED_ENUMERATOR_IN_2_68_FOR(G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER2) = (1<<2) 1764s # } GDBusServerFlags; 1764s # 1764s # /tmp/tmp69ii9luq/tmp98zvn0ky.template: 1764s # /*** BEGIN file-header ***/ 1764s # file-header 1764s # /*** END file-header ***/ 1764s # 1764s # /*** BEGIN file-production ***/ 1764s # file-production 1764s # filename: @filename@ 1764s # basename: @basename@ 1764s # /*** END file-production ***/ 1764s # 1764s # /*** BEGIN enumeration-production ***/ 1764s # enumeration-production 1764s # EnumName: @EnumName@ 1764s # enum_name: @enum_name@ 1764s # ENUMNAME: @ENUMNAME@ 1764s # ENUMSHORT: @ENUMSHORT@ 1764s # ENUMPREFIX: @ENUMPREFIX@ 1764s # enumsince: @enumsince@ 1764s # type: @type@ 1764s # Type: @Type@ 1764s # TYPE: @TYPE@ 1764s # /*** END enumeration-production ***/ 1764s # 1764s # /*** BEGIN value-header ***/ 1764s # value-header 1764s # EnumName: @EnumName@ 1764s # enum_name: @enum_name@ 1764s # ENUMNAME: @ENUMNAME@ 1764s # ENUMSHORT: @ENUMSHORT@ 1764s # ENUMPREFIX: @ENUMPREFIX@ 1764s # enumsince: @enumsince@ 1764s # type: @type@ 1764s # Type: @Type@ 1764s # TYPE: @TYPE@ 1764s # /*** END value-header ***/ 1764s # 1764s # /*** BEGIN value-production ***/ 1764s # value-production 1764s # VALUENAME: @VALUENAME@ 1764s # valuenick: @valuenick@ 1764s # valuenum: @valuenum@ 1764s # type: @type@ 1764s # Type: @Type@ 1764s # TYPE: @TYPE@ 1764s # /*** END value-production ***/ 1764s # 1764s # /*** BEGIN value-tail ***/ 1764s # value-tail 1764s # EnumName: @EnumName@ 1764s # enum_name: @enum_name@ 1764s # ENUMNAME: @ENUMNAME@ 1764s # ENUMSHORT: @ENUMSHORT@ 1764s # ENUMPREFIX: @ENUMPREFIX@ 1764s # enumsince: @enumsince@ 1764s # type: @type@ 1764s # Type: @Type@ 1764s # TYPE: @TYPE@ 1764s # /*** END value-tail ***/ 1764s # 1764s # /*** BEGIN comment ***/ 1764s # comment 1764s # comment: @comment@ 1764s # /*** END comment ***/ 1764s # 1764s # /*** BEGIN file-tail ***/ 1764s # file-tail 1764s # /*** END file-tail ***/ 1764s # 1764s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp69ii9luq/tmp98zvn0ky.template', '/tmp/tmp69ii9luq/tmp6le5_tg5.h'] 1764s # Return code: 0 1764s # Output: 1764s # comment 1764s # comment: This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. 1764s # 1764s # 1764s # file-header 1764s # file-production 1764s # filename: /tmp/tmp69ii9luq/tmp6le5_tg5.h 1764s # basename: tmp6le5_tg5.h 1764s # enumeration-production 1764s # EnumName: GDBusServerFlags 1764s # enum_name: g_dbus_server_flags 1764s # ENUMNAME: G_DBUS_SERVER_FLAGS 1764s # ENUMSHORT: DBUS_SERVER_FLAGS 1764s # ENUMPREFIX: G 1764s # enumsince: 1764s # type: flags 1764s # Type: Flags 1764s # TYPE: FLAGS 1764s # value-header 1764s # EnumName: GDBusServerFlags 1764s # enum_name: g_dbus_server_flags 1764s # ENUMNAME: G_DBUS_SERVER_FLAGS 1764s # ENUMSHORT: DBUS_SERVER_FLAGS 1764s # ENUMPREFIX: G 1764s # enumsince: 1764s # type: flags 1764s # Type: Flags 1764s # TYPE: FLAGS 1764s # value-production 1764s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1764s # valuenick: user 1764s # valuenum: 4 1764s # type: flags 1764s # Type: Flags 1764s # TYPE: FLAGS 1764s # value-tail 1764s # EnumName: GDBusServerFlags 1764s # enum_name: g_dbus_server_flags 1764s # ENUMNAME: G_DBUS_SERVER_FLAGS 1764s # ENUMSHORT: DBUS_SERVER_FLAGS 1764s # ENUMPREFIX: G 1764s # enumsince: 1764s # type: flags 1764s # Type: Flags 1764s # TYPE: FLAGS 1764s # file-tail 1764s # 1764s # comment 1764s # comment: Generated data ends here 1764s # Error: 1764s ok 5 __main__.TestMkenums.test_empty_header 1764s # glib-mkenums: /usr/bin/glib-mkenums 1764s # tmpdir: /tmp/tmp85m1boi2 1764s # rspfile: False 1764s # /tmp/tmp85m1boi2/tmp5kyto_3g.h: 1764s # /tmp/tmp85m1boi2/tmpgdkdtkx6.template: 1764s # /*** BEGIN file-header ***/ 1764s # file-header 1764s # /*** END file-header ***/ 1764s # 1764s # /*** BEGIN file-production ***/ 1764s # file-production 1764s # filename: @filename@ 1764s # basename: @basename@ 1764s # /*** END file-production ***/ 1764s # 1764s # /*** BEGIN enumeration-production ***/ 1764s # enumeration-production 1764s # EnumName: @EnumName@ 1764s # enum_name: @enum_name@ 1764s # ENUMNAME: @ENUMNAME@ 1764s # ENUMSHORT: @ENUMSHORT@ 1764s # ENUMPREFIX: @ENUMPREFIX@ 1764s # enumsince: @enumsince@ 1764s # type: @type@ 1764s # Type: @Type@ 1764s # TYPE: @TYPE@ 1764s # /*** END enumeration-production ***/ 1764s # 1764s # /*** BEGIN value-header ***/ 1764s # value-header 1764s # EnumName: @EnumName@ 1764s # enum_name: @enum_name@ 1764s # ENUMNAME: @ENUMNAME@ 1764s # ENUMSHORT: @ENUMSHORT@ 1764s # ENUMPREFIX: @ENUMPREFIX@ 1764s # enumsince: @enumsince@ 1764s # type: @type@ 1764s # Type: @Type@ 1764s # TYPE: @TYPE@ 1764s # /*** END value-header ***/ 1764s # 1764s # /*** BEGIN value-production ***/ 1764s # value-production 1764s # VALUENAME: @VALUENAME@ 1764s # valuenick: @valuenick@ 1764s # valuenum: @valuenum@ 1764s # type: @type@ 1764s # Type: @Type@ 1764s # TYPE: @TYPE@ 1764s # /*** END value-production ***/ 1764s # 1764s # /*** BEGIN value-tail ***/ 1764s # value-tail 1764s # EnumName: @EnumName@ 1764s # enum_name: @enum_name@ 1764s # ENUMNAME: @ENUMNAME@ 1764s # ENUMSHORT: @ENUMSHORT@ 1764s # ENUMPREFIX: @ENUMPREFIX@ 1764s # enumsince: @enumsince@ 1764s # type: @type@ 1764s # Type: @Type@ 1764s # TYPE: @TYPE@ 1764s # /*** END value-tail ***/ 1764s # 1764s # /*** BEGIN comment ***/ 1764s # comment 1764s # comment: @comment@ 1764s # /*** END comment ***/ 1764s # 1764s # /*** BEGIN file-tail ***/ 1764s # file-tail 1764s # /*** END file-tail ***/ 1764s # 1764s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp85m1boi2/tmpgdkdtkx6.template', '/tmp/tmp85m1boi2/tmp5kyto_3g.h'] 1764s # Return code: 0 1764s # Output: 1764s # comment 1764s # comment: This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. 1764s # 1764s # 1764s # file-header 1764s # file-tail 1764s # 1764s # comment 1764s # comment: Generated data ends here 1764s # Error: 1764s ok 6 __main__.TestMkenums.test_empty_template 1764s # glib-mkenums: /usr/bin/glib-mkenums 1764s # tmpdir: /tmp/tmpxz4kv0ma 1764s # rspfile: False 1764s # /tmp/tmpxz4kv0ma/tmpdicv89e8.template: 1764s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpxz4kv0ma/tmpdicv89e8.template'] 1764s # Return code: 0 1764s # Output: 1764s # /* This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */ 1764s # 1764s # 1764s # /* Generated data ends here */ 1764s # Error: 1764s ok 7 __main__.TestMkenums.test_enum_name 1764s # glib-mkenums: /usr/bin/glib-mkenums 1764s # tmpdir: /tmp/tmprrvlix21 1764s # rspfile: False 1764s # /tmp/tmprrvlix21/tmpqch7evnm.h: 1764s # typedef enum _SomeEnumIdentifier { 1764s # ENUM_VALUE 1764s # } SomeEnumIdentifier; 1764s # 1764s # /tmp/tmprrvlix21/tmppe8nz0nx.template: 1764s # /*** BEGIN file-header ***/ 1764s # file-header 1764s # /*** END file-header ***/ 1764s # 1764s # /*** BEGIN file-production ***/ 1764s # file-production 1764s # filename: @filename@ 1764s # basename: @basename@ 1764s # /*** END file-production ***/ 1764s # 1764s # /*** BEGIN enumeration-production ***/ 1764s # enumeration-production 1764s # EnumName: @EnumName@ 1764s # enum_name: @enum_name@ 1764s # ENUMNAME: @ENUMNAME@ 1764s # ENUMSHORT: @ENUMSHORT@ 1764s # ENUMPREFIX: @ENUMPREFIX@ 1764s # enumsince: @enumsince@ 1764s # type: @type@ 1764s # Type: @Type@ 1764s # TYPE: @TYPE@ 1764s # /*** END enumeration-production ***/ 1764s # 1764s # /*** BEGIN value-header ***/ 1764s # value-header 1764s # EnumName: @EnumName@ 1764s # enum_name: @enum_name@ 1764s # ENUMNAME: @ENUMNAME@ 1764s # ENUMSHORT: @ENUMSHORT@ 1764s # ENUMPREFIX: @ENUMPREFIX@ 1764s # enumsince: @enumsince@ 1764s # type: @type@ 1764s # Type: @Type@ 1764s # TYPE: @TYPE@ 1764s # /*** END value-header ***/ 1764s # 1764s # /*** BEGIN value-production ***/ 1764s # value-production 1764s # VALUENAME: @VALUENAME@ 1764s # valuenick: @valuenick@ 1764s # valuenum: @valuenum@ 1764s # type: @type@ 1764s # Type: @Type@ 1764s # TYPE: @TYPE@ 1764s # /*** END value-production ***/ 1764s # 1764s # /*** BEGIN value-tail ***/ 1764s # value-tail 1764s # EnumName: @EnumName@ 1764s # enum_name: @enum_name@ 1764s # ENUMNAME: @ENUMNAME@ 1764s # ENUMSHORT: @ENUMSHORT@ 1764s # ENUMPREFIX: @ENUMPREFIX@ 1764s # enumsince: @enumsince@ 1764s # type: @type@ 1764s # Type: @Type@ 1764s # TYPE: @TYPE@ 1764s # /*** END value-tail ***/ 1764s # 1764s # /*** BEGIN comment ***/ 1764s # comment 1764s # comment: @comment@ 1764s # /*** END comment ***/ 1764s # 1764s # /*** BEGIN file-tail ***/ 1764s # file-tail 1764s # /*** END file-tail ***/ 1764s # 1764s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmprrvlix21/tmppe8nz0nx.template', '/tmp/tmprrvlix21/tmpqch7evnm.h'] 1764s # Return code: 0 1764s # Output: 1764s # comment 1764s # comment: This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. 1764s # 1764s # 1764s # file-header 1764s # file-production 1764s # filename: /tmp/tmprrvlix21/tmpqch7evnm.h 1764s # basename: tmpqch7evnm.h 1764s # enumeration-production 1764s # EnumName: SomeEnumIdentifier 1764s # enum_name: some_enum_identifier 1764s # ENUMNAME: SOME_ENUM_IDENTIFIER 1764s # ENUMSHORT: ENUM_IDENTIFIER 1764s # ENUMPREFIX: SOME 1764s # enumsince: 1764s # type: enum 1764s # Type: Enum 1764s # TYPE: ENUM 1764s # value-header 1764s # EnumName: SomeEnumIdentifier 1764s # enum_name: some_enum_identifier 1764s # ENUMNAME: SOME_ENUM_IDENTIFIER 1764s # ENUMSHORT: ENUM_IDENTIFIER 1764s # ENUMPREFIX: SOME 1764s # enumsince: 1764s # type: enum 1764s # Type: Enum 1764s # TYPE: ENUM 1764s # value-production 1764s # VALUENAME: ENUM_VALUE 1764s # valuenick: value 1764s # valuenum: 0 1764s # type: enum 1764s # Type: Enum 1764s # TYPE: ENUM 1764s # value-tail 1764s # EnumName: SomeEnumIdentifier 1764s # enum_name: some_enum_identifier 1764s # ENUMNAME: SOME_ENUM_IDENTIFIER 1764s # ENUMSHORT: ENUM_IDENTIFIER 1764s # ENUMPREFIX: SOME 1764s # enumsince: 1764s # type: enum 1764s # Type: Enum 1764s # TYPE: ENUM 1764s # file-tail 1764s # 1764s # comment 1764s # comment: Generated data ends here 1764s # Error: 1765s ok 8 __main__.TestMkenums.test_enum_private_public 1765s # glib-mkenums: /usr/bin/glib-mkenums 1765s # tmpdir: /tmp/tmpa9jvtxz2 1765s # rspfile: False 1765s # /tmp/tmpa9jvtxz2/tmpq0d5x70v.h: 1765s # typedef enum { 1765s # ENUM_VALUE_PUBLIC1, 1765s # /*< private >*/ 1765s # ENUM_VALUE_PRIVATE, 1765s # } SomeEnumA 1765s # 1765s # /tmp/tmpa9jvtxz2/tmpdqtmtegk.template: 1765s # /*** BEGIN file-header ***/ 1765s # file-header 1765s # /*** END file-header ***/ 1765s # 1765s # /*** BEGIN file-production ***/ 1765s # file-production 1765s # filename: @filename@ 1765s # basename: @basename@ 1765s # /*** END file-production ***/ 1765s # 1765s # /*** BEGIN enumeration-production ***/ 1765s # enumeration-production 1765s # EnumName: @EnumName@ 1765s # enum_name: @enum_name@ 1765s # ENUMNAME: @ENUMNAME@ 1765s # ENUMSHORT: @ENUMSHORT@ 1765s # ENUMPREFIX: @ENUMPREFIX@ 1765s # enumsince: @enumsince@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END enumeration-production ***/ 1765s # 1765s # /*** BEGIN value-header ***/ 1765s # value-header 1765s # EnumName: @EnumName@ 1765s # enum_name: @enum_name@ 1765s # ENUMNAME: @ENUMNAME@ 1765s # ENUMSHORT: @ENUMSHORT@ 1765s # ENUMPREFIX: @ENUMPREFIX@ 1765s # enumsince: @enumsince@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END value-header ***/ 1765s # 1765s # /*** BEGIN value-production ***/ 1765s # value-production 1765s # VALUENAME: @VALUENAME@ 1765s # valuenick: @valuenick@ 1765s # valuenum: @valuenum@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END value-production ***/ 1765s # 1765s # /*** BEGIN value-tail ***/ 1765s # value-tail 1765s # EnumName: @EnumName@ 1765s # enum_name: @enum_name@ 1765s # ENUMNAME: @ENUMNAME@ 1765s # ENUMSHORT: @ENUMSHORT@ 1765s # ENUMPREFIX: @ENUMPREFIX@ 1765s # enumsince: @enumsince@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END value-tail ***/ 1765s # 1765s # /*** BEGIN comment ***/ 1765s # comment 1765s # comment: @comment@ 1765s # /*** END comment ***/ 1765s # 1765s # /*** BEGIN file-tail ***/ 1765s # file-tail 1765s # /*** END file-tail ***/ 1765s # 1765s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpa9jvtxz2/tmpdqtmtegk.template', '/tmp/tmpa9jvtxz2/tmpq0d5x70v.h'] 1765s # Return code: 0 1765s # Output: 1765s # comment 1765s # comment: This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. 1765s # 1765s # 1765s # file-header 1765s # file-production 1765s # filename: /tmp/tmpa9jvtxz2/tmpq0d5x70v.h 1765s # basename: tmpq0d5x70v.h 1765s # enumeration-production 1765s # EnumName: SomeEnumA 1765s # enum_name: some_enum_a 1765s # ENUMNAME: SOME_ENUM_A 1765s # ENUMSHORT: ENUM_A 1765s # ENUMPREFIX: SOME 1765s # enumsince: 1765s # type: enum 1765s # Type: Enum 1765s # TYPE: ENUM 1765s # value-header 1765s # EnumName: SomeEnumA 1765s # enum_name: some_enum_a 1765s # ENUMNAME: SOME_ENUM_A 1765s # ENUMSHORT: ENUM_A 1765s # ENUMPREFIX: SOME 1765s # enumsince: 1765s # type: enum 1765s # Type: Enum 1765s # TYPE: ENUM 1765s # value-production 1765s # VALUENAME: ENUM_VALUE_PUBLIC1 1765s # valuenick: public1 1765s # valuenum: 0 1765s # type: enum 1765s # Type: Enum 1765s # TYPE: ENUM 1765s # value-tail 1765s # EnumName: SomeEnumA 1765s # enum_name: some_enum_a 1765s # ENUMNAME: SOME_ENUM_A 1765s # ENUMSHORT: ENUM_A 1765s # ENUMPREFIX: SOME 1765s # enumsince: 1765s # type: enum 1765s # Type: Enum 1765s # TYPE: ENUM 1765s # file-tail 1765s # 1765s # comment 1765s # comment: Generated data ends here 1765s # Error: 1765s # 1765s # /tmp/tmpa9jvtxz2/tmpb861i55m.h: 1765s # typedef enum { 1765s # /*< private >*/ 1765s # ENUM_VALUE_PRIVATE, 1765s # /*< public >*/ 1765s # ENUM_VALUE_PUBLIC2, 1765s # } SomeEnumB; 1765s # 1765s # /tmp/tmpa9jvtxz2/tmph4x2l8qz.template: 1765s # /*** BEGIN file-header ***/ 1765s # file-header 1765s # /*** END file-header ***/ 1765s # 1765s # /*** BEGIN file-production ***/ 1765s # file-production 1765s # filename: @filename@ 1765s # basename: @basename@ 1765s # /*** END file-production ***/ 1765s # 1765s # /*** BEGIN enumeration-production ***/ 1765s # enumeration-production 1765s # EnumName: @EnumName@ 1765s # enum_name: @enum_name@ 1765s # ENUMNAME: @ENUMNAME@ 1765s # ENUMSHORT: @ENUMSHORT@ 1765s # ENUMPREFIX: @ENUMPREFIX@ 1765s # enumsince: @enumsince@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END enumeration-production ***/ 1765s # 1765s # /*** BEGIN value-header ***/ 1765s # value-header 1765s # EnumName: @EnumName@ 1765s # enum_name: @enum_name@ 1765s # ENUMNAME: @ENUMNAME@ 1765s # ENUMSHORT: @ENUMSHORT@ 1765s # ENUMPREFIX: @ENUMPREFIX@ 1765s # enumsince: @enumsince@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END value-header ***/ 1765s # 1765s # /*** BEGIN value-production ***/ 1765s # value-production 1765s # VALUENAME: @VALUENAME@ 1765s # valuenick: @valuenick@ 1765s # valuenum: @valuenum@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END value-production ***/ 1765s # 1765s # /*** BEGIN value-tail ***/ 1765s # value-tail 1765s # EnumName: @EnumName@ 1765s # enum_name: @enum_name@ 1765s # ENUMNAME: @ENUMNAME@ 1765s # ENUMSHORT: @ENUMSHORT@ 1765s # ENUMPREFIX: @ENUMPREFIX@ 1765s # enumsince: @enumsince@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END value-tail ***/ 1765s # 1765s # /*** BEGIN comment ***/ 1765s # comment 1765s # comment: @comment@ 1765s # /*** END comment ***/ 1765s # 1765s # /*** BEGIN file-tail ***/ 1765s # file-tail 1765s # /*** END file-tail ***/ 1765s # 1765s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpa9jvtxz2/tmph4x2l8qz.template', '/tmp/tmpa9jvtxz2/tmpb861i55m.h'] 1765s # Return code: 0 1765s # Output: 1765s # comment 1765s # comment: This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. 1765s # 1765s # 1765s # file-header 1765s # file-production 1765s # filename: /tmp/tmpa9jvtxz2/tmpb861i55m.h 1765s # basename: tmpb861i55m.h 1765s # enumeration-production 1765s # EnumName: SomeEnumB 1765s # enum_name: some_enum_b 1765s # ENUMNAME: SOME_ENUM_B 1765s # ENUMSHORT: ENUM_B 1765s # ENUMPREFIX: SOME 1765s # enumsince: 1765s # type: enum 1765s # Type: Enum 1765s # TYPE: ENUM 1765s # value-header 1765s # EnumName: SomeEnumB 1765s # enum_name: some_enum_b 1765s # ENUMNAME: SOME_ENUM_B 1765s # ENUMSHORT: ENUM_B 1765s # ENUMPREFIX: SOME 1765s # enumsince: 1765s # type: enum 1765s # Type: Enum 1765s # TYPE: ENUM 1765s # value-production 1765s # VALUENAME: ENUM_VALUE_PUBLIC2 1765s # valuenick: public2 1765s # valuenum: 1 1765s # type: enum 1765s # Type: Enum 1765s # TYPE: ENUM 1765s # value-tail 1765s # EnumName: SomeEnumB 1765s # enum_name: some_enum_b 1765s # ENUMNAME: SOME_ENUM_B 1765s # ENUMSHORT: ENUM_B 1765s # ENUMPREFIX: SOME 1765s # enumsince: 1765s # type: enum 1765s # Type: Enum 1765s # TYPE: ENUM 1765s # file-tail 1765s # 1765s # comment 1765s # comment: Generated data ends here 1765s # Error: 1765s ok 9 __main__.TestMkenums.test_enum_symbolic_expression 1765s # glib-mkenums: /usr/bin/glib-mkenums 1765s # tmpdir: /tmp/tmpe0wbg9j2 1765s # rspfile: False 1765s # /tmp/tmpe0wbg9j2/tmpxho4_h3n.h: 1765s # typedef enum { 1765s # /*< private >*/ 1765s # ENUM_VALUE_PRIVATE = 5, 1765s # /*< public >*/ 1765s # ENUM_VALUE_PUBLIC = ENUM_VALUE_PRIVATE + 2, 1765s # } TestSymbolicEnum; 1765s # 1765s # /tmp/tmpe0wbg9j2/tmpu1ye9xjz.template: 1765s # /*** BEGIN file-header ***/ 1765s # file-header 1765s # /*** END file-header ***/ 1765s # 1765s # /*** BEGIN file-production ***/ 1765s # file-production 1765s # filename: @filename@ 1765s # basename: @basename@ 1765s # /*** END file-production ***/ 1765s # 1765s # /*** BEGIN enumeration-production ***/ 1765s # enumeration-production 1765s # EnumName: @EnumName@ 1765s # enum_name: @enum_name@ 1765s # ENUMNAME: @ENUMNAME@ 1765s # ENUMSHORT: @ENUMSHORT@ 1765s # ENUMPREFIX: @ENUMPREFIX@ 1765s # enumsince: @enumsince@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END enumeration-production ***/ 1765s # 1765s # /*** BEGIN value-header ***/ 1765s # value-header 1765s # EnumName: @EnumName@ 1765s # enum_name: @enum_name@ 1765s # ENUMNAME: @ENUMNAME@ 1765s # ENUMSHORT: @ENUMSHORT@ 1765s # ENUMPREFIX: @ENUMPREFIX@ 1765s # enumsince: @enumsince@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END value-header ***/ 1765s # 1765s # /*** BEGIN value-production ***/ 1765s # value-production 1765s # VALUENAME: @VALUENAME@ 1765s # valuenick: @valuenick@ 1765s # valuenum: @valuenum@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END value-production ***/ 1765s # 1765s # /*** BEGIN value-tail ***/ 1765s # value-tail 1765s # EnumName: @EnumName@ 1765s # enum_name: @enum_name@ 1765s # ENUMNAME: @ENUMNAME@ 1765s # ENUMSHORT: @ENUMSHORT@ 1765s # ENUMPREFIX: @ENUMPREFIX@ 1765s # enumsince: @enumsince@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END value-tail ***/ 1765s # 1765s # /*** BEGIN comment ***/ 1765s # comment 1765s # comment: @comment@ 1765s # /*** END comment ***/ 1765s # 1765s # /*** BEGIN file-tail ***/ 1765s # file-tail 1765s # /*** END file-tail ***/ 1765s # 1765s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpe0wbg9j2/tmpu1ye9xjz.template', '/tmp/tmpe0wbg9j2/tmpxho4_h3n.h'] 1765s # Return code: 0 1765s # Output: 1765s # comment 1765s # comment: This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. 1765s # 1765s # 1765s # file-header 1765s # file-production 1765s # filename: /tmp/tmpe0wbg9j2/tmpxho4_h3n.h 1765s # basename: tmpxho4_h3n.h 1765s # enumeration-production 1765s # EnumName: TestSymbolicEnum 1765s # enum_name: test_symbolic_enum 1765s # ENUMNAME: TEST_SYMBOLIC_ENUM 1765s # ENUMSHORT: SYMBOLIC_ENUM 1765s # ENUMPREFIX: TEST 1765s # enumsince: 1765s # type: enum 1765s # Type: Enum 1765s # TYPE: ENUM 1765s # value-header 1765s # EnumName: TestSymbolicEnum 1765s # enum_name: test_symbolic_enum 1765s # ENUMNAME: TEST_SYMBOLIC_ENUM 1765s # ENUMSHORT: SYMBOLIC_ENUM 1765s # ENUMPREFIX: TEST 1765s # enumsince: 1765s # type: enum 1765s # Type: Enum 1765s # TYPE: ENUM 1765s # value-production 1765s # VALUENAME: ENUM_VALUE_PUBLIC 1765s # valuenick: public 1765s # valuenum: 7 1765s # type: enum 1765s # Type: Enum 1765s # TYPE: ENUM 1765s # value-tail 1765s # EnumName: TestSymbolicEnum 1765s # enum_name: test_symbolic_enum 1765s # ENUMNAME: TEST_SYMBOLIC_ENUM 1765s # ENUMSHORT: SYMBOLIC_ENUM 1765s # ENUMPREFIX: TEST 1765s # enumsince: 1765s # type: enum 1765s # Type: Enum 1765s # TYPE: ENUM 1765s # file-tail 1765s # 1765s # comment 1765s # comment: Generated data ends here 1765s # Error: 1765s ok 10 __main__.TestMkenums.test_filename_basename_in_fhead_ftail 1765s # glib-mkenums: /usr/bin/glib-mkenums 1765s # tmpdir: /tmp/tmpmby07m7n 1765s # rspfile: False 1765s # /tmp/tmpmby07m7n/tmpk4zjdl92.template: 1765s # /*** BEGIN file-header ***/ 1765s # file-header 1765s # filename: @filename@ 1765s # basename: @basename@ 1765s # /*** END file-header ***/ 1765s # 1765s # /*** BEGIN comment ***/ 1765s # comment 1765s # comment: @comment@ 1765s # /*** END comment ***/ 1765s # 1765s # /*** BEGIN file-tail ***/ 1765s # file-tail 1765s # filename: @filename@ 1765s # basename: @basename@ 1765s # /*** END file-tail ***/ 1765s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpmby07m7n/tmpk4zjdl92.template'] 1765s # Return code: 0 1765s # Output: 1765s # comment 1765s # comment: This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. 1765s # 1765s # 1765s # file-header 1765s # filename: @filename@ 1765s # basename: @basename@ 1765s # file-tail 1765s # filename: @filename@ 1765s # basename: @basename@ 1765s # 1765s # comment 1765s # comment: Generated data ends here 1765s # Error: 1765s # WARNING: @filename@ used in file-header section. 1765s # WARNING: @basename@ used in file-header section. 1765s # WARNING: @filename@ used in file-tail section. 1765s # WARNING: @basename@ used in file-tail section. 1765s ok 11 __main__.TestMkenums.test_help 1765s # glib-mkenums: /usr/bin/glib-mkenums 1765s # tmpdir: /tmp/tmpnosupxy9 1765s # rspfile: False 1765s # Running: ['/usr/bin/glib-mkenums', '--help'] 1765s # Return code: 0 1765s # Output: 1765s # usage: glib-mkenums [-h] [--identifier-prefix IDPREFIX] 1765s # [--symbol-prefix SYMPREFIX] [--fhead FHEAD] 1765s # [--ftail FTAIL] [--fprod FPROD] [--eprod EPROD] 1765s # [--vhead VHEAD] [--vprod VPROD] [--vtail VTAIL] 1765s # [--comments COMMENT_TMPL] [--template TEMPLATE] 1765s # [--output OUTPUT] [--version] 1765s # [args ...] 1765s # 1765s # positional arguments: 1765s # args One or more input files, or a single argument 1765s # @rspfile_path pointing to a file that contains the 1765s # actual arguments 1765s # 1765s # options: 1765s # -h, --help show this help message and exit 1765s # --identifier-prefix IDPREFIX 1765s # Identifier prefix 1765s # --symbol-prefix SYMPREFIX 1765s # Symbol prefix 1765s # --fhead FHEAD Output file header 1765s # --ftail FTAIL Output file footer 1765s # --fprod FPROD Put out TEXT every time a new input file is being 1765s # processed. 1765s # --eprod EPROD Per enum text, produced prior to value iterations 1765s # --vhead VHEAD Value header, produced before iterating over enum 1765s # values 1765s # --vprod VPROD Value text, produced for each enum value. 1765s # --vtail VTAIL Value tail, produced after iterating over enum values 1765s # --comments COMMENT_TMPL 1765s # Comment structure 1765s # --template TEMPLATE Template file 1765s # --output OUTPUT 1765s # --version, -v Print version information 1765s # 1765s # Production text substitutions: 1765s # @EnumName@ PrefixTheXEnum 1765s # @enum_name@ prefix_the_xenum 1765s # @ENUMNAME@ PREFIX_THE_XENUM 1765s # @ENUMSHORT@ THE_XENUM 1765s # @ENUMPREFIX@ PREFIX 1765s # @enumsince@ the user-provided since value given 1765s # @VALUENAME@ PREFIX_THE_XVALUE 1765s # @valuenick@ the-xvalue 1765s # @valuenum@ the integer value (limited support, Since: 2.26) 1765s # @type@ either enum or flags 1765s # @Type@ either Enum or Flags 1765s # @TYPE@ either ENUM or FLAGS 1765s # @filename@ name of current input file 1765s # @basename@ base name of the current input file (Since: 2.22) 1765s # Error: 1765s ok 12 __main__.TestMkenums.test_no_args 1765s # glib-mkenums: /usr/bin/glib-mkenums 1765s # tmpdir: /tmp/tmpf1ou25cc 1765s # rspfile: False 1765s # Running: ['/usr/bin/glib-mkenums'] 1765s # Return code: 0 1765s # Output: 1765s # /* This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */ 1765s # 1765s # 1765s # /* Generated data ends here */ 1765s # Error: 1765s ok 13 __main__.TestMkenums.test_no_headers 1765s # glib-mkenums: /usr/bin/glib-mkenums 1765s # tmpdir: /tmp/tmpip4_iyxr 1765s # rspfile: False 1765s # /tmp/tmpip4_iyxr/tmpvoq1mqqo.template: 1765s # /*** BEGIN file-header ***/ 1765s # file-header 1765s # /*** END file-header ***/ 1765s # 1765s # /*** BEGIN file-production ***/ 1765s # file-production 1765s # filename: @filename@ 1765s # basename: @basename@ 1765s # /*** END file-production ***/ 1765s # 1765s # /*** BEGIN enumeration-production ***/ 1765s # enumeration-production 1765s # EnumName: @EnumName@ 1765s # enum_name: @enum_name@ 1765s # ENUMNAME: @ENUMNAME@ 1765s # ENUMSHORT: @ENUMSHORT@ 1765s # ENUMPREFIX: @ENUMPREFIX@ 1765s # enumsince: @enumsince@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END enumeration-production ***/ 1765s # 1765s # /*** BEGIN value-header ***/ 1765s # value-header 1765s # EnumName: @EnumName@ 1765s # enum_name: @enum_name@ 1765s # ENUMNAME: @ENUMNAME@ 1765s # ENUMSHORT: @ENUMSHORT@ 1765s # ENUMPREFIX: @ENUMPREFIX@ 1765s # enumsince: @enumsince@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END value-header ***/ 1765s # 1765s # /*** BEGIN value-production ***/ 1765s # value-production 1765s # VALUENAME: @VALUENAME@ 1765s # valuenick: @valuenick@ 1765s # valuenum: @valuenum@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END value-production ***/ 1765s # 1765s # /*** BEGIN value-tail ***/ 1765s # value-tail 1765s # EnumName: @EnumName@ 1765s # enum_name: @enum_name@ 1765s # ENUMNAME: @ENUMNAME@ 1765s # ENUMSHORT: @ENUMSHORT@ 1765s # ENUMPREFIX: @ENUMPREFIX@ 1765s # enumsince: @enumsince@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END value-tail ***/ 1765s # 1765s # /*** BEGIN comment ***/ 1765s # comment 1765s # comment: @comment@ 1765s # /*** END comment ***/ 1765s # 1765s # /*** BEGIN file-tail ***/ 1765s # file-tail 1765s # /*** END file-tail ***/ 1765s # 1765s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpip4_iyxr/tmpvoq1mqqo.template'] 1765s # Return code: 0 1765s # Output: 1765s # comment 1765s # comment: This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. 1765s # 1765s # 1765s # file-header 1765s # file-tail 1765s # 1765s # comment 1765s # comment: Generated data ends here 1765s # Error: 1765s ok 14 __main__.TestMkenums.test_no_nick 1765s # glib-mkenums: /usr/bin/glib-mkenums 1765s # tmpdir: /tmp/tmplp032p6_ 1765s # rspfile: False 1765s # /tmp/tmplp032p6_/tmpwnm87ucg.h: 1765s # typedef enum { 1765s # GEGL_SAMPLER_NEAREST = 0, /*< desc="nearest" >*/ 1765s # } GeglSamplerType; 1765s # 1765s # /tmp/tmplp032p6_/tmprp3amn95.template: 1765s # /*** BEGIN file-header ***/ 1765s # file-header 1765s # /*** END file-header ***/ 1765s # 1765s # /*** BEGIN file-production ***/ 1765s # file-production 1765s # filename: @filename@ 1765s # basename: @basename@ 1765s # /*** END file-production ***/ 1765s # 1765s # /*** BEGIN enumeration-production ***/ 1765s # enumeration-production 1765s # EnumName: @EnumName@ 1765s # enum_name: @enum_name@ 1765s # ENUMNAME: @ENUMNAME@ 1765s # ENUMSHORT: @ENUMSHORT@ 1765s # ENUMPREFIX: @ENUMPREFIX@ 1765s # enumsince: @enumsince@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END enumeration-production ***/ 1765s # 1765s # /*** BEGIN value-header ***/ 1765s # value-header 1765s # EnumName: @EnumName@ 1765s # enum_name: @enum_name@ 1765s # ENUMNAME: @ENUMNAME@ 1765s # ENUMSHORT: @ENUMSHORT@ 1765s # ENUMPREFIX: @ENUMPREFIX@ 1765s # enumsince: @enumsince@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END value-header ***/ 1765s # 1765s # /*** BEGIN value-production ***/ 1765s # value-production 1765s # VALUENAME: @VALUENAME@ 1765s # valuenick: @valuenick@ 1765s # valuenum: @valuenum@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END value-production ***/ 1765s # 1765s # /*** BEGIN value-tail ***/ 1765s # value-tail 1765s # EnumName: @EnumName@ 1765s # enum_name: @enum_name@ 1765s # ENUMNAME: @ENUMNAME@ 1765s # ENUMSHORT: @ENUMSHORT@ 1765s # ENUMPREFIX: @ENUMPREFIX@ 1765s # enumsince: @enumsince@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END value-tail ***/ 1765s # 1765s # /*** BEGIN comment ***/ 1765s # comment 1765s # comment: @comment@ 1765s # /*** END comment ***/ 1765s # 1765s # /*** BEGIN file-tail ***/ 1765s # file-tail 1765s # /*** END file-tail ***/ 1765s # 1765s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmplp032p6_/tmprp3amn95.template', '/tmp/tmplp032p6_/tmpwnm87ucg.h'] 1765s # Return code: 0 1765s # Output: 1765s # comment 1765s # comment: This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. 1765s # 1765s # 1765s # file-header 1765s # file-production 1765s # filename: /tmp/tmplp032p6_/tmpwnm87ucg.h 1765s # basename: tmpwnm87ucg.h 1765s # enumeration-production 1765s # EnumName: GeglSamplerType 1765s # enum_name: gegl_sampler_type 1765s # ENUMNAME: GEGL_SAMPLER_TYPE 1765s # ENUMSHORT: SAMPLER_TYPE 1765s # ENUMPREFIX: GEGL 1765s # enumsince: 1765s # type: enum 1765s # Type: Enum 1765s # TYPE: ENUM 1765s # value-header 1765s # EnumName: GeglSamplerType 1765s # enum_name: gegl_sampler_type 1765s # ENUMNAME: GEGL_SAMPLER_TYPE 1765s # ENUMSHORT: SAMPLER_TYPE 1765s # ENUMPREFIX: GEGL 1765s # enumsince: 1765s # type: enum 1765s # Type: Enum 1765s # TYPE: ENUM 1765s # value-production 1765s # VALUENAME: GEGL_SAMPLER_NEAREST 1765s # valuenick: nearest 1765s # valuenum: 0 1765s # type: enum 1765s # Type: Enum 1765s # TYPE: ENUM 1765s # value-tail 1765s # EnumName: GeglSamplerType 1765s # enum_name: gegl_sampler_type 1765s # ENUMNAME: GEGL_SAMPLER_TYPE 1765s # ENUMSHORT: SAMPLER_TYPE 1765s # ENUMPREFIX: GEGL 1765s # enumsince: 1765s # type: enum 1765s # Type: Enum 1765s # TYPE: ENUM 1765s # file-tail 1765s # 1765s # comment 1765s # comment: Generated data ends here 1765s # Error: 1765s ok 15 __main__.TestMkenums.test_non_utf8_encoding 1765s # glib-mkenums: /usr/bin/glib-mkenums 1765s # tmpdir: /tmp/tmpyme5xqh_ 1765s # rspfile: False 1765s # /tmp/tmpyme5xqh_/tmppoam9ndo.h: 1765s # /* Copyright © La Peña */ 1765s # typedef enum { 1765s # ENUM_VALUE 1765s # } SomeEnumIdentifier; 1765s # 1765s # /tmp/tmpyme5xqh_/tmpl6r_mb8j.template: 1765s # /*** BEGIN file-header ***/ 1765s # file-header 1765s # /*** END file-header ***/ 1765s # 1765s # /*** BEGIN file-production ***/ 1765s # file-production 1765s # filename: @filename@ 1765s # basename: @basename@ 1765s # /*** END file-production ***/ 1765s # 1765s # /*** BEGIN enumeration-production ***/ 1765s # enumeration-production 1765s # EnumName: @EnumName@ 1765s # enum_name: @enum_name@ 1765s # ENUMNAME: @ENUMNAME@ 1765s # ENUMSHORT: @ENUMSHORT@ 1765s # ENUMPREFIX: @ENUMPREFIX@ 1765s # enumsince: @enumsince@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END enumeration-production ***/ 1765s # 1765s # /*** BEGIN value-header ***/ 1765s # value-header 1765s # EnumName: @EnumName@ 1765s # enum_name: @enum_name@ 1765s # ENUMNAME: @ENUMNAME@ 1765s # ENUMSHORT: @ENUMSHORT@ 1765s # ENUMPREFIX: @ENUMPREFIX@ 1765s # enumsince: @enumsince@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END value-header ***/ 1765s # 1765s # /*** BEGIN value-production ***/ 1765s # value-production 1765s # VALUENAME: @VALUENAME@ 1765s # valuenick: @valuenick@ 1765s # valuenum: @valuenum@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END value-production ***/ 1765s # 1765s # /*** BEGIN value-tail ***/ 1765s # value-tail 1765s # EnumName: @EnumName@ 1765s # enum_name: @enum_name@ 1765s # ENUMNAME: @ENUMNAME@ 1765s # ENUMSHORT: @ENUMSHORT@ 1765s # ENUMPREFIX: @ENUMPREFIX@ 1765s # enumsince: @enumsince@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END value-tail ***/ 1765s # 1765s # /*** BEGIN comment ***/ 1765s # comment 1765s # comment: @comment@ 1765s # /*** END comment ***/ 1765s # 1765s # /*** BEGIN file-tail ***/ 1765s # file-tail 1765s # /*** END file-tail ***/ 1765s # 1765s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpyme5xqh_/tmpl6r_mb8j.template', '/tmp/tmpyme5xqh_/tmppoam9ndo.h'] 1765s # Return code: 0 1765s # Output: 1765s # comment 1765s # comment: This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. 1765s # 1765s # 1765s # file-header 1765s # file-production 1765s # filename: /tmp/tmpyme5xqh_/tmppoam9ndo.h 1765s # basename: tmppoam9ndo.h 1765s # enumeration-production 1765s # EnumName: SomeEnumIdentifier 1765s # enum_name: some_enum_identifier 1765s # ENUMNAME: SOME_ENUM_IDENTIFIER 1765s # ENUMSHORT: ENUM_IDENTIFIER 1765s # ENUMPREFIX: SOME 1765s # enumsince: 1765s # type: enum 1765s # Type: Enum 1765s # TYPE: ENUM 1765s # value-header 1765s # EnumName: SomeEnumIdentifier 1765s # enum_name: some_enum_identifier 1765s # ENUMNAME: SOME_ENUM_IDENTIFIER 1765s # ENUMSHORT: ENUM_IDENTIFIER 1765s # ENUMPREFIX: SOME 1765s # enumsince: 1765s # type: enum 1765s # Type: Enum 1765s # TYPE: ENUM 1765s # value-production 1765s # VALUENAME: ENUM_VALUE 1765s # valuenick: value 1765s # valuenum: 0 1765s # type: enum 1765s # Type: Enum 1765s # TYPE: ENUM 1765s # value-tail 1765s # EnumName: SomeEnumIdentifier 1765s # enum_name: some_enum_identifier 1765s # ENUMNAME: SOME_ENUM_IDENTIFIER 1765s # ENUMSHORT: ENUM_IDENTIFIER 1765s # ENUMPREFIX: SOME 1765s # enumsince: 1765s # type: enum 1765s # Type: Enum 1765s # TYPE: ENUM 1765s # file-tail 1765s # 1765s # comment 1765s # comment: Generated data ends here 1765s # Error: 1765s # WARNING: UnicodeWarning: invalid start byte at 22 (b'yright \xa9 La Pe\xf1') 1765s # WARNING: UnicodeWarning: invalid continuation byte at 29 (b'\xa9 La Pe\xf1a */\n ') 1765s ok 16 __main__.TestMkenums.test_reproducible 1765s # glib-mkenums: /usr/bin/glib-mkenums 1765s # tmpdir: /tmp/tmprwauwd28 1765s # rspfile: False 1765s # /tmp/tmprwauwd28/tmp1kloedbc.template: template 1765s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmprwauwd28/tmp1kloedbc.template', '/tmp/tmprwauwd28/tmpzik9m6di1.h', '/tmp/tmprwauwd28/tmpg04bpt9r2.h'] 1765s # Return code: 0 1765s # Output: 1765s # /* This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */ 1765s # 1765s # 1765s # /* Generated data ends here */ 1765s # Error: 1765s # 1765s # /tmp/tmprwauwd28/tmpbtl101_7.template: template 1765s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmprwauwd28/tmpbtl101_7.template', '/tmp/tmprwauwd28/tmpg04bpt9r2.h', '/tmp/tmprwauwd28/tmpzik9m6di1.h'] 1765s # Return code: 0 1765s # Output: 1765s # /* This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */ 1765s # 1765s # 1765s # /* Generated data ends here */ 1765s # Error: 1765s ok 17 __main__.TestMkenums.test_since 1765s # glib-mkenums: /usr/bin/glib-mkenums 1765s # tmpdir: /tmp/tmp_24_kt0y 1765s # rspfile: False 1765s # /tmp/tmp_24_kt0y/tmp9_0ii1e2.h: 1765s # typedef enum { /*< since=1.0 >*/ 1765s # QMI_WMS_MESSAGE_PROTOCOL_CDMA = 0, 1765s # } QmiWmsMessageProtocol; 1765s # 1765s # /tmp/tmp_24_kt0y/tmp4dr6nv3z.template: 1765s # /*** BEGIN file-header ***/ 1765s # file-header 1765s # /*** END file-header ***/ 1765s # 1765s # /*** BEGIN file-production ***/ 1765s # file-production 1765s # filename: @filename@ 1765s # basename: @basename@ 1765s # /*** END file-production ***/ 1765s # 1765s # /*** BEGIN enumeration-production ***/ 1765s # enumeration-production 1765s # EnumName: @EnumName@ 1765s # enum_name: @enum_name@ 1765s # ENUMNAME: @ENUMNAME@ 1765s # ENUMSHORT: @ENUMSHORT@ 1765s # ENUMPREFIX: @ENUMPREFIX@ 1765s # enumsince: @enumsince@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END enumeration-production ***/ 1765s # 1765s # /*** BEGIN value-header ***/ 1765s # value-header 1765s # EnumName: @EnumName@ 1765s # enum_name: @enum_name@ 1765s # ENUMNAME: @ENUMNAME@ 1765s # ENUMSHORT: @ENUMSHORT@ 1765s # ENUMPREFIX: @ENUMPREFIX@ 1765s # enumsince: @enumsince@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END value-header ***/ 1765s # 1765s # /*** BEGIN value-production ***/ 1765s # value-production 1765s # VALUENAME: @VALUENAME@ 1765s # valuenick: @valuenick@ 1765s # valuenum: @valuenum@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END value-production ***/ 1765s # 1765s # /*** BEGIN value-tail ***/ 1765s # value-tail 1765s # EnumName: @EnumName@ 1765s # enum_name: @enum_name@ 1765s # ENUMNAME: @ENUMNAME@ 1765s # ENUMSHORT: @ENUMSHORT@ 1765s # ENUMPREFIX: @ENUMPREFIX@ 1765s # enumsince: @enumsince@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END value-tail ***/ 1765s # 1765s # /*** BEGIN comment ***/ 1765s # comment 1765s # comment: @comment@ 1765s # /*** END comment ***/ 1765s # 1765s # /*** BEGIN file-tail ***/ 1765s # file-tail 1765s # /*** END file-tail ***/ 1765s # 1765s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp_24_kt0y/tmp4dr6nv3z.template', '/tmp/tmp_24_kt0y/tmp9_0ii1e2.h'] 1765s # Return code: 0 1765s # Output: 1765s # comment 1765s # comment: This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. 1765s # 1765s # 1765s # file-header 1765s # file-production 1765s # filename: /tmp/tmp_24_kt0y/tmp9_0ii1e2.h 1765s # basename: tmp9_0ii1e2.h 1765s # enumeration-production 1765s # EnumName: QmiWmsMessageProtocol 1765s # enum_name: qmi_wms_message_protocol 1765s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1765s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1765s # ENUMPREFIX: QMI 1765s # enumsince: 1.0 1765s # type: enum 1765s # Type: Enum 1765s # TYPE: ENUM 1765s # value-header 1765s # EnumName: QmiWmsMessageProtocol 1765s # enum_name: qmi_wms_message_protocol 1765s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1765s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1765s # ENUMPREFIX: QMI 1765s # enumsince: 1.0 1765s # type: enum 1765s # Type: Enum 1765s # TYPE: ENUM 1765s # value-production 1765s # VALUENAME: QMI_WMS_MESSAGE_PROTOCOL_CDMA 1765s # valuenick: cdma 1765s # valuenum: 0 1765s # type: enum 1765s # Type: Enum 1765s # TYPE: ENUM 1765s # value-tail 1765s # EnumName: QmiWmsMessageProtocol 1765s # enum_name: qmi_wms_message_protocol 1765s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1765s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1765s # ENUMPREFIX: QMI 1765s # enumsince: 1.0 1765s # type: enum 1765s # Type: Enum 1765s # TYPE: ENUM 1765s # file-tail 1765s # 1765s # comment 1765s # comment: Generated data ends here 1765s # Error: 1765s ok 18 __main__.TestMkenums.test_with_double_quotes 1765s # glib-mkenums: /usr/bin/glib-mkenums 1765s # tmpdir: /tmp/tmp_1lbbik6 1765s # rspfile: False 1765s # /tmp/tmp_1lbbik6/tmpcxkttk9_.h: 1765s # typedef enum { 1765s # FOO_VALUE /*< nick="eek, a comma" >*/ 1765s # } Foo; 1765s # 1765s # /tmp/tmp_1lbbik6/tmp1a13542v.template: 1765s # /*** BEGIN file-header ***/ 1765s # file-header 1765s # /*** END file-header ***/ 1765s # 1765s # /*** BEGIN file-production ***/ 1765s # file-production 1765s # filename: @filename@ 1765s # basename: @basename@ 1765s # /*** END file-production ***/ 1765s # 1765s # /*** BEGIN enumeration-production ***/ 1765s # enumeration-production 1765s # EnumName: @EnumName@ 1765s # enum_name: @enum_name@ 1765s # ENUMNAME: @ENUMNAME@ 1765s # ENUMSHORT: @ENUMSHORT@ 1765s # ENUMPREFIX: @ENUMPREFIX@ 1765s # enumsince: @enumsince@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END enumeration-production ***/ 1765s # 1765s # /*** BEGIN value-header ***/ 1765s # value-header 1765s # EnumName: @EnumName@ 1765s # enum_name: @enum_name@ 1765s # ENUMNAME: @ENUMNAME@ 1765s # ENUMSHORT: @ENUMSHORT@ 1765s # ENUMPREFIX: @ENUMPREFIX@ 1765s # enumsince: @enumsince@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END value-header ***/ 1765s # 1765s # /*** BEGIN value-production ***/ 1765s # value-production 1765s # VALUENAME: @VALUENAME@ 1765s # valuenick: @valuenick@ 1765s # valuenum: @valuenum@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END value-production ***/ 1765s # 1765s # /*** BEGIN value-tail ***/ 1765s # value-tail 1765s # EnumName: @EnumName@ 1765s # enum_name: @enum_name@ 1765s # ENUMNAME: @ENUMNAME@ 1765s # ENUMSHORT: @ENUMSHORT@ 1765s # ENUMPREFIX: @ENUMPREFIX@ 1765s # enumsince: @enumsince@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END value-tail ***/ 1765s # 1765s # /*** BEGIN comment ***/ 1765s # comment 1765s # comment: @comment@ 1765s # /*** END comment ***/ 1765s # 1765s # /*** BEGIN file-tail ***/ 1765s # file-tail 1765s # /*** END file-tail ***/ 1765s # 1765s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp_1lbbik6/tmp1a13542v.template', '/tmp/tmp_1lbbik6/tmpcxkttk9_.h'] 1765s # Return code: 0 1765s # Output: 1765s # comment 1765s # comment: This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. 1765s # 1765s # 1765s # file-header 1765s # file-production 1765s # filename: /tmp/tmp_1lbbik6/tmpcxkttk9_.h 1765s # basename: tmpcxkttk9_.h 1765s # enumeration-production 1765s # EnumName: Foo 1765s # enum_name: foo_ 1765s # ENUMNAME: FOO_ 1765s # ENUMSHORT: 1765s # ENUMPREFIX: FOO 1765s # enumsince: 1765s # type: enum 1765s # Type: Enum 1765s # TYPE: ENUM 1765s # value-header 1765s # EnumName: Foo 1765s # enum_name: foo_ 1765s # ENUMNAME: FOO_ 1765s # ENUMSHORT: 1765s # ENUMPREFIX: FOO 1765s # enumsince: 1765s # type: enum 1765s # Type: Enum 1765s # TYPE: ENUM 1765s # value-production 1765s # VALUENAME: FOO_VALUE 1765s # valuenick: eek, a comma 1765s # valuenum: 0 1765s # type: enum 1765s # Type: Enum 1765s # TYPE: ENUM 1765s # value-tail 1765s # EnumName: Foo 1765s # enum_name: foo_ 1765s # ENUMNAME: FOO_ 1765s # ENUMSHORT: 1765s # ENUMPREFIX: FOO 1765s # enumsince: 1765s # type: enum 1765s # Type: Enum 1765s # TYPE: ENUM 1765s # file-tail 1765s # 1765s # comment 1765s # comment: Generated data ends here 1765s # Error: 1765s ok 19 __main__.TestRspMkenums.test_available_in 1765s # glib-mkenums: /usr/bin/glib-mkenums 1765s # tmpdir: /tmp/tmp9miuy2xd 1765s # rspfile: True 1765s # /tmp/tmp9miuy2xd/tmp0vuexuxf.h: 1765s # typedef enum { 1765s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<2) 1765s # } GDBusServerFlags; 1765s # 1765s # /tmp/tmp9miuy2xd/tmpctezztg_.template: 1765s # /*** BEGIN file-header ***/ 1765s # file-header 1765s # /*** END file-header ***/ 1765s # 1765s # /*** BEGIN file-production ***/ 1765s # file-production 1765s # filename: @filename@ 1765s # basename: @basename@ 1765s # /*** END file-production ***/ 1765s # 1765s # /*** BEGIN enumeration-production ***/ 1765s # enumeration-production 1765s # EnumName: @EnumName@ 1765s # enum_name: @enum_name@ 1765s # ENUMNAME: @ENUMNAME@ 1765s # ENUMSHORT: @ENUMSHORT@ 1765s # ENUMPREFIX: @ENUMPREFIX@ 1765s # enumsince: @enumsince@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END enumeration-production ***/ 1765s # 1765s # /*** BEGIN value-header ***/ 1765s # value-header 1765s # EnumName: @EnumName@ 1765s # enum_name: @enum_name@ 1765s # ENUMNAME: @ENUMNAME@ 1765s # ENUMSHORT: @ENUMSHORT@ 1765s # ENUMPREFIX: @ENUMPREFIX@ 1765s # enumsince: @enumsince@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END value-header ***/ 1765s # 1765s # /*** BEGIN value-production ***/ 1765s # value-production 1765s # VALUENAME: @VALUENAME@ 1765s # valuenick: @valuenick@ 1765s # valuenum: @valuenum@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END value-production ***/ 1765s # 1765s # /*** BEGIN value-tail ***/ 1765s # value-tail 1765s # EnumName: @EnumName@ 1765s # enum_name: @enum_name@ 1765s # ENUMNAME: @ENUMNAME@ 1765s # ENUMSHORT: @ENUMSHORT@ 1765s # ENUMPREFIX: @ENUMPREFIX@ 1765s # enumsince: @enumsince@ 1765s # type: @type@ 1765s # Type: @Type@ 1765s # TYPE: @TYPE@ 1765s # /*** END value-tail ***/ 1765s # 1765s # /*** BEGIN comment ***/ 1765s # comment 1765s # comment: @comment@ 1765s # /*** END comment ***/ 1765s # 1765s # /*** BEGIN file-tail ***/ 1765s # file-tail 1765s # /*** END file-tail ***/ 1765s # 1765s # Response file contains: --template /tmp/tmp9miuy2xd/tmpctezztg_.template /tmp/tmp9miuy2xd/tmp0vuexuxf.h 1765s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp9miuy2xd/tmpiksq69h3'] 1765s # Return code: 0 1765s # Output: 1765s # comment 1765s # comment: This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. 1765s # 1765s # 1765s # file-header 1765s # file-production 1765s # filename: /tmp/tmp9miuy2xd/tmp0vuexuxf.h 1765s # basename: tmp0vuexuxf.h 1765s # enumeration-production 1765s # EnumName: GDBusServerFlags 1765s # enum_name: g_dbus_server_flags 1765s # ENUMNAME: G_DBUS_SERVER_FLAGS 1765s # ENUMSHORT: DBUS_SERVER_FLAGS 1765s # ENUMPREFIX: G 1765s # enumsince: 1765s # type: flags 1765s # Type: Flags 1765s # TYPE: FLAGS 1765s # value-header 1765s # EnumName: GDBusServerFlags 1765s # enum_name: g_dbus_server_flags 1765s # ENUMNAME: G_DBUS_SERVER_FLAGS 1765s # ENUMSHORT: DBUS_SERVER_FLAGS 1765s # ENUMPREFIX: G 1765s # enumsince: 1765s # type: flags 1765s # Type: Flags 1765s # TYPE: FLAGS 1765s # value-production 1765s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1765s # valuenick: user 1765s # valuenum: 4 1765s # type: flags 1765s # Type: Flags 1765s # TYPE: FLAGS 1765s # value-tail 1765s # EnumName: GDBusServerFlags 1765s # enum_name: g_dbus_server_flags 1765s # ENUMNAME: G_DBUS_SERVER_FLAGS 1765s # ENUMSHORT: DBUS_SERVER_FLAGS 1765s # ENUMPREFIX: G 1765s # enumsince: 1765s # type: flags 1765s # Type: Flags 1765s # TYPE: FLAGS 1765s # file-tail 1765s # 1765s # comment 1765s # comment: Generated data ends here 1765s # Error: 1766s ok 20 __main__.TestRspMkenums.test_comma_in_enum_value 1766s # glib-mkenums: /usr/bin/glib-mkenums 1766s # tmpdir: /tmp/tmp5womykar 1766s # rspfile: True 1766s # /tmp/tmp5womykar/tmp2pszquna.h: 1766s # typedef enum { 1766s # ENUM_VALUE_WITH_COMMA = ',', 1766s # } TestCommaEnum; 1766s # 1766s # /tmp/tmp5womykar/tmpll69u9fl.template: 1766s # /*** BEGIN file-header ***/ 1766s # file-header 1766s # /*** END file-header ***/ 1766s # 1766s # /*** BEGIN file-production ***/ 1766s # file-production 1766s # filename: @filename@ 1766s # basename: @basename@ 1766s # /*** END file-production ***/ 1766s # 1766s # /*** BEGIN enumeration-production ***/ 1766s # enumeration-production 1766s # EnumName: @EnumName@ 1766s # enum_name: @enum_name@ 1766s # ENUMNAME: @ENUMNAME@ 1766s # ENUMSHORT: @ENUMSHORT@ 1766s # ENUMPREFIX: @ENUMPREFIX@ 1766s # enumsince: @enumsince@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END enumeration-production ***/ 1766s # 1766s # /*** BEGIN value-header ***/ 1766s # value-header 1766s # EnumName: @EnumName@ 1766s # enum_name: @enum_name@ 1766s # ENUMNAME: @ENUMNAME@ 1766s # ENUMSHORT: @ENUMSHORT@ 1766s # ENUMPREFIX: @ENUMPREFIX@ 1766s # enumsince: @enumsince@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END value-header ***/ 1766s # 1766s # /*** BEGIN value-production ***/ 1766s # value-production 1766s # VALUENAME: @VALUENAME@ 1766s # valuenick: @valuenick@ 1766s # valuenum: @valuenum@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END value-production ***/ 1766s # 1766s # /*** BEGIN value-tail ***/ 1766s # value-tail 1766s # EnumName: @EnumName@ 1766s # enum_name: @enum_name@ 1766s # ENUMNAME: @ENUMNAME@ 1766s # ENUMSHORT: @ENUMSHORT@ 1766s # ENUMPREFIX: @ENUMPREFIX@ 1766s # enumsince: @enumsince@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END value-tail ***/ 1766s # 1766s # /*** BEGIN comment ***/ 1766s # comment 1766s # comment: @comment@ 1766s # /*** END comment ***/ 1766s # 1766s # /*** BEGIN file-tail ***/ 1766s # file-tail 1766s # /*** END file-tail ***/ 1766s # 1766s # Response file contains: --template /tmp/tmp5womykar/tmpll69u9fl.template /tmp/tmp5womykar/tmp2pszquna.h 1766s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp5womykar/tmplvn1ktl_'] 1766s # Return code: 0 1766s # Output: 1766s # comment 1766s # comment: This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. 1766s # 1766s # 1766s # file-header 1766s # file-production 1766s # filename: /tmp/tmp5womykar/tmp2pszquna.h 1766s # basename: tmp2pszquna.h 1766s # enumeration-production 1766s # EnumName: TestCommaEnum 1766s # enum_name: test_comma_enum 1766s # ENUMNAME: TEST_COMMA_ENUM 1766s # ENUMSHORT: COMMA_ENUM 1766s # ENUMPREFIX: TEST 1766s # enumsince: 1766s # type: enum 1766s # Type: Enum 1766s # TYPE: ENUM 1766s # value-header 1766s # EnumName: TestCommaEnum 1766s # enum_name: test_comma_enum 1766s # ENUMNAME: TEST_COMMA_ENUM 1766s # ENUMSHORT: COMMA_ENUM 1766s # ENUMPREFIX: TEST 1766s # enumsince: 1766s # type: enum 1766s # Type: Enum 1766s # TYPE: ENUM 1766s # value-production 1766s # VALUENAME: ENUM_VALUE_WITH_COMMA 1766s # valuenick: comma 1766s # valuenum: 44 1766s # type: enum 1766s # Type: Enum 1766s # TYPE: ENUM 1766s # value-tail 1766s # EnumName: TestCommaEnum 1766s # enum_name: test_comma_enum 1766s # ENUMNAME: TEST_COMMA_ENUM 1766s # ENUMSHORT: COMMA_ENUM 1766s # ENUMPREFIX: TEST 1766s # enumsince: 1766s # type: enum 1766s # Type: Enum 1766s # TYPE: ENUM 1766s # file-tail 1766s # 1766s # comment 1766s # comment: Generated data ends here 1766s # Error: 1766s ok 21 __main__.TestRspMkenums.test_deprecated_in 1766s # glib-mkenums: /usr/bin/glib-mkenums 1766s # tmpdir: /tmp/tmp_fmomgnn 1766s # rspfile: True 1766s # /tmp/tmp_fmomgnn/tmp619e1gfl.h: 1766s # typedef enum { 1766s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_DEPRECATED_ENUMERATOR_IN_2_68 = (1<<2) 1766s # } GDBusServerFlags; 1766s # 1766s # /tmp/tmp_fmomgnn/tmp26nh97wm.template: 1766s # /*** BEGIN file-header ***/ 1766s # file-header 1766s # /*** END file-header ***/ 1766s # 1766s # /*** BEGIN file-production ***/ 1766s # file-production 1766s # filename: @filename@ 1766s # basename: @basename@ 1766s # /*** END file-production ***/ 1766s # 1766s # /*** BEGIN enumeration-production ***/ 1766s # enumeration-production 1766s # EnumName: @EnumName@ 1766s # enum_name: @enum_name@ 1766s # ENUMNAME: @ENUMNAME@ 1766s # ENUMSHORT: @ENUMSHORT@ 1766s # ENUMPREFIX: @ENUMPREFIX@ 1766s # enumsince: @enumsince@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END enumeration-production ***/ 1766s # 1766s # /*** BEGIN value-header ***/ 1766s # value-header 1766s # EnumName: @EnumName@ 1766s # enum_name: @enum_name@ 1766s # ENUMNAME: @ENUMNAME@ 1766s # ENUMSHORT: @ENUMSHORT@ 1766s # ENUMPREFIX: @ENUMPREFIX@ 1766s # enumsince: @enumsince@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END value-header ***/ 1766s # 1766s # /*** BEGIN value-production ***/ 1766s # value-production 1766s # VALUENAME: @VALUENAME@ 1766s # valuenick: @valuenick@ 1766s # valuenum: @valuenum@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END value-production ***/ 1766s # 1766s # /*** BEGIN value-tail ***/ 1766s # value-tail 1766s # EnumName: @EnumName@ 1766s # enum_name: @enum_name@ 1766s # ENUMNAME: @ENUMNAME@ 1766s # ENUMSHORT: @ENUMSHORT@ 1766s # ENUMPREFIX: @ENUMPREFIX@ 1766s # enumsince: @enumsince@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END value-tail ***/ 1766s # 1766s # /*** BEGIN comment ***/ 1766s # comment 1766s # comment: @comment@ 1766s # /*** END comment ***/ 1766s # 1766s # /*** BEGIN file-tail ***/ 1766s # file-tail 1766s # /*** END file-tail ***/ 1766s # 1766s # Response file contains: --template /tmp/tmp_fmomgnn/tmp26nh97wm.template /tmp/tmp_fmomgnn/tmp619e1gfl.h 1766s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp_fmomgnn/tmpv5d5z1e5'] 1766s # Return code: 0 1766s # Output: 1766s # comment 1766s # comment: This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. 1766s # 1766s # 1766s # file-header 1766s # file-production 1766s # filename: /tmp/tmp_fmomgnn/tmp619e1gfl.h 1766s # basename: tmp619e1gfl.h 1766s # enumeration-production 1766s # EnumName: GDBusServerFlags 1766s # enum_name: g_dbus_server_flags 1766s # ENUMNAME: G_DBUS_SERVER_FLAGS 1766s # ENUMSHORT: DBUS_SERVER_FLAGS 1766s # ENUMPREFIX: G 1766s # enumsince: 1766s # type: flags 1766s # Type: Flags 1766s # TYPE: FLAGS 1766s # value-header 1766s # EnumName: GDBusServerFlags 1766s # enum_name: g_dbus_server_flags 1766s # ENUMNAME: G_DBUS_SERVER_FLAGS 1766s # ENUMSHORT: DBUS_SERVER_FLAGS 1766s # ENUMPREFIX: G 1766s # enumsince: 1766s # type: flags 1766s # Type: Flags 1766s # TYPE: FLAGS 1766s # value-production 1766s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1766s # valuenick: user 1766s # valuenum: 4 1766s # type: flags 1766s # Type: Flags 1766s # TYPE: FLAGS 1766s # value-tail 1766s # EnumName: GDBusServerFlags 1766s # enum_name: g_dbus_server_flags 1766s # ENUMNAME: G_DBUS_SERVER_FLAGS 1766s # ENUMSHORT: DBUS_SERVER_FLAGS 1766s # ENUMPREFIX: G 1766s # enumsince: 1766s # type: flags 1766s # Type: Flags 1766s # TYPE: FLAGS 1766s # file-tail 1766s # 1766s # comment 1766s # comment: Generated data ends here 1766s # Error: 1766s ok 22 __main__.TestRspMkenums.test_deprecated_in_for 1766s # glib-mkenums: /usr/bin/glib-mkenums 1766s # tmpdir: /tmp/tmpj65fgtoq 1766s # rspfile: True 1766s # /tmp/tmpj65fgtoq/tmpgn2x2kjq.h: 1766s # typedef enum { 1766s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_DEPRECATED_ENUMERATOR_IN_2_68_FOR(G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER2) = (1<<2) 1766s # } GDBusServerFlags; 1766s # 1766s # /tmp/tmpj65fgtoq/tmpl73_gjtc.template: 1766s # /*** BEGIN file-header ***/ 1766s # file-header 1766s # /*** END file-header ***/ 1766s # 1766s # /*** BEGIN file-production ***/ 1766s # file-production 1766s # filename: @filename@ 1766s # basename: @basename@ 1766s # /*** END file-production ***/ 1766s # 1766s # /*** BEGIN enumeration-production ***/ 1766s # enumeration-production 1766s # EnumName: @EnumName@ 1766s # enum_name: @enum_name@ 1766s # ENUMNAME: @ENUMNAME@ 1766s # ENUMSHORT: @ENUMSHORT@ 1766s # ENUMPREFIX: @ENUMPREFIX@ 1766s # enumsince: @enumsince@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END enumeration-production ***/ 1766s # 1766s # /*** BEGIN value-header ***/ 1766s # value-header 1766s # EnumName: @EnumName@ 1766s # enum_name: @enum_name@ 1766s # ENUMNAME: @ENUMNAME@ 1766s # ENUMSHORT: @ENUMSHORT@ 1766s # ENUMPREFIX: @ENUMPREFIX@ 1766s # enumsince: @enumsince@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END value-header ***/ 1766s # 1766s # /*** BEGIN value-production ***/ 1766s # value-production 1766s # VALUENAME: @VALUENAME@ 1766s # valuenick: @valuenick@ 1766s # valuenum: @valuenum@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END value-production ***/ 1766s # 1766s # /*** BEGIN value-tail ***/ 1766s # value-tail 1766s # EnumName: @EnumName@ 1766s # enum_name: @enum_name@ 1766s # ENUMNAME: @ENUMNAME@ 1766s # ENUMSHORT: @ENUMSHORT@ 1766s # ENUMPREFIX: @ENUMPREFIX@ 1766s # enumsince: @enumsince@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END value-tail ***/ 1766s # 1766s # /*** BEGIN comment ***/ 1766s # comment 1766s # comment: @comment@ 1766s # /*** END comment ***/ 1766s # 1766s # /*** BEGIN file-tail ***/ 1766s # file-tail 1766s # /*** END file-tail ***/ 1766s # 1766s # Response file contains: --template /tmp/tmpj65fgtoq/tmpl73_gjtc.template /tmp/tmpj65fgtoq/tmpgn2x2kjq.h 1766s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpj65fgtoq/tmp2kg2w58a'] 1766s # Return code: 0 1766s # Output: 1766s # comment 1766s # comment: This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. 1766s # 1766s # 1766s # file-header 1766s # file-production 1766s # filename: /tmp/tmpj65fgtoq/tmpgn2x2kjq.h 1766s # basename: tmpgn2x2kjq.h 1766s # enumeration-production 1766s # EnumName: GDBusServerFlags 1766s # enum_name: g_dbus_server_flags 1766s # ENUMNAME: G_DBUS_SERVER_FLAGS 1766s # ENUMSHORT: DBUS_SERVER_FLAGS 1766s # ENUMPREFIX: G 1766s # enumsince: 1766s # type: flags 1766s # Type: Flags 1766s # TYPE: FLAGS 1766s # value-header 1766s # EnumName: GDBusServerFlags 1766s # enum_name: g_dbus_server_flags 1766s # ENUMNAME: G_DBUS_SERVER_FLAGS 1766s # ENUMSHORT: DBUS_SERVER_FLAGS 1766s # ENUMPREFIX: G 1766s # enumsince: 1766s # type: flags 1766s # Type: Flags 1766s # TYPE: FLAGS 1766s # value-production 1766s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1766s # valuenick: user 1766s # valuenum: 4 1766s # type: flags 1766s # Type: Flags 1766s # TYPE: FLAGS 1766s # value-tail 1766s # EnumName: GDBusServerFlags 1766s # enum_name: g_dbus_server_flags 1766s # ENUMNAME: G_DBUS_SERVER_FLAGS 1766s # ENUMSHORT: DBUS_SERVER_FLAGS 1766s # ENUMPREFIX: G 1766s # enumsince: 1766s # type: flags 1766s # Type: Flags 1766s # TYPE: FLAGS 1766s # file-tail 1766s # 1766s # comment 1766s # comment: Generated data ends here 1766s # Error: 1766s ok 23 __main__.TestRspMkenums.test_empty_header 1766s # glib-mkenums: /usr/bin/glib-mkenums 1766s # tmpdir: /tmp/tmpb5ie2vjh 1766s # rspfile: True 1766s # /tmp/tmpb5ie2vjh/tmp66nomdqx.h: 1766s # /tmp/tmpb5ie2vjh/tmp3i4uwn2z.template: 1766s # /*** BEGIN file-header ***/ 1766s # file-header 1766s # /*** END file-header ***/ 1766s # 1766s # /*** BEGIN file-production ***/ 1766s # file-production 1766s # filename: @filename@ 1766s # basename: @basename@ 1766s # /*** END file-production ***/ 1766s # 1766s # /*** BEGIN enumeration-production ***/ 1766s # enumeration-production 1766s # EnumName: @EnumName@ 1766s # enum_name: @enum_name@ 1766s # ENUMNAME: @ENUMNAME@ 1766s # ENUMSHORT: @ENUMSHORT@ 1766s # ENUMPREFIX: @ENUMPREFIX@ 1766s # enumsince: @enumsince@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END enumeration-production ***/ 1766s # 1766s # /*** BEGIN value-header ***/ 1766s # value-header 1766s # EnumName: @EnumName@ 1766s # enum_name: @enum_name@ 1766s # ENUMNAME: @ENUMNAME@ 1766s # ENUMSHORT: @ENUMSHORT@ 1766s # ENUMPREFIX: @ENUMPREFIX@ 1766s # enumsince: @enumsince@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END value-header ***/ 1766s # 1766s # /*** BEGIN value-production ***/ 1766s # value-production 1766s # VALUENAME: @VALUENAME@ 1766s # valuenick: @valuenick@ 1766s # valuenum: @valuenum@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END value-production ***/ 1766s # 1766s # /*** BEGIN value-tail ***/ 1766s # value-tail 1766s # EnumName: @EnumName@ 1766s # enum_name: @enum_name@ 1766s # ENUMNAME: @ENUMNAME@ 1766s # ENUMSHORT: @ENUMSHORT@ 1766s # ENUMPREFIX: @ENUMPREFIX@ 1766s # enumsince: @enumsince@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END value-tail ***/ 1766s # 1766s # /*** BEGIN comment ***/ 1766s # comment 1766s # comment: @comment@ 1766s # /*** END comment ***/ 1766s # 1766s # /*** BEGIN file-tail ***/ 1766s # file-tail 1766s # /*** END file-tail ***/ 1766s # 1766s # Response file contains: --template /tmp/tmpb5ie2vjh/tmp3i4uwn2z.template /tmp/tmpb5ie2vjh/tmp66nomdqx.h 1766s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpb5ie2vjh/tmpivlxozef'] 1766s # Return code: 0 1766s # Output: 1766s # comment 1766s # comment: This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. 1766s # 1766s # 1766s # file-header 1766s # file-tail 1766s # 1766s # comment 1766s # comment: Generated data ends here 1766s # Error: 1766s ok 24 __main__.TestRspMkenums.test_empty_template 1766s # glib-mkenums: /usr/bin/glib-mkenums 1766s # tmpdir: /tmp/tmpi8ubwwl2 1766s # rspfile: True 1766s # /tmp/tmpi8ubwwl2/tmpg0c0sri5.template: 1766s # Response file contains: --template /tmp/tmpi8ubwwl2/tmpg0c0sri5.template 1766s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpi8ubwwl2/tmphr1lmq49'] 1766s # Return code: 0 1766s # Output: 1766s # /* This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */ 1766s # 1766s # 1766s # /* Generated data ends here */ 1766s # Error: 1766s ok 25 __main__.TestRspMkenums.test_enum_name 1766s # glib-mkenums: /usr/bin/glib-mkenums 1766s # tmpdir: /tmp/tmp9v3g1dtt 1766s # rspfile: True 1766s # /tmp/tmp9v3g1dtt/tmpugqh2zm6.h: 1766s # typedef enum _SomeEnumIdentifier { 1766s # ENUM_VALUE 1766s # } SomeEnumIdentifier; 1766s # 1766s # /tmp/tmp9v3g1dtt/tmp4mzdmb41.template: 1766s # /*** BEGIN file-header ***/ 1766s # file-header 1766s # /*** END file-header ***/ 1766s # 1766s # /*** BEGIN file-production ***/ 1766s # file-production 1766s # filename: @filename@ 1766s # basename: @basename@ 1766s # /*** END file-production ***/ 1766s # 1766s # /*** BEGIN enumeration-production ***/ 1766s # enumeration-production 1766s # EnumName: @EnumName@ 1766s # enum_name: @enum_name@ 1766s # ENUMNAME: @ENUMNAME@ 1766s # ENUMSHORT: @ENUMSHORT@ 1766s # ENUMPREFIX: @ENUMPREFIX@ 1766s # enumsince: @enumsince@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END enumeration-production ***/ 1766s # 1766s # /*** BEGIN value-header ***/ 1766s # value-header 1766s # EnumName: @EnumName@ 1766s # enum_name: @enum_name@ 1766s # ENUMNAME: @ENUMNAME@ 1766s # ENUMSHORT: @ENUMSHORT@ 1766s # ENUMPREFIX: @ENUMPREFIX@ 1766s # enumsince: @enumsince@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END value-header ***/ 1766s # 1766s # /*** BEGIN value-production ***/ 1766s # value-production 1766s # VALUENAME: @VALUENAME@ 1766s # valuenick: @valuenick@ 1766s # valuenum: @valuenum@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END value-production ***/ 1766s # 1766s # /*** BEGIN value-tail ***/ 1766s # value-tail 1766s # EnumName: @EnumName@ 1766s # enum_name: @enum_name@ 1766s # ENUMNAME: @ENUMNAME@ 1766s # ENUMSHORT: @ENUMSHORT@ 1766s # ENUMPREFIX: @ENUMPREFIX@ 1766s # enumsince: @enumsince@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END value-tail ***/ 1766s # 1766s # /*** BEGIN comment ***/ 1766s # comment 1766s # comment: @comment@ 1766s # /*** END comment ***/ 1766s # 1766s # /*** BEGIN file-tail ***/ 1766s # file-tail 1766s # /*** END file-tail ***/ 1766s # 1766s # Response file contains: --template /tmp/tmp9v3g1dtt/tmp4mzdmb41.template /tmp/tmp9v3g1dtt/tmpugqh2zm6.h 1766s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp9v3g1dtt/tmpyoe17qfs'] 1766s # Return code: 0 1766s # Output: 1766s # comment 1766s # comment: This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. 1766s # 1766s # 1766s # file-header 1766s # file-production 1766s # filename: /tmp/tmp9v3g1dtt/tmpugqh2zm6.h 1766s # basename: tmpugqh2zm6.h 1766s # enumeration-production 1766s # EnumName: SomeEnumIdentifier 1766s # enum_name: some_enum_identifier 1766s # ENUMNAME: SOME_ENUM_IDENTIFIER 1766s # ENUMSHORT: ENUM_IDENTIFIER 1766s # ENUMPREFIX: SOME 1766s # enumsince: 1766s # type: enum 1766s # Type: Enum 1766s # TYPE: ENUM 1766s # value-header 1766s # EnumName: SomeEnumIdentifier 1766s # enum_name: some_enum_identifier 1766s # ENUMNAME: SOME_ENUM_IDENTIFIER 1766s # ENUMSHORT: ENUM_IDENTIFIER 1766s # ENUMPREFIX: SOME 1766s # enumsince: 1766s # type: enum 1766s # Type: Enum 1766s # TYPE: ENUM 1766s # value-production 1766s # VALUENAME: ENUM_VALUE 1766s # valuenick: value 1766s # valuenum: 0 1766s # type: enum 1766s # Type: Enum 1766s # TYPE: ENUM 1766s # value-tail 1766s # EnumName: SomeEnumIdentifier 1766s # enum_name: some_enum_identifier 1766s # ENUMNAME: SOME_ENUM_IDENTIFIER 1766s # ENUMSHORT: ENUM_IDENTIFIER 1766s # ENUMPREFIX: SOME 1766s # enumsince: 1766s # type: enum 1766s # Type: Enum 1766s # TYPE: ENUM 1766s # file-tail 1766s # 1766s # comment 1766s # comment: Generated data ends here 1766s # Error: 1766s ok 26 __main__.TestRspMkenums.test_enum_private_public 1766s # glib-mkenums: /usr/bin/glib-mkenums 1766s # tmpdir: /tmp/tmpd06div42 1766s # rspfile: True 1766s # /tmp/tmpd06div42/tmp4h4ftzgh.h: 1766s # typedef enum { 1766s # ENUM_VALUE_PUBLIC1, 1766s # /*< private >*/ 1766s # ENUM_VALUE_PRIVATE, 1766s # } SomeEnumA 1766s # 1766s # /tmp/tmpd06div42/tmp9655wezo.template: 1766s # /*** BEGIN file-header ***/ 1766s # file-header 1766s # /*** END file-header ***/ 1766s # 1766s # /*** BEGIN file-production ***/ 1766s # file-production 1766s # filename: @filename@ 1766s # basename: @basename@ 1766s # /*** END file-production ***/ 1766s # 1766s # /*** BEGIN enumeration-production ***/ 1766s # enumeration-production 1766s # EnumName: @EnumName@ 1766s # enum_name: @enum_name@ 1766s # ENUMNAME: @ENUMNAME@ 1766s # ENUMSHORT: @ENUMSHORT@ 1766s # ENUMPREFIX: @ENUMPREFIX@ 1766s # enumsince: @enumsince@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END enumeration-production ***/ 1766s # 1766s # /*** BEGIN value-header ***/ 1766s # value-header 1766s # EnumName: @EnumName@ 1766s # enum_name: @enum_name@ 1766s # ENUMNAME: @ENUMNAME@ 1766s # ENUMSHORT: @ENUMSHORT@ 1766s # ENUMPREFIX: @ENUMPREFIX@ 1766s # enumsince: @enumsince@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END value-header ***/ 1766s # 1766s # /*** BEGIN value-production ***/ 1766s # value-production 1766s # VALUENAME: @VALUENAME@ 1766s # valuenick: @valuenick@ 1766s # valuenum: @valuenum@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END value-production ***/ 1766s # 1766s # /*** BEGIN value-tail ***/ 1766s # value-tail 1766s # EnumName: @EnumName@ 1766s # enum_name: @enum_name@ 1766s # ENUMNAME: @ENUMNAME@ 1766s # ENUMSHORT: @ENUMSHORT@ 1766s # ENUMPREFIX: @ENUMPREFIX@ 1766s # enumsince: @enumsince@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END value-tail ***/ 1766s # 1766s # /*** BEGIN comment ***/ 1766s # comment 1766s # comment: @comment@ 1766s # /*** END comment ***/ 1766s # 1766s # /*** BEGIN file-tail ***/ 1766s # file-tail 1766s # /*** END file-tail ***/ 1766s # 1766s # Response file contains: --template /tmp/tmpd06div42/tmp9655wezo.template /tmp/tmpd06div42/tmp4h4ftzgh.h 1766s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpd06div42/tmpll0c92q7'] 1766s # Return code: 0 1766s # Output: 1766s # comment 1766s # comment: This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. 1766s # 1766s # 1766s # file-header 1766s # file-production 1766s # filename: /tmp/tmpd06div42/tmp4h4ftzgh.h 1766s # basename: tmp4h4ftzgh.h 1766s # enumeration-production 1766s # EnumName: SomeEnumA 1766s # enum_name: some_enum_a 1766s # ENUMNAME: SOME_ENUM_A 1766s # ENUMSHORT: ENUM_A 1766s # ENUMPREFIX: SOME 1766s # enumsince: 1766s # type: enum 1766s # Type: Enum 1766s # TYPE: ENUM 1766s # value-header 1766s # EnumName: SomeEnumA 1766s # enum_name: some_enum_a 1766s # ENUMNAME: SOME_ENUM_A 1766s # ENUMSHORT: ENUM_A 1766s # ENUMPREFIX: SOME 1766s # enumsince: 1766s # type: enum 1766s # Type: Enum 1766s # TYPE: ENUM 1766s # value-production 1766s # VALUENAME: ENUM_VALUE_PUBLIC1 1766s # valuenick: public1 1766s # valuenum: 0 1766s # type: enum 1766s # Type: Enum 1766s # TYPE: ENUM 1766s # value-tail 1766s # EnumName: SomeEnumA 1766s # enum_name: some_enum_a 1766s # ENUMNAME: SOME_ENUM_A 1766s # ENUMSHORT: ENUM_A 1766s # ENUMPREFIX: SOME 1766s # enumsince: 1766s # type: enum 1766s # Type: Enum 1766s # TYPE: ENUM 1766s # file-tail 1766s # 1766s # comment 1766s # comment: Generated data ends here 1766s # Error: 1766s # 1766s # /tmp/tmpd06div42/tmp9gipigrz.h: 1766s # typedef enum { 1766s # /*< private >*/ 1766s # ENUM_VALUE_PRIVATE, 1766s # /*< public >*/ 1766s # ENUM_VALUE_PUBLIC2, 1766s # } SomeEnumB; 1766s # 1766s # /tmp/tmpd06div42/tmpbwmleshx.template: 1766s # /*** BEGIN file-header ***/ 1766s # file-header 1766s # /*** END file-header ***/ 1766s # 1766s # /*** BEGIN file-production ***/ 1766s # file-production 1766s # filename: @filename@ 1766s # basename: @basename@ 1766s # /*** END file-production ***/ 1766s # 1766s # /*** BEGIN enumeration-production ***/ 1766s # enumeration-production 1766s # EnumName: @EnumName@ 1766s # enum_name: @enum_name@ 1766s # ENUMNAME: @ENUMNAME@ 1766s # ENUMSHORT: @ENUMSHORT@ 1766s # ENUMPREFIX: @ENUMPREFIX@ 1766s # enumsince: @enumsince@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END enumeration-production ***/ 1766s # 1766s # /*** BEGIN value-header ***/ 1766s # value-header 1766s # EnumName: @EnumName@ 1766s # enum_name: @enum_name@ 1766s # ENUMNAME: @ENUMNAME@ 1766s # ENUMSHORT: @ENUMSHORT@ 1766s # ENUMPREFIX: @ENUMPREFIX@ 1766s # enumsince: @enumsince@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END value-header ***/ 1766s # 1766s # /*** BEGIN value-production ***/ 1766s # value-production 1766s # VALUENAME: @VALUENAME@ 1766s # valuenick: @valuenick@ 1766s # valuenum: @valuenum@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END value-production ***/ 1766s # 1766s # /*** BEGIN value-tail ***/ 1766s # value-tail 1766s # EnumName: @EnumName@ 1766s # enum_name: @enum_name@ 1766s # ENUMNAME: @ENUMNAME@ 1766s # ENUMSHORT: @ENUMSHORT@ 1766s # ENUMPREFIX: @ENUMPREFIX@ 1766s # enumsince: @enumsince@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END value-tail ***/ 1766s # 1766s # /*** BEGIN comment ***/ 1766s # comment 1766s # comment: @comment@ 1766s # /*** END comment ***/ 1766s # 1766s # /*** BEGIN file-tail ***/ 1766s # file-tail 1766s # /*** END file-tail ***/ 1766s # 1766s # Response file contains: --template /tmp/tmpd06div42/tmpbwmleshx.template /tmp/tmpd06div42/tmp9gipigrz.h 1766s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpd06div42/tmp08xqf1u6'] 1766s # Return code: 0 1766s # Output: 1766s # comment 1766s # comment: This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. 1766s # 1766s # 1766s # file-header 1766s # file-production 1766s # filename: /tmp/tmpd06div42/tmp9gipigrz.h 1766s # basename: tmp9gipigrz.h 1766s # enumeration-production 1766s # EnumName: SomeEnumB 1766s # enum_name: some_enum_b 1766s # ENUMNAME: SOME_ENUM_B 1766s # ENUMSHORT: ENUM_B 1766s # ENUMPREFIX: SOME 1766s # enumsince: 1766s # type: enum 1766s # Type: Enum 1766s # TYPE: ENUM 1766s # value-header 1766s # EnumName: SomeEnumB 1766s # enum_name: some_enum_b 1766s # ENUMNAME: SOME_ENUM_B 1766s # ENUMSHORT: ENUM_B 1766s # ENUMPREFIX: SOME 1766s # enumsince: 1766s # type: enum 1766s # Type: Enum 1766s # TYPE: ENUM 1766s # value-production 1766s # VALUENAME: ENUM_VALUE_PUBLIC2 1766s # valuenick: public2 1766s # valuenum: 1 1766s # type: enum 1766s # Type: Enum 1766s # TYPE: ENUM 1766s # value-tail 1766s # EnumName: SomeEnumB 1766s # enum_name: some_enum_b 1766s # ENUMNAME: SOME_ENUM_B 1766s # ENUMSHORT: ENUM_B 1766s # ENUMPREFIX: SOME 1766s # enumsince: 1766s # type: enum 1766s # Type: Enum 1766s # TYPE: ENUM 1766s # file-tail 1766s # 1766s # comment 1766s # comment: Generated data ends here 1766s # Error: 1766s ok 27 __main__.TestRspMkenums.test_enum_symbolic_expression 1766s # glib-mkenums: /usr/bin/glib-mkenums 1766s # tmpdir: /tmp/tmp3d867x2y 1766s # rspfile: True 1766s # /tmp/tmp3d867x2y/tmpnpvh5aqb.h: 1766s # typedef enum { 1766s # /*< private >*/ 1766s # ENUM_VALUE_PRIVATE = 5, 1766s # /*< public >*/ 1766s # ENUM_VALUE_PUBLIC = ENUM_VALUE_PRIVATE + 2, 1766s # } TestSymbolicEnum; 1766s # 1766s # /tmp/tmp3d867x2y/tmp0pxbt5io.template: 1766s # /*** BEGIN file-header ***/ 1766s # file-header 1766s # /*** END file-header ***/ 1766s # 1766s # /*** BEGIN file-production ***/ 1766s # file-production 1766s # filename: @filename@ 1766s # basename: @basename@ 1766s # /*** END file-production ***/ 1766s # 1766s # /*** BEGIN enumeration-production ***/ 1766s # enumeration-production 1766s # EnumName: @EnumName@ 1766s # enum_name: @enum_name@ 1766s # ENUMNAME: @ENUMNAME@ 1766s # ENUMSHORT: @ENUMSHORT@ 1766s # ENUMPREFIX: @ENUMPREFIX@ 1766s # enumsince: @enumsince@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END enumeration-production ***/ 1766s # 1766s # /*** BEGIN value-header ***/ 1766s # value-header 1766s # EnumName: @EnumName@ 1766s # enum_name: @enum_name@ 1766s # ENUMNAME: @ENUMNAME@ 1766s # ENUMSHORT: @ENUMSHORT@ 1766s # ENUMPREFIX: @ENUMPREFIX@ 1766s # enumsince: @enumsince@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END value-header ***/ 1766s # 1766s # /*** BEGIN value-production ***/ 1766s # value-production 1766s # VALUENAME: @VALUENAME@ 1766s # valuenick: @valuenick@ 1766s # valuenum: @valuenum@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END value-production ***/ 1766s # 1766s # /*** BEGIN value-tail ***/ 1766s # value-tail 1766s # EnumName: @EnumName@ 1766s # enum_name: @enum_name@ 1766s # ENUMNAME: @ENUMNAME@ 1766s # ENUMSHORT: @ENUMSHORT@ 1766s # ENUMPREFIX: @ENUMPREFIX@ 1766s # enumsince: @enumsince@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END value-tail ***/ 1766s # 1766s # /*** BEGIN comment ***/ 1766s # comment 1766s # comment: @comment@ 1766s # /*** END comment ***/ 1766s # 1766s # /*** BEGIN file-tail ***/ 1766s # file-tail 1766s # /*** END file-tail ***/ 1766s # 1766s # Response file contains: --template /tmp/tmp3d867x2y/tmp0pxbt5io.template /tmp/tmp3d867x2y/tmpnpvh5aqb.h 1766s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp3d867x2y/tmpyuf4tm6d'] 1766s # Return code: 0 1766s # Output: 1766s # comment 1766s # comment: This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. 1766s # 1766s # 1766s # file-header 1766s # file-production 1766s # filename: /tmp/tmp3d867x2y/tmpnpvh5aqb.h 1766s # basename: tmpnpvh5aqb.h 1766s # enumeration-production 1766s # EnumName: TestSymbolicEnum 1766s # enum_name: test_symbolic_enum 1766s # ENUMNAME: TEST_SYMBOLIC_ENUM 1766s # ENUMSHORT: SYMBOLIC_ENUM 1766s # ENUMPREFIX: TEST 1766s # enumsince: 1766s # type: enum 1766s # Type: Enum 1766s # TYPE: ENUM 1766s # value-header 1766s # EnumName: TestSymbolicEnum 1766s # enum_name: test_symbolic_enum 1766s # ENUMNAME: TEST_SYMBOLIC_ENUM 1766s # ENUMSHORT: SYMBOLIC_ENUM 1766s # ENUMPREFIX: TEST 1766s # enumsince: 1766s # type: enum 1766s # Type: Enum 1766s # TYPE: ENUM 1766s # value-production 1766s # VALUENAME: ENUM_VALUE_PUBLIC 1766s # valuenick: public 1766s # valuenum: 7 1766s # type: enum 1766s # Type: Enum 1766s # TYPE: ENUM 1766s # value-tail 1766s # EnumName: TestSymbolicEnum 1766s # enum_name: test_symbolic_enum 1766s # ENUMNAME: TEST_SYMBOLIC_ENUM 1766s # ENUMSHORT: SYMBOLIC_ENUM 1766s # ENUMPREFIX: TEST 1766s # enumsince: 1766s # type: enum 1766s # Type: Enum 1766s # TYPE: ENUM 1766s # file-tail 1766s # 1766s # comment 1766s # comment: Generated data ends here 1766s # Error: 1766s ok 28 __main__.TestRspMkenums.test_filename_basename_in_fhead_ftail 1766s # glib-mkenums: /usr/bin/glib-mkenums 1766s # tmpdir: /tmp/tmp0nm72ohp 1766s # rspfile: True 1766s # /tmp/tmp0nm72ohp/tmpc87gz9rx.template: 1766s # /*** BEGIN file-header ***/ 1766s # file-header 1766s # filename: @filename@ 1766s # basename: @basename@ 1766s # /*** END file-header ***/ 1766s # 1766s # /*** BEGIN comment ***/ 1766s # comment 1766s # comment: @comment@ 1766s # /*** END comment ***/ 1766s # 1766s # /*** BEGIN file-tail ***/ 1766s # file-tail 1766s # filename: @filename@ 1766s # basename: @basename@ 1766s # /*** END file-tail ***/ 1766s # Response file contains: --template /tmp/tmp0nm72ohp/tmpc87gz9rx.template 1766s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp0nm72ohp/tmpy1k1y_k0'] 1766s # Return code: 0 1766s # Output: 1766s # comment 1766s # comment: This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. 1766s # 1766s # 1766s # file-header 1766s # filename: @filename@ 1766s # basename: @basename@ 1766s # file-tail 1766s # filename: @filename@ 1766s # basename: @basename@ 1766s # 1766s # comment 1766s # comment: Generated data ends here 1766s # Error: 1766s # WARNING: @filename@ used in file-header section. 1766s # WARNING: @basename@ used in file-header section. 1766s # WARNING: @filename@ used in file-tail section. 1766s # WARNING: @basename@ used in file-tail section. 1766s ok 29 __main__.TestRspMkenums.test_help 1766s # glib-mkenums: /usr/bin/glib-mkenums 1766s # tmpdir: /tmp/tmpl3bmo0k1 1766s # rspfile: True 1766s # Response file contains: --help 1766s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpl3bmo0k1/tmp5x5k8tfx'] 1766s # Return code: 0 1766s # Output: 1766s # usage: glib-mkenums [-h] [--identifier-prefix IDPREFIX] 1766s # [--symbol-prefix SYMPREFIX] [--fhead FHEAD] 1766s # [--ftail FTAIL] [--fprod FPROD] [--eprod EPROD] 1766s # [--vhead VHEAD] [--vprod VPROD] [--vtail VTAIL] 1766s # [--comments COMMENT_TMPL] [--template TEMPLATE] 1766s # [--output OUTPUT] [--version] 1766s # [args ...] 1766s # 1766s # positional arguments: 1766s # args One or more input files, or a single argument 1766s # @rspfile_path pointing to a file that contains the 1766s # actual arguments 1766s # 1766s # options: 1766s # -h, --help show this help message and exit 1766s # --identifier-prefix IDPREFIX 1766s # Identifier prefix 1766s # --symbol-prefix SYMPREFIX 1766s # Symbol prefix 1766s # --fhead FHEAD Output file header 1766s # --ftail FTAIL Output file footer 1766s # --fprod FPROD Put out TEXT every time a new input file is being 1766s # processed. 1766s # --eprod EPROD Per enum text, produced prior to value iterations 1766s # --vhead VHEAD Value header, produced before iterating over enum 1766s # values 1766s # --vprod VPROD Value text, produced for each enum value. 1766s # --vtail VTAIL Value tail, produced after iterating over enum values 1766s # --comments COMMENT_TMPL 1766s # Comment structure 1766s # --template TEMPLATE Template file 1766s # --output OUTPUT 1766s # --version, -v Print version information 1766s # 1766s # Production text substitutions: 1766s # @EnumName@ PrefixTheXEnum 1766s # @enum_name@ prefix_the_xenum 1766s # @ENUMNAME@ PREFIX_THE_XENUM 1766s # @ENUMSHORT@ THE_XENUM 1766s # @ENUMPREFIX@ PREFIX 1766s # @enumsince@ the user-provided since value given 1766s # @VALUENAME@ PREFIX_THE_XVALUE 1766s # @valuenick@ the-xvalue 1766s # @valuenum@ the integer value (limited support, Since: 2.26) 1766s # @type@ either enum or flags 1766s # @Type@ either Enum or Flags 1766s # @TYPE@ either ENUM or FLAGS 1766s # @filename@ name of current input file 1766s # @basename@ base name of the current input file (Since: 2.22) 1766s # Error: 1766s ok 30 __main__.TestRspMkenums.test_no_args 1766s # glib-mkenums: /usr/bin/glib-mkenums 1766s # tmpdir: /tmp/tmph7tij4um 1766s # rspfile: True 1766s # Response file contains: 1766s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmph7tij4um/tmp0trj8dp1'] 1766s # Return code: 0 1766s # Output: 1766s # /* This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */ 1766s # 1766s # 1766s # /* Generated data ends here */ 1766s # Error: 1766s # Executing: glib/mkenums.py.test 1766s ok 31 __main__.TestRspMkenums.test_no_headers 1766s # glib-mkenums: /usr/bin/glib-mkenums 1766s # tmpdir: /tmp/tmpm4j0k44y 1766s # rspfile: True 1766s # /tmp/tmpm4j0k44y/tmp4b9g0qfx.template: 1766s # /*** BEGIN file-header ***/ 1766s # file-header 1766s # /*** END file-header ***/ 1766s # 1766s # /*** BEGIN file-production ***/ 1766s # file-production 1766s # filename: @filename@ 1766s # basename: @basename@ 1766s # /*** END file-production ***/ 1766s # 1766s # /*** BEGIN enumeration-production ***/ 1766s # enumeration-production 1766s # EnumName: @EnumName@ 1766s # enum_name: @enum_name@ 1766s # ENUMNAME: @ENUMNAME@ 1766s # ENUMSHORT: @ENUMSHORT@ 1766s # ENUMPREFIX: @ENUMPREFIX@ 1766s # enumsince: @enumsince@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END enumeration-production ***/ 1766s # 1766s # /*** BEGIN value-header ***/ 1766s # value-header 1766s # EnumName: @EnumName@ 1766s # enum_name: @enum_name@ 1766s # ENUMNAME: @ENUMNAME@ 1766s # ENUMSHORT: @ENUMSHORT@ 1766s # ENUMPREFIX: @ENUMPREFIX@ 1766s # enumsince: @enumsince@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END value-header ***/ 1766s # 1766s # /*** BEGIN value-production ***/ 1766s # value-production 1766s # VALUENAME: @VALUENAME@ 1766s # valuenick: @valuenick@ 1766s # valuenum: @valuenum@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END value-production ***/ 1766s # 1766s # /*** BEGIN value-tail ***/ 1766s # value-tail 1766s # EnumName: @EnumName@ 1766s # enum_name: @enum_name@ 1766s # ENUMNAME: @ENUMNAME@ 1766s # ENUMSHORT: @ENUMSHORT@ 1766s # ENUMPREFIX: @ENUMPREFIX@ 1766s # enumsince: @enumsince@ 1766s # type: @type@ 1766s # Type: @Type@ 1766s # TYPE: @TYPE@ 1766s # /*** END value-tail ***/ 1766s # 1766s # /*** BEGIN comment ***/ 1766s # comment 1766s # comment: @comment@ 1766s # /*** END comment ***/ 1766s # 1766s # /*** BEGIN file-tail ***/ 1766s # file-tail 1766s # /*** END file-tail ***/ 1766s # 1766s # Response file contains: --template /tmp/tmpm4j0k44y/tmp4b9g0qfx.template 1766s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpm4j0k44y/tmp4obhxnjm'] 1766s # Return code: 0 1766s # Output: 1766s # comment 1766s # comment: This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. 1766s # 1766s # 1766s # file-header 1766s # file-tail 1766s # 1766s # comment 1766s # comment: Generated data ends here 1766s # Error: 1767s ok 32 __main__.TestRspMkenums.test_no_nick 1767s # glib-mkenums: /usr/bin/glib-mkenums 1767s # tmpdir: /tmp/tmpjnbaz0qf 1767s # rspfile: True 1767s # /tmp/tmpjnbaz0qf/tmpcxn8n_xj.h: 1767s # typedef enum { 1767s # GEGL_SAMPLER_NEAREST = 0, /*< desc="nearest" >*/ 1767s # } GeglSamplerType; 1767s # 1767s # /tmp/tmpjnbaz0qf/tmpxivtgine.template: 1767s # /*** BEGIN file-header ***/ 1767s # file-header 1767s # /*** END file-header ***/ 1767s # 1767s # /*** BEGIN file-production ***/ 1767s # file-production 1767s # filename: @filename@ 1767s # basename: @basename@ 1767s # /*** END file-production ***/ 1767s # 1767s # /*** BEGIN enumeration-production ***/ 1767s # enumeration-production 1767s # EnumName: @EnumName@ 1767s # enum_name: @enum_name@ 1767s # ENUMNAME: @ENUMNAME@ 1767s # ENUMSHORT: @ENUMSHORT@ 1767s # ENUMPREFIX: @ENUMPREFIX@ 1767s # enumsince: @enumsince@ 1767s # type: @type@ 1767s # Type: @Type@ 1767s # TYPE: @TYPE@ 1767s # /*** END enumeration-production ***/ 1767s # 1767s # /*** BEGIN value-header ***/ 1767s # value-header 1767s # EnumName: @EnumName@ 1767s # enum_name: @enum_name@ 1767s # ENUMNAME: @ENUMNAME@ 1767s # ENUMSHORT: @ENUMSHORT@ 1767s # ENUMPREFIX: @ENUMPREFIX@ 1767s # enumsince: @enumsince@ 1767s # type: @type@ 1767s # Type: @Type@ 1767s # TYPE: @TYPE@ 1767s # /*** END value-header ***/ 1767s # 1767s # /*** BEGIN value-production ***/ 1767s # value-production 1767s # VALUENAME: @VALUENAME@ 1767s # valuenick: @valuenick@ 1767s # valuenum: @valuenum@ 1767s # type: @type@ 1767s # Type: @Type@ 1767s # TYPE: @TYPE@ 1767s # /*** END value-production ***/ 1767s # 1767s # /*** BEGIN value-tail ***/ 1767s # value-tail 1767s # EnumName: @EnumName@ 1767s # enum_name: @enum_name@ 1767s # ENUMNAME: @ENUMNAME@ 1767s # ENUMSHORT: @ENUMSHORT@ 1767s # ENUMPREFIX: @ENUMPREFIX@ 1767s # enumsince: @enumsince@ 1767s # type: @type@ 1767s # Type: @Type@ 1767s # TYPE: @TYPE@ 1767s # /*** END value-tail ***/ 1767s # 1767s # /*** BEGIN comment ***/ 1767s # comment 1767s # comment: @comment@ 1767s # /*** END comment ***/ 1767s # 1767s # /*** BEGIN file-tail ***/ 1767s # file-tail 1767s # /*** END file-tail ***/ 1767s # 1767s # Response file contains: --template /tmp/tmpjnbaz0qf/tmpxivtgine.template /tmp/tmpjnbaz0qf/tmpcxn8n_xj.h 1767s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpjnbaz0qf/tmpx5rs5zt4'] 1767s # Return code: 0 1767s # Output: 1767s # comment 1767s # comment: This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. 1767s # 1767s # 1767s # file-header 1767s # file-production 1767s # filename: /tmp/tmpjnbaz0qf/tmpcxn8n_xj.h 1767s # basename: tmpcxn8n_xj.h 1767s # enumeration-production 1767s # EnumName: GeglSamplerType 1767s # enum_name: gegl_sampler_type 1767s # ENUMNAME: GEGL_SAMPLER_TYPE 1767s # ENUMSHORT: SAMPLER_TYPE 1767s # ENUMPREFIX: GEGL 1767s # enumsince: 1767s # type: enum 1767s # Type: Enum 1767s # TYPE: ENUM 1767s # value-header 1767s # EnumName: GeglSamplerType 1767s # enum_name: gegl_sampler_type 1767s # ENUMNAME: GEGL_SAMPLER_TYPE 1767s # ENUMSHORT: SAMPLER_TYPE 1767s # ENUMPREFIX: GEGL 1767s # enumsince: 1767s # type: enum 1767s # Type: Enum 1767s # TYPE: ENUM 1767s # value-production 1767s # VALUENAME: GEGL_SAMPLER_NEAREST 1767s # valuenick: nearest 1767s # valuenum: 0 1767s # type: enum 1767s # Type: Enum 1767s # TYPE: ENUM 1767s # value-tail 1767s # EnumName: GeglSamplerType 1767s # enum_name: gegl_sampler_type 1767s # ENUMNAME: GEGL_SAMPLER_TYPE 1767s # ENUMSHORT: SAMPLER_TYPE 1767s # ENUMPREFIX: GEGL 1767s # enumsince: 1767s # type: enum 1767s # Type: Enum 1767s # TYPE: ENUM 1767s # file-tail 1767s # 1767s # comment 1767s # comment: Generated data ends here 1767s # Error: 1767s ok 33 __main__.TestRspMkenums.test_non_utf8_encoding 1767s # glib-mkenums: /usr/bin/glib-mkenums 1767s # tmpdir: /tmp/tmpe5wicsog 1767s # rspfile: True 1767s # /tmp/tmpe5wicsog/tmp0yqnsg9b.h: 1767s # /* Copyright © La Peña */ 1767s # typedef enum { 1767s # ENUM_VALUE 1767s # } SomeEnumIdentifier; 1767s # 1767s # /tmp/tmpe5wicsog/tmp9u7xdfd2.template: 1767s # /*** BEGIN file-header ***/ 1767s # file-header 1767s # /*** END file-header ***/ 1767s # 1767s # /*** BEGIN file-production ***/ 1767s # file-production 1767s # filename: @filename@ 1767s # basename: @basename@ 1767s # /*** END file-production ***/ 1767s # 1767s # /*** BEGIN enumeration-production ***/ 1767s # enumeration-production 1767s # EnumName: @EnumName@ 1767s # enum_name: @enum_name@ 1767s # ENUMNAME: @ENUMNAME@ 1767s # ENUMSHORT: @ENUMSHORT@ 1767s # ENUMPREFIX: @ENUMPREFIX@ 1767s # enumsince: @enumsince@ 1767s # type: @type@ 1767s # Type: @Type@ 1767s # TYPE: @TYPE@ 1767s # /*** END enumeration-production ***/ 1767s # 1767s # /*** BEGIN value-header ***/ 1767s # value-header 1767s # EnumName: @EnumName@ 1767s # enum_name: @enum_name@ 1767s # ENUMNAME: @ENUMNAME@ 1767s # ENUMSHORT: @ENUMSHORT@ 1767s # ENUMPREFIX: @ENUMPREFIX@ 1767s # enumsince: @enumsince@ 1767s # type: @type@ 1767s # Type: @Type@ 1767s # TYPE: @TYPE@ 1767s # /*** END value-header ***/ 1767s # 1767s # /*** BEGIN value-production ***/ 1767s # value-production 1767s # VALUENAME: @VALUENAME@ 1767s # valuenick: @valuenick@ 1767s # valuenum: @valuenum@ 1767s # type: @type@ 1767s # Type: @Type@ 1767s # TYPE: @TYPE@ 1767s # /*** END value-production ***/ 1767s # 1767s # /*** BEGIN value-tail ***/ 1767s # value-tail 1767s # EnumName: @EnumName@ 1767s # enum_name: @enum_name@ 1767s # ENUMNAME: @ENUMNAME@ 1767s # ENUMSHORT: @ENUMSHORT@ 1767s # ENUMPREFIX: @ENUMPREFIX@ 1767s # enumsince: @enumsince@ 1767s # type: @type@ 1767s # Type: @Type@ 1767s # TYPE: @TYPE@ 1767s # /*** END value-tail ***/ 1767s # 1767s # /*** BEGIN comment ***/ 1767s # comment 1767s # comment: @comment@ 1767s # /*** END comment ***/ 1767s # 1767s # /*** BEGIN file-tail ***/ 1767s # file-tail 1767s # /*** END file-tail ***/ 1767s # 1767s # Response file contains: --template /tmp/tmpe5wicsog/tmp9u7xdfd2.template /tmp/tmpe5wicsog/tmp0yqnsg9b.h 1767s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpe5wicsog/tmp5owqtzh4'] 1767s # Return code: 0 1767s # Output: 1767s # comment 1767s # comment: This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. 1767s # 1767s # 1767s # file-header 1767s # file-production 1767s # filename: /tmp/tmpe5wicsog/tmp0yqnsg9b.h 1767s # basename: tmp0yqnsg9b.h 1767s # enumeration-production 1767s # EnumName: SomeEnumIdentifier 1767s # enum_name: some_enum_identifier 1767s # ENUMNAME: SOME_ENUM_IDENTIFIER 1767s # ENUMSHORT: ENUM_IDENTIFIER 1767s # ENUMPREFIX: SOME 1767s # enumsince: 1767s # type: enum 1767s # Type: Enum 1767s # TYPE: ENUM 1767s # value-header 1767s # EnumName: SomeEnumIdentifier 1767s # enum_name: some_enum_identifier 1767s # ENUMNAME: SOME_ENUM_IDENTIFIER 1767s # ENUMSHORT: ENUM_IDENTIFIER 1767s # ENUMPREFIX: SOME 1767s # enumsince: 1767s # type: enum 1767s # Type: Enum 1767s # TYPE: ENUM 1767s # value-production 1767s # VALUENAME: ENUM_VALUE 1767s # valuenick: value 1767s # valuenum: 0 1767s # type: enum 1767s # Type: Enum 1767s # TYPE: ENUM 1767s # value-tail 1767s # EnumName: SomeEnumIdentifier 1767s # enum_name: some_enum_identifier 1767s # ENUMNAME: SOME_ENUM_IDENTIFIER 1767s # ENUMSHORT: ENUM_IDENTIFIER 1767s # ENUMPREFIX: SOME 1767s # enumsince: 1767s # type: enum 1767s # Type: Enum 1767s # TYPE: ENUM 1767s # file-tail 1767s # 1767s # comment 1767s # comment: Generated data ends here 1767s # Error: 1767s # WARNING: UnicodeWarning: invalid start byte at 22 (b'yright \xa9 La Pe\xf1') 1767s # WARNING: UnicodeWarning: invalid continuation byte at 29 (b'\xa9 La Pe\xf1a */\n ') 1767s ok 34 __main__.TestRspMkenums.test_reproducible 1767s # glib-mkenums: /usr/bin/glib-mkenums 1767s # tmpdir: /tmp/tmpa1iwrrut 1767s # rspfile: True 1767s # /tmp/tmpa1iwrrut/tmpk83o60tb.template: template 1767s # Response file contains: --template /tmp/tmpa1iwrrut/tmpk83o60tb.template /tmp/tmpa1iwrrut/tmpul0175lp1.h /tmp/tmpa1iwrrut/tmprzl1b2aq2.h 1767s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpa1iwrrut/tmp650dg6fk'] 1767s # Return code: 0 1767s # Output: 1767s # /* This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */ 1767s # 1767s # 1767s # /* Generated data ends here */ 1767s # Error: 1767s # 1767s # /tmp/tmpa1iwrrut/tmpzjj09kh2.template: template 1767s # Response file contains: --template /tmp/tmpa1iwrrut/tmpzjj09kh2.template /tmp/tmpa1iwrrut/tmprzl1b2aq2.h /tmp/tmpa1iwrrut/tmpul0175lp1.h 1767s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpa1iwrrut/tmp0_xqyh1q'] 1767s # Return code: 0 1767s # Output: 1767s # /* This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */ 1767s # 1767s # 1767s # /* Generated data ends here */ 1767s # Error: 1767s ok 35 __main__.TestRspMkenums.test_since 1767s # glib-mkenums: /usr/bin/glib-mkenums 1767s # tmpdir: /tmp/tmpdc4p2kb6 1767s # rspfile: True 1767s # /tmp/tmpdc4p2kb6/tmpkp1p16tj.h: 1767s # typedef enum { /*< since=1.0 >*/ 1767s # QMI_WMS_MESSAGE_PROTOCOL_CDMA = 0, 1767s # } QmiWmsMessageProtocol; 1767s # 1767s # /tmp/tmpdc4p2kb6/tmpl0kpowem.template: 1767s # /*** BEGIN file-header ***/ 1767s # file-header 1767s # /*** END file-header ***/ 1767s # 1767s # /*** BEGIN file-production ***/ 1767s # file-production 1767s # filename: @filename@ 1767s # basename: @basename@ 1767s # /*** END file-production ***/ 1767s # 1767s # /*** BEGIN enumeration-production ***/ 1767s # enumeration-production 1767s # EnumName: @EnumName@ 1767s # enum_name: @enum_name@ 1767s # ENUMNAME: @ENUMNAME@ 1767s # ENUMSHORT: @ENUMSHORT@ 1767s # ENUMPREFIX: @ENUMPREFIX@ 1767s # enumsince: @enumsince@ 1767s # type: @type@ 1767s # Type: @Type@ 1767s # TYPE: @TYPE@ 1767s # /*** END enumeration-production ***/ 1767s # 1767s # /*** BEGIN value-header ***/ 1767s # value-header 1767s # EnumName: @EnumName@ 1767s # enum_name: @enum_name@ 1767s # ENUMNAME: @ENUMNAME@ 1767s # ENUMSHORT: @ENUMSHORT@ 1767s # ENUMPREFIX: @ENUMPREFIX@ 1767s # enumsince: @enumsince@ 1767s # type: @type@ 1767s # Type: @Type@ 1767s # TYPE: @TYPE@ 1767s # /*** END value-header ***/ 1767s # 1767s # /*** BEGIN value-production ***/ 1767s # value-production 1767s # VALUENAME: @VALUENAME@ 1767s # valuenick: @valuenick@ 1767s # valuenum: @valuenum@ 1767s # type: @type@ 1767s # Type: @Type@ 1767s # TYPE: @TYPE@ 1767s # /*** END value-production ***/ 1767s # 1767s # /*** BEGIN value-tail ***/ 1767s # value-tail 1767s # EnumName: @EnumName@ 1767s # enum_name: @enum_name@ 1767s # ENUMNAME: @ENUMNAME@ 1767s # ENUMSHORT: @ENUMSHORT@ 1767s # ENUMPREFIX: @ENUMPREFIX@ 1767s # enumsince: @enumsince@ 1767s # type: @type@ 1767s # Type: @Type@ 1767s # TYPE: @TYPE@ 1767s # /*** END value-tail ***/ 1767s # 1767s # /*** BEGIN comment ***/ 1767s # comment 1767s # comment: @comment@ 1767s # /*** END comment ***/ 1767s # 1767s # /*** BEGIN file-tail ***/ 1767s # file-tail 1767s # /*** END file-tail ***/ 1767s # 1767s # Response file contains: --template /tmp/tmpdc4p2kb6/tmpl0kpowem.template /tmp/tmpdc4p2kb6/tmpkp1p16tj.h 1767s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpdc4p2kb6/tmpq_4yra18'] 1767s # Return code: 0 1767s # Output: 1767s # comment 1767s # comment: This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. 1767s # 1767s # 1767s # file-header 1767s # file-production 1767s # filename: /tmp/tmpdc4p2kb6/tmpkp1p16tj.h 1767s # basename: tmpkp1p16tj.h 1767s # enumeration-production 1767s # EnumName: QmiWmsMessageProtocol 1767s # enum_name: qmi_wms_message_protocol 1767s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1767s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1767s # ENUMPREFIX: QMI 1767s # enumsince: 1.0 1767s # type: enum 1767s # Type: Enum 1767s # TYPE: ENUM 1767s # value-header 1767s # EnumName: QmiWmsMessageProtocol 1767s # enum_name: qmi_wms_message_protocol 1767s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1767s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1767s # ENUMPREFIX: QMI 1767s # enumsince: 1.0 1767s # type: enum 1767s # Type: Enum 1767s # TYPE: ENUM 1767s # value-production 1767s # VALUENAME: QMI_WMS_MESSAGE_PROTOCOL_CDMA 1767s # valuenick: cdma 1767s # valuenum: 0 1767s # type: enum 1767s # Type: Enum 1767s # TYPE: ENUM 1767s # value-tail 1767s # EnumName: QmiWmsMessageProtocol 1767s # enum_name: qmi_wms_message_protocol 1767s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1767s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1767s # ENUMPREFIX: QMI 1767s # enumsince: 1.0 1767s # type: enum 1767s # Type: Enum 1767s # TYPE: ENUM 1767s # file-tail 1767s # 1767s # comment 1767s # comment: Generated data ends here 1767s # Error: 1767s ok 36 __main__.TestRspMkenums.test_with_double_quotes 1767s # glib-mkenums: /usr/bin/glib-mkenums 1767s # tmpdir: /tmp/tmpayqa_dxb 1767s # rspfile: True 1767s # /tmp/tmpayqa_dxb/tmp697nfsp9.h: 1767s # typedef enum { 1767s # FOO_VALUE /*< nick="eek, a comma" >*/ 1767s # } Foo; 1767s # 1767s # /tmp/tmpayqa_dxb/tmpv7nbq4i0.template: 1767s # /*** BEGIN file-header ***/ 1767s # file-header 1767s # /*** END file-header ***/ 1767s # 1767s # /*** BEGIN file-production ***/ 1767s # file-production 1767s # filename: @filename@ 1767s # basename: @basename@ 1767s # /*** END file-production ***/ 1767s # 1767s # /*** BEGIN enumeration-production ***/ 1767s # enumeration-production 1767s # EnumName: @EnumName@ 1767s # enum_name: @enum_name@ 1767s # ENUMNAME: @ENUMNAME@ 1767s # ENUMSHORT: @ENUMSHORT@ 1767s # ENUMPREFIX: @ENUMPREFIX@ 1767s # enumsince: @enumsince@ 1767s # type: @type@ 1767s # Type: @Type@ 1767s # TYPE: @TYPE@ 1767s # /*** END enumeration-production ***/ 1767s # 1767s # /*** BEGIN value-header ***/ 1767s # value-header 1767s # EnumName: @EnumName@ 1767s # enum_name: @enum_name@ 1767s # ENUMNAME: @ENUMNAME@ 1767s # ENUMSHORT: @ENUMSHORT@ 1767s # ENUMPREFIX: @ENUMPREFIX@ 1767s # enumsince: @enumsince@ 1767s # type: @type@ 1767s # Type: @Type@ 1767s # TYPE: @TYPE@ 1767s # /*** END value-header ***/ 1767s # 1767s # /*** BEGIN value-production ***/ 1767s # value-production 1767s # VALUENAME: @VALUENAME@ 1767s # valuenick: @valuenick@ 1767s # valuenum: @valuenum@ 1767s # type: @type@ 1767s # Type: @Type@ 1767s # TYPE: @TYPE@ 1767s # /*** END value-production ***/ 1767s # 1767s # /*** BEGIN value-tail ***/ 1767s # value-tail 1767s # EnumName: @EnumName@ 1767s # enum_name: @enum_name@ 1767s # ENUMNAME: @ENUMNAME@ 1767s # ENUMSHORT: @ENUMSHORT@ 1767s # ENUMPREFIX: @ENUMPREFIX@ 1767s # enumsince: @enumsince@ 1767s # type: @type@ 1767s # Type: @Type@ 1767s # TYPE: @TYPE@ 1767s # /*** END value-tail ***/ 1767s # 1767s # /*** BEGIN comment ***/ 1767s # comment 1767s # comment: @comment@ 1767s # /*** END comment ***/ 1767s # 1767s # /*** BEGIN file-tail ***/ 1767s # file-tail 1767s # /*** END file-tail ***/ 1767s # 1767s # Response file contains: --template /tmp/tmpayqa_dxb/tmpv7nbq4i0.template /tmp/tmpayqa_dxb/tmp697nfsp9.h 1767s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpayqa_dxb/tmpxsko_3wc'] 1767s # Return code: 0 1767s # Output: 1767s # comment 1767s # comment: This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. 1767s # 1767s # 1767s # file-header 1767s # file-production 1767s # filename: /tmp/tmpayqa_dxb/tmp697nfsp9.h 1767s # basename: tmp697nfsp9.h 1767s # enumeration-production 1767s # EnumName: Foo 1767s # enum_name: foo_ 1767s # ENUMNAME: FOO_ 1767s # ENUMSHORT: 1767s # ENUMPREFIX: FOO 1767s # enumsince: 1767s # type: enum 1767s # Type: Enum 1767s # TYPE: ENUM 1767s # value-header 1767s # EnumName: Foo 1767s # enum_name: foo_ 1767s # ENUMNAME: FOO_ 1767s # ENUMSHORT: 1767s # ENUMPREFIX: FOO 1767s # enumsince: 1767s # type: enum 1767s # Type: Enum 1767s # TYPE: ENUM 1767s # value-production 1767s # VALUENAME: FOO_VALUE 1767s # valuenick: eek, a comma 1767s # valuenum: 0 1767s # type: enum 1767s # Type: Enum 1767s # TYPE: ENUM 1767s # value-tail 1767s # EnumName: Foo 1767s # enum_name: foo_ 1767s # ENUMNAME: FOO_ 1767s # ENUMSHORT: 1767s # ENUMPREFIX: FOO 1767s # enumsince: 1767s # type: enum 1767s # Type: Enum 1767s # TYPE: ENUM 1767s # file-tail 1767s # 1767s # comment 1767s # comment: Generated data ends here 1767s # Error: 1767s 1..36 1767s ok - glib/mkenums.py.test 1767s # Running test: glib/signals-refcount4.test 1767s TAP version 14 1767s # random seed: R02See9fcad79e9ad066b0d9f8255c4110a2 1767s 1..1 1767s # Start of gobject tests 1767s # Start of refcount tests 1767s # init 0x5dccc90 1767s # 1767s # init 0x5dd3510 1767s # 1771s # Executing: glib/signals-refcount4.test 1772s # dispose 0x5dccc90! 1772s # 1772s # dispose 0x5dd3510! 1772s # 1772s ok 1 /gobject/refcount/signals 1772s # slow test /gobject/refcount/signals executed in 5.00 secs 1772s # End of refcount tests 1772s # End of gobject tests 1772s ok - glib/signals-refcount4.test 1772s # Running test: glib/atomic-c-17.test 1772s TAP version 14 1772s # random seed: R02S7508b888c2a9dd62736020bbccb12961 1772s 1..2 1772s # Start of atomic tests 1772s ok 1 /atomic/types 1773s ok 2 /atomic/threaded 1773s # End of atomic tests 1773s ok - glib/atomic-c-17.test 1773s # Running test: glib/gdbus-subscribe.test 1773s ok - glib/gdbus-subscribe.test 1773s # Running test: glib/win32-appinfo.test 1773s ok - glib/win32-appinfo.test 1773s # Running test: glib/gmenumodel.test 1773s TAP version 14 1773s # random seed: R02S043907300d9aadcee653a4db120ec7c5 1773s 1..24 1773s # Start of gdbus tests 1773s # Start of subscribe tests 1773s # Start of conn tests 1773s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/simple/.dirs/home 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/simple/.dirs/cache 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/simple/.dirs/system-config2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/simple/.dirs/config 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/simple/.dirs/system-data2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/simple/.dirs/data 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/simple/.dirs/state 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/simple/.dirs/runtime 1773s # subscriber is :1.0 1773s # service is :1.1 1773s # service 2 is :1.2 1773s # attacker is :1.3 1773s # Waiting for AddMatch to be processed 1773s # /gdbus/subscribe/conn/simple summary: A broadcast is only received after subscribing to it 1773s # Step 0: emitting signal 1773s # Sender: service 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Step 1: adding subscription 1773s # Sender: (any) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Subscribing via connection 1773s # Waiting for AddMatch to be processed 1773s # Step 2: emitting signal 1773s # Sender: service 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via connection 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 2 1773s # Received Finished signal from subscriber :1.0 1773s # Received Finished signal from service :1.1 1773s # Received Finished signal from service 2 :1.2 1773s # Received Finished signal from attacker :1.3 1773s # Signal from step 0 was received 0 times by GDBusConnection, expected 0 1773s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s ok 1 /gdbus/subscribe/conn/simple 1773s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/home 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/cache 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-config2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/config 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-data2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/data 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/state 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/runtime 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1773s # subscriber is :1.0 1773s # service is :1.1 1773s # service 2 is :1.2 1773s # attacker is :1.3 1773s # Waiting for AddMatch to be processed 1773s # /gdbus/subscribe/conn/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 1773s # Step 0: adding subscription 1773s # Sender: (any) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Subscribing via connection 1773s # Waiting for AddMatch to be processed 1773s # Step 1: emitting signal 1773s # Sender: service 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Step 2: emitting signal 1773s # Sender: service 2 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Step 3: emitting signal 1773s # Sender: service 1773s # Destination: subscriber :1.0 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Step 4: emitting signal 1773s # Sender: service 2 1773s # Destination: subscriber :1.0 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via connection 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 1 1773s # Signal received from service 2 :1.2 1773s # Signal received from service 2 :1.2 via connection 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 2 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via connection 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 3 1773s # Signal received from service 2 :1.2 1773s # Signal received from service 2 :1.2 via connection 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 4 1773s # Received Finished signal from subscriber :1.0 1773s # Received Finished signal from service :1.1 1773s # Received Finished signal from service 2 :1.2 1773s # Received Finished signal from attacker :1.3 1773s # Signal from step 1 was received 1 times by GDBusConnection, expected 1 1773s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 1773s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 1773s # Signal from step 4 was received 1 times by GDBusConnection, expected 1 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s ok 2 /gdbus/subscribe/conn/broadcast_from_anyone 1773s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/match_twice/.dirs/home 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/match_twice/.dirs/cache 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/match_twice/.dirs/system-config2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/match_twice/.dirs/config 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/match_twice/.dirs/system-data2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/match_twice/.dirs/data 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/match_twice/.dirs/state 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/match_twice/.dirs/runtime 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1773s # subscriber is :1.0 1773s # service is :1.1 1773s # service 2 is :1.2 1773s # attacker is :1.3 1773s # Waiting for AddMatch to be processed 1773s # /gdbus/subscribe/conn/match_twice summary: A message matching more than one subscription is received once per subscription 1773s # Step 0: adding subscription 1773s # Sender: service :1.1 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Subscribing via connection 1773s # Waiting for AddMatch to be processed 1773s # Step 1: adding subscription 1773s # Sender: (any) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: (any) 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Subscribing via connection 1773s # Waiting for AddMatch to be processed 1773s # Step 2: adding subscription 1773s # Sender: (any) 1773s # Path: (any) 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Subscribing via connection 1773s # Waiting for AddMatch to be processed 1773s # Step 3: adding subscription 1773s # Sender: service :1.1 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Subscribing via connection 1773s # Waiting for AddMatch to be processed 1773s # Step 4: emitting signal 1773s # Sender: service 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via connection 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 4 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via connection 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 4 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via connection 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 4 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via connection 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 4 1773s # Received Finished signal from subscriber :1.0 1773s # Received Finished signal from service :1.1 1773s # Received Finished signal from service 2 :1.2 1773s # Received Finished signal from attacker :1.3 1773s # Signal from step 4 was received 4 times by GDBusConnection, expected 4 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s ok 3 /gdbus/subscribe/conn/match_twice 1773s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/home 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/cache 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-config2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/config 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-data2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/data 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/state 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/runtime 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1773s # subscriber is :1.0 1773s # service is :1.1 1773s # service 2 is :1.2 1773s # attacker is :1.3 1773s # Waiting for AddMatch to be processed 1773s # /gdbus/subscribe/conn/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 1773s # Step 0: adding subscription 1773s # Sender: service :1.1 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Subscribing via connection 1773s # Waiting for AddMatch to be processed 1773s # Step 1: emitting signal 1773s # Sender: attacker 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Step 2: emitting signal 1773s # Sender: attacker 1773s # Destination: subscriber :1.0 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Step 3: emitting signal 1773s # Sender: service 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via connection 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 3 1773s # Received Finished signal from subscriber :1.0 1773s # Received Finished signal from service :1.1 1773s # Received Finished signal from service 2 :1.2 1773s # Received Finished signal from attacker :1.3 1773s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1773s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1773s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s ok 4 /gdbus/subscribe/conn/limit_by_unique_name 1773s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/home 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/cache 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-config2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/config 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-data2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/data 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/state 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/runtime 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1773s # subscriber is :1.0 1773s # service is :1.1 1773s # service 2 is :1.2 1773s # attacker is :1.3 1773s # Waiting for AddMatch to be processed 1773s # /gdbus/subscribe/conn/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 1773s # Step 0: adding subscription 1773s # Sender: :0.this.had.better.not.exist 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Subscribing via connection 1773s # Waiting for AddMatch to be processed 1773s # Step 1: emitting signal 1773s # Sender: attacker 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Step 2: emitting signal 1773s # Sender: attacker 1773s # Destination: subscriber :1.0 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Received Finished signal from subscriber :1.0 1773s # Received Finished signal from service :1.1 1773s # Received Finished signal from service 2 :1.2 1773s # Received Finished signal from attacker :1.3 1773s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1773s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s ok 5 /gdbus/subscribe/conn/nonexistent_unique_name 1773s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/home 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/cache 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-config2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/config 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-data2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/data 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/state 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/runtime 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1773s # subscriber is :1.0 1773s # service is :1.1 1773s # service 2 is :1.2 1773s # attacker is :1.3 1773s # Waiting for AddMatch to be processed 1773s # /gdbus/subscribe/conn/limit_by_well_known_name summary: A subscription via a well-known name only accepts messages sent by the owner of that well-known name 1773s # Step 0: claiming bus name 1773s # Name: org.gtk.Test.AlreadyOwned 1773s # Owner: service 1773s # Step 1: adding subscription 1773s # Sender: org.gtk.Test.AlreadyOwned 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Subscribing via connection 1773s # Waiting for AddMatch to be processed 1773s # Step 2: adding subscription 1773s # Sender: org.gtk.Test.OwnedLater 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Subscribing via connection 1773s # Waiting for AddMatch to be processed 1773s # Step 3: emitting signal 1773s # Sender: attacker 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Step 4: emitting signal 1773s # Sender: attacker 1773s # Destination: subscriber :1.0 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Step 5: emitting signal 1773s # Sender: service 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Step 6: claiming bus name 1773s # Name: org.gtk.Test.OwnedLater 1773s # Owner: service 1773s # Step 7: emitting signal 1773s # Sender: service 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via connection 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 5 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via connection 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 7 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via connection 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 7 1773s # Received Finished signal from subscriber :1.0 1773s # Received Finished signal from service :1.1 1773s # Received Finished signal from service 2 :1.2 1773s # Received Finished signal from attacker :1.3 1773s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 1773s # Signal from step 3 was received 0 times by GDBusConnection, expected 0 1773s # Signal from step 4 was received 0 times by GDBusConnection, expected 0 1773s # Signal from step 5 was received 1 times by GDBusConnection, expected 1 1773s # NameOwnerChanged from step 6 was received 0 times by GDBusConnection, expected 0 1773s # Signal from step 7 was received 2 times by GDBusConnection, expected 2 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s ok 6 /gdbus/subscribe/conn/limit_by_well_known_name 1773s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/home 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/cache 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-config2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/config 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-data2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/data 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/state 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/runtime 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1773s # subscriber is :1.0 1773s # service is :1.1 1773s # service 2 is :1.2 1773s # attacker is :1.3 1773s # Waiting for AddMatch to be processed 1773s # /gdbus/subscribe/conn/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 1773s # Step 0: adding subscription 1773s # Sender: org.freedesktop.DBus 1773s # Path: /org/freedesktop/DBus 1773s # Interface: org.freedesktop.DBus 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Subscribing via connection 1773s # Waiting for AddMatch to be processed 1773s # Step 1: emitting signal 1773s # Sender: attacker 1773s # Destination: (broadcast) 1773s # Path: /org/freedesktop/DBus 1773s # Interface: org.freedesktop.DBus 1773s # Member: NameOwnerChanged 1773s # String argument 0: would I lie to you? 1773s # Waiting for signal to reach message bus 1773s # Step 2: emitting signal 1773s # Sender: attacker 1773s # Destination: subscriber :1.0 1773s # Path: /org/freedesktop/DBus 1773s # Interface: org.freedesktop.DBus 1773s # Member: NameOwnerChanged 1773s # Waiting for signal to reach message bus 1773s # Step 3: claiming bus name 1773s # Name: org.gtk.Test.OwnedLater 1773s # Owner: service 1773s # Signal received from message bus org.freedesktop.DBus 1773s # Signal received from (unused) org.freedesktop.DBus via connection 1773s # Path: /org/freedesktop/DBus 1773s # Interface: org.freedesktop.DBus 1773s # Member: NameOwnerChanged 1773s # Received Finished signal from subscriber :1.0 1773s # Received Finished signal from service :1.1 1773s # Received Finished signal from service 2 :1.2 1773s # Received Finished signal from attacker :1.3 1773s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1773s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1773s # NameOwnerChanged from step 3 was received 1 times by GDBusConnection, expected 1 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s ok 7 /gdbus/subscribe/conn/limit_to_message_bus 1773s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/home 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/cache 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-config2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/config 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-data2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/data 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/state 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/runtime 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1773s # subscriber is :1.0 1773s # service is :1.1 1773s # service 2 is :1.2 1773s # attacker is :1.3 1773s # Waiting for AddMatch to be processed 1773s # /gdbus/subscribe/conn/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 1773s # Step 0: claiming bus name 1773s # Name: org.gtk.Test.AlreadyOwned 1773s # Owner: service 1773s # Step 1: adding subscription 1773s # Sender: org.gtk.Test.AlreadyOwned 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Subscribing via connection 1773s # Immediately unsubscribing 1773s # Waiting for AddMatch to be processed 1773s # Step 2: emitting signal 1773s # Sender: service 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Received Finished signal from subscriber :1.0 1773s # Received Finished signal from service :1.1 1773s # Received Finished signal from service 2 :1.2 1773s # Received Finished signal from attacker :1.3 1773s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 1773s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s ok 8 /gdbus/subscribe/conn/unsubscribe_immediately 1773s # End of conn tests 1773s # Start of proxy tests 1773s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/simple/.dirs/home 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/simple/.dirs/cache 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/simple/.dirs/system-config2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/simple/.dirs/config 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/simple/.dirs/system-data2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/simple/.dirs/data 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/simple/.dirs/state 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/simple/.dirs/runtime 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1773s # subscriber is :1.0 1773s # service is :1.1 1773s # service 2 is :1.2 1773s # attacker is :1.3 1773s # Waiting for AddMatch to be processed 1773s # /gdbus/subscribe/proxy/simple summary: A broadcast is only received after subscribing to it 1773s # Step 0: emitting signal 1773s # Sender: service 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Step 1: adding subscription 1773s # Sender: (any) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Cannot subscribe via proxy: no bus name 1773s # Waiting for AddMatch to be processed 1773s # Step 2: emitting signal 1773s # Sender: service 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Received Finished signal from subscriber :1.0 1773s # Received Finished signal from service :1.1 1773s # Received Finished signal from service 2 :1.2 1773s # Received Finished signal from attacker :1.3 1773s # Signal from step 0 was received 0 times by GDBusProxy, expected 0 1773s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s ok 9 /gdbus/subscribe/proxy/simple 1773s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/home 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/cache 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-config2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/config 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-data2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/data 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/state 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/runtime 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1773s # subscriber is :1.0 1773s # service is :1.1 1773s # service 2 is :1.2 1773s # attacker is :1.3 1773s # Waiting for AddMatch to be processed 1773s # /gdbus/subscribe/proxy/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 1773s # Step 0: adding subscription 1773s # Sender: (any) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Cannot subscribe via proxy: no bus name 1773s # Waiting for AddMatch to be processed 1773s # Step 1: emitting signal 1773s # Sender: service 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Step 2: emitting signal 1773s # Sender: service 2 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Step 3: emitting signal 1773s # Sender: service 1773s # Destination: subscriber :1.0 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Step 4: emitting signal 1773s # Sender: service 2 1773s # Destination: subscriber :1.0 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Received Finished signal from subscriber :1.0 1773s # Received Finished signal from service :1.1 1773s # Received Finished signal from service 2 :1.2 1773s # Received Finished signal from attacker :1.3 1773s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1773s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1773s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 1773s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s ok 10 /gdbus/subscribe/proxy/broadcast_from_anyone 1773s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/match_twice/.dirs/home 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/match_twice/.dirs/cache 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/match_twice/.dirs/system-config2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/match_twice/.dirs/config 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/match_twice/.dirs/system-data2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/match_twice/.dirs/data 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/match_twice/.dirs/state 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/match_twice/.dirs/runtime 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1773s # subscriber is :1.0 1773s # service is :1.1 1773s # service 2 is :1.2 1773s # attacker is :1.3 1773s # Waiting for AddMatch to be processed 1773s # /gdbus/subscribe/proxy/match_twice summary: A message matching more than one subscription is received once per subscription 1773s # Step 0: adding subscription 1773s # Sender: service :1.1 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Subscribing via proxy 1773s # Waiting for AddMatch to be processed 1773s # Step 1: adding subscription 1773s # Sender: (any) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: (any) 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Cannot subscribe via proxy: no bus name 1773s # Waiting for AddMatch to be processed 1773s # Step 2: adding subscription 1773s # Sender: (any) 1773s # Path: (any) 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Cannot subscribe via proxy: no bus name 1773s # Waiting for AddMatch to be processed 1773s # Step 3: adding subscription 1773s # Sender: service :1.1 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Subscribing via proxy 1773s # Waiting for AddMatch to be processed 1773s # Step 4: emitting signal 1773s # Sender: service 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via proxy 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 4 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via proxy 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 4 1773s # Received Finished signal from subscriber :1.0 1773s # Received Finished signal from service :1.1 1773s # Received Finished signal from service 2 :1.2 1773s # Received Finished signal from attacker :1.3 1773s # Signal from step 4 was received 2 times by GDBusProxy, expected 2 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s ok 11 /gdbus/subscribe/proxy/match_twice 1773s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/home 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/cache 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-config2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/config 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-data2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/data 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/state 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/runtime 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1773s # subscriber is :1.0 1773s # service is :1.1 1773s # service 2 is :1.2 1773s # attacker is :1.3 1773s # Waiting for AddMatch to be processed 1773s # /gdbus/subscribe/proxy/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 1773s # Step 0: adding subscription 1773s # Sender: service :1.1 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Subscribing via proxy 1773s # Waiting for AddMatch to be processed 1773s # Step 1: emitting signal 1773s # Sender: attacker 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Step 2: emitting signal 1773s # Sender: attacker 1773s # Destination: subscriber :1.0 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Step 3: emitting signal 1773s # Sender: service 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via proxy 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 3 1773s # Received Finished signal from subscriber :1.0 1773s # Received Finished signal from service :1.1 1773s # Received Finished signal from service 2 :1.2 1773s # Received Finished signal from attacker :1.3 1773s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1773s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1773s # Signal from step 3 was received 1 times by GDBusProxy, expected 1 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s ok 12 /gdbus/subscribe/proxy/limit_by_unique_name 1773s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/home 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/cache 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-config2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/config 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-data2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/data 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/state 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/runtime 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1773s # subscriber is :1.0 1773s # service is :1.1 1773s # service 2 is :1.2 1773s # attacker is :1.3 1773s # Waiting for AddMatch to be processed 1773s # /gdbus/subscribe/proxy/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 1773s # Step 0: adding subscription 1773s # Sender: :0.this.had.better.not.exist 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Subscribing via proxy 1773s # Waiting for AddMatch to be processed 1773s # Step 1: emitting signal 1773s # Sender: attacker 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Step 2: emitting signal 1773s # Sender: attacker 1773s # Destination: subscriber :1.0 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Received Finished signal from subscriber :1.0 1773s # Received Finished signal from service :1.1 1773s # Received Finished signal from service 2 :1.2 1773s # Received Finished signal from attacker :1.3 1773s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1773s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s ok 13 /gdbus/subscribe/proxy/nonexistent_unique_name 1773s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/home 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/cache 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-config2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/config 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-data2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/data 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/state 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/runtime 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1773s # subscriber is :1.0 1773s # service is :1.1 1773s # service 2 is :1.2 1773s # attacker is :1.3 1773s # Waiting for AddMatch to be processed 1773s # /gdbus/subscribe/proxy/limit_by_well_known_name summary: A subscription via a well-known name only accepts messages sent by the owner of that well-known name 1773s # Step 0: claiming bus name 1773s # Name: org.gtk.Test.AlreadyOwned 1773s # Owner: service 1773s # Step 1: adding subscription 1773s # Sender: org.gtk.Test.AlreadyOwned 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Subscribing via proxy 1773s # Waiting for AddMatch to be processed 1773s # Step 2: adding subscription 1773s # Sender: org.gtk.Test.OwnedLater 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Subscribing via proxy 1773s # Waiting for AddMatch to be processed 1773s # Step 3: emitting signal 1773s # Sender: attacker 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Step 4: emitting signal 1773s # Sender: attacker 1773s # Destination: subscriber :1.0 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Step 5: emitting signal 1773s # Sender: service 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Step 6: claiming bus name 1773s # Name: org.gtk.Test.OwnedLater 1773s # Owner: service 1773s # Step 7: emitting signal 1773s # Sender: service 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via proxy 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 5 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via proxy 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 7 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via proxy 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 7 1773s # Received Finished signal from subscriber :1.0 1773s # Received Finished signal from service :1.1 1773s # Received Finished signal from service 2 :1.2 1773s # Received Finished signal from attacker :1.3 1773s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 1773s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 1773s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 1773s # Signal from step 5 was received 1 times by GDBusProxy, expected 1 1773s # NameOwnerChanged from step 6 was received 0 times by GDBusProxy, expected 0 1773s # Signal from step 7 was received 2 times by GDBusProxy, expected 2 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s ok 14 /gdbus/subscribe/proxy/limit_by_well_known_name 1773s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/home 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/cache 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-config2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/config 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-data2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/data 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/state 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/runtime 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1773s # subscriber is :1.0 1773s # service is :1.1 1773s # service 2 is :1.2 1773s # attacker is :1.3 1773s # Waiting for AddMatch to be processed 1773s # /gdbus/subscribe/proxy/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 1773s # Step 0: adding subscription 1773s # Sender: org.freedesktop.DBus 1773s # Path: /org/freedesktop/DBus 1773s # Interface: org.freedesktop.DBus 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Subscribing via proxy 1773s # Waiting for AddMatch to be processed 1773s # Step 1: emitting signal 1773s # Sender: attacker 1773s # Destination: (broadcast) 1773s # Path: /org/freedesktop/DBus 1773s # Interface: org.freedesktop.DBus 1773s # Member: NameOwnerChanged 1773s # String argument 0: would I lie to you? 1773s # Waiting for signal to reach message bus 1773s # Step 2: emitting signal 1773s # Sender: attacker 1773s # Destination: subscriber :1.0 1773s # Path: /org/freedesktop/DBus 1773s # Interface: org.freedesktop.DBus 1773s # Member: NameOwnerChanged 1773s # Waiting for signal to reach message bus 1773s # Step 3: claiming bus name 1773s # Name: org.gtk.Test.OwnedLater 1773s # Owner: service 1773s # Signal received from message bus org.freedesktop.DBus 1773s # Signal received from (unused) org.freedesktop.DBus via proxy 1773s # Path: /org/freedesktop/DBus 1773s # Interface: org.freedesktop.DBus 1773s # Member: NameOwnerChanged 1773s # Received Finished signal from subscriber :1.0 1773s # Received Finished signal from service :1.1 1773s # Received Finished signal from service 2 :1.2 1773s # Received Finished signal from attacker :1.3 1773s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1773s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1773s # NameOwnerChanged from step 3 was received 1 times by GDBusProxy, expected 1 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s ok 15 /gdbus/subscribe/proxy/limit_to_message_bus 1773s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/home 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/cache 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-config2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/config 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-data2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/data 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/state 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/runtime 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1773s # subscriber is :1.0 1773s # service is :1.1 1773s # service 2 is :1.2 1773s # attacker is :1.3 1773s # Waiting for AddMatch to be processed 1773s # /gdbus/subscribe/proxy/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 1773s # Step 0: claiming bus name 1773s # Name: org.gtk.Test.AlreadyOwned 1773s # Owner: service 1773s # Step 1: adding subscription 1773s # Sender: org.gtk.Test.AlreadyOwned 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Subscribing via proxy 1773s # Waiting for AddMatch to be processed 1773s # Step 2: emitting signal 1773s # Sender: service 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via proxy 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 2 1773s # Received Finished signal from subscriber :1.0 1773s # Received Finished signal from service :1.1 1773s # Received Finished signal from service 2 :1.2 1773s # Received Finished signal from attacker :1.3 1773s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 1773s # Signal from step 2 was received 1 times by GDBusProxy, expected 1 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s ok 16 /gdbus/subscribe/proxy/unsubscribe_immediately 1773s # End of proxy tests 1773s # Start of parallel tests 1773s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/simple/.dirs/home 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/simple/.dirs/cache 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/simple/.dirs/system-config2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/simple/.dirs/config 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/simple/.dirs/system-data2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/simple/.dirs/data 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/simple/.dirs/state 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/simple/.dirs/runtime 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1773s # subscriber is :1.0 1773s # service is :1.1 1773s # service 2 is :1.2 1773s # attacker is :1.3 1773s # Waiting for AddMatch to be processed 1773s # /gdbus/subscribe/parallel/simple summary: A broadcast is only received after subscribing to it 1773s # Step 0: emitting signal 1773s # Sender: service 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Step 1: adding subscription 1773s # Sender: (any) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Subscribing via connection 1773s # Cannot subscribe via proxy: no bus name 1773s # Waiting for AddMatch to be processed 1773s # Step 2: emitting signal 1773s # Sender: service 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via connection 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 2 1773s # Received Finished signal from subscriber :1.0 1773s # Received Finished signal from service :1.1 1773s # Received Finished signal from service 2 :1.2 1773s # Received Finished signal from attacker :1.3 1773s # Signal from step 0 was received 0 times by GDBusConnection, expected 0 1773s # Signal from step 0 was received 0 times by GDBusProxy, expected 0 1773s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 1773s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s ok 17 /gdbus/subscribe/parallel/simple 1773s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/home 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/cache 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-config2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/config 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-data2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/data 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/state 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/runtime 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1773s # subscriber is :1.0 1773s # service is :1.1 1773s # service 2 is :1.2 1773s # attacker is :1.3 1773s # Waiting for AddMatch to be processed 1773s # /gdbus/subscribe/parallel/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 1773s # Step 0: adding subscription 1773s # Sender: (any) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Subscribing via connection 1773s # Cannot subscribe via proxy: no bus name 1773s # Waiting for AddMatch to be processed 1773s # Step 1: emitting signal 1773s # Sender: service 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Step 2: emitting signal 1773s # Sender: service 2 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Step 3: emitting signal 1773s # Sender: service 1773s # Destination: subscriber :1.0 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Step 4: emitting signal 1773s # Sender: service 2 1773s # Destination: subscriber :1.0 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via connection 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 1 1773s # Signal received from service 2 :1.2 1773s # Signal received from service 2 :1.2 via connection 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 2 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via connection 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 3 1773s # Signal received from service 2 :1.2 1773s # Signal received from service 2 :1.2 via connection 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 4 1773s # Received Finished signal from subscriber :1.0 1773s # Received Finished signal from service :1.1 1773s # Received Finished signal from service 2 :1.2 1773s # Received Finished signal from attacker :1.3 1773s # Signal from step 1 was received 1 times by GDBusConnection, expected 1 1773s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1773s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 1773s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1773s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 1773s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 1773s # Signal from step 4 was received 1 times by GDBusConnection, expected 1 1773s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s ok 18 /gdbus/subscribe/parallel/broadcast_from_anyone 1773s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/match_twice/.dirs/home 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/match_twice/.dirs/cache 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/match_twice/.dirs/system-config2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/match_twice/.dirs/config 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/match_twice/.dirs/system-data2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/match_twice/.dirs/data 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/match_twice/.dirs/state 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/match_twice/.dirs/runtime 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1773s # subscriber is :1.0 1773s # service is :1.1 1773s # service 2 is :1.2 1773s # attacker is :1.3 1773s # Waiting for AddMatch to be processed 1773s # /gdbus/subscribe/parallel/match_twice summary: A message matching more than one subscription is received once per subscription 1773s # Step 0: adding subscription 1773s # Sender: service :1.1 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Subscribing via connection 1773s # Subscribing via proxy 1773s # Waiting for AddMatch to be processed 1773s # Step 1: adding subscription 1773s # Sender: (any) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: (any) 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Subscribing via connection 1773s # Cannot subscribe via proxy: no bus name 1773s # Waiting for AddMatch to be processed 1773s # Step 2: adding subscription 1773s # Sender: (any) 1773s # Path: (any) 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Subscribing via connection 1773s # Cannot subscribe via proxy: no bus name 1773s # Waiting for AddMatch to be processed 1773s # Step 3: adding subscription 1773s # Sender: service :1.1 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Subscribing via connection 1773s # Subscribing via proxy 1773s # Waiting for AddMatch to be processed 1773s # Step 4: emitting signal 1773s # Sender: service 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via connection 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 4 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via proxy 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 4 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via connection 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 4 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via proxy 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 4 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via connection 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 4 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via connection 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 4 1773s # Received Finished signal from subscriber :1.0 1773s # Received Finished signal from service :1.1 1773s # Received Finished signal from service 2 :1.2 1773s # Received Finished signal from attacker :1.3 1773s # Signal from step 4 was received 4 times by GDBusConnection, expected 4 1773s # Signal from step 4 was received 2 times by GDBusProxy, expected 2 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s ok 19 /gdbus/subscribe/parallel/match_twice 1773s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/home 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/cache 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-config2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/config 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-data2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/data 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/state 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/runtime 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1773s # subscriber is :1.0 1773s # service is :1.1 1773s # service 2 is :1.2 1773s # attacker is :1.3 1773s # Waiting for AddMatch to be processed 1773s # /gdbus/subscribe/parallel/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 1773s # Step 0: adding subscription 1773s # Sender: service :1.1 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Subscribing via connection 1773s # Subscribing via proxy 1773s # Waiting for AddMatch to be processed 1773s # Step 1: emitting signal 1773s # Sender: attacker 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Step 2: emitting signal 1773s # Sender: attacker 1773s # Destination: subscriber :1.0 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Step 3: emitting signal 1773s # Sender: service 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via connection 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 3 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via proxy 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 3 1773s # Received Finished signal from subscriber :1.0 1773s # Received Finished signal from service :1.1 1773s # Received Finished signal from service 2 :1.2 1773s # Received Finished signal from attacker :1.3 1773s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1773s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1773s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1773s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1773s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 1773s # Signal from step 3 was received 1 times by GDBusProxy, expected 1 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s ok 20 /gdbus/subscribe/parallel/limit_by_unique_name 1773s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/home 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/cache 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-config2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/config 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-data2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/data 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/state 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/runtime 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1773s # subscriber is :1.0 1773s # service is :1.1 1773s # service 2 is :1.2 1773s # attacker is :1.3 1773s # Waiting for AddMatch to be processed 1773s # /gdbus/subscribe/parallel/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 1773s # Step 0: adding subscription 1773s # Sender: :0.this.had.better.not.exist 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Subscribing via connection 1773s # Subscribing via proxy 1773s # Waiting for AddMatch to be processed 1773s # Step 1: emitting signal 1773s # Sender: attacker 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Step 2: emitting signal 1773s # Sender: attacker 1773s # Destination: subscriber :1.0 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Received Finished signal from subscriber :1.0 1773s # Received Finished signal from service :1.1 1773s # Received Finished signal from service 2 :1.2 1773s # Received Finished signal from attacker :1.3 1773s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1773s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1773s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1773s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s ok 21 /gdbus/subscribe/parallel/nonexistent_unique_name 1773s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/home 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/cache 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-config2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/config 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-data2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/data 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/state 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/runtime 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1773s # subscriber is :1.0 1773s # service is :1.1 1773s # service 2 is :1.2 1773s # attacker is :1.3 1773s # Waiting for AddMatch to be processed 1773s # /gdbus/subscribe/parallel/limit_by_well_known_name summary: A subscription via a well-known name only accepts messages sent by the owner of that well-known name 1773s # Step 0: claiming bus name 1773s # Name: org.gtk.Test.AlreadyOwned 1773s # Owner: service 1773s # Step 1: adding subscription 1773s # Sender: org.gtk.Test.AlreadyOwned 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Subscribing via connection 1773s # Subscribing via proxy 1773s # Waiting for AddMatch to be processed 1773s # Step 2: adding subscription 1773s # Sender: org.gtk.Test.OwnedLater 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Subscribing via connection 1773s # Subscribing via proxy 1773s # Waiting for AddMatch to be processed 1773s # Step 3: emitting signal 1773s # Sender: attacker 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Step 4: emitting signal 1773s # Sender: attacker 1773s # Destination: subscriber :1.0 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Step 5: emitting signal 1773s # Sender: service 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Step 6: claiming bus name 1773s # Name: org.gtk.Test.OwnedLater 1773s # Owner: service 1773s # Step 7: emitting signal 1773s # Sender: service 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via connection 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 5 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via proxy 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 5 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via connection 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 7 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via proxy 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 7 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via connection 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 7 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via proxy 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 7 1773s # Received Finished signal from subscriber :1.0 1773s # Received Finished signal from service :1.1 1773s # Received Finished signal from service 2 :1.2 1773s # Received Finished signal from attacker :1.3 1773s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 1773s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 1773s # Signal from step 3 was received 0 times by GDBusConnection, expected 0 1773s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 1773s # Signal from step 4 was received 0 times by GDBusConnection, expected 0 1773s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 1773s # Signal from step 5 was received 1 times by GDBusConnection, expected 1 1773s # Signal from step 5 was received 1 times by GDBusProxy, expected 1 1773s # NameOwnerChanged from step 6 was received 0 times by GDBusConnection, expected 0 1773s # NameOwnerChanged from step 6 was received 0 times by GDBusProxy, expected 0 1773s # Signal from step 7 was received 2 times by GDBusConnection, expected 2 1773s # Signal from step 7 was received 2 times by GDBusProxy, expected 2 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s ok 22 /gdbus/subscribe/parallel/limit_by_well_known_name 1773s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/home 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/cache 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-config2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/config 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-data2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/data 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/state 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/runtime 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1773s # subscriber is :1.0 1773s # service is :1.1 1773s # service 2 is :1.2 1773s # attacker is :1.3 1773s # Waiting for AddMatch to be processed 1773s # /gdbus/subscribe/parallel/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 1773s # Step 0: adding subscription 1773s # Sender: org.freedesktop.DBus 1773s # Path: /org/freedesktop/DBus 1773s # Interface: org.freedesktop.DBus 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Subscribing via connection 1773s # Subscribing via proxy 1773s # Waiting for AddMatch to be processed 1773s # Step 1: emitting signal 1773s # Sender: attacker 1773s # Destination: (broadcast) 1773s # Path: /org/freedesktop/DBus 1773s # Interface: org.freedesktop.DBus 1773s # Member: NameOwnerChanged 1773s # String argument 0: would I lie to you? 1773s # Waiting for signal to reach message bus 1773s # Step 2: emitting signal 1773s # Sender: attacker 1773s # Destination: subscriber :1.0 1773s # Path: /org/freedesktop/DBus 1773s # Interface: org.freedesktop.DBus 1773s # Member: NameOwnerChanged 1773s # Waiting for signal to reach message bus 1773s # Step 3: claiming bus name 1773s # Name: org.gtk.Test.OwnedLater 1773s # Owner: service 1773s # Signal received from message bus org.freedesktop.DBus 1773s # Signal received from (unused) org.freedesktop.DBus via connection 1773s # Path: /org/freedesktop/DBus 1773s # Interface: org.freedesktop.DBus 1773s # Member: NameOwnerChanged 1773s # Signal received from message bus org.freedesktop.DBus 1773s # Signal received from (unused) org.freedesktop.DBus via proxy 1773s # Path: /org/freedesktop/DBus 1773s # Interface: org.freedesktop.DBus 1773s # Member: NameOwnerChanged 1773s # Received Finished signal from subscriber :1.0 1773s # Received Finished signal from service :1.1 1773s # Received Finished signal from service 2 :1.2 1773s # Received Finished signal from attacker :1.3 1773s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1773s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1773s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1773s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1773s # NameOwnerChanged from step 3 was received 1 times by GDBusConnection, expected 1 1773s # NameOwnerChanged from step 3 was received 1 times by GDBusProxy, expected 1 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s ok 23 /gdbus/subscribe/parallel/limit_to_message_bus 1773s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/home 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/cache 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-config2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/config 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-data2 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/data 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/state 1773s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_1W93B3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/runtime 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1773s # subscriber is :1.0 1773s # service is :1.1 1773s # service 2 is :1.2 1773s # attacker is :1.3 1773s # Waiting for AddMatch to be processed 1773s # /gdbus/subscribe/parallel/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 1773s # Step 0: claiming bus name 1773s # Name: org.gtk.Test.AlreadyOwned 1773s # Owner: service 1773s # Step 1: adding subscription 1773s # Sender: org.gtk.Test.AlreadyOwned 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: (any) 1773s # String argument 0: (any) 1773s # Flags: 0 1773s # Subscribing via connection 1773s # Immediately unsubscribing 1773s # Subscribing via proxy 1773s # Waiting for AddMatch to be processed 1773s # Step 2: emitting signal 1773s # Sender: service 1773s # Destination: (broadcast) 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Waiting for signal to reach message bus 1773s # Signal received from service :1.1 1773s # Signal received from service :1.1 via proxy 1773s # Path: /org/gtk/GDBus/ExampleInterface 1773s # Interface: org.gtk.GDBus.ExampleInterface 1773s # Member: Foo 1773s # Argument 0: (not a string) 1773s # Sent in step: 2 1773s # Received Finished signal from subscriber :1.0 1773s # Received Finished signal from service :1.1 1773s # Received Finished signal from service 2 :1.2 1773s # Received Finished signal from attacker :1.3 1773s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 1773s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 1773s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1773s # Signal from step 2 was received 1 times by GDBusProxy, expected 1 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1773s ok 24 /gdbus/subscribe/parallel/unsubscribe_immediately 1773s # End of parallel tests 1773s # End of subscribe tests 1773s # End of gdbus tests 1773s TAP version 14 1773s # random seed: R02S86523726c67c84186c39b7bfce39ea94 1773s 1..5 1773s # Start of appinfo tests 1773s ok 1 /appinfo/utf16-strfuncs 1773s ok 2 /appinfo/win32-extract-executable 1773s ok 3 /appinfo/win32-rundll32-fixup 1773s ok 4 /appinfo/win32-parse-filename 1773s ok 5 /appinfo/win32-utf16-conversion-fail 1773s # Start of subprocess tests 1773s # End of subprocess tests 1773s # End of appinfo tests 1773s TAP version 14 1773s # random seed: R02S0c15796f88f852d8efae28c7078fef71 1773s 1..15 1773s # Start of gmenu tests 1773s ok 1 /gmenu/equality 1773s # slow test /gmenu/equality executed in 0.75 secs 1774s ok 2 /gmenu/random 1774s # slow test /gmenu/random executed in 0.95 secs 1774s ok 3 /gmenu/attributes 1774s ok 4 /gmenu/links 1774s ok 5 /gmenu/mutable 1774s ok 6 /gmenu/convenience 1774s ok 7 /gmenu/menuitem 1774s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/861 1774s ok 8 /gmenu/input-validation 1774s # Start of dbus tests 1776s ok 9 /gmenu/dbus/roundtrip 1776s # slow test /gmenu/dbus/roundtrip executed in 1.02 secs 1776s ok 10 /gmenu/dbus/subscriptions 1776s # Executing: glib/gmenumodel.test 1778s ok 11 /gmenu/dbus/threaded 1778s # slow test /gmenu/dbus/threaded executed in 1.75 secs 1778s # Start of peer tests 1779s ok 12 /gmenu/dbus/peer/roundtrip 1779s # slow test /gmenu/dbus/peer/roundtrip executed in 1.02 secs 1779s ok 13 /gmenu/dbus/peer/subscriptions 1779s # End of peer tests 1779s # Start of export tests 1779s # /gmenu/dbus/export/error-handling summary: Test that error handling of menu model export failure works 1779s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 1779s ok 14 /gmenu/dbus/export/error-handling 1779s # End of export tests 1779s # End of dbus tests 1779s # Start of attributes tests 1779s ok 15 /gmenu/attributes/iterate 1779s # End of attributes tests 1779s # End of gmenu tests 1779s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1779s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1779s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1779s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1779s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1779s ok - glib/gmenumodel.test 1779s # Running test: glib/charset.test 1779s TAP version 14 1779s # random seed: R02S11797ff743cf992524b2969c6eee8a52 1779s 1..2 1779s # Start of charset tests 1779s # Test 0 1779s # Test 1 1779s # Test 2 1779s # Test 3 1779s ok 1 /charset/language_names_with_category 1779s ok 2 /charset/language_names_with_category_async 1779s # End of charset tests 1779s ok - glib/charset.test 1779s # Running test: glib/cxx-20.test 1779s TAP version 14 1779s # random seed: R02Sba9d6964059da5c516807077b88e5c0b 1779s 1..2 1779s # Start of gtask tests 1779s # GLib-GIO-DEBUG: GTask some other name (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1779s ok 1 /gtask/name 1779s # Start of name tests 1779s # GLib-GIO-DEBUG: GTask some other name (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1779s ok 2 /gtask/name/macro-wrapper 1779s # End of name tests 1779s # End of gtask tests 1779s ok - glib/cxx-20.test 1779s # Running test: glib/environment.test 1779s TAP version 14 1779s # random seed: R02S851b29fda21cbfb1f82f9b0b65f1f6cf 1779s 1..7 1779s # Start of environ tests 1779s # /environ/listenv summary: Test g_get_environ() returns an array of unique keys, all of which can be individually queried using g_getenv() to return the same value. 1779s ok 1 /environ/listenv 1779s # /environ/getenv summary: Test setting an environment variable using g_setenv(), and that the updated value is queryable using g_getenv(). 1779s ok 2 /environ/getenv 1779s ok 3 /environ/setenv 1779s # /environ/array summary: Test getting and setting variables on a local envp array (rather than the global envp). 1779s ok 4 /environ/array 1779s ok - glib/environment.test 1779s # Running test: glib/utils-c-99.test 1779s # /environ/null summary: Test getting and setting variables on a NULL envp array. 1779s ok 5 /environ/null 1779s # /environ/case summary: Test that matching environment variables is case-insensitive on Windows and not on other platforms, since envvars were case-insensitive on DOS. 1779s ok 6 /environ/case 1779s # /environ/expansion summary: Test expansion of environment variable references. 1779s ok 7 /environ/expansion # SKIP Environment variable expansion is only supported on Windows 1779s # End of environ tests 1779s TAP version 14 1779s # random seed: R02S1ba9c7b53c4d5f87277c7271b0232859 1779s 1..41 1779s # Start of utils tests 1779s ok 1 /utils/language-names 1779s # Testing locale ‘en’ 1779s # Testing locale ‘sr@latin’ 1779s # Testing locale ‘fr_BE’ 1779s # Testing locale ‘sr_SR@latin’ 1779s # Testing locale ‘sr_SR@latin.UTF-8’ 1779s # Testing locale ‘sr@latin_invalid’ 1779s # Testing locale ‘sr.UTF-8@latin’ 1779s # Testing locale ‘sr.UTF-8_latin’ 1779s # Testing locale ‘sr.UTF-8@latin_invalid’ 1779s ok 2 /utils/locale-variants 1779s ok 3 /utils/version 1779s ok 4 /utils/appname 1779s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1779s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1779s ok 5 /utils/prgname-thread-safety 1779s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1779s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1779s ok 6 /utils/tmpdir 1779s ok 7 /utils/basic_bits 1779s ok 8 /utils/bits 1779s ok 9 /utils/swap 1779s ok 10 /utils/find-program 1779s ok 11 /utils/find-program-for-path 1779s ok 12 /utils/debug 1779s ok 13 /utils/codeset 1779s ok 14 /utils/codeset2 1779s ok 15 /utils/console-charset 1779s ok 16 /utils/gettext 1779s ok 17 /utils/username 1779s ok 18 /utils/realname 1779s ok 19 /utils/hostname 1779s ok 20 /utils/xdgdirs 1779s ok 21 /utils/specialdir 1779s # NAME: Ubuntu 1779s ok 22 /utils/os-info 1779s ok 23 /utils/clear-pointer 1779s ok 24 /utils/clear-pointer-cast 1779s ok 25 /utils/take-pointer 1779s ok 26 /utils/clear-source 1779s ok 27 /utils/misc-mem 1779s # /utils/aligned-mem summary: Aligned memory allocator 1779s # Alignment must not be zero 1779s # Alignment must be a power of two 1779s # Alignment must be a multiple of sizeof(void*) 1779s ok 28 /utils/aligned-mem 1779s # /utils/free-sized summary: Check that g_free_sized() works 1779s ok 29 /utils/free-sized 1779s ok 30 /utils/nullify 1779s ok 31 /utils/atexit 1779s ok 32 /utils/check-setuid 1779s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1779s ok 33 /utils/int-limits 1779s ok 34 /utils/clear-list 1779s ok 35 /utils/clear-slist 1779s ok 36 /utils/steal-handle-id 1779s # Start of specialdir tests 1779s ok 37 /utils/specialdir/desktop 1779s # End of specialdir tests 1779s # Start of clear-pointer tests 1779s ok 38 /utils/clear-pointer/side-effects 1779s # End of clear-pointer tests 1779s # Start of aligned-mem tests 1779s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1779s ok 39 /utils/aligned-mem/alignment 1779s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1779s ok 40 /utils/aligned-mem/zeroed 1779s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1779s ok 41 /utils/aligned-mem/free-sized 1779s # Start of subprocess tests 1779s # End of subprocess tests 1779s # End of aligned-mem tests 1779s # End of utils tests 1779s ok - glib/utils-c-99.test 1779s # Running test: glib/io-channel-basic.test 1779s TAP version 14 1779s # random seed: R02S7de28b627afb2aefdd28be9aac9ddffe 1779s 1..1 1779s # Start of gio tests 1779s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1779s # random seed: R02S405f75a195341a7baa322c846b5af615 1779s # GLib-DEBUG: io-channel-basic: child writing 8+2402 bytes to 6 1779s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1779s # GLib-DEBUG: io-channel-basic: ...from 5: 2402 bytes 1779s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1780s # GLib-DEBUG: io-channel-basic: child writing 8+2301 bytes to 6 1780s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1780s # GLib-DEBUG: io-channel-basic: ...from 5: 2301 bytes 1780s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1780s # GLib-DEBUG: io-channel-basic: child writing 8+2318 bytes to 6 1780s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1780s # GLib-DEBUG: io-channel-basic: ...from 5: 2318 bytes 1780s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1780s # GLib-DEBUG: io-channel-basic: child writing 8+226 bytes to 6 1780s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1780s # GLib-DEBUG: io-channel-basic: ...from 5: 226 bytes 1780s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1780s # GLib-DEBUG: io-channel-basic: child writing 8+604 bytes to 6 1780s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1780s # GLib-DEBUG: io-channel-basic: ...from 5: 604 bytes 1780s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1781s # GLib-DEBUG: io-channel-basic: child writing 8+4451 bytes to 6 1781s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1781s # GLib-DEBUG: io-channel-basic: ...from 5: 4451 bytes 1781s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1781s # GLib-DEBUG: io-channel-basic: child writing 8+1499 bytes to 6 1781s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1781s # GLib-DEBUG: io-channel-basic: ...from 5: 1499 bytes 1781s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1781s # GLib-DEBUG: io-channel-basic: child writing 8+164 bytes to 6 1781s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1781s # GLib-DEBUG: io-channel-basic: ...from 5: 164 bytes 1781s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1781s # Executing: glib/io-channel-basic.test 1782s # GLib-DEBUG: io-channel-basic: child writing 8+4168 bytes to 6 1782s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1782s # GLib-DEBUG: io-channel-basic: ...from 5: 4168 bytes 1782s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1782s # GLib-DEBUG: io-channel-basic: child writing 8+1397 bytes to 6 1782s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1782s # GLib-DEBUG: io-channel-basic: ...from 5: 1397 bytes 1782s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1782s # GLib-DEBUG: io-channel-basic: child writing 8+3424 bytes to 6 1782s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1782s # GLib-DEBUG: io-channel-basic: ...from 5: 3424 bytes 1782s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1782s # GLib-DEBUG: io-channel-basic: child writing 8+184 bytes to 6 1782s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1782s # GLib-DEBUG: io-channel-basic: ...from 5: 184 bytes 1782s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1783s # GLib-DEBUG: io-channel-basic: child writing 8+4425 bytes to 6 1783s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1783s # GLib-DEBUG: io-channel-basic: ...from 5: 4425 bytes 1783s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1783s # GLib-DEBUG: io-channel-basic: child writing 8+4824 bytes to 6 1783s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1783s # GLib-DEBUG: io-channel-basic: ...from 5: 4824 bytes 1783s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1783s # GLib-DEBUG: io-channel-basic: child writing 8+1355 bytes to 6 1783s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1783s # GLib-DEBUG: io-channel-basic: ...from 5: 1355 bytes 1783s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1783s # GLib-DEBUG: io-channel-basic: child writing 8+3056 bytes to 6 1783s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1783s # GLib-DEBUG: io-channel-basic: ...from 5: 3056 bytes 1783s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1784s # GLib-DEBUG: io-channel-basic: child writing 8+221 bytes to 6 1784s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1784s # GLib-DEBUG: io-channel-basic: ...from 5: 221 bytes 1784s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1784s # GLib-DEBUG: io-channel-basic: child writing 8+3757 bytes to 6 1784s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1784s # GLib-DEBUG: io-channel-basic: ...from 5: 3757 bytes 1784s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1784s # GLib-DEBUG: io-channel-basic: child writing 8+4338 bytes to 6 1784s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1784s # GLib-DEBUG: io-channel-basic: ...from 5: 4338 bytes 1784s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1784s # GLib-DEBUG: io-channel-basic: child writing 8+509 bytes to 6 1784s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1784s # GLib-DEBUG: io-channel-basic: ...from 5: 509 bytes 1784s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1785s # GLib-DEBUG: io-channel-basic: child writing 8+2788 bytes to 6 1785s # GLib-DEBUG: io-channel-basic: child exiting, closing 6 1785s # GLib-DEBUG: io-channel-basic: ...from 5: HUP IN 1785s # GLib-DEBUG: io-channel-basic: ...from 5: 2788 bytes 1785s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1785s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1785s # random seed: R02S10fb22247f468e03a2f1d5dfc67e5b9a 1785s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1785s # random seed: R02S143d6bb2d9f41f0f27a0fc61e64c8380 1785s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1785s # random seed: R02Sfe076f80f14fa83677b9020e6fce6dae 1785s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1785s # random seed: R02Sc6ed31a51a456a16ceadb044ea69bde1 1785s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1785s # random seed: R02Sc30d1c1d96c2bb05fab07a562c640834 1785s # GLib-DEBUG: io-channel-basic: child writing 8+678 bytes to 13 1785s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1785s # GLib-DEBUG: io-channel-basic: ...from 12: 678 bytes 1785s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1785s # GLib-DEBUG: io-channel-basic: child writing 8+1847 bytes to 17 1785s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1785s # GLib-DEBUG: io-channel-basic: ...from 16: 1847 bytes 1785s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1785s # GLib-DEBUG: io-channel-basic: child writing 8+4003 bytes to 11 1785s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1785s # GLib-DEBUG: io-channel-basic: ...from 10: 4003 bytes 1785s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1785s # GLib-DEBUG: io-channel-basic: child writing 8+157 bytes to 9 1785s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1785s # GLib-DEBUG: io-channel-basic: ...from 8: 157 bytes 1785s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1785s # GLib-DEBUG: io-channel-basic: child writing 8+4484 bytes to 15 1785s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1785s # GLib-DEBUG: io-channel-basic: ...from 14: 4484 bytes 1785s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1785s # GLib-DEBUG: io-channel-basic: child writing 8+3207 bytes to 15 1785s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1785s # GLib-DEBUG: io-channel-basic: ...from 14: 3207 bytes 1785s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1785s # GLib-DEBUG: io-channel-basic: child writing 8+4126 bytes to 9 1785s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1785s # GLib-DEBUG: io-channel-basic: ...from 8: 4126 bytes 1785s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1785s # GLib-DEBUG: io-channel-basic: child writing 8+3255 bytes to 13 1785s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1785s # GLib-DEBUG: io-channel-basic: ...from 12: 3255 bytes 1785s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1785s # GLib-DEBUG: io-channel-basic: child writing 8+2638 bytes to 17 1785s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1785s # GLib-DEBUG: io-channel-basic: ...from 16: 2638 bytes 1785s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1785s # GLib-DEBUG: io-channel-basic: child writing 8+1927 bytes to 11 1785s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1785s # GLib-DEBUG: io-channel-basic: ...from 10: 1927 bytes 1785s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1785s # GLib-DEBUG: io-channel-basic: child writing 8+2433 bytes to 15 1785s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1785s # GLib-DEBUG: io-channel-basic: ...from 14: 2433 bytes 1785s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1786s # GLib-DEBUG: io-channel-basic: child writing 8+4388 bytes to 17 1786s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1786s # GLib-DEBUG: io-channel-basic: ...from 16: 4388 bytes 1786s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1786s # GLib-DEBUG: io-channel-basic: child writing 8+3675 bytes to 13 1786s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1786s # GLib-DEBUG: io-channel-basic: ...from 12: 3675 bytes 1786s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1786s # GLib-DEBUG: io-channel-basic: child writing 8+3151 bytes to 11 1786s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1786s # GLib-DEBUG: io-channel-basic: ...from 10: 3151 bytes 1786s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1786s # GLib-DEBUG: io-channel-basic: child writing 8+4945 bytes to 9 1786s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1786s # GLib-DEBUG: io-channel-basic: ...from 8: 4945 bytes 1786s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1786s # GLib-DEBUG: io-channel-basic: child writing 8+293 bytes to 17 1786s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1786s # GLib-DEBUG: io-channel-basic: ...from 16: 293 bytes 1786s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1786s # GLib-DEBUG: io-channel-basic: child writing 8+4883 bytes to 15 1786s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1786s # GLib-DEBUG: io-channel-basic: ...from 14: 4883 bytes 1786s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1786s # GLib-DEBUG: io-channel-basic: child writing 8+2977 bytes to 13 1786s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1786s # GLib-DEBUG: io-channel-basic: ...from 12: 2977 bytes 1786s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1786s # GLib-DEBUG: io-channel-basic: child writing 8+2907 bytes to 9 1786s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1786s # GLib-DEBUG: io-channel-basic: ...from 8: 2907 bytes 1786s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1786s # GLib-DEBUG: io-channel-basic: child writing 8+4756 bytes to 11 1786s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1786s # GLib-DEBUG: io-channel-basic: ...from 10: 4756 bytes 1786s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1786s # GLib-DEBUG: io-channel-basic: child writing 8+309 bytes to 17 1786s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1786s # GLib-DEBUG: io-channel-basic: ...from 16: 309 bytes 1786s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1786s # GLib-DEBUG: io-channel-basic: child writing 8+2250 bytes to 9 1786s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1786s # GLib-DEBUG: io-channel-basic: ...from 8: 2250 bytes 1786s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1786s # GLib-DEBUG: io-channel-basic: child writing 8+3518 bytes to 11 1786s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1786s # GLib-DEBUG: io-channel-basic: ...from 10: 3518 bytes 1786s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1786s # GLib-DEBUG: io-channel-basic: child writing 8+2792 bytes to 13 1786s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1786s # GLib-DEBUG: io-channel-basic: ...from 12: 2792 bytes 1786s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1786s # GLib-DEBUG: io-channel-basic: child writing 8+459 bytes to 15 1786s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1786s # GLib-DEBUG: io-channel-basic: ...from 14: 459 bytes 1786s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1786s # GLib-DEBUG: io-channel-basic: child writing 8+192 bytes to 13 1786s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1786s # GLib-DEBUG: io-channel-basic: ...from 12: 192 bytes 1786s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1786s # GLib-DEBUG: io-channel-basic: child writing 8+1234 bytes to 15 1786s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1786s # GLib-DEBUG: io-channel-basic: ...from 14: 1234 bytes 1786s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1786s # GLib-DEBUG: io-channel-basic: child writing 8+4237 bytes to 17 1786s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1786s # GLib-DEBUG: io-channel-basic: ...from 16: 4237 bytes 1786s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1786s # GLib-DEBUG: io-channel-basic: child writing 8+4525 bytes to 11 1786s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1786s # GLib-DEBUG: io-channel-basic: ...from 10: 4525 bytes 1786s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1786s # GLib-DEBUG: io-channel-basic: child writing 8+3108 bytes to 9 1786s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1786s # GLib-DEBUG: io-channel-basic: ...from 8: 3108 bytes 1786s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1786s # Executing: glib/io-channel-basic.test 1787s # GLib-DEBUG: io-channel-basic: child writing 8+4163 bytes to 13 1787s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1787s # GLib-DEBUG: io-channel-basic: ...from 12: 4163 bytes 1787s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1787s # GLib-DEBUG: io-channel-basic: child writing 8+1058 bytes to 9 1787s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1787s # GLib-DEBUG: io-channel-basic: ...from 8: 1058 bytes 1787s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1787s # GLib-DEBUG: io-channel-basic: child writing 8+4828 bytes to 11 1787s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1787s # GLib-DEBUG: io-channel-basic: ...from 10: 4828 bytes 1787s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1787s # GLib-DEBUG: io-channel-basic: child writing 8+2646 bytes to 15 1787s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1787s # GLib-DEBUG: io-channel-basic: ...from 14: 2646 bytes 1787s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1787s # GLib-DEBUG: io-channel-basic: child writing 8+2297 bytes to 17 1787s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1787s # GLib-DEBUG: io-channel-basic: ...from 16: 2297 bytes 1787s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1787s # GLib-DEBUG: io-channel-basic: child writing 8+1777 bytes to 13 1787s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1787s # GLib-DEBUG: io-channel-basic: ...from 12: 1777 bytes 1787s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1787s # GLib-DEBUG: io-channel-basic: child writing 8+2682 bytes to 15 1787s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1787s # GLib-DEBUG: io-channel-basic: ...from 14: 2682 bytes 1787s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1787s # GLib-DEBUG: io-channel-basic: child writing 8+3855 bytes to 11 1787s # GLib-DEBUG: io-channel-basic: child writing 8+3478 bytes to 9 1787s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1787s # GLib-DEBUG: io-channel-basic: ...from 10: 3855 bytes 1787s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1787s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1787s # GLib-DEBUG: io-channel-basic: ...from 8: 3478 bytes 1787s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1787s # GLib-DEBUG: io-channel-basic: child writing 8+1585 bytes to 17 1787s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1787s # GLib-DEBUG: io-channel-basic: ...from 16: 1585 bytes 1787s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1787s # GLib-DEBUG: io-channel-basic: child writing 8+2377 bytes to 13 1787s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1787s # GLib-DEBUG: io-channel-basic: ...from 12: 2377 bytes 1787s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1787s # GLib-DEBUG: io-channel-basic: child writing 8+1527 bytes to 9 1787s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1787s # GLib-DEBUG: io-channel-basic: ...from 8: 1527 bytes 1787s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1787s # GLib-DEBUG: io-channel-basic: child writing 8+2175 bytes to 11 1787s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1787s # GLib-DEBUG: io-channel-basic: ...from 10: 2175 bytes 1787s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1787s # GLib-DEBUG: io-channel-basic: child writing 8+3860 bytes to 15 1787s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1787s # GLib-DEBUG: io-channel-basic: ...from 14: 3860 bytes 1787s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1787s # GLib-DEBUG: io-channel-basic: child writing 8+3591 bytes to 17 1787s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1787s # GLib-DEBUG: io-channel-basic: ...from 16: 3591 bytes 1787s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1788s # GLib-DEBUG: io-channel-basic: child writing 8+3071 bytes to 13 1788s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1788s # GLib-DEBUG: io-channel-basic: ...from 12: 3071 bytes 1788s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1788s # GLib-DEBUG: io-channel-basic: child writing 8+466 bytes to 9 1788s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1788s # GLib-DEBUG: io-channel-basic: ...from 8: 466 bytes 1788s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1788s # GLib-DEBUG: io-channel-basic: child writing 8+2862 bytes to 11 1788s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1788s # GLib-DEBUG: io-channel-basic: ...from 10: 2862 bytes 1788s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1788s # GLib-DEBUG: io-channel-basic: child writing 8+2269 bytes to 15 1788s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1788s # GLib-DEBUG: io-channel-basic: ...from 14: 2269 bytes 1788s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1788s # GLib-DEBUG: io-channel-basic: child writing 8+2710 bytes to 17 1788s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1788s # GLib-DEBUG: io-channel-basic: ...from 16: 2710 bytes 1788s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1788s # GLib-DEBUG: io-channel-basic: child writing 8+1016 bytes to 13 1788s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1788s # GLib-DEBUG: io-channel-basic: ...from 12: 1016 bytes 1788s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1788s # GLib-DEBUG: io-channel-basic: child writing 8+3395 bytes to 9 1788s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1788s # GLib-DEBUG: io-channel-basic: ...from 8: 3395 bytes 1788s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1788s # GLib-DEBUG: io-channel-basic: child writing 8+542 bytes to 11 1788s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1788s # GLib-DEBUG: io-channel-basic: ...from 10: 542 bytes 1788s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1788s # GLib-DEBUG: io-channel-basic: child writing 8+378 bytes to 15 1788s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1788s # GLib-DEBUG: io-channel-basic: ...from 14: 378 bytes 1788s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1788s # GLib-DEBUG: io-channel-basic: child writing 8+3357 bytes to 17 1788s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1788s # GLib-DEBUG: io-channel-basic: ...from 16: 3357 bytes 1788s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1788s # GLib-DEBUG: io-channel-basic: child writing 8+3033 bytes to 13 1788s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1788s # GLib-DEBUG: io-channel-basic: ...from 12: 3033 bytes 1788s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1788s # GLib-DEBUG: io-channel-basic: child writing 8+138 bytes to 9 1788s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1788s # GLib-DEBUG: io-channel-basic: ...from 8: 138 bytes 1788s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1788s # GLib-DEBUG: io-channel-basic: child writing 8+1398 bytes to 11 1788s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1788s # GLib-DEBUG: io-channel-basic: ...from 10: 1398 bytes 1788s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1788s # GLib-DEBUG: io-channel-basic: child writing 8+3659 bytes to 15 1788s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1788s # GLib-DEBUG: io-channel-basic: ...from 14: 3659 bytes 1788s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1788s # GLib-DEBUG: io-channel-basic: child writing 8+1402 bytes to 17 1788s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1788s # GLib-DEBUG: io-channel-basic: ...from 16: 1402 bytes 1788s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1788s # GLib-DEBUG: io-channel-basic: child writing 8+4386 bytes to 9 1788s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1788s # GLib-DEBUG: io-channel-basic: ...from 8: 4386 bytes 1788s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1788s # GLib-DEBUG: io-channel-basic: child writing 8+4187 bytes to 13 1788s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1788s # GLib-DEBUG: io-channel-basic: ...from 12: 4187 bytes 1788s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1788s # GLib-DEBUG: io-channel-basic: child writing 8+263 bytes to 11 1788s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1788s # GLib-DEBUG: io-channel-basic: ...from 10: 263 bytes 1788s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1788s # GLib-DEBUG: io-channel-basic: child writing 8+1859 bytes to 15 1788s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1788s # GLib-DEBUG: io-channel-basic: ...from 14: 1859 bytes 1788s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1788s # GLib-DEBUG: io-channel-basic: child writing 8+135 bytes to 17 1788s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1788s # GLib-DEBUG: io-channel-basic: ...from 16: 135 bytes 1788s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1788s # GLib-DEBUG: io-channel-basic: child writing 8+3683 bytes to 13 1788s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1788s # GLib-DEBUG: io-channel-basic: ...from 12: 3683 bytes 1788s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1788s # GLib-DEBUG: io-channel-basic: child writing 8+681 bytes to 9 1788s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1788s # GLib-DEBUG: io-channel-basic: ...from 8: 681 bytes 1788s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1788s # GLib-DEBUG: io-channel-basic: child writing 8+607 bytes to 11 1788s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1788s # GLib-DEBUG: io-channel-basic: ...from 10: 607 bytes 1788s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1788s # GLib-DEBUG: io-channel-basic: child writing 8+2031 bytes to 15 1788s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1788s # GLib-DEBUG: io-channel-basic: ...from 14: 2031 bytes 1788s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1788s # GLib-DEBUG: io-channel-basic: child writing 8+3008 bytes to 17 1788s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1788s # GLib-DEBUG: io-channel-basic: ...from 16: 3008 bytes 1788s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1789s # GLib-DEBUG: io-channel-basic: child writing 8+1856 bytes to 13 1789s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1789s # GLib-DEBUG: io-channel-basic: ...from 12: 1856 bytes 1789s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1789s # GLib-DEBUG: io-channel-basic: child writing 8+4731 bytes to 9 1789s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1789s # GLib-DEBUG: io-channel-basic: ...from 8: 4731 bytes 1789s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1789s # GLib-DEBUG: io-channel-basic: child writing 8+1549 bytes to 11 1789s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1789s # GLib-DEBUG: io-channel-basic: ...from 10: 1549 bytes 1789s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1789s # GLib-DEBUG: io-channel-basic: child writing 8+2406 bytes to 15 1789s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1789s # GLib-DEBUG: io-channel-basic: ...from 14: 2406 bytes 1789s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1789s # GLib-DEBUG: io-channel-basic: child writing 8+1973 bytes to 17 1789s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1789s # GLib-DEBUG: io-channel-basic: ...from 16: 1973 bytes 1789s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1789s # GLib-DEBUG: io-channel-basic: child writing 8+850 bytes to 9 1789s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1789s # GLib-DEBUG: io-channel-basic: ...from 8: 850 bytes 1789s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1789s # GLib-DEBUG: io-channel-basic: child writing 8+1598 bytes to 13 1789s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1789s # GLib-DEBUG: io-channel-basic: ...from 12: 1598 bytes 1789s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1789s # GLib-DEBUG: io-channel-basic: child writing 8+2747 bytes to 11 1789s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1789s # GLib-DEBUG: io-channel-basic: ...from 10: 2747 bytes 1789s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1789s # GLib-DEBUG: io-channel-basic: child writing 8+441 bytes to 15 1789s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1789s # GLib-DEBUG: io-channel-basic: ...from 14: 441 bytes 1789s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1789s # GLib-DEBUG: io-channel-basic: child writing 8+2653 bytes to 17 1789s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1789s # GLib-DEBUG: io-channel-basic: ...from 16: 2653 bytes 1789s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1789s # GLib-DEBUG: io-channel-basic: child writing 8+4349 bytes to 13 1789s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1789s # GLib-DEBUG: io-channel-basic: ...from 12: 4349 bytes 1789s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1789s # GLib-DEBUG: io-channel-basic: child writing 8+1293 bytes to 9 1789s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1789s # GLib-DEBUG: io-channel-basic: ...from 8: 1293 bytes 1789s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1789s # GLib-DEBUG: io-channel-basic: child writing 8+4992 bytes to 17 1789s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1789s # GLib-DEBUG: io-channel-basic: ...from 16: 4992 bytes 1789s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1789s # GLib-DEBUG: io-channel-basic: child writing 8+1275 bytes to 11 1789s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1789s # GLib-DEBUG: io-channel-basic: ...from 10: 1275 bytes 1789s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1789s # GLib-DEBUG: io-channel-basic: child writing 8+4471 bytes to 15 1789s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1789s # GLib-DEBUG: io-channel-basic: ...from 14: 4471 bytes 1789s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1789s # GLib-DEBUG: io-channel-basic: child writing 8+916 bytes to 13 1789s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1789s # GLib-DEBUG: io-channel-basic: ...from 12: 916 bytes 1789s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1789s # GLib-DEBUG: io-channel-basic: child writing 8+1973 bytes to 9 1789s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1789s # GLib-DEBUG: io-channel-basic: ...from 8: 1973 bytes 1789s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1789s # GLib-DEBUG: io-channel-basic: child writing 8+1829 bytes to 17 1789s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1789s # GLib-DEBUG: io-channel-basic: ...from 16: 1829 bytes 1789s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1789s # GLib-DEBUG: io-channel-basic: child writing 8+1031 bytes to 11 1789s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1789s # GLib-DEBUG: io-channel-basic: ...from 10: 1031 bytes 1789s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1789s # GLib-DEBUG: io-channel-basic: child writing 8+2653 bytes to 15 1789s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1789s # GLib-DEBUG: io-channel-basic: ...from 14: 2653 bytes 1789s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1790s # GLib-DEBUG: io-channel-basic: child writing 8+3898 bytes to 13 1790s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1790s # GLib-DEBUG: io-channel-basic: ...from 12: 3898 bytes 1790s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1790s # GLib-DEBUG: io-channel-basic: child writing 8+1126 bytes to 9 1790s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1790s # GLib-DEBUG: io-channel-basic: ...from 8: 1126 bytes 1790s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1790s # GLib-DEBUG: io-channel-basic: child writing 8+1011 bytes to 17 1790s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1790s # GLib-DEBUG: io-channel-basic: ...from 16: 1011 bytes 1790s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1790s # GLib-DEBUG: io-channel-basic: child writing 8+4396 bytes to 11 1790s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1790s # GLib-DEBUG: io-channel-basic: ...from 10: 4396 bytes 1790s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1790s # GLib-DEBUG: io-channel-basic: child writing 8+3082 bytes to 15 1790s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1790s # GLib-DEBUG: io-channel-basic: ...from 14: 3082 bytes 1790s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1790s # GLib-DEBUG: io-channel-basic: child writing 8+774 bytes to 13 1790s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1790s # GLib-DEBUG: io-channel-basic: ...from 12: 774 bytes 1790s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1790s # GLib-DEBUG: io-channel-basic: child writing 8+748 bytes to 9 1790s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1790s # GLib-DEBUG: io-channel-basic: ...from 8: 748 bytes 1790s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1790s # GLib-DEBUG: io-channel-basic: child writing 8+1830 bytes to 17 1790s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1790s # GLib-DEBUG: io-channel-basic: ...from 16: 1830 bytes 1790s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1790s # GLib-DEBUG: io-channel-basic: child writing 8+4612 bytes to 11 1790s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1790s # GLib-DEBUG: io-channel-basic: ...from 10: 4612 bytes 1790s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1790s # GLib-DEBUG: io-channel-basic: child writing 8+388 bytes to 15 1790s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1790s # GLib-DEBUG: io-channel-basic: ...from 14: 388 bytes 1790s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1790s # GLib-DEBUG: io-channel-basic: child writing 8+4051 bytes to 13 1790s # GLib-DEBUG: io-channel-basic: child exiting, closing 13 1790s # GLib-DEBUG: io-channel-basic: ...from 12: HUP IN 1790s # GLib-DEBUG: io-channel-basic: ...from 12: 4051 bytes 1790s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1790s # GLib-DEBUG: io-channel-basic: child writing 8+2588 bytes to 9 1790s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1790s # GLib-DEBUG: io-channel-basic: ...from 8: 2588 bytes 1790s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1790s # GLib-DEBUG: io-channel-basic: child writing 8+222 bytes to 11 1790s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1790s # GLib-DEBUG: io-channel-basic: ...from 10: 222 bytes 1790s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1790s # GLib-DEBUG: io-channel-basic: child writing 8+3405 bytes to 17 1790s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1790s # GLib-DEBUG: io-channel-basic: ...from 16: 3405 bytes 1790s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1790s # GLib-DEBUG: io-channel-basic: child writing 8+3585 bytes to 15 1790s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1790s # GLib-DEBUG: io-channel-basic: ...from 14: 3585 bytes 1790s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1790s # GLib-DEBUG: io-channel-basic: child writing 8+2575 bytes to 9 1790s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1790s # GLib-DEBUG: io-channel-basic: ...from 8: 2575 bytes 1790s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1790s # GLib-DEBUG: io-channel-basic: child writing 8+109 bytes to 17 1790s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1790s # GLib-DEBUG: io-channel-basic: ...from 16: 109 bytes 1790s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1790s # GLib-DEBUG: io-channel-basic: child writing 8+2068 bytes to 11 1790s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1790s # GLib-DEBUG: io-channel-basic: ...from 10: 2068 bytes 1790s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1790s # GLib-DEBUG: io-channel-basic: child writing 8+1881 bytes to 15 1790s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1790s # GLib-DEBUG: io-channel-basic: ...from 14: 1881 bytes 1790s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1791s # GLib-DEBUG: io-channel-basic: child writing 8+358 bytes to 9 1791s # GLib-DEBUG: io-channel-basic: child exiting, closing 9 1791s # GLib-DEBUG: io-channel-basic: ...from 8: HUP IN 1791s # GLib-DEBUG: io-channel-basic: ...from 8: 358 bytes 1791s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1791s # GLib-DEBUG: io-channel-basic: child writing 8+4661 bytes to 17 1791s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1791s # GLib-DEBUG: io-channel-basic: ...from 16: 4661 bytes 1791s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1791s # GLib-DEBUG: io-channel-basic: child writing 8+1568 bytes to 15 1791s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1791s # GLib-DEBUG: io-channel-basic: ...from 14: 1568 bytes 1791s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1791s # GLib-DEBUG: io-channel-basic: child writing 8+1544 bytes to 11 1791s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1791s # GLib-DEBUG: io-channel-basic: ...from 10: 1544 bytes 1791s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1791s # GLib-DEBUG: io-channel-basic: child writing 8+4356 bytes to 15 1791s # GLib-DEBUG: io-channel-basic: child exiting, closing 15 1791s # GLib-DEBUG: io-channel-basic: ...from 14: HUP IN 1791s # GLib-DEBUG: io-channel-basic: ...from 14: 4356 bytes 1791s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1791s # GLib-DEBUG: io-channel-basic: child writing 8+2559 bytes to 17 1791s # GLib-DEBUG: io-channel-basic: child exiting, closing 17 1791s # GLib-DEBUG: io-channel-basic: ...from 16: HUP IN 1791s # GLib-DEBUG: io-channel-basic: ...from 16: 2559 bytes 1791s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1791s # GLib-DEBUG: io-channel-basic: child writing 8+137 bytes to 11 1791s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1791s # GLib-DEBUG: io-channel-basic: ...from 10: 137 bytes 1791s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1791s # GLib-DEBUG: io-channel-basic: child writing 8+4332 bytes to 11 1791s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1791s # GLib-DEBUG: io-channel-basic: ...from 10: 4332 bytes 1791s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1791s # Executing: glib/io-channel-basic.test 1792s # GLib-DEBUG: io-channel-basic: child writing 8+3788 bytes to 11 1792s # GLib-DEBUG: io-channel-basic: child exiting, closing 11 1792s # GLib-DEBUG: io-channel-basic: ...from 10: HUP IN 1792s # GLib-DEBUG: io-channel-basic: ...from 10: 3788 bytes 1792s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1792s ok 1 /gio/io-basics 1792s # slow test /gio/io-basics executed in 12.36 secs 1792s # End of gio tests 1792s ok - glib/io-channel-basic.test 1792s # Running test: glib/performance.test 1796s # Executing: glib/performance.test 1799s simple-construction: Millions of constructed objects per second: 11.609 1801s # Executing: glib/performance.test 1802s simple-construction1: Millions of constructed objects per second: 67.023 1806s complex-construction: Millions of constructed objects per second: 4.793 1806s # Executing: glib/performance.test 1811s complex-construction1: Millions of constructed objects per second: 8.132 1811s # Executing: glib/performance.test 1816s # Executing: glib/performance.test 1817s complex-construction2: Millions of constructed objects per second: 8.638 1819s finalization: Millions of finalized objects per second: 2.043 1820s type-check: Million type checks per second: 41.56 1821s emit-unhandled: Emissions per second: 2436699 1821s # Executing: glib/performance.test 1823s emit-unhandled-empty: Emissions per second: 20386987 1824s emit-unhandled-generic: Emissions per second: 3232820 1825s emit-unhandled-generic-empty: Emissions per second: 20410800 1826s emit-unhandled-args: Emissions per second: 2191238 1826s # Executing: glib/performance.test 1828s emit-handled: Emissions per second: 1568085 1829s emit-handled-empty: Emissions per second: 1652239 1830s emit-handled-generic: Emissions per second: 1612749 1831s emit-handled-generic-empty: Emissions per second: 2738018 1831s # Executing: glib/performance.test 1833s emit-handled-args: Emissions per second: 1527434 1834s notify-unhandled: Notify (unhandled) per second: 10304627 1835s notify-by-pspec-unhandled: Notify (unhandled) per second: 74612019 1836s notify-handled: Notify per second: 1037266 1836s # Executing: glib/performance.test 1838s notify-by-pspec-handled: Notify per second: 1131240 1839s property-set: Property set per second: 10132172 1840s property-set-signaled: Property set per second: 2632581 1841s # Executing: glib/performance.test 1841s property-get: Property get per second: 10174180 1843s refcount: Million refs+unref per second: 16.35 1844s refcount-1: Million refs+unref per second: 41.19 1845s refcount-toggle: Million refs+unref per second: 31.77 1845s ok - glib/performance.test 1845s # Running test: glib/guuid.test 1845s TAP version 14 1845s # random seed: R02S529e4dcb989c5940839a7ab4be2d8e55 1845s 1..2 1845s # Start of uuid tests 1845s ok 1 /uuid/string 1845s ok 2 /uuid/random 1845s # End of uuid tests 1845s ok - glib/guuid.test 1845s # Running test: glib/network-monitor.test 1845s TAP version 14 1845s # random seed: R02S84bda6069b9ac39239f11254ebac59ea 1845s 1..4 1845s # Start of network-monitor tests 1845s # GLib-GIO-DEBUG: Failed to initialize portal (GNetworkMonitorPortal) for gio-network-monitor: Not using portals 1845s # GLib-GIO-DEBUG: Failed to initialize networkmanager (GNetworkMonitorNM) for gio-network-monitor: NetworkManager not running 1845s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation netlink (GNetworkMonitorNetlink) for ‘gio-network-monitor’ 1845s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1845s ok 1 /network-monitor/default 1845s ok 2 /network-monitor/remove_default 1845s ok - glib/network-monitor.test 1845s # Running test: glib/contexts.test 1845s ok 3 /network-monitor/add_networks 1845s ok 4 /network-monitor/remove_networks 1845s # End of network-monitor tests 1845s TAP version 14 1845s # random seed: R02S6cd128f7a2155530ec7fdda77f4f1938 1845s 1..5 1845s # Start of gio tests 1845s # Start of contexts tests 1845s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1845s ok 1 /gio/contexts/thread-independence 1845s ok 2 /gio/contexts/context-independence 1845s # Start of context-specific tests 1845s ok 3 /gio/contexts/context-specific/identity 1845s ok 4 /gio/contexts/context-specific/emit 1845s ok 5 /gio/contexts/context-specific/emit-and-unref 1845s # End of context-specific tests 1845s # End of contexts tests 1845s # End of gio tests 1845s ok - glib/contexts.test 1845s # Running test: glib/gi-inspect-typelib.py.test 1846s TAP version 13 1846s ok 1 __main__.TestGIInspectTypelibCommandLine.test_help 1846s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1846s # tmpdir: /tmp/tmp5dg6iz67 1846s # Running: ['/usr/bin/gi-inspect-typelib', '--help'] 1846s # Return code: 0 1846s # Output: 1846s # Usage: 1846s # gi-inspect-typelib [OPTION…] NAMESPACE - Inspect GI typelib 1846s # 1846s # Help Options: 1846s # -h, --help Show help options 1846s # 1846s # Application Options: 1846s # --typelib-version=VERSION Typelib version to inspect 1846s # --print-shlibs List the shared libraries the typelib requires 1846s # --print-typelibs List other typelibs the inspected typelib requires 1846s # Error: 1846s ok 2 __main__.TestGIInspectTypelibCommandLine.test_invalid_typelib 1846s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1846s # tmpdir: /tmp/tmptw5lln5u 1846s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'AnInvalidNameSpace'] 1846s # Return code: 1 1846s # Output: 1846s # 1846s # Error: 1846s # Failed to load typelib: Typelib file for namespace 'AnInvalidNameSpace' (any version) not found 1846s ok 3 __main__.TestGIInspectTypelibCommandLine.test_no_args 1846s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1846s # tmpdir: /tmp/tmpmwt82qfj 1846s # Running: ['/usr/bin/gi-inspect-typelib'] 1846s # Return code: 1 1846s # Output: 1846s # 1846s # Error: 1846s # Please specify exactly one namespace 1846s ok 4 __main__.TestGIInspectTypelibForGLibTypelib.test_print_shlibs 1846s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1846s # tmpdir: /tmp/tmp23s3_32y 1846s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'GLib', '--typelib-version=2.0'] 1846s # Return code: 0 1846s # Output: 1846s # shlib: libgobject-2.0.so.0 1846s # shlib: libglib-2.0.so.0 1846s # Error: 1846s ok 5 __main__.TestGIInspectTypelibForGLibTypelib.test_print_typelibs 1846s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1846s # tmpdir: /tmp/tmp81bkidsw 1846s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'GLib', '--typelib-version=2.0'] 1846s # Return code: 0 1846s # Output: 1846s # 1846s # Error: 1846s ok 6 __main__.TestGIInspectTypelibForGLibTypelib.test_print_typelibs_and_shlibs 1846s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1846s # tmpdir: /tmp/tmp5v6ycqgd 1846s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'GLib', '--typelib-version=2.0'] 1846s # Return code: 0 1846s # Output: 1846s # shlib: libgobject-2.0.so.0 1846s # shlib: libglib-2.0.so.0 1846s # Error: 1846s ok 7 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_shlibs 1846s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1846s # tmpdir: /tmp/tmpi9293zr4 1846s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'GObject', '--typelib-version=2.0'] 1846s # Return code: 0 1846s # Output: 1846s # shlib: libgobject-2.0.so.0 1846s # Error: 1846s ok 8 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_typelibs 1846s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1846s # tmpdir: /tmp/tmprncbrpl_ 1846s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'GObject', '--typelib-version=2.0'] 1846s # Return code: 0 1846s # Output: 1846s # typelib: GLib-2.0 1846s # Error: 1846s ok 9 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_typelibs_and_shlibs 1846s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1846s # tmpdir: /tmp/tmpkh9z9ssm 1846s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'GObject', '--typelib-version=2.0'] 1846s # Return code: 0 1846s # Output: 1846s # shlib: libgobject-2.0.so.0 1846s # typelib: GLib-2.0 1846s # Error: 1846s ok 10 __main__.TestGIInspectTypelibForGioTypelib.test_print_shlibs 1846s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1846s # tmpdir: /tmp/tmpmu83zthf 1846s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'Gio', '--typelib-version=2.0'] 1846s # Return code: 0 1846s # Output: 1846s # shlib: libgio-2.0.so.0 1846s # Error: 1846s ok 11 __main__.TestGIInspectTypelibForGioTypelib.test_print_typelibs 1846s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1846s # tmpdir: /tmp/tmpcku72om6 1846s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'Gio', '--typelib-version=2.0'] 1846s # Return code: 0 1846s # Output: 1846s # typelib: GObject-2.0 1846s # typelib: GLib-2.0 1846s # typelib: GModule-2.0 1846s # Error: 1846s ok 12 __main__.TestGIInspectTypelibForGioTypelib.test_print_typelibs_and_shlibs 1846s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1846s # tmpdir: /tmp/tmpcuf8dpqa 1846s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'Gio', '--typelib-version=2.0'] 1846s # Return code: 0 1846s # Output: 1846s # shlib: libgio-2.0.so.0 1846s # typelib: GObject-2.0 1846s # typelib: GLib-2.0 1846s # typelib: GModule-2.0 1846s # Error: 1846s 1..12 1846s ok - glib/gi-inspect-typelib.py.test 1846s # Running test: glib/tls-interaction.test 1846s TAP version 14 1846s # random seed: R02S47ff4ea3834d34c5be534dd0cf2377a1 1846s 1..42 1846s # Start of tls-interaction tests 1846s # Start of ask-password tests 1846s # Start of invoke-with-loop tests 1846s ok 1 /tls-interaction/ask-password/invoke-with-loop/unhandled-implementation 1846s ok 2 /tls-interaction/ask-password/invoke-with-loop/async-implementation-success 1846s ok 3 /tls-interaction/ask-password/invoke-with-loop/async-implementation-failure 1846s ok 4 /tls-interaction/ask-password/invoke-with-loop/sync-implementation-success 1846s ok 5 /tls-interaction/ask-password/invoke-with-loop/sync-implementation-failure 1846s # End of invoke-with-loop tests 1846s # Start of invoke-without-loop tests 1846s ok 6 /tls-interaction/ask-password/invoke-without-loop/unhandled-implementation 1846s ok 7 /tls-interaction/ask-password/invoke-without-loop/async-implementation-success 1846s ok 8 /tls-interaction/ask-password/invoke-without-loop/async-implementation-failure 1846s ok 9 /tls-interaction/ask-password/invoke-without-loop/sync-implementation-success 1846s ok 10 /tls-interaction/ask-password/invoke-without-loop/sync-implementation-failure 1846s # End of invoke-without-loop tests 1846s # Start of invoke-in-loop tests 1846s ok 11 /tls-interaction/ask-password/invoke-in-loop/unhandled-implementation 1846s ok 12 /tls-interaction/ask-password/invoke-in-loop/async-implementation-success 1846s ok 13 /tls-interaction/ask-password/invoke-in-loop/async-implementation-failure 1846s ok 14 /tls-interaction/ask-password/invoke-in-loop/sync-implementation-success 1846s ok 15 /tls-interaction/ask-password/invoke-in-loop/sync-implementation-failure 1846s # End of invoke-in-loop tests 1846s # Start of sync tests 1846s ok 16 /tls-interaction/ask-password/sync/unhandled-implementation 1846s ok 17 /tls-interaction/ask-password/sync/sync-implementation-success 1846s ok 18 /tls-interaction/ask-password/sync/sync-implementation-failure 1846s # End of sync tests 1846s # Start of async tests 1846s ok 19 /tls-interaction/ask-password/async/unhandled-implementation 1846s ok 20 /tls-interaction/ask-password/async/async-implementation-success 1846s ok 21 /tls-interaction/ask-password/async/async-implementation-failure 1846s # End of async tests 1846s # End of ask-password tests 1846s # Start of request-certificate tests 1846s # Start of invoke-with-loop tests 1846s ok 22 /tls-interaction/request-certificate/invoke-with-loop/unhandled-implementation 1846s ok - glib/tls-interaction.test 1846s ok 23 /tls-interaction/request-certificate/invoke-with-loop/async-implementation-success 1846s ok 24 /tls-interaction/request-certificate/invoke-with-loop/async-implementation-failure 1846s ok 25 /tls-interaction/request-certificate/invoke-with-loop/sync-implementation-success 1846s ok 26 /tls-interaction/request-certificate/invoke-with-loop/sync-implementation-failure 1846s # End of invoke-with-loop tests 1846s # Start of invoke-without-loop tests 1846s ok 27 /tls-interaction/request-certificate/invoke-without-loop/unhandled-implementation 1846s ok 28 /tls-interaction/request-certificate/invoke-without-loop/async-implementation-success 1846s # Running test: glib/autoptr-gio.test 1846s ok 29 /tls-interaction/request-certificate/invoke-without-loop/async-implementation-failure 1846s ok 30 /tls-interaction/request-certificate/invoke-without-loop/sync-implementation-success 1846s ok 31 /tls-interaction/request-certificate/invoke-without-loop/sync-implementation-failure 1846s # End of invoke-without-loop tests 1846s # Start of invoke-in-loop tests 1846s ok 32 /tls-interaction/request-certificate/invoke-in-loop/unhandled-implementation 1846s ok 33 /tls-interaction/request-certificate/invoke-in-loop/async-implementation-success 1846s ok 34 /tls-interaction/request-certificate/invoke-in-loop/async-implementation-failure 1846s ok 35 /tls-interaction/request-certificate/invoke-in-loop/sync-implementation-success 1846s ok 36 /tls-interaction/request-certificate/invoke-in-loop/sync-implementation-failure 1846s # End of invoke-in-loop tests 1846s # Start of sync tests 1846s ok 37 /tls-interaction/request-certificate/sync/unhandled-implementation 1846s ok 38 /tls-interaction/request-certificate/sync/sync-implementation-success 1846s ok 39 /tls-interaction/request-certificate/sync/sync-implementation-failure 1846s # End of sync tests 1846s # Start of async tests 1846s ok 40 /tls-interaction/request-certificate/async/unhandled-implementation 1846s ok 41 /tls-interaction/request-certificate/async/async-implementation-success 1846s ok 42 /tls-interaction/request-certificate/async/async-implementation-failure 1846s # End of async tests 1846s # End of request-certificate tests 1846s # End of tls-interaction tests 1846s TAP version 14 1846s # random seed: R02S113d845c41f4c65101c34e405e189e91 1846s 1..1 1846s # Start of autoptr tests 1846s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1846s ok 1 /autoptr/autoptr 1846s # End of autoptr tests 1846s ok - glib/autoptr-gio.test 1846s # Running test: glib/sleepy-stream.test 1846s TAP version 14 1846s # random seed: R02Sf1cc3a057ac120b6e556c812d3ef382e 1846s 1..2 1846s # Start of filter-stream tests 1846s ok 1 /filter-stream/input 1846s ok 2 /filter-stream/async 1846s # End of filter-stream tests 1846s ok - glib/sleepy-stream.test 1846s # Running test: glib/testing-nonfatal.test 1846s ok - glib/testing-nonfatal.test 1846s TAP version 14 1846s # random seed: R02Sa1739b749dd079e1403505a8d56e280e 1846s ** 1846s GLib:ERROR:../../../glib/tests/testing-nonfatal.c:26:main: assertion failed ("We can survive this!" == "Or maybe not?"): ("We can survive this!" == "Or maybe not?") 1846s # GLib:ERROR:../../../glib/tests/testing-nonfatal.c:26:main: assertion failed ("We can survive this!" == "Or maybe not?"): ("We can survive this!" == "Or maybe not?") 1846s # Running test: glib/resources.test 1846s TAP version 14 1846s # random seed: R02S42126a2d55cec36936772b5ead92bc3a 1846s 1..19 1846s # Start of resource tests 1846s ok 1 /resource/file 1846s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1846s ok - glib/resources.test 1846s # Running test: glib/converter-stream.test 1846s ok 2 /resource/file-path 1846s ok 3 /resource/data 1846s ok 4 /resource/data_unaligned 1846s ok 5 /resource/data-corrupt 1846s # /resource/data-corrupt-compression summary: Test error handling for corrupt GResource files (specifically, corrupt zlib compression). 1846s ok 6 /resource/data-corrupt-compression 1846s ok 7 /resource/data-empty 1846s ok 8 /resource/registered 1846s ok 9 /resource/manual 1846s ok 10 /resource/manual2 1846s ok 11 /resource/automatic 1846s ok 12 /resource/module 1846s ok 13 /resource/binary-linked 1846s ok 14 /resource/64k 1846s GLib-GIO-Message: 17:15:55.252: Adding GResources overlay '/auto_loaded/test1.txt=/usr/libexec/installed-tests/glib/test1.overlay' 1846s GLib-GIO-Message: 17:15:55.253: Opened file '/usr/libexec/installed-tests/glib/test1.overlay' as a resource overlay 1846s GLib-GIO-Message: 17:15:55.253: Mapped file '/usr/libexec/installed-tests/glib/test1.overlay' as a resource overlay 1846s ok 15 /resource/overlay 1846s ok 16 /resource/digits 1846s ok 17 /resource/has-children 1846s # Start of uri tests 1846s ok 18 /resource/uri/query-info 1846s ok 19 /resource/uri/file 1846s # End of uri tests 1846s # End of resource tests 1846s TAP version 14 1846s # random seed: R02Sa7282cb0f339851abe61e0d3fdfb12d3 1846s 1..17 1846s # Start of converter tests 1846s ok 1 /converter/basics 1846s # End of converter tests 1846s # Start of converter-input-stream tests 1846s ok 2 /converter-input-stream/expander 1846s ok 3 /converter-input-stream/compressor 1846s # Start of truncation tests 1846s ok 4 /converter-input-stream/truncation/zlib 1846s ok 5 /converter-input-stream/truncation/gzip 1846s ok 6 /converter-input-stream/truncation/raw 1846s # End of truncation tests 1846s # Start of charset tests 1846s ok 7 /converter-input-stream/charset/utf8->latin1 1846s ok 8 /converter-input-stream/charset/latin1->utf8 1846s ok 9 /converter-input-stream/charset/fallbacks 1846s # End of charset tests 1846s # End of converter-input-stream tests 1846s # Start of converter-output-stream tests 1846s # Start of roundtrip tests 1846s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1846s ok 10 /converter-output-stream/roundtrip/zlib-0 1846s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1846s # Executing: glib/converter-stream.test 1847s ok 11 /converter-output-stream/roundtrip/zlib-9 1847s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1847s ok 12 /converter-output-stream/roundtrip/gzip-0 1847s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1847s ok 13 /converter-output-stream/roundtrip/gzip-9 1847s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1847s ok 14 /converter-output-stream/roundtrip/raw-0 1847s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1847s ok 15 /converter-output-stream/roundtrip/raw-9 1847s # End of roundtrip tests 1847s # End of converter-output-stream tests 1847s # Start of converter-stream tests 1847s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1847s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x8dc28d8 and GSocketClientAsyncConnectData 0x8dc5e28 1847s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1847s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1847s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x8dca8d8 for GSocketClientAsyncConnectData 0x8dc5e28 1847s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1847s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1847s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1847s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1847s ok 16 /converter-stream/pollable 1847s ok 17 /converter-stream/leftover 1847s # End of converter-stream tests 1847s ok - glib/converter-stream.test 1847s # Running test: glib/live-g-file.test 1847s TAP version 14 1847s # random seed: R02Sa99b59261e5e06ee28eb0a986d3a0b1e 1847s 1..13 1847s # Start of live-g-file tests 1847s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/prep_clean_structure/.dirs/home 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/prep_clean_structure/.dirs/cache 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_B3AKC3/live-g-file/prep_clean_structure/.dirs/system-config1:/tmp/test_live-g-file_B3AKC3/live-g-file/prep_clean_structure/.dirs/system-config2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/prep_clean_structure/.dirs/config 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_B3AKC3/live-g-file/prep_clean_structure/.dirs/system-data1:/tmp/test_live-g-file_B3AKC3/live-g-file/prep_clean_structure/.dirs/system-data2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/prep_clean_structure/.dirs/data 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/prep_clean_structure/.dirs/state 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_B3AKC3/live-g-file/prep_clean_structure/.dirs/runtime 1847s # Cleaning target testing structure in '/tmp/test_live-g-file_B3AKC3/testdir_live-g-file'... 1847s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1847s ok 1 /live-g-file/prep_clean_structure 1847s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/create_structure/.dirs/home 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/create_structure/.dirs/cache 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_B3AKC3/live-g-file/create_structure/.dirs/system-config1:/tmp/test_live-g-file_B3AKC3/live-g-file/create_structure/.dirs/system-config2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/create_structure/.dirs/config 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_B3AKC3/live-g-file/create_structure/.dirs/system-data1:/tmp/test_live-g-file_B3AKC3/live-g-file/create_structure/.dirs/system-data2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/create_structure/.dirs/data 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/create_structure/.dirs/state 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_B3AKC3/live-g-file/create_structure/.dirs/runtime 1847s # 1847s # Going to create testing structure in '/tmp/test_live-g-file_B3AKC3/testdir_live-g-file'... 1847s # Creating directory 'dir1'... 1847s # Creating directory 'dir1/subdir'... 1847s # Creating directory 'dir2'... 1847s # Creating directory 'dir-target'... 1847s # Creating directory 'dir_no-access'... 1847s # Creating directory 'dir_no-write'... 1847s # Creating file 'target-file'... 1847s # Creating file 'normal_file'... 1847s # Creating symlink 'normal_file-symlink' --> 'normal_file'... 1847s # Creating file 'executable_file'... 1847s # Creating file 'private_file'... 1847s # Creating file 'normal_file2'... 1847s # Creating file 'readonly_file'... 1847s # Creating file 'UTF_příliš z'... 1847s # Creating directory 'dir_příliš z'... 1847s # Creating symlink 'lost_symlink' --> 'nowhere'... 1847s # Creating directory 'dir_hidden'... 1847s # Creating file 'dir_hidden/.a-hidden-file'... 1847s # Creating file 'dir_hidden/file-in-.hidden1'... 1847s # Creating file 'dir_hidden/file-in-.hidden2'... 1847s # Creating pattern file... 1847s # done. 1847s ok 2 /live-g-file/create_structure 1847s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_initial_structure/.dirs/home 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_initial_structure/.dirs/cache 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_B3AKC3/live-g-file/test_initial_structure/.dirs/system-config1:/tmp/test_live-g-file_B3AKC3/live-g-file/test_initial_structure/.dirs/system-config2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_initial_structure/.dirs/config 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_B3AKC3/live-g-file/test_initial_structure/.dirs/system-data1:/tmp/test_live-g-file_B3AKC3/live-g-file/test_initial_structure/.dirs/system-data2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_initial_structure/.dirs/data 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_initial_structure/.dirs/state 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_B3AKC3/live-g-file/test_initial_structure/.dirs/runtime 1847s # Testing sample structure in '/tmp/test_live-g-file_B3AKC3/testdir_live-g-file'... 1847s # Testing file 'dir1'... 1847s # Testing file 'dir1/subdir'... 1847s # Testing file 'dir2'... 1847s # Testing file 'dir-target'... 1847s # Testing file 'dir_no-access'... 1847s # Testing file 'dir_no-write'... 1847s # Testing file 'target-file'... 1847s # Testing file 'normal_file'... 1847s # Testing file 'normal_file-symlink'... 1847s # Testing file 'executable_file'... 1847s # Testing file 'private_file'... 1847s # Testing file 'normal_file2'... 1847s # Testing file 'readonly_file'... 1847s # Testing file 'UTF_příliš z'... 1847s # Testing file 'dir_příliš z'... 1847s # Testing file 'lost_symlink'... 1847s # Testing file 'dir_hidden'... 1847s # Testing file 'dir_hidden/.a-hidden-file'... 1847s # Testing file 'dir_hidden/file-in-.hidden1'... 1847s # Testing file 'dir_hidden/file-in-.hidden2'... 1847s # Testing pattern file... 1847s # read 65536 bytes, total = 65536 of 65536. 1847s ok 3 /live-g-file/test_initial_structure 1847s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_traverse_structure/.dirs/home 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_traverse_structure/.dirs/cache 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_B3AKC3/live-g-file/test_traverse_structure/.dirs/system-config1:/tmp/test_live-g-file_B3AKC3/live-g-file/test_traverse_structure/.dirs/system-config2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_traverse_structure/.dirs/config 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_B3AKC3/live-g-file/test_traverse_structure/.dirs/system-data1:/tmp/test_live-g-file_B3AKC3/live-g-file/test_traverse_structure/.dirs/system-data2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_traverse_structure/.dirs/data 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_traverse_structure/.dirs/state 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_B3AKC3/live-g-file/test_traverse_structure/.dirs/runtime 1847s # Traversing through the sample structure in '/tmp/test_live-g-file_B3AKC3/testdir_live-g-file'... 1847s # Found file dir1, relative to root: dir1 1847s # Found file subdir, relative to root: dir1/subdir 1847s # Found file dir2, relative to root: dir2 1847s # Found file dir-target, relative to root: dir-target 1847s # Found file dir_no-access, relative to root: dir_no-access 1847s # Found file dir_no-write, relative to root: dir_no-write 1847s # Found file target-file, relative to root: target-file 1847s # Found file normal_file, relative to root: normal_file 1847s # Found file normal_file-symlink, relative to root: normal_file-symlink 1847s # Found file executable_file, relative to root: executable_file 1847s # Found file private_file, relative to root: private_file 1847s # Found file normal_file2, relative to root: normal_file2 1847s # Found file readonly_file, relative to root: readonly_file 1847s # Found file UTF_příliš z, relative to root: UTF_příliš z 1847s # Found file dir_příliš z, relative to root: dir_příliš z 1847s # Found file lost_symlink, relative to root: lost_symlink 1847s # Found file dir_hidden, relative to root: dir_hidden 1847s # Found file .a-hidden-file, relative to root: dir_hidden/.a-hidden-file 1847s # Found file file-in-.hidden1, relative to root: dir_hidden/file-in-.hidden1 1847s # Found file .hidden, relative to root: dir_hidden/.hidden 1847s # Found file file-in-.hidden2, relative to root: dir_hidden/file-in-.hidden2 1847s # Found file pattern_file, relative to root: pattern_file 1847s ok 4 /live-g-file/test_traverse_structure 1847s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_enumerate/.dirs/home 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_enumerate/.dirs/cache 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_B3AKC3/live-g-file/test_enumerate/.dirs/system-config1:/tmp/test_live-g-file_B3AKC3/live-g-file/test_enumerate/.dirs/system-config2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_enumerate/.dirs/config 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_B3AKC3/live-g-file/test_enumerate/.dirs/system-data1:/tmp/test_live-g-file_B3AKC3/live-g-file/test_enumerate/.dirs/system-data2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_enumerate/.dirs/data 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_enumerate/.dirs/state 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_B3AKC3/live-g-file/test_enumerate/.dirs/runtime 1847s # Test enumerate '/tmp/test_live-g-file_B3AKC3/testdir_live-g-file'... 1847s # Testing file 'dir_no-access' 1847s # Testing file 'normal_file' 1847s # Testing file 'normal_file-symlink' 1847s # Testing file 'not_exists' 1847s # Testing file 'not_exists' 1847s # Testing file 'not_exists2' 1847s # Testing file 'not_exists3' 1847s # Testing file 'not_exists4' 1847s # Testing file 'dir_no-execute/file' 1847s ok 5 /live-g-file/test_enumerate 1847s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_open/.dirs/home 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_open/.dirs/cache 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_B3AKC3/live-g-file/test_open/.dirs/system-config1:/tmp/test_live-g-file_B3AKC3/live-g-file/test_open/.dirs/system-config2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_open/.dirs/config 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_B3AKC3/live-g-file/test_open/.dirs/system-data1:/tmp/test_live-g-file_B3AKC3/live-g-file/test_open/.dirs/system-data2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_open/.dirs/data 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_open/.dirs/state 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_B3AKC3/live-g-file/test_open/.dirs/runtime 1847s # test_open: 'dir1' 1847s # test_open: 'dir_no-access' 1847s # test_open: 'target-file' 1847s # test_open: 'normal_file-symlink' 1847s # test_open: 'executable_file' 1847s # test_open: 'private_file' 1847s # test_open: 'readonly_file' 1847s # test_open: 'UTF_příliš z' 1847s # test_open: 'pattern_file' 1847s # test_open: 'not_exists' 1847s # test_open: 'dir_no-execute/file' 1847s # test_open: 'lost_symlink' 1847s ok 6 /live-g-file/test_open 1847s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_create/.dirs/home 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_create/.dirs/cache 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_B3AKC3/live-g-file/test_create/.dirs/system-config1:/tmp/test_live-g-file_B3AKC3/live-g-file/test_create/.dirs/system-config2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_create/.dirs/config 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_B3AKC3/live-g-file/test_create/.dirs/system-data1:/tmp/test_live-g-file_B3AKC3/live-g-file/test_create/.dirs/system-data2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_create/.dirs/data 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_create/.dirs/state 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_B3AKC3/live-g-file/test_create/.dirs/runtime 1847s # test_create: 'dir1' 1847s # error code 3 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/dir1”: Is a directory 1847s # test_create: 'dir1/subdir' 1847s # error code 3 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/dir1/subdir”: Is a directory 1847s # test_create: 'dir2' 1847s # error code 2 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/dir2”: File exists 1847s # test_create: 'normal_file' 1847s # error code 2 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/normal_file”: File exists 1847s # test_create: 'executable_file' 1847s # test_create: 'private_file' 1847s # test_create: 'normal_file2' 1847s # test_create: 'UTF_příliš z' 1847s # error code 2 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/UTF_příliš z”: File exists 1847s # test_create: 'dir_příliš z' 1847s # error code 2 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/dir_příliš z”: File exists 1847s # test_create: 'pattern_file' 1847s # test_create: 'not_exists2' 1847s # test_create: 'not_exists3' 1847s # test_create: 'not_exists4' 1847s ok 7 /live-g-file/test_create 1847s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_copy_move/.dirs/home 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_copy_move/.dirs/cache 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_B3AKC3/live-g-file/test_copy_move/.dirs/system-config1:/tmp/test_live-g-file_B3AKC3/live-g-file/test_copy_move/.dirs/system-config2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_copy_move/.dirs/config 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_B3AKC3/live-g-file/test_copy_move/.dirs/system-data1:/tmp/test_live-g-file_B3AKC3/live-g-file/test_copy_move/.dirs/system-data2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_copy_move/.dirs/data 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_copy_move/.dirs/state 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_B3AKC3/live-g-file/test_copy_move/.dirs/runtime 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'dir1/subdir' --> 'dir-target' 1847s # res = 0, error code 25 = Can’t recursively copy directory 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'dir1/subdir' --> '.' 1847s # res = 0, error code 2 = Target file exists 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s ok - glib/live-g-file.test 1847s # Running test: glib/gdbus-threading.test 1847s ok - glib/gdbus-threading.test 1847s # Running test: glib/mem-overflow.test 1847s # do_copy_move: 'dir1/subdir' --> 'target-file' 1847s # res = 0, error code 4 = Error when getting information for file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/target-file/dir1/subdir”: Not a directory 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'dir1/subdir' --> 'not_exists' 1847s # res = 0, error code 25 = Can’t recursively copy directory 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'dir1/subdir' --> 'dir_no-access' 1847s # res = 0, error code 25 = Can’t recursively copy directory 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'dir1/subdir' --> 'dir_no-write' 1847s # res = 0, error code 25 = Can’t recursively copy directory 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'dir2' --> 'dir-target' 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'dir-target' --> 'dir-target' 1847s # res = 0, error code 25 = Can’t recursively copy directory 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'dir-target' --> '.' 1847s # res = 0, error code 2 = Target file exists 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'dir-target' --> 'target-file' 1847s # res = 0, error code 4 = Error when getting information for file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/target-file/dir-target”: Not a directory 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'dir-target' --> 'not_exists' 1847s # res = 0, error code 25 = Can’t recursively copy directory 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'dir-target' --> 'dir_no-access' 1847s # res = 0, error code 25 = Can’t recursively copy directory 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'dir-target' --> 'dir_no-write' 1847s # res = 0, error code 25 = Can’t recursively copy directory 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'target-file' --> 'dir-target' 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'target-file' --> '.' 1847s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/target-file”: File exists 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'target-file' --> 'target-file' 1847s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/target-file/target-file”: Not a directory 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'target-file' --> 'not_exists' 1847s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/not_exists/target-file”: No such file or directory 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'target-file' --> 'dir_no-access' 1847s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/dir_no-access/target-file”: Permission denied 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'target-file' --> 'dir_no-write' 1847s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/dir_no-write/target-file”: Permission denied 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'normal_file-symlink' --> 'dir-target' 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'normal_file-symlink' --> '.' 1847s # res = 0, error code 2 = Error making symbolic link /tmp/test_live-g-file_B3AKC3/testdir_live-g-file/normal_file-symlink: File exists 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'normal_file-symlink' --> 'target-file' 1847s # res = 0, error code 4 = Error making symbolic link /tmp/test_live-g-file_B3AKC3/testdir_live-g-file/target-file/normal_file-symlink: Not a directory 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'normal_file-symlink' --> 'not_exists' 1847s # res = 0, error code 1 = Error making symbolic link /tmp/test_live-g-file_B3AKC3/testdir_live-g-file/not_exists/normal_file-symlink: No such file or directory 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'normal_file-symlink' --> 'dir_no-access' 1847s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_B3AKC3/testdir_live-g-file/dir_no-access/normal_file-symlink: Permission denied 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'normal_file-symlink' --> 'dir_no-write' 1847s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_B3AKC3/testdir_live-g-file/dir_no-write/normal_file-symlink: Permission denied 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'executable_file' --> 'dir-target' 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'executable_file' --> 'dir-target' 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'executable_file' --> '.' 1847s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/executable_file”: File exists 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'executable_file' --> 'target-file' 1847s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/target-file/executable_file”: Not a directory 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'executable_file' --> 'not_exists' 1847s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/not_exists/executable_file”: No such file or directory 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'executable_file' --> 'dir_no-access' 1847s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/dir_no-access/executable_file”: Permission denied 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'executable_file' --> 'dir_no-write' 1847s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/dir_no-write/executable_file”: Permission denied 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'private_file' --> 'dir-target' 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'private_file' --> 'dir-target' 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'private_file' --> '.' 1847s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/private_file”: File exists 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'private_file' --> 'target-file' 1847s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/target-file/private_file”: Not a directory 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'private_file' --> 'not_exists' 1847s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/not_exists/private_file”: No such file or directory 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'private_file' --> 'dir_no-access' 1847s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/dir_no-access/private_file”: Permission denied 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'private_file' --> 'dir_no-write' 1847s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/dir_no-write/private_file”: Permission denied 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'normal_file2' --> 'dir-target' 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'normal_file2' --> 'dir-target' 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'normal_file2' --> '.' 1847s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/normal_file2”: File exists 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'normal_file2' --> 'target-file' 1847s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/target-file/normal_file2”: Not a directory 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'normal_file2' --> 'not_exists' 1847s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/not_exists/normal_file2”: No such file or directory 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'normal_file2' --> 'dir_no-access' 1847s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/dir_no-access/normal_file2”: Permission denied 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'normal_file2' --> 'dir_no-write' 1847s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/dir_no-write/normal_file2”: Permission denied 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'UTF_příliš z' --> 'dir-target' 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'UTF_příliš z' --> 'dir-target' 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'UTF_příliš z' --> '.' 1847s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/UTF_příliš z”: File exists 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'UTF_příliš z' --> 'target-file' 1847s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/target-file/UTF_příliš z”: Not a directory 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'UTF_příliš z' --> 'not_exists' 1847s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/not_exists/UTF_příliš z”: No such file or directory 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'UTF_příliš z' --> 'dir_no-access' 1847s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/dir_no-access/UTF_příliš z”: Permission denied 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'UTF_příliš z' --> 'dir_no-write' 1847s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/dir_no-write/UTF_příliš z”: Permission denied 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'pattern_file' --> 'dir-target' 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'pattern_file' --> '.' 1847s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/pattern_file”: File exists 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'pattern_file' --> 'target-file' 1847s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/target-file/pattern_file”: Not a directory 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'pattern_file' --> 'not_exists' 1847s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/not_exists/pattern_file”: No such file or directory 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'pattern_file' --> 'dir_no-access' 1847s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/dir_no-access/pattern_file”: Permission denied 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'pattern_file' --> 'dir_no-write' 1847s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/dir_no-write/pattern_file”: Permission denied 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'not_exists' --> 'dir-target' 1847s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/not_exists”: No such file or directory 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'not_exists' --> '.' 1847s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/not_exists”: No such file or directory 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'not_exists' --> 'target-file' 1847s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/not_exists”: No such file or directory 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'not_exists' --> 'not_exists' 1847s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/not_exists”: No such file or directory 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'not_exists' --> 'dir_no-access' 1847s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/not_exists”: No such file or directory 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'not_exists' --> 'dir_no-write' 1847s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_B3AKC3/testdir_live-g-file/not_exists”: No such file or directory 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'not_exists' --> 'dir-target' 1847s # res = 0, error code 1 = Error moving file /tmp/test_live-g-file_B3AKC3/testdir_live-g-file/not_exists: No such file or directory 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'lost_symlink' --> 'dir-target' 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'lost_symlink' --> '.' 1847s # res = 0, error code 2 = Error making symbolic link /tmp/test_live-g-file_B3AKC3/testdir_live-g-file/lost_symlink: File exists 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'lost_symlink' --> 'target-file' 1847s # res = 0, error code 4 = Error making symbolic link /tmp/test_live-g-file_B3AKC3/testdir_live-g-file/target-file/lost_symlink: Not a directory 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'lost_symlink' --> 'not_exists' 1847s # res = 0, error code 1 = Error making symbolic link /tmp/test_live-g-file_B3AKC3/testdir_live-g-file/not_exists/lost_symlink: No such file or directory 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'lost_symlink' --> 'dir_no-access' 1847s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_B3AKC3/testdir_live-g-file/dir_no-access/lost_symlink: Permission denied 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s # do_copy_move: 'lost_symlink' --> 'dir_no-write' 1847s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_B3AKC3/testdir_live-g-file/dir_no-write/lost_symlink: Permission denied 1847s ok 8 /live-g-file/test_copy_move 1847s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_delete/.dirs/home 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_delete/.dirs/cache 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_B3AKC3/live-g-file/test_delete/.dirs/system-config1:/tmp/test_live-g-file_B3AKC3/live-g-file/test_delete/.dirs/system-config2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_delete/.dirs/config 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_B3AKC3/live-g-file/test_delete/.dirs/system-data1:/tmp/test_live-g-file_B3AKC3/live-g-file/test_delete/.dirs/system-data2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_delete/.dirs/data 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_delete/.dirs/state 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_B3AKC3/live-g-file/test_delete/.dirs/runtime 1847s # Deleting dir1, path = /tmp/test_live-g-file_B3AKC3/testdir_live-g-file/dir1 1847s # result = 0, error = Error removing file /tmp/test_live-g-file_B3AKC3/testdir_live-g-file/dir1: Directory not empty 1847s # Deleting dir2, path = /tmp/test_live-g-file_B3AKC3/testdir_live-g-file/dir2 1847s # result = 0, error = Error removing file /tmp/test_live-g-file_B3AKC3/testdir_live-g-file/dir2: No such file or directory 1847s # Deleting executable_file, path = /tmp/test_live-g-file_B3AKC3/testdir_live-g-file/executable_file 1847s # result = 0, error = Error trashing file /tmp/test_live-g-file_B3AKC3/testdir_live-g-file/executable_file: No such file or directory 1847s # Deleting readonly_file, path = /tmp/test_live-g-file_B3AKC3/testdir_live-g-file/readonly_file 1847s # Deleting dir_příliš z, path = /tmp/test_live-g-file_B3AKC3/testdir_live-g-file/dir_příliš z 1847s # Deleting not_exists, path = /tmp/test_live-g-file_B3AKC3/testdir_live-g-file/not_exists 1847s # result = 0, error = Error removing file /tmp/test_live-g-file_B3AKC3/testdir_live-g-file/not_exists: No such file or directory 1847s # Deleting not_exists, path = /tmp/test_live-g-file_B3AKC3/testdir_live-g-file/not_exists 1847s # result = 0, error = Error trashing file /tmp/test_live-g-file_B3AKC3/testdir_live-g-file/not_exists: No such file or directory 1847s # Deleting dir_no-execute/file, path = /tmp/test_live-g-file_B3AKC3/testdir_live-g-file/dir_no-execute/file 1847s # result = 0, error = Error removing file /tmp/test_live-g-file_B3AKC3/testdir_live-g-file/dir_no-execute/file: No such file or directory 1847s # Deleting lost_symlink, path = /tmp/test_live-g-file_B3AKC3/testdir_live-g-file/lost_symlink 1847s ok 9 /live-g-file/test_delete 1847s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_make_directory_with_parents/.dirs/home 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_make_directory_with_parents/.dirs/cache 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_B3AKC3/live-g-file/test_make_directory_with_parents/.dirs/system-config1:/tmp/test_live-g-file_B3AKC3/live-g-file/test_make_directory_with_parents/.dirs/system-config2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_make_directory_with_parents/.dirs/config 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_B3AKC3/live-g-file/test_make_directory_with_parents/.dirs/system-data1:/tmp/test_live-g-file_B3AKC3/live-g-file/test_make_directory_with_parents/.dirs/system-data2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_make_directory_with_parents/.dirs/data 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_make_directory_with_parents/.dirs/state 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_B3AKC3/live-g-file/test_make_directory_with_parents/.dirs/runtime 1847s # We do not have CAP_DAC_OVERRIDE or equivalent 1847s ok 10 /live-g-file/test_make_directory_with_parents 1847s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/final_clean/.dirs/home 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/final_clean/.dirs/cache 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_B3AKC3/live-g-file/final_clean/.dirs/system-config1:/tmp/test_live-g-file_B3AKC3/live-g-file/final_clean/.dirs/system-config2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/final_clean/.dirs/config 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_B3AKC3/live-g-file/final_clean/.dirs/system-data1:/tmp/test_live-g-file_B3AKC3/live-g-file/final_clean/.dirs/system-data2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/final_clean/.dirs/data 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/final_clean/.dirs/state 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_B3AKC3/live-g-file/final_clean/.dirs/runtime 1847s # Cleaning target testing structure in '/tmp/test_live-g-file_B3AKC3/testdir_live-g-file'... 1847s # deleting 'dir1' 1847s # deleting 'subdir' 1847s # deleting 'dir-target' 1847s # deleting 'dir2' 1847s # deleting 'target-file' 1847s # deleting 'normal_file-symlink' 1847s # deleting 'executable_file' 1847s # deleting 'private_file' 1847s # deleting 'normal_file2' 1847s # deleting 'UTF_příliš z' 1847s # deleting 'pattern_file' 1847s # deleting 'lost_symlink' 1847s # deleting 'dir_no-access' 1847s # deleting 'dir_no-write' 1847s # deleting 'target-file' 1847s # deleting 'normal_file' 1847s # deleting 'normal_file-symlink' 1847s # deleting 'executable_file~' 1847s # deleting 'private_file' 1847s # deleting 'normal_file2~' 1847s # deleting 'UTF_příliš z' 1847s # deleting 'dir_hidden' 1847s # deleting '.a-hidden-file' 1847s # deleting 'file-in-.hidden1' 1847s # deleting '.hidden' 1847s # deleting 'file-in-.hidden2' 1847s # deleting 'pattern_file' 1847s # deleting 'executable_file' 1847s # deleting 'normal_file2' 1847s # deleting 'not_exists2' 1847s # deleting 'not_exists3' 1847s # deleting 'not_exists4' 1847s # deleting 'a' 1847s ok 11 /live-g-file/final_clean 1847s # Start of test_unix_is_mountpoint tests 1847s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/home 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/cache 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_B3AKC3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-config1:/tmp/test_live-g-file_B3AKC3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-config2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/config 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_B3AKC3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-data1:/tmp/test_live-g-file_B3AKC3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-data2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/data 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/state 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_B3AKC3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/runtime 1847s ok 12 /live-g-file/test_unix_is_mountpoint/sysroot 1847s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_unix_is_mountpoint/proc/.dirs/home 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_unix_is_mountpoint/proc/.dirs/cache 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_B3AKC3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-config1:/tmp/test_live-g-file_B3AKC3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-config2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_unix_is_mountpoint/proc/.dirs/config 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_B3AKC3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-data1:/tmp/test_live-g-file_B3AKC3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-data2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_unix_is_mountpoint/proc/.dirs/data 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_B3AKC3/live-g-file/test_unix_is_mountpoint/proc/.dirs/state 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_B3AKC3/live-g-file/test_unix_is_mountpoint/proc/.dirs/runtime 1847s ok 13 /live-g-file/test_unix_is_mountpoint/proc 1847s # End of test_unix_is_mountpoint tests 1847s # End of live-g-file tests 1847s TAP version 14 1847s # random seed: R02S65fc84bcb091f8daa0c9c5a7dfd07290 1847s # 1..0 # SKIP all gdbus-threading tests skipped because they are too unreliable (glib#1515) 1847s TAP version 14 1847s # random seed: R02S8b248db40f89c378da4aadca14db2f8b 1847s 1..2 1847s # Start of mem tests 1847s ok 1 /mem/overflow 1847s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=615379 1847s ok 2 /mem/empty-alloc 1847s # Start of overflow tests 1847s # Start of subprocess tests 1847s # End of subprocess tests 1847s # End of overflow tests 1847s # Start of empty-alloc tests 1847s # End of empty-alloc tests 1847s # End of mem tests 1847s ok - glib/mem-overflow.test 1847s # Running test: glib/gdbus-auth.test 1847s TAP version 14 1847s # random seed: R02S6b391db48726964f20407040b1e44508 1847s 1..5 1847s # Start of gdbus tests 1847s # Start of auth tests 1847s # Start of client tests 1847s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/client/EXTERNAL/.dirs/home 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/client/EXTERNAL/.dirs/cache 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/client/EXTERNAL/.dirs/system-config1:/tmp/test_gdbus-auth_V6I2B3/gdbus/auth/client/EXTERNAL/.dirs/system-config2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/client/EXTERNAL/.dirs/config 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/client/EXTERNAL/.dirs/system-data1:/tmp/test_gdbus-auth_V6I2B3/gdbus/auth/client/EXTERNAL/.dirs/system-data2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/client/EXTERNAL/.dirs/data 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/client/EXTERNAL/.dirs/state 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/client/EXTERNAL/.dirs/runtime 1847s ok 1 /gdbus/auth/client/EXTERNAL 1847s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/home 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/cache 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-config1:/tmp/test_gdbus-auth_V6I2B3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-config2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/config 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-data1:/tmp/test_gdbus-auth_V6I2B3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-data2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/data 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/state 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/runtime 1847s ok 2 /gdbus/auth/client/DBUS_COOKIE_SHA1 1847s # End of client tests 1847s # Start of server tests 1847s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/server/ANONYMOUS/.dirs/home 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/server/ANONYMOUS/.dirs/cache 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/server/ANONYMOUS/.dirs/system-config1:/tmp/test_gdbus-auth_V6I2B3/gdbus/auth/server/ANONYMOUS/.dirs/system-config2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/server/ANONYMOUS/.dirs/config 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/server/ANONYMOUS/.dirs/system-data1:/tmp/test_gdbus-auth_V6I2B3/gdbus/auth/server/ANONYMOUS/.dirs/system-data2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/server/ANONYMOUS/.dirs/data 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/server/ANONYMOUS/.dirs/state 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/server/ANONYMOUS/.dirs/runtime 1847s ok 3 /gdbus/auth/server/ANONYMOUS 1847s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/server/EXTERNAL/.dirs/home 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/server/EXTERNAL/.dirs/cache 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/server/EXTERNAL/.dirs/system-config1:/tmp/test_gdbus-auth_V6I2B3/gdbus/auth/server/EXTERNAL/.dirs/system-config2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/server/EXTERNAL/.dirs/config 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/server/EXTERNAL/.dirs/system-data1:/tmp/test_gdbus-auth_V6I2B3/gdbus/auth/server/EXTERNAL/.dirs/system-data2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/server/EXTERNAL/.dirs/data 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/server/EXTERNAL/.dirs/state 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/server/EXTERNAL/.dirs/runtime 1847s ok 4 /gdbus/auth/server/EXTERNAL 1847s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/home 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/cache 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-config1:/tmp/test_gdbus-auth_V6I2B3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-config2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/config 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-data1:/tmp/test_gdbus-auth_V6I2B3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-data2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/data 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/state 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_V6I2B3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/runtime 1847s ok 5 /gdbus/auth/server/DBUS_COOKIE_SHA1 1847s # End of server tests 1847s # End of auth tests 1847s # End of gdbus tests 1847s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1847s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1847s ok - glib/gdbus-auth.test 1847s # Running test: glib/dynamictests.test 1847s TAP version 14 1847s # random seed: R02S3fe7cd27083eaa03871019b05f45e15b 1847s 1..2 1847s # Start of GObject tests 1847s ok 1 /GObject/threaded-dynamic-ref-unref-init 1847s ok 2 /GObject/dynamic-interface-properties 1847s # End of GObject tests 1847s ok - glib/dynamictests.test 1847s # Running test: glib/gdbus-connection-loss.test 1847s TAP version 14 1847s # random seed: R02S6df4e750e4cca9d37f04128fed515203 1847s 1..1 1847s # Start of gdbus tests 1847s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-loss_TR86B3/gdbus/connection-loss/.dirs/home 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-loss_TR86B3/gdbus/connection-loss/.dirs/cache 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-loss_TR86B3/gdbus/connection-loss/.dirs/system-config1:/tmp/test_gdbus-connection-loss_TR86B3/gdbus/connection-loss/.dirs/system-config2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-loss_TR86B3/gdbus/connection-loss/.dirs/config 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-loss_TR86B3/gdbus/connection-loss/.dirs/system-data1:/tmp/test_gdbus-connection-loss_TR86B3/gdbus/connection-loss/.dirs/system-data2 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-loss_TR86B3/gdbus/connection-loss/.dirs/data 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-loss_TR86B3/gdbus/connection-loss/.dirs/state 1847s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-loss_TR86B3/gdbus/connection-loss/.dirs/runtime 1847s ok - glib/gdbus-connection-loss.test 1847s ok 1 /gdbus/connection-loss 1847s # End of gdbus tests 1847s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1847s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1847s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1847s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1847s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1847s # Running test: glib/thread.test 1847s TAP version 14 1847s # random seed: R02S0c4ef85c380a40e3404a0a83a979b8f8 1847s 1..7 1847s # Start of thread tests 1847s ok 1 /thread/thread1 1847s ok 2 /thread/thread2 1847s ok 3 /thread/thread3 1847s ok 4 /thread/thread4 1847s ok 5 /thread/thread5 1847s ok 6 /thread/thread6 1847s ok 7 /thread/thread7 1847s # End of thread tests 1847s ok - glib/thread.test 1847s # Running test: glib/g-file.test 1847s TAP version 14 1847s # random seed: R02S39bce3ac6a6e579d518ee50aeb53cc20 1847s 1..8 1847s # Start of g-file tests 1847s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1847s ok 1 /g-file/test_g_file_new_null 1847s ok 2 /g-file/test_g_file_new_for_path 1847s ok - glib/g-file.test 1847s ok 3 /g-file/test_g_file_new_for_uri 1847s ok 4 /g-file/test_g_file_dup 1847s ok 5 /g-file/test_g_file_get_parse_name_utf8 1847s file:///tmp/test-tmp-glib_g-file.test-34G9B3 1847s file:///tmp 1847s file:///tmp 1847s file:////UTF-8%20p%C5%99%C3%ADli%C5%A1%20%C5%BElu%C5%A5ou%C4%8Dk%C3%BD%20k%C5%AF%C5%88 1847s file:///UTF-8%20p%C5%99%C3%ADli%C5%A1%20%C5%BElu%C5%A5ou%C4%8Dk%C3%BD%20k%C5%AF%C5%88 1847s ok 6 /g-file/test_g_file_new_for_commandline_arg 1847s /dir1 /dir1/dir2/dir3/ 1847s /dir1/ /dir1/dir2/dir3/ 1847s /dir1 /dir1/dir2/dir3 1847s /dir1/ /dir1/dir2/dir3 1847s /tmp/ /something/ 1847s /dir1/dir2 /dir1/ 1847s //dir1/new //dir1/new/dir2/dir3 1847s /dir/UTF-8 příliš žluťoučký kůň /dir/UTF-8 příliš žluťoučký kůň/dir2 1847s file:///dir1 file:///dir1/dir2/dir3/ 1847s file:///dir1/ file:///dir1/dir2/dir3/ 1847s file:///dir1 file:///dir1/dir2/dir3 1847s file:///dir1/ file:///dir1/dir2/dir3 1847s file:///tmp/ file:///something/ 1847s file:///dir1/dir2 file:///dir1/ 1847s file:////dir1/new file:////dir1/new/dir2/dir3 1847s file:///dir/UTF-8%20p%C5%99%C3%ADli%C5%A1%20%C5%BElu%C5%A5ou%C4%8Dk%C3%BD%20k%C5%AF%C5%88 file:///dir/UTF-8%20p%C5%99%C3%ADli%C5%A1%20%C5%BElu%C5%A5ou%C4%8Dk%C3%BD%20k%C5%AF%C5%88/dir2 1847s ok 7 /g-file/test_g_file_has_prefix 1847s ok 8 /g-file/test_g_file_get_parent_child 1847s # End of g-file tests 1847s # Running test: glib/objects-refcount2.test 1847s TAP version 14 1847s # random seed: R02Sf8fce874194f5a78efc28cdae543a23f 1847s 1..1 1847s # Start of gobject tests 1847s # Start of refcount tests 1847s # init 0xe596ee8 1847s # 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1848s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1849s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1850s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # . 1851s # Executing: glib/objects-refcount2.test 1851s # . 1851s # . 1851s # . 1851s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1852s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1853s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1854s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1855s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # Executing: glib/objects-refcount2.test 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1856s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1857s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1858s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1859s # . 1860s # . 1860s # . 1860s # . 1860s # . 1860s # dispose 0xe596ee8! 1860s # 1860s ok 1 /gobject/refcount/object-advanced 1860s # slow test /gobject/refcount/object-advanced executed in 12.05 secs 1860s # End of refcount tests 1860s # End of gobject tests 1860s ok - glib/objects-refcount2.test 1860s # Running test: glib/buffered-output-stream.test 1860s TAP version 14 1860s # random seed: R02Se7d70477fe6cbcd49ecbeb205bd5fbf4 1860s 1..5 1860s # Start of buffered-output-stream tests 1860s ok 1 /buffered-output-stream/write 1860s ok 2 /buffered-output-stream/grow 1860s ok 3 /buffered-output-stream/seek 1860s ok 4 /buffered-output-stream/truncate 1860s # End of buffered-output-stream tests 1860s # Start of filter-output-stream tests 1860s ok - glib/buffered-output-stream.test 1860s ok 5 /filter-output-stream/close 1860s # End of filter-output-stream tests 1860s # Running test: glib/gdbus-connection-flush.test 1860s TAP version 14 1860s # random seed: R02S800c6d998821cb132d497b9c5803b131 1860s 1..2 1860s # Start of gdbus tests 1860s # Start of connection tests 1860s # Start of flush tests 1860s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-flush_BQFCC3/gdbus/connection/flush/busy/.dirs/home 1860s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-flush_BQFCC3/gdbus/connection/flush/busy/.dirs/cache 1860s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-flush_BQFCC3/gdbus/connection/flush/busy/.dirs/system-config1:/tmp/test_gdbus-connection-flush_BQFCC3/gdbus/connection/flush/busy/.dirs/system-config2 1860s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-flush_BQFCC3/gdbus/connection/flush/busy/.dirs/config 1860s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-flush_BQFCC3/gdbus/connection/flush/busy/.dirs/system-data1:/tmp/test_gdbus-connection-flush_BQFCC3/gdbus/connection/flush/busy/.dirs/system-data2 1860s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-flush_BQFCC3/gdbus/connection/flush/busy/.dirs/data 1860s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-flush_BQFCC3/gdbus/connection/flush/busy/.dirs/state 1860s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-flush_BQFCC3/gdbus/connection/flush/busy/.dirs/runtime 1860s ok 1 /gdbus/connection/flush/busy 1860s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-flush_BQFCC3/gdbus/connection/flush/idle/.dirs/home 1860s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-flush_BQFCC3/gdbus/connection/flush/idle/.dirs/cache 1860s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-flush_BQFCC3/gdbus/connection/flush/idle/.dirs/system-config1:/tmp/test_gdbus-connection-flush_BQFCC3/gdbus/connection/flush/idle/.dirs/system-config2 1860s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-flush_BQFCC3/gdbus/connection/flush/idle/.dirs/config 1860s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-flush_BQFCC3/gdbus/connection/flush/idle/.dirs/system-data1:/tmp/test_gdbus-connection-flush_BQFCC3/gdbus/connection/flush/idle/.dirs/system-data2 1860s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-flush_BQFCC3/gdbus/connection/flush/idle/.dirs/data 1860s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-flush_BQFCC3/gdbus/connection/flush/idle/.dirs/state 1860s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-flush_BQFCC3/gdbus/connection/flush/idle/.dirs/runtime 1860s ok 2 /gdbus/connection/flush/idle 1860s # End of flush tests 1860s # End of connection tests 1860s # End of gdbus tests 1860s ok - glib/gdbus-connection-flush.test 1860s # Running test: glib/cancellable.test 1860s TAP version 14 1860s # random seed: R02Sebc11b2f22ee01580649b8b245e70121 1860s 1..18 1860s # Start of cancellable tests 1860s ok 1 /cancellable/multiple-concurrent # SKIP Not running timing heavy test 1860s ok 2 /cancellable/null 1860s ok 3 /cancellable/connect-data-is-destroyed-on-disconnect-and-dispose 1860s # /cancellable/connect-to-disposing-callback summary: A cancellable signal callback can unref the cancellable 1860s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3643 1860s ok 4 /cancellable/connect-to-disposing-callback 1860s ok 5 /cancellable/connect-cancelled-data-is-destroyed 1860s # Toggle reference callback for GCancellable (0xf15d558), last: 1 1860s # Toggle reference callback for GCancellable (0xf15d558), last: 0 1860s # Toggle reference callback for GCancellable (0xf15d558), last: 1 1860s ok 6 /cancellable/connect-to-disposing-callback-with-toggle-reference 1860s # /cancellable/connect-cancelled-to-disposing-callback summary: A cancellable signal callback can unref the cancellable 1860s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3643 1860s ok 7 /cancellable/connect-cancelled-to-disposing-callback 1860s ok 8 /cancellable/connect-cancelled-with-destroy-func-disposing-cancellable 1860s # Toggle reference callback for GCancellable (0xf15d558), last: 1 1860s # Toggle reference callback for GCancellable (0xf15d558), last: 0 1860s # Toggle reference callback for GCancellable (0xf15d558), last: 1 1860s # Toggle reference callback for GCancellable (0xf15d558), last: 0 1860s # Toggle reference callback for GCancellable (0xf15d558), last: 1 1860s ok 9 /cancellable/connect-cancelled-to-disposing-callback-with-toggle-reference 1860s # /cancellable/disconnect-on-cancelled-callback-hangs summary: Tests that trying to disconnect a cancellable from the cancelled signal callback will result in a deadlock as per #GCancellable::cancelled 1860s ok 10 /cancellable/disconnect-on-cancelled-callback-hangs 1860s # /cancellable/resets-on-cancel-callback-hangs summary: Tests that trying to reset a cancellable from the cancelled signal callback will result in a deadlock as per #GCancellable::cancelled 1860s ok 11 /cancellable/resets-on-cancel-callback-hangs 1860s ok 12 /cancellable/poll-fd 1860s # /cancellable/poll-fd-cancelled summary: Tests that cancellation wakes up a pollable FD on creation 1860s ok 13 /cancellable/poll-fd-cancelled 1860s # /cancellable/poll-fd-cancelled-threaded summary: Tests that a cancellation wakes up a pollable FD 1860s ok 14 /cancellable/poll-fd-cancelled-threaded 1860s # /cancellable/cancel-reset-races summary: Tests threads racing for cancelling and resetting a GCancellable 1860s ok 15 /cancellable/cancel-reset-races 1860s # /cancellable/cancel-reset-connect-races summary: Tests threads racing for cancelling, connecting and disconnecting and resetting a GCancellable 1860s ok 16 /cancellable/cancel-reset-connect-races 1860s # End of cancellable tests 1860s # Start of cancellable-source tests 1860s # /cancellable-source/threaded-dispose summary: Test a thread race between disposing of a GCancellableSource (in one thread) and cancelling the GCancellable it refers to (in another thread) 1860s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1841 1861s # Executing: glib/cancellable.test 1862s ok 17 /cancellable-source/threaded-dispose 1862s # slow test /cancellable-source/threaded-dispose executed in 2.39 secs 1862s # /cancellable-source/can-be-fired-multiple-times summary: Test a cancellable source callback can be called multiple times 1862s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/774 1862s ok 18 /cancellable-source/can-be-fired-multiple-times 1862s # End of cancellable-source tests 1862s ok - glib/cancellable.test 1862s # Running test: glib/module-test-library.test 1862s TAP version 14 1862s # random seed: R02S64ddfed61dee02e3ef10dfb4317ddd53 1862s 1..3 1862s # Start of module tests 1862s ok 1 /module/basics 1862s # /module/invalid-libtool-archive summary: Test that opening an invalid .la file fails 1862s ok 2 /module/invalid-libtool-archive 1862s # /module/local-binding summary: Test that binding a library's symbols locally does not add them globally 1862s ok 3 /module/local-binding 1862s # End of module tests 1862s ok - glib/module-test-library.test 1862s # Running test: glib/checksum.test 1862s TAP version 14 1862s # random seed: R02S3f7c8831f9a268e9ec056b4baad0c30d 1862s 1..1851 1862s # Start of checksum tests 1862s ok 1 /checksum/unsupported 1862s # Start of MD5 tests 1862s ok 2 /checksum/MD5/0 1862s ok 3 /checksum/MD5/1 1862s ok 4 /checksum/MD5/2 1862s ok 5 /checksum/MD5/3 1862s ok 6 /checksum/MD5/4 1862s ok 7 /checksum/MD5/5 1862s ok 8 /checksum/MD5/6 1862s ok 9 /checksum/MD5/7 1862s ok 10 /checksum/MD5/8 1862s ok 11 /checksum/MD5/9 1862s ok 12 /checksum/MD5/10 1862s ok 13 /checksum/MD5/11 1862s ok 14 /checksum/MD5/12 1862s ok 15 /checksum/MD5/13 1862s ok 16 /checksum/MD5/14 1862s ok 17 /checksum/MD5/15 1862s ok 18 /checksum/MD5/16 1862s ok 19 /checksum/MD5/17 1862s ok 20 /checksum/MD5/18 1862s ok 21 /checksum/MD5/19 1862s ok 22 /checksum/MD5/20 1862s ok 23 /checksum/MD5/21 1862s ok 24 /checksum/MD5/22 1862s ok 25 /checksum/MD5/23 1862s ok 26 /checksum/MD5/24 1862s ok 27 /checksum/MD5/25 1862s ok 28 /checksum/MD5/26 1862s ok 29 /checksum/MD5/27 1862s ok 30 /checksum/MD5/28 1862s ok 31 /checksum/MD5/29 1862s ok 32 /checksum/MD5/30 1862s ok 33 /checksum/MD5/31 1862s ok 34 /checksum/MD5/32 1862s ok 35 /checksum/MD5/33 1862s ok 36 /checksum/MD5/34 1862s ok 37 /checksum/MD5/35 1862s ok 38 /checksum/MD5/36 1862s ok 39 /checksum/MD5/37 1862s ok 40 /checksum/MD5/38 1862s ok 41 /checksum/MD5/39 1862s ok 42 /checksum/MD5/40 1862s ok 43 /checksum/MD5/41 1862s ok 44 /checksum/MD5/42 1862s ok 45 /checksum/MD5/43 1862s ok 46 /checksum/MD5/44 1862s ok 47 /checksum/MD5/45 1862s ok 48 /checksum/MD5/46 1862s ok 49 /checksum/MD5/47 1862s ok 50 /checksum/MD5/48 1862s ok 51 /checksum/MD5/49 1862s ok 52 /checksum/MD5/50 1862s ok 53 /checksum/MD5/51 1862s ok 54 /checksum/MD5/52 1862s ok 55 /checksum/MD5/53 1862s ok 56 /checksum/MD5/54 1862s ok 57 /checksum/MD5/55 1862s ok 58 /checksum/MD5/56 1862s ok 59 /checksum/MD5/57 1862s ok 60 /checksum/MD5/58 1862s ok 61 /checksum/MD5/59 1862s ok 62 /checksum/MD5/60 1862s ok 63 /checksum/MD5/61 1862s ok 64 /checksum/MD5/62 1862s ok 65 /checksum/MD5/63 1862s ok 66 /checksum/MD5/64 1862s ok 67 /checksum/MD5/65 1862s ok 68 /checksum/MD5/66 1862s ok 69 /checksum/MD5/67 1862s ok 70 /checksum/MD5/68 1862s ok 71 /checksum/MD5/69 1862s ok 72 /checksum/MD5/70 1862s ok 73 /checksum/MD5/71 1862s ok 74 /checksum/MD5/72 1862s ok 75 /checksum/MD5/73 1862s ok 76 /checksum/MD5/74 1862s ok 77 /checksum/MD5/75 1862s ok 78 /checksum/MD5/76 1862s ok 79 /checksum/MD5/77 1862s ok 80 /checksum/MD5/78 1862s ok 81 /checksum/MD5/79 1862s ok 82 /checksum/MD5/80 1862s ok 83 /checksum/MD5/81 1862s ok 84 /checksum/MD5/82 1862s ok 85 /checksum/MD5/83 1862s ok 86 /checksum/MD5/84 1862s ok 87 /checksum/MD5/85 1862s ok 88 /checksum/MD5/86 1862s ok 89 /checksum/MD5/87 1862s ok 90 /checksum/MD5/88 1862s ok 91 /checksum/MD5/89 1862s ok 92 /checksum/MD5/90 1862s ok 93 /checksum/MD5/91 1862s ok 94 /checksum/MD5/92 1862s ok 95 /checksum/MD5/93 1862s ok 96 /checksum/MD5/94 1862s ok 97 /checksum/MD5/95 1862s ok 98 /checksum/MD5/96 1862s ok 99 /checksum/MD5/97 1862s ok 100 /checksum/MD5/98 1862s ok 101 /checksum/MD5/99 1862s ok 102 /checksum/MD5/100 1862s ok 103 /checksum/MD5/101 1862s ok 104 /checksum/MD5/102 1862s ok 105 /checksum/MD5/103 1862s ok 106 /checksum/MD5/104 1862s ok 107 /checksum/MD5/105 1862s ok 108 /checksum/MD5/106 1862s ok 109 /checksum/MD5/107 1862s ok 110 /checksum/MD5/108 1862s ok 111 /checksum/MD5/109 1862s ok 112 /checksum/MD5/110 1862s ok 113 /checksum/MD5/111 1862s ok 114 /checksum/MD5/112 1862s ok 115 /checksum/MD5/113 1862s ok 116 /checksum/MD5/114 1862s ok 117 /checksum/MD5/115 1862s ok 118 /checksum/MD5/116 1862s ok 119 /checksum/MD5/117 1862s ok 120 /checksum/MD5/118 1862s ok 121 /checksum/MD5/119 1862s ok 122 /checksum/MD5/120 1862s ok 123 /checksum/MD5/121 1862s ok 124 /checksum/MD5/122 1862s ok 125 /checksum/MD5/123 1862s ok 126 /checksum/MD5/124 1862s ok 127 /checksum/MD5/125 1862s ok 128 /checksum/MD5/126 1862s ok 129 /checksum/MD5/127 1862s ok 130 /checksum/MD5/128 1862s ok 131 /checksum/MD5/129 1862s ok 132 /checksum/MD5/130 1862s ok 133 /checksum/MD5/131 1862s ok 134 /checksum/MD5/132 1862s ok 135 /checksum/MD5/133 1862s ok 136 /checksum/MD5/134 1862s ok 137 /checksum/MD5/135 1862s ok 138 /checksum/MD5/136 1862s ok 139 /checksum/MD5/137 1862s ok 140 /checksum/MD5/138 1862s ok 141 /checksum/MD5/139 1862s ok 142 /checksum/MD5/140 1862s ok 143 /checksum/MD5/141 1862s ok 144 /checksum/MD5/142 1862s ok 145 /checksum/MD5/143 1862s ok 146 /checksum/MD5/144 1862s ok 147 /checksum/MD5/145 1862s ok 148 /checksum/MD5/146 1862s ok 149 /checksum/MD5/147 1862s ok 150 /checksum/MD5/148 1862s ok 151 /checksum/MD5/149 1862s ok 152 /checksum/MD5/150 1862s ok 153 /checksum/MD5/151 1862s ok 154 /checksum/MD5/152 1862s ok 155 /checksum/MD5/153 1862s ok 156 /checksum/MD5/154 1862s ok 157 /checksum/MD5/155 1862s ok 158 /checksum/MD5/156 1862s ok 159 /checksum/MD5/157 1862s ok 160 /checksum/MD5/158 1862s ok 161 /checksum/MD5/159 1862s ok 162 /checksum/MD5/160 1862s ok 163 /checksum/MD5/161 1862s ok 164 /checksum/MD5/162 1862s ok 165 /checksum/MD5/163 1862s ok 166 /checksum/MD5/164 1862s ok 167 /checksum/MD5/165 1862s ok 168 /checksum/MD5/166 1862s ok 169 /checksum/MD5/167 1862s ok 170 /checksum/MD5/168 1862s ok 171 /checksum/MD5/169 1862s ok 172 /checksum/MD5/170 1862s ok 173 /checksum/MD5/171 1862s ok 174 /checksum/MD5/172 1862s ok 175 /checksum/MD5/173 1862s ok 176 /checksum/MD5/174 1862s ok 177 /checksum/MD5/175 1862s ok 178 /checksum/MD5/176 1862s ok 179 /checksum/MD5/177 1862s ok 180 /checksum/MD5/178 1862s ok 181 /checksum/MD5/179 1862s ok 182 /checksum/MD5/180 1862s ok 183 /checksum/MD5/181 1862s ok 184 /checksum/MD5/182 1862s ok 185 /checksum/MD5/183 1862s ok 186 /checksum/MD5/string 1862s ok 187 /checksum/MD5/bytes 1862s # Start of reset tests 1862s ok 188 /checksum/MD5/reset/0 1862s ok 189 /checksum/MD5/reset/1 1862s ok 190 /checksum/MD5/reset/2 1862s ok 191 /checksum/MD5/reset/3 1862s ok 192 /checksum/MD5/reset/4 1862s ok 193 /checksum/MD5/reset/5 1862s ok 194 /checksum/MD5/reset/6 1862s ok 195 /checksum/MD5/reset/7 1862s ok 196 /checksum/MD5/reset/8 1862s ok 197 /checksum/MD5/reset/9 1862s ok 198 /checksum/MD5/reset/10 1862s ok 199 /checksum/MD5/reset/11 1862s ok 200 /checksum/MD5/reset/12 1862s ok 201 /checksum/MD5/reset/13 1862s ok 202 /checksum/MD5/reset/14 1862s ok 203 /checksum/MD5/reset/15 1862s ok 204 /checksum/MD5/reset/16 1862s ok 205 /checksum/MD5/reset/17 1862s ok 206 /checksum/MD5/reset/18 1862s ok 207 /checksum/MD5/reset/19 1862s ok 208 /checksum/MD5/reset/20 1862s ok 209 /checksum/MD5/reset/21 1862s ok 210 /checksum/MD5/reset/22 1862s ok 211 /checksum/MD5/reset/23 1862s ok 212 /checksum/MD5/reset/24 1862s ok 213 /checksum/MD5/reset/25 1862s ok 214 /checksum/MD5/reset/26 1862s ok 215 /checksum/MD5/reset/27 1862s ok 216 /checksum/MD5/reset/28 1862s ok 217 /checksum/MD5/reset/29 1862s ok 218 /checksum/MD5/reset/30 1862s ok 219 /checksum/MD5/reset/31 1862s ok 220 /checksum/MD5/reset/32 1862s ok 221 /checksum/MD5/reset/33 1862s ok 222 /checksum/MD5/reset/34 1862s ok 223 /checksum/MD5/reset/35 1862s ok 224 /checksum/MD5/reset/36 1862s ok 225 /checksum/MD5/reset/37 1862s ok 226 /checksum/MD5/reset/38 1862s ok 227 /checksum/MD5/reset/39 1862s ok 228 /checksum/MD5/reset/40 1862s ok 229 /checksum/MD5/reset/41 1862s ok 230 /checksum/MD5/reset/42 1862s ok 231 /checksum/MD5/reset/43 1862s ok 232 /checksum/MD5/reset/44 1862s ok 233 /checksum/MD5/reset/45 1862s ok 234 /checksum/MD5/reset/46 1862s ok 235 /checksum/MD5/reset/47 1862s ok 236 /checksum/MD5/reset/48 1862s ok 237 /checksum/MD5/reset/49 1862s ok 238 /checksum/MD5/reset/50 1862s ok 239 /checksum/MD5/reset/51 1862s ok 240 /checksum/MD5/reset/52 1862s ok 241 /checksum/MD5/reset/53 1862s ok 242 /checksum/MD5/reset/54 1862s ok 243 /checksum/MD5/reset/55 1862s ok 244 /checksum/MD5/reset/56 1862s ok 245 /checksum/MD5/reset/57 1862s ok 246 /checksum/MD5/reset/58 1862s ok 247 /checksum/MD5/reset/59 1862s ok 248 /checksum/MD5/reset/60 1862s ok 249 /checksum/MD5/reset/61 1862s ok 250 /checksum/MD5/reset/62 1862s ok 251 /checksum/MD5/reset/63 1862s ok 252 /checksum/MD5/reset/64 1862s ok 253 /checksum/MD5/reset/65 1862s ok 254 /checksum/MD5/reset/66 1862s ok 255 /checksum/MD5/reset/67 1862s ok 256 /checksum/MD5/reset/68 1862s ok 257 /checksum/MD5/reset/69 1862s ok 258 /checksum/MD5/reset/70 1862s ok 259 /checksum/MD5/reset/71 1862s ok 260 /checksum/MD5/reset/72 1862s ok 261 /checksum/MD5/reset/73 1862s ok 262 /checksum/MD5/reset/74 1862s ok 263 /checksum/MD5/reset/75 1862s ok 264 /checksum/MD5/reset/76 1862s ok 265 /checksum/MD5/reset/77 1862s ok 266 /checksum/MD5/reset/78 1862s ok 267 /checksum/MD5/reset/79 1862s ok 268 /checksum/MD5/reset/80 1862s ok 269 /checksum/MD5/reset/81 1862s ok 270 /checksum/MD5/reset/82 1862s ok 271 /checksum/MD5/reset/83 1862s ok 272 /checksum/MD5/reset/84 1862s ok 273 /checksum/MD5/reset/85 1862s ok 274 /checksum/MD5/reset/86 1862s ok 275 /checksum/MD5/reset/87 1862s ok 276 /checksum/MD5/reset/88 1862s ok 277 /checksum/MD5/reset/89 1862s ok 278 /checksum/MD5/reset/90 1862s ok 279 /checksum/MD5/reset/91 1862s ok 280 /checksum/MD5/reset/92 1862s ok 281 /checksum/MD5/reset/93 1862s ok 282 /checksum/MD5/reset/94 1862s ok 283 /checksum/MD5/reset/95 1862s ok 284 /checksum/MD5/reset/96 1862s ok 285 /checksum/MD5/reset/97 1862s ok 286 /checksum/MD5/reset/98 1862s ok 287 /checksum/MD5/reset/99 1862s ok 288 /checksum/MD5/reset/100 1862s ok 289 /checksum/MD5/reset/101 1862s ok 290 /checksum/MD5/reset/102 1862s ok 291 /checksum/MD5/reset/103 1862s ok 292 /checksum/MD5/reset/104 1862s ok 293 /checksum/MD5/reset/105 1862s ok 294 /checksum/MD5/reset/106 1862s ok 295 /checksum/MD5/reset/107 1862s ok 296 /checksum/MD5/reset/108 1862s ok 297 /checksum/MD5/reset/109 1862s ok 298 /checksum/MD5/reset/110 1862s ok 299 /checksum/MD5/reset/111 1862s ok 300 /checksum/MD5/reset/112 1862s ok 301 /checksum/MD5/reset/113 1862s ok 302 /checksum/MD5/reset/114 1862s ok 303 /checksum/MD5/reset/115 1862s ok 304 /checksum/MD5/reset/116 1862s ok 305 /checksum/MD5/reset/117 1862s ok 306 /checksum/MD5/reset/118 1862s ok 307 /checksum/MD5/reset/119 1862s ok 308 /checksum/MD5/reset/120 1862s ok 309 /checksum/MD5/reset/121 1862s ok 310 /checksum/MD5/reset/122 1862s ok 311 /checksum/MD5/reset/123 1862s ok 312 /checksum/MD5/reset/124 1862s ok 313 /checksum/MD5/reset/125 1862s ok 314 /checksum/MD5/reset/126 1862s ok 315 /checksum/MD5/reset/127 1862s ok 316 /checksum/MD5/reset/128 1862s ok 317 /checksum/MD5/reset/129 1862s ok 318 /checksum/MD5/reset/130 1862s ok 319 /checksum/MD5/reset/131 1862s ok 320 /checksum/MD5/reset/132 1862s ok 321 /checksum/MD5/reset/133 1862s ok 322 /checksum/MD5/reset/134 1862s ok 323 /checksum/MD5/reset/135 1862s ok 324 /checksum/MD5/reset/136 1862s ok 325 /checksum/MD5/reset/137 1862s ok 326 /checksum/MD5/reset/138 1862s ok 327 /checksum/MD5/reset/139 1862s ok 328 /checksum/MD5/reset/140 1862s ok 329 /checksum/MD5/reset/141 1862s ok 330 /checksum/MD5/reset/142 1862s ok 331 /checksum/MD5/reset/143 1862s ok 332 /checksum/MD5/reset/144 1862s ok 333 /checksum/MD5/reset/145 1862s ok 334 /checksum/MD5/reset/146 1862s ok 335 /checksum/MD5/reset/147 1862s ok 336 /checksum/MD5/reset/148 1862s ok 337 /checksum/MD5/reset/149 1862s ok 338 /checksum/MD5/reset/150 1862s ok 339 /checksum/MD5/reset/151 1862s ok 340 /checksum/MD5/reset/152 1862s ok 341 /checksum/MD5/reset/153 1862s ok 342 /checksum/MD5/reset/154 1862s ok 343 /checksum/MD5/reset/155 1862s ok 344 /checksum/MD5/reset/156 1862s ok 345 /checksum/MD5/reset/157 1862s ok 346 /checksum/MD5/reset/158 1862s ok 347 /checksum/MD5/reset/159 1862s ok 348 /checksum/MD5/reset/160 1862s ok 349 /checksum/MD5/reset/161 1862s ok 350 /checksum/MD5/reset/162 1862s ok 351 /checksum/MD5/reset/163 1862s ok 352 /checksum/MD5/reset/164 1862s ok 353 /checksum/MD5/reset/165 1862s ok 354 /checksum/MD5/reset/166 1862s ok 355 /checksum/MD5/reset/167 1862s ok 356 /checksum/MD5/reset/168 1862s ok 357 /checksum/MD5/reset/169 1862s ok 358 /checksum/MD5/reset/170 1862s ok 359 /checksum/MD5/reset/171 1862s ok 360 /checksum/MD5/reset/172 1862s ok 361 /checksum/MD5/reset/173 1862s ok 362 /checksum/MD5/reset/174 1862s ok 363 /checksum/MD5/reset/175 1862s ok 364 /checksum/MD5/reset/176 1862s ok 365 /checksum/MD5/reset/177 1862s ok 366 /checksum/MD5/reset/178 1862s ok 367 /checksum/MD5/reset/179 1862s ok 368 /checksum/MD5/reset/180 1862s ok 369 /checksum/MD5/reset/181 1862s ok 370 /checksum/MD5/reset/182 1862s ok 371 /checksum/MD5/reset/183 1862s # End of reset tests 1862s # End of MD5 tests 1862s # Start of SHA1 tests 1862s ok 372 /checksum/SHA1/0 1862s ok 373 /checksum/SHA1/1 1862s ok 374 /checksum/SHA1/2 1862s ok 375 /checksum/SHA1/3 1862s ok 376 /checksum/SHA1/4 1862s ok 377 /checksum/SHA1/5 1862s ok 378 /checksum/SHA1/6 1862s ok 379 /checksum/SHA1/7 1862s ok 380 /checksum/SHA1/8 1862s ok 381 /checksum/SHA1/9 1862s ok 382 /checksum/SHA1/10 1862s ok 383 /checksum/SHA1/11 1862s ok 384 /checksum/SHA1/12 1862s ok 385 /checksum/SHA1/13 1862s ok 386 /checksum/SHA1/14 1862s ok 387 /checksum/SHA1/15 1862s ok 388 /checksum/SHA1/16 1862s ok 389 /checksum/SHA1/17 1862s ok 390 /checksum/SHA1/18 1862s ok 391 /checksum/SHA1/19 1862s ok 392 /checksum/SHA1/20 1862s ok 393 /checksum/SHA1/21 1862s ok 394 /checksum/SHA1/22 1862s ok 395 /checksum/SHA1/23 1862s ok 396 /checksum/SHA1/24 1862s ok 397 /checksum/SHA1/25 1862s ok 398 /checksum/SHA1/26 1862s ok 399 /checksum/SHA1/27 1862s ok 400 /checksum/SHA1/28 1862s ok 401 /checksum/SHA1/29 1862s ok 402 /checksum/SHA1/30 1862s ok 403 /checksum/SHA1/31 1862s ok 404 /checksum/SHA1/32 1862s ok 405 /checksum/SHA1/33 1862s ok 406 /checksum/SHA1/34 1862s ok 407 /checksum/SHA1/35 1862s ok 408 /checksum/SHA1/36 1862s ok 409 /checksum/SHA1/37 1862s ok 410 /checksum/SHA1/38 1862s ok 411 /checksum/SHA1/39 1862s ok 412 /checksum/SHA1/40 1862s ok 413 /checksum/SHA1/41 1862s ok 414 /checksum/SHA1/42 1862s ok 415 /checksum/SHA1/43 1862s ok 416 /checksum/SHA1/44 1862s ok 417 /checksum/SHA1/45 1862s ok 418 /checksum/SHA1/46 1862s ok 419 /checksum/SHA1/47 1862s ok 420 /checksum/SHA1/48 1862s ok 421 /checksum/SHA1/49 1862s ok 422 /checksum/SHA1/50 1862s ok 423 /checksum/SHA1/51 1862s ok 424 /checksum/SHA1/52 1862s ok 425 /checksum/SHA1/53 1862s ok 426 /checksum/SHA1/54 1862s ok 427 /checksum/SHA1/55 1862s ok 428 /checksum/SHA1/56 1862s ok 429 /checksum/SHA1/57 1862s ok 430 /checksum/SHA1/58 1862s ok 431 /checksum/SHA1/59 1862s ok 432 /checksum/SHA1/60 1862s ok 433 /checksum/SHA1/61 1862s ok 434 /checksum/SHA1/62 1862s ok 435 /checksum/SHA1/63 1862s ok 436 /checksum/SHA1/64 1862s ok 437 /checksum/SHA1/65 1862s ok 438 /checksum/SHA1/66 1862s ok 439 /checksum/SHA1/67 1862s ok 440 /checksum/SHA1/68 1862s ok 441 /checksum/SHA1/69 1862s ok 442 /checksum/SHA1/70 1862s ok 443 /checksum/SHA1/71 1862s ok 444 /checksum/SHA1/72 1862s ok 445 /checksum/SHA1/73 1862s ok 446 /checksum/SHA1/74 1862s ok 447 /checksum/SHA1/75 1862s ok 448 /checksum/SHA1/76 1862s ok 449 /checksum/SHA1/77 1862s ok 450 /checksum/SHA1/78 1862s ok 451 /checksum/SHA1/79 1862s ok 452 /checksum/SHA1/80 1862s ok 453 /checksum/SHA1/81 1862s ok 454 /checksum/SHA1/82 1862s ok 455 /checksum/SHA1/83 1862s ok 456 /checksum/SHA1/84 1862s ok 457 /checksum/SHA1/85 1862s ok 458 /checksum/SHA1/86 1862s ok 459 /checksum/SHA1/87 1862s ok 460 /checksum/SHA1/88 1862s ok 461 /checksum/SHA1/89 1862s ok 462 /checksum/SHA1/90 1862s ok 463 /checksum/SHA1/91 1862s ok 464 /checksum/SHA1/92 1862s ok 465 /checksum/SHA1/93 1862s ok 466 /checksum/SHA1/94 1862s ok 467 /checksum/SHA1/95 1862s ok 468 /checksum/SHA1/96 1862s ok 469 /checksum/SHA1/97 1862s ok 470 /checksum/SHA1/98 1862s ok 471 /checksum/SHA1/99 1862s ok 472 /checksum/SHA1/100 1862s ok 473 /checksum/SHA1/101 1862s ok 474 /checksum/SHA1/102 1862s ok 475 /checksum/SHA1/103 1862s ok 476 /checksum/SHA1/104 1862s ok 477 /checksum/SHA1/105 1862s ok 478 /checksum/SHA1/106 1862s ok 479 /checksum/SHA1/107 1862s ok 480 /checksum/SHA1/108 1862s ok 481 /checksum/SHA1/109 1862s ok 482 /checksum/SHA1/110 1862s ok 483 /checksum/SHA1/111 1862s ok 484 /checksum/SHA1/112 1862s ok 485 /checksum/SHA1/113 1862s ok 486 /checksum/SHA1/114 1862s ok 487 /checksum/SHA1/115 1862s ok 488 /checksum/SHA1/116 1862s ok 489 /checksum/SHA1/117 1862s ok 490 /checksum/SHA1/118 1862s ok 491 /checksum/SHA1/119 1862s ok 492 /checksum/SHA1/120 1862s ok 493 /checksum/SHA1/121 1862s ok 494 /checksum/SHA1/122 1862s ok 495 /checksum/SHA1/123 1862s ok 496 /checksum/SHA1/124 1862s ok 497 /checksum/SHA1/125 1862s ok 498 /checksum/SHA1/126 1862s ok 499 /checksum/SHA1/127 1862s ok 500 /checksum/SHA1/128 1862s ok 501 /checksum/SHA1/129 1862s ok 502 /checksum/SHA1/130 1862s ok 503 /checksum/SHA1/131 1862s ok 504 /checksum/SHA1/132 1862s ok 505 /checksum/SHA1/133 1862s ok 506 /checksum/SHA1/134 1862s ok 507 /checksum/SHA1/135 1862s ok 508 /checksum/SHA1/136 1862s ok 509 /checksum/SHA1/137 1862s ok 510 /checksum/SHA1/138 1862s ok 511 /checksum/SHA1/139 1862s ok 512 /checksum/SHA1/140 1862s ok 513 /checksum/SHA1/141 1862s ok 514 /checksum/SHA1/142 1862s ok 515 /checksum/SHA1/143 1862s ok 516 /checksum/SHA1/144 1862s ok 517 /checksum/SHA1/145 1862s ok 518 /checksum/SHA1/146 1862s ok 519 /checksum/SHA1/147 1862s ok 520 /checksum/SHA1/148 1862s ok 521 /checksum/SHA1/149 1862s ok 522 /checksum/SHA1/150 1862s ok 523 /checksum/SHA1/151 1862s ok 524 /checksum/SHA1/152 1862s ok 525 /checksum/SHA1/153 1862s ok 526 /checksum/SHA1/154 1862s ok 527 /checksum/SHA1/155 1862s ok 528 /checksum/SHA1/156 1862s ok 529 /checksum/SHA1/157 1862s ok 530 /checksum/SHA1/158 1862s ok 531 /checksum/SHA1/159 1862s ok 532 /checksum/SHA1/160 1862s ok 533 /checksum/SHA1/161 1862s ok 534 /checksum/SHA1/162 1862s ok 535 /checksum/SHA1/163 1862s ok 536 /checksum/SHA1/164 1862s ok 537 /checksum/SHA1/165 1862s ok 538 /checksum/SHA1/166 1862s ok 539 /checksum/SHA1/167 1862s ok 540 /checksum/SHA1/168 1862s ok 541 /checksum/SHA1/169 1862s ok 542 /checksum/SHA1/170 1862s ok 543 /checksum/SHA1/171 1862s ok 544 /checksum/SHA1/172 1862s ok 545 /checksum/SHA1/173 1862s ok 546 /checksum/SHA1/174 1862s ok 547 /checksum/SHA1/175 1862s ok 548 /checksum/SHA1/176 1862s ok 549 /checksum/SHA1/177 1862s ok 550 /checksum/SHA1/178 1862s ok 551 /checksum/SHA1/179 1862s ok 552 /checksum/SHA1/180 1862s ok 553 /checksum/SHA1/181 1862s ok 554 /checksum/SHA1/182 1862s ok 555 /checksum/SHA1/183 1862s ok 556 /checksum/SHA1/string 1862s ok 557 /checksum/SHA1/bytes 1862s # Start of reset tests 1862s ok 558 /checksum/SHA1/reset/0 1862s ok 559 /checksum/SHA1/reset/1 1862s ok 560 /checksum/SHA1/reset/2 1862s ok 561 /checksum/SHA1/reset/3 1862s ok 562 /checksum/SHA1/reset/4 1862s ok 563 /checksum/SHA1/reset/5 1862s ok 564 /checksum/SHA1/reset/6 1862s ok 565 /checksum/SHA1/reset/7 1862s ok 566 /checksum/SHA1/reset/8 1862s ok 567 /checksum/SHA1/reset/9 1862s ok 568 /checksum/SHA1/reset/10 1862s ok 569 /checksum/SHA1/reset/11 1862s ok 570 /checksum/SHA1/reset/12 1862s ok 571 /checksum/SHA1/reset/13 1862s ok 572 /checksum/SHA1/reset/14 1862s ok 573 /checksum/SHA1/reset/15 1862s ok 574 /checksum/SHA1/reset/16 1862s ok 575 /checksum/SHA1/reset/17 1862s ok 576 /checksum/SHA1/reset/18 1862s ok 577 /checksum/SHA1/reset/19 1862s ok 578 /checksum/SHA1/reset/20 1862s ok 579 /checksum/SHA1/reset/21 1862s ok 580 /checksum/SHA1/reset/22 1862s ok 581 /checksum/SHA1/reset/23 1862s ok 582 /checksum/SHA1/reset/24 1862s ok 583 /checksum/SHA1/reset/25 1862s ok 584 /checksum/SHA1/reset/26 1862s ok 585 /checksum/SHA1/reset/27 1862s ok 586 /checksum/SHA1/reset/28 1862s ok 587 /checksum/SHA1/reset/29 1862s ok 588 /checksum/SHA1/reset/30 1862s ok 589 /checksum/SHA1/reset/31 1862s ok 590 /checksum/SHA1/reset/32 1862s ok 591 /checksum/SHA1/reset/33 1862s ok 592 /checksum/SHA1/reset/34 1862s ok 593 /checksum/SHA1/reset/35 1862s ok 594 /checksum/SHA1/reset/36 1862s ok 595 /checksum/SHA1/reset/37 1862s ok 596 /checksum/SHA1/reset/38 1862s ok 597 /checksum/SHA1/reset/39 1862s ok 598 /checksum/SHA1/reset/40 1862s ok 599 /checksum/SHA1/reset/41 1862s ok 600 /checksum/SHA1/reset/42 1862s ok 601 /checksum/SHA1/reset/43 1862s ok 602 /checksum/SHA1/reset/44 1862s ok 603 /checksum/SHA1/reset/45 1862s ok 604 /checksum/SHA1/reset/46 1862s ok 605 /checksum/SHA1/reset/47 1862s ok 606 /checksum/SHA1/reset/48 1862s ok 607 /checksum/SHA1/reset/49 1862s ok 608 /checksum/SHA1/reset/50 1862s ok 609 /checksum/SHA1/reset/51 1862s ok 610 /checksum/SHA1/reset/52 1862s ok 611 /checksum/SHA1/reset/53 1862s ok 612 /checksum/SHA1/reset/54 1862s ok 613 /checksum/SHA1/reset/55 1862s ok 614 /checksum/SHA1/reset/56 1862s ok 615 /checksum/SHA1/reset/57 1862s ok 616 /checksum/SHA1/reset/58 1862s ok 617 /checksum/SHA1/reset/59 1862s ok 618 /checksum/SHA1/reset/60 1862s ok 619 /checksum/SHA1/reset/61 1862s ok 620 /checksum/SHA1/reset/62 1862s ok 621 /checksum/SHA1/reset/63 1862s ok 622 /checksum/SHA1/reset/64 1862s ok 623 /checksum/SHA1/reset/65 1862s ok 624 /checksum/SHA1/reset/66 1862s ok 625 /checksum/SHA1/reset/67 1862s ok 626 /checksum/SHA1/reset/68 1862s ok 627 /checksum/SHA1/reset/69 1862s ok 628 /checksum/SHA1/reset/70 1862s ok 629 /checksum/SHA1/reset/71 1862s ok 630 /checksum/SHA1/reset/72 1862s ok 631 /checksum/SHA1/reset/73 1862s ok 632 /checksum/SHA1/reset/74 1862s ok 633 /checksum/SHA1/reset/75 1862s ok 634 /checksum/SHA1/reset/76 1862s ok 635 /checksum/SHA1/reset/77 1862s ok 636 /checksum/SHA1/reset/78 1862s ok 637 /checksum/SHA1/reset/79 1862s ok 638 /checksum/SHA1/reset/80 1862s ok 639 /checksum/SHA1/reset/81 1862s ok 640 /checksum/SHA1/reset/82 1862s ok 641 /checksum/SHA1/reset/83 1862s ok 642 /checksum/SHA1/reset/84 1862s ok 643 /checksum/SHA1/reset/85 1862s ok 644 /checksum/SHA1/reset/86 1862s ok 645 /checksum/SHA1/reset/87 1862s ok 646 /checksum/SHA1/reset/88 1862s ok 647 /checksum/SHA1/reset/89 1862s ok 648 /checksum/SHA1/reset/90 1862s ok 649 /checksum/SHA1/reset/91 1862s ok 650 /checksum/SHA1/reset/92 1862s ok 651 /checksum/SHA1/reset/93 1862s ok 652 /checksum/SHA1/reset/94 1862s ok 653 /checksum/SHA1/reset/95 1862s ok 654 /checksum/SHA1/reset/96 1862s ok 655 /checksum/SHA1/reset/97 1862s ok 656 /checksum/SHA1/reset/98 1862s ok 657 /checksum/SHA1/reset/99 1862s ok 658 /checksum/SHA1/reset/100 1862s ok 659 /checksum/SHA1/reset/101 1862s ok 660 /checksum/SHA1/reset/102 1862s ok 661 /checksum/SHA1/reset/103 1862s ok 662 /checksum/SHA1/reset/104 1862s ok 663 /checksum/SHA1/reset/105 1862s ok 664 /checksum/SHA1/reset/106 1862s ok 665 /checksum/SHA1/reset/107 1862s ok 666 /checksum/SHA1/reset/108 1862s ok 667 /checksum/SHA1/reset/109 1862s ok 668 /checksum/SHA1/reset/110 1862s ok 669 /checksum/SHA1/reset/111 1862s ok 670 /checksum/SHA1/reset/112 1862s ok 671 /checksum/SHA1/reset/113 1862s ok 672 /checksum/SHA1/reset/114 1862s ok 673 /checksum/SHA1/reset/115 1862s ok 674 /checksum/SHA1/reset/116 1862s ok 675 /checksum/SHA1/reset/117 1862s ok 676 /checksum/SHA1/reset/118 1862s ok 677 /checksum/SHA1/reset/119 1862s ok 678 /checksum/SHA1/reset/120 1862s ok 679 /checksum/SHA1/reset/121 1862s ok 680 /checksum/SHA1/reset/122 1862s ok 681 /checksum/SHA1/reset/123 1862s ok 682 /checksum/SHA1/reset/124 1862s ok 683 /checksum/SHA1/reset/125 1862s ok 684 /checksum/SHA1/reset/126 1862s ok 685 /checksum/SHA1/reset/127 1862s ok 686 /checksum/SHA1/reset/128 1862s ok 687 /checksum/SHA1/reset/129 1862s ok 688 /checksum/SHA1/reset/130 1862s ok 689 /checksum/SHA1/reset/131 1862s ok 690 /checksum/SHA1/reset/132 1862s ok 691 /checksum/SHA1/reset/133 1862s ok 692 /checksum/SHA1/reset/134 1862s ok 693 /checksum/SHA1/reset/135 1862s ok 694 /checksum/SHA1/reset/136 1862s ok 695 /checksum/SHA1/reset/137 1862s ok 696 /checksum/SHA1/reset/138 1862s ok 697 /checksum/SHA1/reset/139 1862s ok 698 /checksum/SHA1/reset/140 1862s ok 699 /checksum/SHA1/reset/141 1862s ok 700 /checksum/SHA1/reset/142 1862s ok 701 /checksum/SHA1/reset/143 1862s ok 702 /checksum/SHA1/reset/144 1862s ok 703 /checksum/SHA1/reset/145 1862s ok 704 /checksum/SHA1/reset/146 1862s ok 705 /checksum/SHA1/reset/147 1862s ok 706 /checksum/SHA1/reset/148 1862s ok 707 /checksum/SHA1/reset/149 1862s ok 708 /checksum/SHA1/reset/150 1862s ok 709 /checksum/SHA1/reset/151 1862s ok 710 /checksum/SHA1/reset/152 1862s ok 711 /checksum/SHA1/reset/153 1862s ok 712 /checksum/SHA1/reset/154 1862s ok 713 /checksum/SHA1/reset/155 1862s ok 714 /checksum/SHA1/reset/156 1862s ok 715 /checksum/SHA1/reset/157 1862s ok 716 /checksum/SHA1/reset/158 1862s ok 717 /checksum/SHA1/reset/159 1862s ok 718 /checksum/SHA1/reset/160 1862s ok 719 /checksum/SHA1/reset/161 1862s ok 720 /checksum/SHA1/reset/162 1862s ok 721 /checksum/SHA1/reset/163 1862s ok 722 /checksum/SHA1/reset/164 1862s ok 723 /checksum/SHA1/reset/165 1862s ok 724 /checksum/SHA1/reset/166 1862s ok 725 /checksum/SHA1/reset/167 1862s ok 726 /checksum/SHA1/reset/168 1862s ok 727 /checksum/SHA1/reset/169 1862s ok 728 /checksum/SHA1/reset/170 1862s ok 729 /checksum/SHA1/reset/171 1862s ok 730 /checksum/SHA1/reset/172 1862s ok 731 /checksum/SHA1/reset/173 1862s ok 732 /checksum/SHA1/reset/174 1862s ok 733 /checksum/SHA1/reset/175 1862s ok 734 /checksum/SHA1/reset/176 1862s ok 735 /checksum/SHA1/reset/177 1862s ok 736 /checksum/SHA1/reset/178 1862s ok 737 /checksum/SHA1/reset/179 1862s ok 738 /checksum/SHA1/reset/180 1862s ok 739 /checksum/SHA1/reset/181 1862s ok 740 /checksum/SHA1/reset/182 1862s ok 741 /checksum/SHA1/reset/183 1862s # End of reset tests 1862s # End of SHA1 tests 1862s # Start of SHA256 tests 1862s ok 742 /checksum/SHA256/0 1862s ok 743 /checksum/SHA256/1 1862s ok 744 /checksum/SHA256/2 1862s ok 745 /checksum/SHA256/3 1862s ok 746 /checksum/SHA256/4 1862s ok 747 /checksum/SHA256/5 1862s ok 748 /checksum/SHA256/6 1862s ok 749 /checksum/SHA256/7 1862s ok 750 /checksum/SHA256/8 1862s ok 751 /checksum/SHA256/9 1862s ok 752 /checksum/SHA256/10 1862s ok 753 /checksum/SHA256/11 1862s ok 754 /checksum/SHA256/12 1862s ok 755 /checksum/SHA256/13 1862s ok 756 /checksum/SHA256/14 1862s ok 757 /checksum/SHA256/15 1862s ok 758 /checksum/SHA256/16 1862s ok 759 /checksum/SHA256/17 1862s ok 760 /checksum/SHA256/18 1862s ok 761 /checksum/SHA256/19 1862s ok 762 /checksum/SHA256/20 1862s ok 763 /checksum/SHA256/21 1862s ok 764 /checksum/SHA256/22 1862s ok 765 /checksum/SHA256/23 1862s ok 766 /checksum/SHA256/24 1862s ok 767 /checksum/SHA256/25 1862s ok 768 /checksum/SHA256/26 1862s ok 769 /checksum/SHA256/27 1862s ok 770 /checksum/SHA256/28 1862s ok 771 /checksum/SHA256/29 1862s ok 772 /checksum/SHA256/30 1862s ok 773 /checksum/SHA256/31 1862s ok 774 /checksum/SHA256/32 1862s ok 775 /checksum/SHA256/33 1862s ok 776 /checksum/SHA256/34 1862s ok 777 /checksum/SHA256/35 1862s ok 778 /checksum/SHA256/36 1862s ok 779 /checksum/SHA256/37 1862s ok 780 /checksum/SHA256/38 1862s ok 781 /checksum/SHA256/39 1862s ok 782 /checksum/SHA256/40 1862s ok 783 /checksum/SHA256/41 1862s ok 784 /checksum/SHA256/42 1862s ok 785 /checksum/SHA256/43 1862s ok 786 /checksum/SHA256/44 1862s ok 787 /checksum/SHA256/45 1862s ok 788 /checksum/SHA256/46 1862s ok 789 /checksum/SHA256/47 1862s ok 790 /checksum/SHA256/48 1862s ok 791 /checksum/SHA256/49 1862s ok 792 /checksum/SHA256/50 1862s ok 793 /checksum/SHA256/51 1862s ok 794 /checksum/SHA256/52 1862s ok 795 /checksum/SHA256/53 1862s ok 796 /checksum/SHA256/54 1862s ok 797 /checksum/SHA256/55 1862s ok 798 /checksum/SHA256/56 1862s ok 799 /checksum/SHA256/57 1862s ok 800 /checksum/SHA256/58 1862s ok 801 /checksum/SHA256/59 1862s ok 802 /checksum/SHA256/60 1862s ok 803 /checksum/SHA256/61 1862s ok 804 /checksum/SHA256/62 1862s ok 805 /checksum/SHA256/63 1862s ok 806 /checksum/SHA256/64 1862s ok 807 /checksum/SHA256/65 1862s ok 808 /checksum/SHA256/66 1862s ok 809 /checksum/SHA256/67 1862s ok 810 /checksum/SHA256/68 1862s ok 811 /checksum/SHA256/69 1862s ok 812 /checksum/SHA256/70 1862s ok 813 /checksum/SHA256/71 1862s ok 814 /checksum/SHA256/72 1862s ok 815 /checksum/SHA256/73 1862s ok 816 /checksum/SHA256/74 1862s ok 817 /checksum/SHA256/75 1862s ok 818 /checksum/SHA256/76 1862s ok 819 /checksum/SHA256/77 1862s ok 820 /checksum/SHA256/78 1862s ok 821 /checksum/SHA256/79 1862s ok 822 /checksum/SHA256/80 1862s ok 823 /checksum/SHA256/81 1862s ok 824 /checksum/SHA256/82 1862s ok 825 /checksum/SHA256/83 1862s ok 826 /checksum/SHA256/84 1862s ok 827 /checksum/SHA256/85 1862s ok 828 /checksum/SHA256/86 1862s ok 829 /checksum/SHA256/87 1862s ok 830 /checksum/SHA256/88 1862s ok 831 /checksum/SHA256/89 1862s ok 832 /checksum/SHA256/90 1862s ok 833 /checksum/SHA256/91 1862s ok 834 /checksum/SHA256/92 1862s ok 835 /checksum/SHA256/93 1862s ok 836 /checksum/SHA256/94 1862s ok 837 /checksum/SHA256/95 1862s ok 838 /checksum/SHA256/96 1862s ok 839 /checksum/SHA256/97 1862s ok 840 /checksum/SHA256/98 1862s ok 841 /checksum/SHA256/99 1862s ok 842 /checksum/SHA256/100 1862s ok 843 /checksum/SHA256/101 1862s ok 844 /checksum/SHA256/102 1862s ok 845 /checksum/SHA256/103 1862s ok 846 /checksum/SHA256/104 1862s ok 847 /checksum/SHA256/105 1862s ok 848 /checksum/SHA256/106 1862s ok 849 /checksum/SHA256/107 1862s ok 850 /checksum/SHA256/108 1862s ok 851 /checksum/SHA256/109 1862s ok 852 /checksum/SHA256/110 1862s ok 853 /checksum/SHA256/111 1862s ok 854 /checksum/SHA256/112 1862s ok 855 /checksum/SHA256/113 1862s ok 856 /checksum/SHA256/114 1862s ok 857 /checksum/SHA256/115 1862s ok 858 /checksum/SHA256/116 1862s ok 859 /checksum/SHA256/117 1862s ok 860 /checksum/SHA256/118 1862s ok 861 /checksum/SHA256/119 1862s ok 862 /checksum/SHA256/120 1862s ok 863 /checksum/SHA256/121 1862s ok 864 /checksum/SHA256/122 1862s ok 865 /checksum/SHA256/123 1862s ok 866 /checksum/SHA256/124 1862s ok 867 /checksum/SHA256/125 1862s ok 868 /checksum/SHA256/126 1862s ok 869 /checksum/SHA256/127 1862s ok 870 /checksum/SHA256/128 1862s ok 871 /checksum/SHA256/129 1862s ok 872 /checksum/SHA256/130 1862s ok 873 /checksum/SHA256/131 1862s ok 874 /checksum/SHA256/132 1862s ok 875 /checksum/SHA256/133 1862s ok 876 /checksum/SHA256/134 1862s ok 877 /checksum/SHA256/135 1862s ok 878 /checksum/SHA256/136 1862s ok 879 /checksum/SHA256/137 1862s ok 880 /checksum/SHA256/138 1862s ok 881 /checksum/SHA256/139 1862s ok 882 /checksum/SHA256/140 1862s ok 883 /checksum/SHA256/141 1862s ok 884 /checksum/SHA256/142 1862s ok 885 /checksum/SHA256/143 1862s ok 886 /checksum/SHA256/144 1862s ok 887 /checksum/SHA256/145 1862s ok 888 /checksum/SHA256/146 1862s ok 889 /checksum/SHA256/147 1862s ok 890 /checksum/SHA256/148 1862s ok 891 /checksum/SHA256/149 1862s ok 892 /checksum/SHA256/150 1862s ok 893 /checksum/SHA256/151 1862s ok 894 /checksum/SHA256/152 1862s ok 895 /checksum/SHA256/153 1862s ok 896 /checksum/SHA256/154 1862s ok 897 /checksum/SHA256/155 1862s ok 898 /checksum/SHA256/156 1862s ok 899 /checksum/SHA256/157 1862s ok 900 /checksum/SHA256/158 1862s ok 901 /checksum/SHA256/159 1862s ok 902 /checksum/SHA256/160 1862s ok 903 /checksum/SHA256/161 1862s ok 904 /checksum/SHA256/162 1862s ok 905 /checksum/SHA256/163 1862s ok 906 /checksum/SHA256/164 1862s ok 907 /checksum/SHA256/165 1862s ok 908 /checksum/SHA256/166 1862s ok 909 /checksum/SHA256/167 1862s ok 910 /checksum/SHA256/168 1862s ok 911 /checksum/SHA256/169 1862s ok 912 /checksum/SHA256/170 1862s ok 913 /checksum/SHA256/171 1862s ok 914 /checksum/SHA256/172 1862s ok 915 /checksum/SHA256/173 1862s ok 916 /checksum/SHA256/174 1862s ok 917 /checksum/SHA256/175 1862s ok 918 /checksum/SHA256/176 1862s ok 919 /checksum/SHA256/177 1862s ok 920 /checksum/SHA256/178 1862s ok 921 /checksum/SHA256/179 1862s ok 922 /checksum/SHA256/180 1862s ok 923 /checksum/SHA256/181 1862s ok 924 /checksum/SHA256/182 1862s ok 925 /checksum/SHA256/183 1862s ok 926 /checksum/SHA256/string 1862s ok 927 /checksum/SHA256/bytes 1862s # Start of reset tests 1862s ok 928 /checksum/SHA256/reset/0 1862s ok 929 /checksum/SHA256/reset/1 1862s ok 930 /checksum/SHA256/reset/2 1862s ok 931 /checksum/SHA256/reset/3 1862s ok 932 /checksum/SHA256/reset/4 1862s ok 933 /checksum/SHA256/reset/5 1862s ok 934 /checksum/SHA256/reset/6 1862s ok 935 /checksum/SHA256/reset/7 1862s ok 936 /checksum/SHA256/reset/8 1862s ok 937 /checksum/SHA256/reset/9 1862s ok 938 /checksum/SHA256/reset/10 1862s ok 939 /checksum/SHA256/reset/11 1862s ok 940 /checksum/SHA256/reset/12 1862s ok 941 /checksum/SHA256/reset/13 1862s ok 942 /checksum/SHA256/reset/14 1862s ok 943 /checksum/SHA256/reset/15 1862s ok 944 /checksum/SHA256/reset/16 1862s ok 945 /checksum/SHA256/reset/17 1862s ok 946 /checksum/SHA256/reset/18 1862s ok 947 /checksum/SHA256/reset/19 1862s ok 948 /checksum/SHA256/reset/20 1862s ok 949 /checksum/SHA256/reset/21 1862s ok 950 /checksum/SHA256/reset/22 1862s ok 951 /checksum/SHA256/reset/23 1862s ok 952 /checksum/SHA256/reset/24 1862s ok 953 /checksum/SHA256/reset/25 1862s ok 954 /checksum/SHA256/reset/26 1862s ok 955 /checksum/SHA256/reset/27 1862s ok 956 /checksum/SHA256/reset/28 1862s ok 957 /checksum/SHA256/reset/29 1862s ok 958 /checksum/SHA256/reset/30 1862s ok 959 /checksum/SHA256/reset/31 1862s ok 960 /checksum/SHA256/reset/32 1862s ok 961 /checksum/SHA256/reset/33 1862s ok 962 /checksum/SHA256/reset/34 1862s ok 963 /checksum/SHA256/reset/35 1862s ok 964 /checksum/SHA256/reset/36 1862s ok 965 /checksum/SHA256/reset/37 1862s ok 966 /checksum/SHA256/reset/38 1862s ok 967 /checksum/SHA256/reset/39 1862s ok 968 /checksum/SHA256/reset/40 1862s ok 969 /checksum/SHA256/reset/41 1862s ok 970 /checksum/SHA256/reset/42 1862s ok 971 /checksum/SHA256/reset/43 1862s ok 972 /checksum/SHA256/reset/44 1862s ok 973 /checksum/SHA256/reset/45 1862s ok 974 /checksum/SHA256/reset/46 1862s ok 975 /checksum/SHA256/reset/47 1862s ok 976 /checksum/SHA256/reset/48 1862s ok 977 /checksum/SHA256/reset/49 1862s ok 978 /checksum/SHA256/reset/50 1862s ok 979 /checksum/SHA256/reset/51 1862s ok 980 /checksum/SHA256/reset/52 1862s ok 981 /checksum/SHA256/reset/53 1862s ok 982 /checksum/SHA256/reset/54 1862s ok 983 /checksum/SHA256/reset/55 1862s ok 984 /checksum/SHA256/reset/56 1862s ok 985 /checksum/SHA256/reset/57 1862s ok 986 /checksum/SHA256/reset/58 1862s ok 987 /checksum/SHA256/reset/59 1862s ok 988 /checksum/SHA256/reset/60 1862s ok 989 /checksum/SHA256/reset/61 1862s ok 990 /checksum/SHA256/reset/62 1862s ok 991 /checksum/SHA256/reset/63 1862s ok 992 /checksum/SHA256/reset/64 1862s ok 993 /checksum/SHA256/reset/65 1862s ok 994 /checksum/SHA256/reset/66 1862s ok 995 /checksum/SHA256/reset/67 1862s ok 996 /checksum/SHA256/reset/68 1862s ok 997 /checksum/SHA256/reset/69 1862s ok 998 /checksum/SHA256/reset/70 1862s ok 999 /checksum/SHA256/reset/71 1862s ok 1000 /checksum/SHA256/reset/72 1862s ok 1001 /checksum/SHA256/reset/73 1862s ok 1002 /checksum/SHA256/reset/74 1862s ok 1003 /checksum/SHA256/reset/75 1862s ok 1004 /checksum/SHA256/reset/76 1862s ok 1005 /checksum/SHA256/reset/77 1862s ok 1006 /checksum/SHA256/reset/78 1862s ok 1007 /checksum/SHA256/reset/79 1862s ok 1008 /checksum/SHA256/reset/80 1862s ok 1009 /checksum/SHA256/reset/81 1862s ok 1010 /checksum/SHA256/reset/82 1862s ok 1011 /checksum/SHA256/reset/83 1862s ok 1012 /checksum/SHA256/reset/84 1862s ok 1013 /checksum/SHA256/reset/85 1862s ok 1014 /checksum/SHA256/reset/86 1862s ok 1015 /checksum/SHA256/reset/87 1862s ok 1016 /checksum/SHA256/reset/88 1862s ok 1017 /checksum/SHA256/reset/89 1862s ok 1018 /checksum/SHA256/reset/90 1862s ok 1019 /checksum/SHA256/reset/91 1862s ok 1020 /checksum/SHA256/reset/92 1862s ok 1021 /checksum/SHA256/reset/93 1862s ok 1022 /checksum/SHA256/reset/94 1862s ok 1023 /checksum/SHA256/reset/95 1862s ok 1024 /checksum/SHA256/reset/96 1862s ok 1025 /checksum/SHA256/reset/97 1862s ok 1026 /checksum/SHA256/reset/98 1862s ok 1027 /checksum/SHA256/reset/99 1862s ok 1028 /checksum/SHA256/reset/100 1862s ok 1029 /checksum/SHA256/reset/101 1862s ok 1030 /checksum/SHA256/reset/102 1862s ok 1031 /checksum/SHA256/reset/103 1862s ok 1032 /checksum/SHA256/reset/104 1862s ok 1033 /checksum/SHA256/reset/105 1862s ok 1034 /checksum/SHA256/reset/106 1862s ok 1035 /checksum/SHA256/reset/107 1862s ok 1036 /checksum/SHA256/reset/108 1862s ok 1037 /checksum/SHA256/reset/109 1862s ok 1038 /checksum/SHA256/reset/110 1862s ok 1039 /checksum/SHA256/reset/111 1862s ok 1040 /checksum/SHA256/reset/112 1862s ok 1041 /checksum/SHA256/reset/113 1862s ok 1042 /checksum/SHA256/reset/114 1862s ok 1043 /checksum/SHA256/reset/115 1862s ok 1044 /checksum/SHA256/reset/116 1862s ok 1045 /checksum/SHA256/reset/117 1862s ok 1046 /checksum/SHA256/reset/118 1862s ok 1047 /checksum/SHA256/reset/119 1862s ok 1048 /checksum/SHA256/reset/120 1862s ok 1049 /checksum/SHA256/reset/121 1862s ok 1050 /checksum/SHA256/reset/122 1862s ok 1051 /checksum/SHA256/reset/123 1862s ok 1052 /checksum/SHA256/reset/124 1862s ok 1053 /checksum/SHA256/reset/125 1862s ok 1054 /checksum/SHA256/reset/126 1862s ok 1055 /checksum/SHA256/reset/127 1862s ok 1056 /checksum/SHA256/reset/128 1862s ok 1057 /checksum/SHA256/reset/129 1862s ok 1058 /checksum/SHA256/reset/130 1862s ok 1059 /checksum/SHA256/reset/131 1862s ok 1060 /checksum/SHA256/reset/132 1862s ok 1061 /checksum/SHA256/reset/133 1862s ok 1062 /checksum/SHA256/reset/134 1862s ok 1063 /checksum/SHA256/reset/135 1862s ok 1064 /checksum/SHA256/reset/136 1862s ok 1065 /checksum/SHA256/reset/137 1862s ok 1066 /checksum/SHA256/reset/138 1862s ok 1067 /checksum/SHA256/reset/139 1862s ok 1068 /checksum/SHA256/reset/140 1862s ok 1069 /checksum/SHA256/reset/141 1862s ok 1070 /checksum/SHA256/reset/142 1862s ok 1071 /checksum/SHA256/reset/143 1862s ok 1072 /checksum/SHA256/reset/144 1862s ok 1073 /checksum/SHA256/reset/145 1862s ok 1074 /checksum/SHA256/reset/146 1862s ok 1075 /checksum/SHA256/reset/147 1862s ok 1076 /checksum/SHA256/reset/148 1862s ok 1077 /checksum/SHA256/reset/149 1862s ok 1078 /checksum/SHA256/reset/150 1862s ok 1079 /checksum/SHA256/reset/151 1862s ok 1080 /checksum/SHA256/reset/152 1862s ok 1081 /checksum/SHA256/reset/153 1862s ok 1082 /checksum/SHA256/reset/154 1862s ok 1083 /checksum/SHA256/reset/155 1862s ok 1084 /checksum/SHA256/reset/156 1862s ok 1085 /checksum/SHA256/reset/157 1862s ok 1086 /checksum/SHA256/reset/158 1862s ok 1087 /checksum/SHA256/reset/159 1862s ok 1088 /checksum/SHA256/reset/160 1862s ok 1089 /checksum/SHA256/reset/161 1862s ok 1090 /checksum/SHA256/reset/162 1862s ok 1091 /checksum/SHA256/reset/163 1862s ok 1092 /checksum/SHA256/reset/164 1862s ok 1093 /checksum/SHA256/reset/165 1862s ok 1094 /checksum/SHA256/reset/166 1862s ok 1095 /checksum/SHA256/reset/167 1862s ok 1096 /checksum/SHA256/reset/168 1862s ok 1097 /checksum/SHA256/reset/169 1862s ok 1098 /checksum/SHA256/reset/170 1862s ok 1099 /checksum/SHA256/reset/171 1862s ok 1100 /checksum/SHA256/reset/172 1862s ok 1101 /checksum/SHA256/reset/173 1862s ok 1102 /checksum/SHA256/reset/174 1862s ok 1103 /checksum/SHA256/reset/175 1862s ok 1104 /checksum/SHA256/reset/176 1862s ok 1105 /checksum/SHA256/reset/177 1862s ok 1106 /checksum/SHA256/reset/178 1862s ok 1107 /checksum/SHA256/reset/179 1862s ok 1108 /checksum/SHA256/reset/180 1862s ok 1109 /checksum/SHA256/reset/181 1862s ok 1110 /checksum/SHA256/reset/182 1862s ok 1111 /checksum/SHA256/reset/183 1862s # End of reset tests 1862s # End of SHA256 tests 1862s # Start of SHA384 tests 1862s ok 1112 /checksum/SHA384/0 1862s ok 1113 /checksum/SHA384/1 1862s ok 1114 /checksum/SHA384/2 1862s ok 1115 /checksum/SHA384/3 1862s ok 1116 /checksum/SHA384/4 1862s ok 1117 /checksum/SHA384/5 1862s ok 1118 /checksum/SHA384/6 1862s ok 1119 /checksum/SHA384/7 1862s ok 1120 /checksum/SHA384/8 1862s ok 1121 /checksum/SHA384/9 1862s ok 1122 /checksum/SHA384/10 1862s ok 1123 /checksum/SHA384/11 1862s ok 1124 /checksum/SHA384/12 1862s ok 1125 /checksum/SHA384/13 1862s ok 1126 /checksum/SHA384/14 1862s ok 1127 /checksum/SHA384/15 1862s ok 1128 /checksum/SHA384/16 1862s ok 1129 /checksum/SHA384/17 1862s ok 1130 /checksum/SHA384/18 1862s ok 1131 /checksum/SHA384/19 1862s ok 1132 /checksum/SHA384/20 1862s ok 1133 /checksum/SHA384/21 1862s ok 1134 /checksum/SHA384/22 1862s ok 1135 /checksum/SHA384/23 1862s ok 1136 /checksum/SHA384/24 1862s ok 1137 /checksum/SHA384/25 1862s ok 1138 /checksum/SHA384/26 1862s ok 1139 /checksum/SHA384/27 1862s ok 1140 /checksum/SHA384/28 1862s ok 1141 /checksum/SHA384/29 1862s ok 1142 /checksum/SHA384/30 1862s ok 1143 /checksum/SHA384/31 1862s ok 1144 /checksum/SHA384/32 1862s ok 1145 /checksum/SHA384/33 1862s ok 1146 /checksum/SHA384/34 1862s ok 1147 /checksum/SHA384/35 1862s ok 1148 /checksum/SHA384/36 1862s ok 1149 /checksum/SHA384/37 1862s ok 1150 /checksum/SHA384/38 1862s ok 1151 /checksum/SHA384/39 1862s ok 1152 /checksum/SHA384/40 1862s ok 1153 /checksum/SHA384/41 1862s ok 1154 /checksum/SHA384/42 1862s ok 1155 /checksum/SHA384/43 1862s ok 1156 /checksum/SHA384/44 1862s ok 1157 /checksum/SHA384/45 1862s ok 1158 /checksum/SHA384/46 1862s ok 1159 /checksum/SHA384/47 1862s ok 1160 /checksum/SHA384/48 1862s ok 1161 /checksum/SHA384/49 1862s ok 1162 /checksum/SHA384/50 1862s ok 1163 /checksum/SHA384/51 1862s ok 1164 /checksum/SHA384/52 1862s ok 1165 /checksum/SHA384/53 1862s ok 1166 /checksum/SHA384/54 1862s ok 1167 /checksum/SHA384/55 1862s ok 1168 /checksum/SHA384/56 1862s ok 1169 /checksum/SHA384/57 1862s ok 1170 /checksum/SHA384/58 1862s ok 1171 /checksum/SHA384/59 1862s ok 1172 /checksum/SHA384/60 1862s ok 1173 /checksum/SHA384/61 1862s ok 1174 /checksum/SHA384/62 1862s ok 1175 /checksum/SHA384/63 1862s ok 1176 /checksum/SHA384/64 1862s ok 1177 /checksum/SHA384/65 1862s ok 1178 /checksum/SHA384/66 1862s ok 1179 /checksum/SHA384/67 1862s ok 1180 /checksum/SHA384/68 1862s ok 1181 /checksum/SHA384/69 1862s ok 1182 /checksum/SHA384/70 1862s ok 1183 /checksum/SHA384/71 1862s ok 1184 /checksum/SHA384/72 1862s ok 1185 /checksum/SHA384/73 1862s ok 1186 /checksum/SHA384/74 1862s ok 1187 /checksum/SHA384/75 1862s ok 1188 /checksum/SHA384/76 1862s ok 1189 /checksum/SHA384/77 1862s ok 1190 /checksum/SHA384/78 1862s ok 1191 /checksum/SHA384/79 1862s ok 1192 /checksum/SHA384/80 1862s ok 1193 /checksum/SHA384/81 1862s ok 1194 /checksum/SHA384/82 1862s ok 1195 /checksum/SHA384/83 1862s ok 1196 /checksum/SHA384/84 1862s ok 1197 /checksum/SHA384/85 1862s ok 1198 /checksum/SHA384/86 1862s ok 1199 /checksum/SHA384/87 1862s ok 1200 /checksum/SHA384/88 1862s ok 1201 /checksum/SHA384/89 1862s ok 1202 /checksum/SHA384/90 1862s ok 1203 /checksum/SHA384/91 1862s ok 1204 /checksum/SHA384/92 1862s ok 1205 /checksum/SHA384/93 1862s ok 1206 /checksum/SHA384/94 1862s ok 1207 /checksum/SHA384/95 1862s ok 1208 /checksum/SHA384/96 1862s ok 1209 /checksum/SHA384/97 1862s ok 1210 /checksum/SHA384/98 1862s ok 1211 /checksum/SHA384/99 1862s ok 1212 /checksum/SHA384/100 1862s ok 1213 /checksum/SHA384/101 1862s ok 1214 /checksum/SHA384/102 1862s ok 1215 /checksum/SHA384/103 1862s ok 1216 /checksum/SHA384/104 1862s ok 1217 /checksum/SHA384/105 1862s ok 1218 /checksum/SHA384/106 1862s ok 1219 /checksum/SHA384/107 1862s ok 1220 /checksum/SHA384/108 1862s ok 1221 /checksum/SHA384/109 1862s ok 1222 /checksum/SHA384/110 1862s ok 1223 /checksum/SHA384/111 1862s ok 1224 /checksum/SHA384/112 1862s ok 1225 /checksum/SHA384/113 1862s ok 1226 /checksum/SHA384/114 1862s ok 1227 /checksum/SHA384/115 1862s ok 1228 /checksum/SHA384/116 1862s ok 1229 /checksum/SHA384/117 1862s ok 1230 /checksum/SHA384/118 1862s ok 1231 /checksum/SHA384/119 1862s ok 1232 /checksum/SHA384/120 1862s ok 1233 /checksum/SHA384/121 1862s ok 1234 /checksum/SHA384/122 1862s ok 1235 /checksum/SHA384/123 1862s ok 1236 /checksum/SHA384/124 1862s ok 1237 /checksum/SHA384/125 1862s ok 1238 /checksum/SHA384/126 1862s ok 1239 /checksum/SHA384/127 1862s ok 1240 /checksum/SHA384/128 1862s ok 1241 /checksum/SHA384/129 1862s ok 1242 /checksum/SHA384/130 1862s ok 1243 /checksum/SHA384/131 1862s ok 1244 /checksum/SHA384/132 1862s ok 1245 /checksum/SHA384/133 1862s ok 1246 /checksum/SHA384/134 1862s ok 1247 /checksum/SHA384/135 1862s ok 1248 /checksum/SHA384/136 1862s ok 1249 /checksum/SHA384/137 1862s ok 1250 /checksum/SHA384/138 1862s ok 1251 /checksum/SHA384/139 1862s ok 1252 /checksum/SHA384/140 1862s ok 1253 /checksum/SHA384/141 1862s ok 1254 /checksum/SHA384/142 1862s ok 1255 /checksum/SHA384/143 1863s ok 1256 /checksum/SHA384/144 1863s ok 1257 /checksum/SHA384/145 1863s ok 1258 /checksum/SHA384/146 1863s ok 1259 /checksum/SHA384/147 1863s ok 1260 /checksum/SHA384/148 1863s ok 1261 /checksum/SHA384/149 1863s ok 1262 /checksum/SHA384/150 1863s ok 1263 /checksum/SHA384/151 1863s ok 1264 /checksum/SHA384/152 1863s ok 1265 /checksum/SHA384/153 1863s ok 1266 /checksum/SHA384/154 1863s ok 1267 /checksum/SHA384/155 1863s ok 1268 /checksum/SHA384/156 1863s ok 1269 /checksum/SHA384/157 1863s ok 1270 /checksum/SHA384/158 1863s ok 1271 /checksum/SHA384/159 1863s ok 1272 /checksum/SHA384/160 1863s ok 1273 /checksum/SHA384/161 1863s ok 1274 /checksum/SHA384/162 1863s ok 1275 /checksum/SHA384/163 1863s ok 1276 /checksum/SHA384/164 1863s ok 1277 /checksum/SHA384/165 1863s ok 1278 /checksum/SHA384/166 1863s ok 1279 /checksum/SHA384/167 1863s ok 1280 /checksum/SHA384/168 1863s ok 1281 /checksum/SHA384/169 1863s ok 1282 /checksum/SHA384/170 1863s ok 1283 /checksum/SHA384/171 1863s ok 1284 /checksum/SHA384/172 1863s ok 1285 /checksum/SHA384/173 1863s ok 1286 /checksum/SHA384/174 1863s ok 1287 /checksum/SHA384/175 1863s ok 1288 /checksum/SHA384/176 1863s ok 1289 /checksum/SHA384/177 1863s ok 1290 /checksum/SHA384/178 1863s ok 1291 /checksum/SHA384/179 1863s ok 1292 /checksum/SHA384/180 1863s ok 1293 /checksum/SHA384/181 1863s ok 1294 /checksum/SHA384/182 1863s ok 1295 /checksum/SHA384/183 1863s ok 1296 /checksum/SHA384/string 1863s ok 1297 /checksum/SHA384/bytes 1863s # Start of reset tests 1863s ok 1298 /checksum/SHA384/reset/0 1863s ok 1299 /checksum/SHA384/reset/1 1863s ok 1300 /checksum/SHA384/reset/2 1863s ok 1301 /checksum/SHA384/reset/3 1863s ok 1302 /checksum/SHA384/reset/4 1863s ok 1303 /checksum/SHA384/reset/5 1863s ok 1304 /checksum/SHA384/reset/6 1863s ok 1305 /checksum/SHA384/reset/7 1863s ok 1306 /checksum/SHA384/reset/8 1863s ok 1307 /checksum/SHA384/reset/9 1863s ok 1308 /checksum/SHA384/reset/10 1863s ok 1309 /checksum/SHA384/reset/11 1863s ok 1310 /checksum/SHA384/reset/12 1863s ok 1311 /checksum/SHA384/reset/13 1863s ok 1312 /checksum/SHA384/reset/14 1863s ok 1313 /checksum/SHA384/reset/15 1863s ok 1314 /checksum/SHA384/reset/16 1863s ok 1315 /checksum/SHA384/reset/17 1863s ok 1316 /checksum/SHA384/reset/18 1863s ok 1317 /checksum/SHA384/reset/19 1863s ok 1318 /checksum/SHA384/reset/20 1863s ok 1319 /checksum/SHA384/reset/21 1863s ok 1320 /checksum/SHA384/reset/22 1863s ok 1321 /checksum/SHA384/reset/23 1863s ok 1322 /checksum/SHA384/reset/24 1863s ok 1323 /checksum/SHA384/reset/25 1863s ok 1324 /checksum/SHA384/reset/26 1863s ok 1325 /checksum/SHA384/reset/27 1863s ok 1326 /checksum/SHA384/reset/28 1863s ok 1327 /checksum/SHA384/reset/29 1863s ok 1328 /checksum/SHA384/reset/30 1863s ok 1329 /checksum/SHA384/reset/31 1863s ok 1330 /checksum/SHA384/reset/32 1863s ok 1331 /checksum/SHA384/reset/33 1863s ok 1332 /checksum/SHA384/reset/34 1863s ok 1333 /checksum/SHA384/reset/35 1863s ok 1334 /checksum/SHA384/reset/36 1863s ok 1335 /checksum/SHA384/reset/37 1863s ok 1336 /checksum/SHA384/reset/38 1863s ok 1337 /checksum/SHA384/reset/39 1863s ok 1338 /checksum/SHA384/reset/40 1863s ok 1339 /checksum/SHA384/reset/41 1863s ok 1340 /checksum/SHA384/reset/42 1863s ok 1341 /checksum/SHA384/reset/43 1863s ok 1342 /checksum/SHA384/reset/44 1863s ok 1343 /checksum/SHA384/reset/45 1863s ok 1344 /checksum/SHA384/reset/46 1863s ok 1345 /checksum/SHA384/reset/47 1863s ok 1346 /checksum/SHA384/reset/48 1863s ok 1347 /checksum/SHA384/reset/49 1863s ok 1348 /checksum/SHA384/reset/50 1863s ok 1349 /checksum/SHA384/reset/51 1863s ok 1350 /checksum/SHA384/reset/52 1863s ok 1351 /checksum/SHA384/reset/53 1863s ok 1352 /checksum/SHA384/reset/54 1863s ok 1353 /checksum/SHA384/reset/55 1863s ok 1354 /checksum/SHA384/reset/56 1863s ok 1355 /checksum/SHA384/reset/57 1863s ok 1356 /checksum/SHA384/reset/58 1863s ok 1357 /checksum/SHA384/reset/59 1863s ok 1358 /checksum/SHA384/reset/60 1863s ok 1359 /checksum/SHA384/reset/61 1863s ok 1360 /checksum/SHA384/reset/62 1863s ok 1361 /checksum/SHA384/reset/63 1863s ok 1362 /checksum/SHA384/reset/64 1863s ok 1363 /checksum/SHA384/reset/65 1863s ok 1364 /checksum/SHA384/reset/66 1863s ok 1365 /checksum/SHA384/reset/67 1863s ok 1366 /checksum/SHA384/reset/68 1863s ok 1367 /checksum/SHA384/reset/69 1863s ok 1368 /checksum/SHA384/reset/70 1863s ok 1369 /checksum/SHA384/reset/71 1863s ok 1370 /checksum/SHA384/reset/72 1863s ok 1371 /checksum/SHA384/reset/73 1863s ok 1372 /checksum/SHA384/reset/74 1863s ok 1373 /checksum/SHA384/reset/75 1863s ok 1374 /checksum/SHA384/reset/76 1863s ok 1375 /checksum/SHA384/reset/77 1863s ok 1376 /checksum/SHA384/reset/78 1863s ok 1377 /checksum/SHA384/reset/79 1863s ok 1378 /checksum/SHA384/reset/80 1863s ok 1379 /checksum/SHA384/reset/81 1863s ok 1380 /checksum/SHA384/reset/82 1863s ok 1381 /checksum/SHA384/reset/83 1863s ok 1382 /checksum/SHA384/reset/84 1863s ok 1383 /checksum/SHA384/reset/85 1863s ok 1384 /checksum/SHA384/reset/86 1863s ok 1385 /checksum/SHA384/reset/87 1863s ok 1386 /checksum/SHA384/reset/88 1863s ok 1387 /checksum/SHA384/reset/89 1863s ok 1388 /checksum/SHA384/reset/90 1863s ok 1389 /checksum/SHA384/reset/91 1863s ok 1390 /checksum/SHA384/reset/92 1863s ok 1391 /checksum/SHA384/reset/93 1863s ok 1392 /checksum/SHA384/reset/94 1863s ok 1393 /checksum/SHA384/reset/95 1863s ok 1394 /checksum/SHA384/reset/96 1863s ok 1395 /checksum/SHA384/reset/97 1863s ok 1396 /checksum/SHA384/reset/98 1863s ok 1397 /checksum/SHA384/reset/99 1863s ok 1398 /checksum/SHA384/reset/100 1863s ok 1399 /checksum/SHA384/reset/101 1863s ok 1400 /checksum/SHA384/reset/102 1863s ok 1401 /checksum/SHA384/reset/103 1863s ok 1402 /checksum/SHA384/reset/104 1863s ok 1403 /checksum/SHA384/reset/105 1863s ok 1404 /checksum/SHA384/reset/106 1863s ok 1405 /checksum/SHA384/reset/107 1863s ok 1406 /checksum/SHA384/reset/108 1863s ok 1407 /checksum/SHA384/reset/109 1863s ok 1408 /checksum/SHA384/reset/110 1863s ok 1409 /checksum/SHA384/reset/111 1863s ok 1410 /checksum/SHA384/reset/112 1863s ok 1411 /checksum/SHA384/reset/113 1863s ok 1412 /checksum/SHA384/reset/114 1863s ok 1413 /checksum/SHA384/reset/115 1863s ok 1414 /checksum/SHA384/reset/116 1863s ok 1415 /checksum/SHA384/reset/117 1863s ok 1416 /checksum/SHA384/reset/118 1863s ok 1417 /checksum/SHA384/reset/119 1863s ok 1418 /checksum/SHA384/reset/120 1863s ok 1419 /checksum/SHA384/reset/121 1863s ok 1420 /checksum/SHA384/reset/122 1863s ok 1421 /checksum/SHA384/reset/123 1863s ok 1422 /checksum/SHA384/reset/124 1863s ok 1423 /checksum/SHA384/reset/125 1863s ok 1424 /checksum/SHA384/reset/126 1863s ok 1425 /checksum/SHA384/reset/127 1863s ok 1426 /checksum/SHA384/reset/128 1863s ok 1427 /checksum/SHA384/reset/129 1863s ok 1428 /checksum/SHA384/reset/130 1863s ok 1429 /checksum/SHA384/reset/131 1863s ok 1430 /checksum/SHA384/reset/132 1863s ok 1431 /checksum/SHA384/reset/133 1863s ok 1432 /checksum/SHA384/reset/134 1863s ok 1433 /checksum/SHA384/reset/135 1863s ok 1434 /checksum/SHA384/reset/136 1863s ok 1435 /checksum/SHA384/reset/137 1863s ok 1436 /checksum/SHA384/reset/138 1863s ok 1437 /checksum/SHA384/reset/139 1863s ok 1438 /checksum/SHA384/reset/140 1863s ok 1439 /checksum/SHA384/reset/141 1863s ok 1440 /checksum/SHA384/reset/142 1863s ok 1441 /checksum/SHA384/reset/143 1863s ok 1442 /checksum/SHA384/reset/144 1863s ok 1443 /checksum/SHA384/reset/145 1863s ok 1444 /checksum/SHA384/reset/146 1863s ok 1445 /checksum/SHA384/reset/147 1863s ok 1446 /checksum/SHA384/reset/148 1863s ok 1447 /checksum/SHA384/reset/149 1863s ok 1448 /checksum/SHA384/reset/150 1863s ok 1449 /checksum/SHA384/reset/151 1863s ok 1450 /checksum/SHA384/reset/152 1863s ok 1451 /checksum/SHA384/reset/153 1863s ok 1452 /checksum/SHA384/reset/154 1863s ok 1453 /checksum/SHA384/reset/155 1863s ok 1454 /checksum/SHA384/reset/156 1863s ok 1455 /checksum/SHA384/reset/157 1863s ok 1456 /checksum/SHA384/reset/158 1863s ok 1457 /checksum/SHA384/reset/159 1863s ok 1458 /checksum/SHA384/reset/160 1863s ok 1459 /checksum/SHA384/reset/161 1863s ok 1460 /checksum/SHA384/reset/162 1863s ok 1461 /checksum/SHA384/reset/163 1863s ok 1462 /checksum/SHA384/reset/164 1863s ok 1463 /checksum/SHA384/reset/165 1863s ok 1464 /checksum/SHA384/reset/166 1863s ok 1465 /checksum/SHA384/reset/167 1863s ok 1466 /checksum/SHA384/reset/168 1863s ok 1467 /checksum/SHA384/reset/169 1863s ok 1468 /checksum/SHA384/reset/170 1863s ok 1469 /checksum/SHA384/reset/171 1863s ok 1470 /checksum/SHA384/reset/172 1863s ok 1471 /checksum/SHA384/reset/173 1863s ok 1472 /checksum/SHA384/reset/174 1863s ok 1473 /checksum/SHA384/reset/175 1863s ok 1474 /checksum/SHA384/reset/176 1863s ok 1475 /checksum/SHA384/reset/177 1863s ok 1476 /checksum/SHA384/reset/178 1863s ok 1477 /checksum/SHA384/reset/179 1863s ok 1478 /checksum/SHA384/reset/180 1863s ok 1479 /checksum/SHA384/reset/181 1863s ok 1480 /checksum/SHA384/reset/182 1863s ok 1481 /checksum/SHA384/reset/183 1863s # End of reset tests 1863s # End of SHA384 tests 1863s # Start of SHA512 tests 1863s ok 1482 /checksum/SHA512/0 1863s ok 1483 /checksum/SHA512/1 1863s ok 1484 /checksum/SHA512/2 1863s ok 1485 /checksum/SHA512/3 1863s ok 1486 /checksum/SHA512/4 1863s ok 1487 /checksum/SHA512/5 1863s ok 1488 /checksum/SHA512/6 1863s ok 1489 /checksum/SHA512/7 1863s ok 1490 /checksum/SHA512/8 1863s ok 1491 /checksum/SHA512/9 1863s ok 1492 /checksum/SHA512/10 1863s ok 1493 /checksum/SHA512/11 1863s ok 1494 /checksum/SHA512/12 1863s ok 1495 /checksum/SHA512/13 1863s ok 1496 /checksum/SHA512/14 1863s ok 1497 /checksum/SHA512/15 1863s ok 1498 /checksum/SHA512/16 1863s ok 1499 /checksum/SHA512/17 1863s ok 1500 /checksum/SHA512/18 1863s ok 1501 /checksum/SHA512/19 1863s ok 1502 /checksum/SHA512/20 1863s ok 1503 /checksum/SHA512/21 1863s ok 1504 /checksum/SHA512/22 1863s ok 1505 /checksum/SHA512/23 1863s ok 1506 /checksum/SHA512/24 1863s ok 1507 /checksum/SHA512/25 1863s ok 1508 /checksum/SHA512/26 1863s ok 1509 /checksum/SHA512/27 1863s ok 1510 /checksum/SHA512/28 1863s ok 1511 /checksum/SHA512/29 1863s ok 1512 /checksum/SHA512/30 1863s ok 1513 /checksum/SHA512/31 1863s ok 1514 /checksum/SHA512/32 1863s ok 1515 /checksum/SHA512/33 1863s ok 1516 /checksum/SHA512/34 1863s ok 1517 /checksum/SHA512/35 1863s ok 1518 /checksum/SHA512/36 1863s ok 1519 /checksum/SHA512/37 1863s ok 1520 /checksum/SHA512/38 1863s ok 1521 /checksum/SHA512/39 1863s ok 1522 /checksum/SHA512/40 1863s ok 1523 /checksum/SHA512/41 1863s ok 1524 /checksum/SHA512/42 1863s ok 1525 /checksum/SHA512/43 1863s ok 1526 /checksum/SHA512/44 1863s ok 1527 /checksum/SHA512/45 1863s ok 1528 /checksum/SHA512/46 1863s ok 1529 /checksum/SHA512/47 1863s ok 1530 /checksum/SHA512/48 1863s ok 1531 /checksum/SHA512/49 1863s ok 1532 /checksum/SHA512/50 1863s ok 1533 /checksum/SHA512/51 1863s ok 1534 /checksum/SHA512/52 1863s ok 1535 /checksum/SHA512/53 1863s ok 1536 /checksum/SHA512/54 1863s ok 1537 /checksum/SHA512/55 1863s ok 1538 /checksum/SHA512/56 1863s ok 1539 /checksum/SHA512/57 1863s ok 1540 /checksum/SHA512/58 1863s ok 1541 /checksum/SHA512/59 1863s ok 1542 /checksum/SHA512/60 1863s ok 1543 /checksum/SHA512/61 1863s ok 1544 /checksum/SHA512/62 1863s ok 1545 /checksum/SHA512/63 1863s ok 1546 /checksum/SHA512/64 1863s ok 1547 /checksum/SHA512/65 1863s ok 1548 /checksum/SHA512/66 1863s ok 1549 /checksum/SHA512/67 1863s ok 1550 /checksum/SHA512/68 1863s ok 1551 /checksum/SHA512/69 1863s ok 1552 /checksum/SHA512/70 1863s ok 1553 /checksum/SHA512/71 1863s ok 1554 /checksum/SHA512/72 1863s ok 1555 /checksum/SHA512/73 1863s ok 1556 /checksum/SHA512/74 1863s ok 1557 /checksum/SHA512/75 1863s ok 1558 /checksum/SHA512/76 1863s ok 1559 /checksum/SHA512/77 1863s ok 1560 /checksum/SHA512/78 1863s ok 1561 /checksum/SHA512/79 1863s ok 1562 /checksum/SHA512/80 1863s ok 1563 /checksum/SHA512/81 1863s ok 1564 /checksum/SHA512/82 1863s ok 1565 /checksum/SHA512/83 1863s ok 1566 /checksum/SHA512/84 1863s ok 1567 /checksum/SHA512/85 1863s ok 1568 /checksum/SHA512/86 1863s ok 1569 /checksum/SHA512/87 1863s ok 1570 /checksum/SHA512/88 1863s ok 1571 /checksum/SHA512/89 1863s ok 1572 /checksum/SHA512/90 1863s ok 1573 /checksum/SHA512/91 1863s ok 1574 /checksum/SHA512/92 1863s ok 1575 /checksum/SHA512/93 1863s ok 1576 /checksum/SHA512/94 1863s ok 1577 /checksum/SHA512/95 1863s ok 1578 /checksum/SHA512/96 1863s ok 1579 /checksum/SHA512/97 1863s ok 1580 /checksum/SHA512/98 1863s ok 1581 /checksum/SHA512/99 1863s ok 1582 /checksum/SHA512/100 1863s ok 1583 /checksum/SHA512/101 1863s ok 1584 /checksum/SHA512/102 1863s ok 1585 /checksum/SHA512/103 1863s ok 1586 /checksum/SHA512/104 1863s ok 1587 /checksum/SHA512/105 1863s ok 1588 /checksum/SHA512/106 1863s ok 1589 /checksum/SHA512/107 1863s ok 1590 /checksum/SHA512/108 1863s ok 1591 /checksum/SHA512/109 1863s ok 1592 /checksum/SHA512/110 1863s ok 1593 /checksum/SHA512/111 1863s ok 1594 /checksum/SHA512/112 1863s ok 1595 /checksum/SHA512/113 1863s ok 1596 /checksum/SHA512/114 1863s ok 1597 /checksum/SHA512/115 1863s ok 1598 /checksum/SHA512/116 1863s ok 1599 /checksum/SHA512/117 1863s ok 1600 /checksum/SHA512/118 1863s ok 1601 /checksum/SHA512/119 1863s ok 1602 /checksum/SHA512/120 1863s ok 1603 /checksum/SHA512/121 1863s ok 1604 /checksum/SHA512/122 1863s ok 1605 /checksum/SHA512/123 1863s ok 1606 /checksum/SHA512/124 1863s ok 1607 /checksum/SHA512/125 1863s ok 1608 /checksum/SHA512/126 1863s ok 1609 /checksum/SHA512/127 1863s ok 1610 /checksum/SHA512/128 1863s ok 1611 /checksum/SHA512/129 1863s ok 1612 /checksum/SHA512/130 1863s ok 1613 /checksum/SHA512/131 1863s ok 1614 /checksum/SHA512/132 1863s ok 1615 /checksum/SHA512/133 1863s ok 1616 /checksum/SHA512/134 1863s ok 1617 /checksum/SHA512/135 1863s ok 1618 /checksum/SHA512/136 1863s ok 1619 /checksum/SHA512/137 1863s ok 1620 /checksum/SHA512/138 1863s ok 1621 /checksum/SHA512/139 1863s ok 1622 /checksum/SHA512/140 1863s ok 1623 /checksum/SHA512/141 1863s ok 1624 /checksum/SHA512/142 1863s ok 1625 /checksum/SHA512/143 1863s ok 1626 /checksum/SHA512/144 1863s ok 1627 /checksum/SHA512/145 1863s ok 1628 /checksum/SHA512/146 1863s ok 1629 /checksum/SHA512/147 1863s ok 1630 /checksum/SHA512/148 1863s ok 1631 /checksum/SHA512/149 1863s ok 1632 /checksum/SHA512/150 1863s ok 1633 /checksum/SHA512/151 1863s ok 1634 /checksum/SHA512/152 1863s ok 1635 /checksum/SHA512/153 1863s ok 1636 /checksum/SHA512/154 1863s ok 1637 /checksum/SHA512/155 1863s ok 1638 /checksum/SHA512/156 1863s ok 1639 /checksum/SHA512/157 1863s ok 1640 /checksum/SHA512/158 1863s ok 1641 /checksum/SHA512/159 1863s ok 1642 /checksum/SHA512/160 1863s ok 1643 /checksum/SHA512/161 1863s ok 1644 /checksum/SHA512/162 1863s ok 1645 /checksum/SHA512/163 1863s ok 1646 /checksum/SHA512/164 1863s ok 1647 /checksum/SHA512/165 1863s ok 1648 /checksum/SHA512/166 1863s ok 1649 /checksum/SHA512/167 1863s ok 1650 /checksum/SHA512/168 1863s ok 1651 /checksum/SHA512/169 1863s ok 1652 /checksum/SHA512/170 1863s ok 1653 /checksum/SHA512/171 1863s ok 1654 /checksum/SHA512/172 1863s ok 1655 /checksum/SHA512/173 1863s ok 1656 /checksum/SHA512/174 1863s ok 1657 /checksum/SHA512/175 1863s ok 1658 /checksum/SHA512/176 1863s ok 1659 /checksum/SHA512/177 1863s ok 1660 /checksum/SHA512/178 1863s ok 1661 /checksum/SHA512/179 1863s ok 1662 /checksum/SHA512/180 1863s ok 1663 /checksum/SHA512/181 1863s ok 1664 /checksum/SHA512/182 1863s ok 1665 /checksum/SHA512/183 1863s ok 1666 /checksum/SHA512/string 1863s ok 1667 /checksum/SHA512/bytes 1863s # Start of reset tests 1863s ok 1668 /checksum/SHA512/reset/0 1863s ok 1669 /checksum/SHA512/reset/1 1863s ok 1670 /checksum/SHA512/reset/2 1863s ok 1671 /checksum/SHA512/reset/3 1863s ok 1672 /checksum/SHA512/reset/4 1863s ok 1673 /checksum/SHA512/reset/5 1863s ok 1674 /checksum/SHA512/reset/6 1863s ok 1675 /checksum/SHA512/reset/7 1863s ok 1676 /checksum/SHA512/reset/8 1863s ok 1677 /checksum/SHA512/reset/9 1863s ok 1678 /checksum/SHA512/reset/10 1863s ok 1679 /checksum/SHA512/reset/11 1863s ok 1680 /checksum/SHA512/reset/12 1863s ok 1681 /checksum/SHA512/reset/13 1863s ok 1682 /checksum/SHA512/reset/14 1863s ok 1683 /checksum/SHA512/reset/15 1863s ok 1684 /checksum/SHA512/reset/16 1863s ok 1685 /checksum/SHA512/reset/17 1863s ok 1686 /checksum/SHA512/reset/18 1863s ok 1687 /checksum/SHA512/reset/19 1863s ok 1688 /checksum/SHA512/reset/20 1863s ok 1689 /checksum/SHA512/reset/21 1863s ok 1690 /checksum/SHA512/reset/22 1863s ok 1691 /checksum/SHA512/reset/23 1863s ok 1692 /checksum/SHA512/reset/24 1863s ok 1693 /checksum/SHA512/reset/25 1863s ok 1694 /checksum/SHA512/reset/26 1863s ok 1695 /checksum/SHA512/reset/27 1863s ok 1696 /checksum/SHA512/reset/28 1863s ok 1697 /checksum/SHA512/reset/29 1863s ok 1698 /checksum/SHA512/reset/30 1863s ok 1699 /checksum/SHA512/reset/31 1863s ok 1700 /checksum/SHA512/reset/32 1863s ok 1701 /checksum/SHA512/reset/33 1863s ok 1702 /checksum/SHA512/reset/34 1863s ok 1703 /checksum/SHA512/reset/35 1863s ok 1704 /checksum/SHA512/reset/36 1863s ok 1705 /checksum/SHA512/reset/37 1863s ok 1706 /checksum/SHA512/reset/38 1863s ok 1707 /checksum/SHA512/reset/39 1863s ok 1708 /checksum/SHA512/reset/40 1863s ok 1709 /checksum/SHA512/reset/41 1863s ok 1710 /checksum/SHA512/reset/42 1863s ok 1711 /checksum/SHA512/reset/43 1863s ok 1712 /checksum/SHA512/reset/44 1863s ok 1713 /checksum/SHA512/reset/45 1863s ok 1714 /checksum/SHA512/reset/46 1863s ok 1715 /checksum/SHA512/reset/47 1863s ok 1716 /checksum/SHA512/reset/48 1863s ok 1717 /checksum/SHA512/reset/49 1863s ok 1718 /checksum/SHA512/reset/50 1863s ok 1719 /checksum/SHA512/reset/51 1863s ok 1720 /checksum/SHA512/reset/52 1863s ok 1721 /checksum/SHA512/reset/53 1863s ok 1722 /checksum/SHA512/reset/54 1863s ok 1723 /checksum/SHA512/reset/55 1863s ok 1724 /checksum/SHA512/reset/56 1863s ok 1725 /checksum/SHA512/reset/57 1863s ok 1726 /checksum/SHA512/reset/58 1863s ok 1727 /checksum/SHA512/reset/59 1863s ok 1728 /checksum/SHA512/reset/60 1863s ok 1729 /checksum/SHA512/reset/61 1863s ok 1730 /checksum/SHA512/reset/62 1863s ok 1731 /checksum/SHA512/reset/63 1863s ok 1732 /checksum/SHA512/reset/64 1863s ok 1733 /checksum/SHA512/reset/65 1863s ok 1734 /checksum/SHA512/reset/66 1863s ok 1735 /checksum/SHA512/reset/67 1863s ok 1736 /checksum/SHA512/reset/68 1863s ok 1737 /checksum/SHA512/reset/69 1863s ok 1738 /checksum/SHA512/reset/70 1863s ok 1739 /checksum/SHA512/reset/71 1863s ok 1740 /checksum/SHA512/reset/72 1863s ok 1741 /checksum/SHA512/reset/73 1863s ok 1742 /checksum/SHA512/reset/74 1863s ok 1743 /checksum/SHA512/reset/75 1863s ok 1744 /checksum/SHA512/reset/76 1863s ok 1745 /checksum/SHA512/reset/77 1863s ok 1746 /checksum/SHA512/reset/78 1863s ok 1747 /checksum/SHA512/reset/79 1863s ok 1748 /checksum/SHA512/reset/80 1863s ok 1749 /checksum/SHA512/reset/81 1863s ok 1750 /checksum/SHA512/reset/82 1863s ok 1751 /checksum/SHA512/reset/83 1863s ok 1752 /checksum/SHA512/reset/84 1863s ok 1753 /checksum/SHA512/reset/85 1863s ok 1754 /checksum/SHA512/reset/86 1863s ok 1755 /checksum/SHA512/reset/87 1863s ok 1756 /checksum/SHA512/reset/88 1863s ok 1757 /checksum/SHA512/reset/89 1863s ok 1758 /checksum/SHA512/reset/90 1863s ok 1759 /checksum/SHA512/reset/91 1863s ok 1760 /checksum/SHA512/reset/92 1863s ok 1761 /checksum/SHA512/reset/93 1863s ok 1762 /checksum/SHA512/reset/94 1863s ok 1763 /checksum/SHA512/reset/95 1863s ok 1764 /checksum/SHA512/reset/96 1863s ok 1765 /checksum/SHA512/reset/97 1863s ok 1766 /checksum/SHA512/reset/98 1863s ok 1767 /checksum/SHA512/reset/99 1863s ok 1768 /checksum/SHA512/reset/100 1863s ok 1769 /checksum/SHA512/reset/101 1863s ok 1770 /checksum/SHA512/reset/102 1863s ok 1771 /checksum/SHA512/reset/103 1863s ok 1772 /checksum/SHA512/reset/104 1863s ok 1773 /checksum/SHA512/reset/105 1863s ok 1774 /checksum/SHA512/reset/106 1863s ok 1775 /checksum/SHA512/reset/107 1863s ok 1776 /checksum/SHA512/reset/108 1863s ok 1777 /checksum/SHA512/reset/109 1863s ok 1778 /checksum/SHA512/reset/110 1863s ok 1779 /checksum/SHA512/reset/111 1863s ok 1780 /checksum/SHA512/reset/112 1863s ok 1781 /checksum/SHA512/reset/113 1863s ok 1782 /checksum/SHA512/reset/114 1863s ok 1783 /checksum/SHA512/reset/115 1863s ok 1784 /checksum/SHA512/reset/116 1863s ok 1785 /checksum/SHA512/reset/117 1863s ok 1786 /checksum/SHA512/reset/118 1863s ok 1787 /checksum/SHA512/reset/119 1863s ok 1788 /checksum/SHA512/reset/120 1863s ok 1789 /checksum/SHA512/reset/121 1863s ok 1790 /checksum/SHA512/reset/122 1863s ok 1791 /checksum/SHA512/reset/123 1863s ok 1792 /checksum/SHA512/reset/124 1863s ok 1793 /checksum/SHA512/reset/125 1863s ok 1794 /checksum/SHA512/reset/126 1863s ok 1795 /checksum/SHA512/reset/127 1863s ok 1796 /checksum/SHA512/reset/128 1863s ok 1797 /checksum/SHA512/reset/129 1863s ok 1798 /checksum/SHA512/reset/130 1863s ok 1799 /checksum/SHA512/reset/131 1863s ok 1800 /checksum/SHA512/reset/132 1863s ok 1801 /checksum/SHA512/reset/133 1863s ok 1802 /checksum/SHA512/reset/134 1863s ok 1803 /checksum/SHA512/reset/135 1863s ok 1804 /checksum/SHA512/reset/136 1863s ok 1805 /checksum/SHA512/reset/137 1863s ok 1806 /checksum/SHA512/reset/138 1863s ok 1807 /checksum/SHA512/reset/139 1863s ok 1808 /checksum/SHA512/reset/140 1863s ok 1809 /checksum/SHA512/reset/141 1863s ok 1810 /checksum/SHA512/reset/142 1863s ok 1811 /checksum/SHA512/reset/143 1863s ok 1812 /checksum/SHA512/reset/144 1863s ok 1813 /checksum/SHA512/reset/145 1863s ok 1814 /checksum/SHA512/reset/146 1863s ok 1815 /checksum/SHA512/reset/147 1863s ok 1816 /checksum/SHA512/reset/148 1863s ok 1817 /checksum/SHA512/reset/149 1863s ok 1818 /checksum/SHA512/reset/150 1863s ok 1819 /checksum/SHA512/reset/151 1863s ok 1820 /checksum/SHA512/reset/152 1863s ok 1821 /checksum/SHA512/reset/153 1863s ok 1822 /checksum/SHA512/reset/154 1863s ok 1823 /checksum/SHA512/reset/155 1863s ok 1824 /checksum/SHA512/reset/156 1863s ok 1825 /checksum/SHA512/reset/157 1863s ok 1826 /checksum/SHA512/reset/158 1863s ok 1827 /checksum/SHA512/reset/159 1863s ok 1828 /checksum/SHA512/reset/160 1863s ok 1829 /checksum/SHA512/reset/161 1863s ok 1830 /checksum/SHA512/reset/162 1863s ok 1831 /checksum/SHA512/reset/163 1863s ok 1832 /checksum/SHA512/reset/164 1863s ok 1833 /checksum/SHA512/reset/165 1863s ok 1834 /checksum/SHA512/reset/166 1863s ok 1835 /checksum/SHA512/reset/167 1863s ok 1836 /checksum/SHA512/reset/168 1863s ok 1837 /checksum/SHA512/reset/169 1863s ok 1838 /checksum/SHA512/reset/170 1863s ok 1839 /checksum/SHA512/reset/171 1863s ok 1840 /checksum/SHA512/reset/172 1863s ok 1841 /checksum/SHA512/reset/173 1863s ok 1842 /checksum/SHA512/reset/174 1863s ok 1843 /checksum/SHA512/reset/175 1863s ok 1844 /checksum/SHA512/reset/176 1863s ok 1845 /checksum/SHA512/reset/177 1863s ok 1846 /checksum/SHA512/reset/178 1863s ok 1847 /checksum/SHA512/reset/179 1863s ok 1848 /checksum/SHA512/reset/180 1863s ok 1849 /checksum/SHA512/reset/181 1863s ok 1850 /checksum/SHA512/reset/182 1863s ok 1851 /checksum/SHA512/reset/183 1863s # End of reset tests 1863s # End of SHA512 tests 1863s # End of checksum tests 1863s ok - glib/checksum.test 1863s # Running test: glib/memory-monitor-portal.test 1863s TAP version 13 1863s ok 1 __main__.TestLowMemoryMonitorPortal.test_low_memory_warning_portal_signal # SKIP xdg-desktop-portal not available 1863s 1..1 1863s ok - glib/memory-monitor-portal.test 1863s # Running test: glib/test-printf.test 1863s TAP version 14 1863s # random seed: R02Sa70c375d5bfdc08b21e1c9ea8f5952a4 1863s 1..22 1863s # Start of snprintf tests 1863s ok 1 /snprintf/retval-and-trunc 1863s ok 2 /snprintf/%d 1863s ok 3 /snprintf/%d-invalid 1863s ok 4 /snprintf/%o 1863s ok 5 /snprintf/%u 1863s ok 6 /snprintf/%x 1863s ok 7 /snprintf/%X 1863s ok 8 /snprintf/%f 1863s ok 9 /snprintf/%e 1863s ok 10 /snprintf/%c 1863s ok 11 /snprintf/%s 1863s ok 12 /snprintf/%n 1863s ok 13 /snprintf/test-percent 1863s ok 14 /snprintf/test-positional-params 1863s ok 15 /snprintf/test-64bit 1863s # End of snprintf tests 1863s # Start of printf tests 1863s ok 16 /printf/test-percent 1863s ok 17 /printf/test-positional-params 1863s ok 18 /printf/test-64bit 1863s # Start of test-64bit tests 1863s # Start of subprocess tests 1863s # End of subprocess tests 1863s # End of test-64bit tests 1863s # End of printf tests 1863s # Start of sprintf tests 1863s ok 19 /sprintf/test-positional-params 1863s ok 20 /sprintf/upper-bound 1863s # End of sprintf tests 1863s # Start of vasprintf tests 1863s # /vasprintf/invalid-format-placeholder summary: Test error handling for invalid format placeholder in g_vasprintf() 1863s ok 21 /vasprintf/invalid-format-placeholder 1863s # /vasprintf/invalid-wide-string summary: Test error handling for invalid wide strings in g_vasprintf() 1863s ok 22 /vasprintf/invalid-wide-string 1863s # End of vasprintf tests 1863s ok - glib/test-printf.test 1863s # Running test: glib/gdbus-error.test 1863s TAP version 14 1863s # random seed: R02Sc9185fe0998929e3605871c5697b33cd 1863s 1..4 1863s # Start of gdbus tests 1863s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_YGI5B3/gdbus/registered-errors/.dirs/home 1863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_YGI5B3/gdbus/registered-errors/.dirs/cache 1863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_YGI5B3/gdbus/registered-errors/.dirs/system-config1:/tmp/test_gdbus-error_YGI5B3/gdbus/registered-errors/.dirs/system-config2 1863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_YGI5B3/gdbus/registered-errors/.dirs/config 1863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_YGI5B3/gdbus/registered-errors/.dirs/system-data1:/tmp/test_gdbus-error_YGI5B3/gdbus/registered-errors/.dirs/system-data2 1863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_YGI5B3/gdbus/registered-errors/.dirs/data 1863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_YGI5B3/gdbus/registered-errors/.dirs/state 1863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_YGI5B3/gdbus/registered-errors/.dirs/runtime 1863s ok 1 /gdbus/registered-errors 1863s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_YGI5B3/gdbus/unregistered-errors/.dirs/home 1863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_YGI5B3/gdbus/unregistered-errors/.dirs/cache 1863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_YGI5B3/gdbus/unregistered-errors/.dirs/system-config1:/tmp/test_gdbus-error_YGI5B3/gdbus/unregistered-errors/.dirs/system-config2 1863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_YGI5B3/gdbus/unregistered-errors/.dirs/config 1863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_YGI5B3/gdbus/unregistered-errors/.dirs/system-data1:/tmp/test_gdbus-error_YGI5B3/gdbus/unregistered-errors/.dirs/system-data2 1863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_YGI5B3/gdbus/unregistered-errors/.dirs/data 1863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_YGI5B3/gdbus/unregistered-errors/.dirs/state 1863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_YGI5B3/gdbus/unregistered-errors/.dirs/runtime 1863s ok 2 /gdbus/unregistered-errors 1863s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_YGI5B3/gdbus/transparent-gerror/.dirs/home 1863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_YGI5B3/gdbus/transparent-gerror/.dirs/cache 1863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_YGI5B3/gdbus/transparent-gerror/.dirs/system-config1:/tmp/test_gdbus-error_YGI5B3/gdbus/transparent-gerror/.dirs/system-config2 1863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_YGI5B3/gdbus/transparent-gerror/.dirs/config 1863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_YGI5B3/gdbus/transparent-gerror/.dirs/system-data1:/tmp/test_gdbus-error_YGI5B3/gdbus/transparent-gerror/.dirs/system-data2 1863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_YGI5B3/gdbus/transparent-gerror/.dirs/data 1863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_YGI5B3/gdbus/transparent-gerror/.dirs/state 1863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_YGI5B3/gdbus/transparent-gerror/.dirs/runtime 1863s ok 3 /gdbus/transparent-gerror 1863s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_YGI5B3/gdbus/register-error/.dirs/home 1863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_YGI5B3/gdbus/register-error/.dirs/cache 1863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_YGI5B3/gdbus/register-error/.dirs/system-config1:/tmp/test_gdbus-error_YGI5B3/gdbus/register-error/.dirs/system-config2 1863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_YGI5B3/gdbus/register-error/.dirs/config 1863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_YGI5B3/gdbus/register-error/.dirs/system-data1:/tmp/test_gdbus-error_YGI5B3/gdbus/register-error/.dirs/system-data2 1863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_YGI5B3/gdbus/register-error/.dirs/data 1863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_YGI5B3/gdbus/register-error/.dirs/state 1863s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_YGI5B3/gdbus/register-error/.dirs/runtime 1863s ok 4 /gdbus/register-error 1863s # End of gdbus tests 1863s ok - glib/gdbus-error.test 1863s # Running test: glib/print.test 1863s TAP version 14 1863s # random seed: R02S576cee834c7e6d987ddcfc18d5749836 1863s 1..1 1863s ok 1 /print-console # SKIP Testing console output only supported on Windows 1863s ok - glib/print.test 1863s # Running test: glib/macros.test 1863s TAP version 14 1863s # random seed: R02Se13b29af59de8b791a188e82e7f1d783 1863s 1..3 1863s # Start of alignof tests 1863s ok 1 /alignof/fallback 1863s # End of alignof tests 1863s # Start of assert tests 1863s ok 2 /assert/static 1863s # End of assert tests 1863s # Start of struct tests 1863s ok 3 /struct/sizeof_member 1863s # End of struct tests 1863s ok - glib/macros.test 1863s # Running test: glib/cache.test 1863s TAP version 14 1863s # random seed: R02S92ab953b477a7921390e0f5388523e53 1863s 1..1 1863s # Start of cache tests 1863s ok 1 /cache/basic 1863s # End of cache tests 1863s TAP version 14 1863s # random seed: R02S75e837a40ca48da36e632eb0eed392e7 1863s 1..3 1863s # Start of deprecated-properties tests 1863s ok 1 /deprecated-properties/construct 1863s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2748 1863s ok 2 /deprecated-properties/default-construct 1863s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2748 1863s ok - glib/cache.test 1863s # Running test: glib/deprecated-properties.test 1863s ok 3 /deprecated-properties/set 1863s # End of deprecated-properties tests 1863s ok - glib/deprecated-properties.test 1863s # Running test: glib/properties-refcount1.test 1863s TAP version 14 1863s # random seed: R02S09d7cba39f997ce908119734ddcb5c99 1863s 1..1 1863s # Start of gobject tests 1863s # Start of refcount tests 1864s # .c 1864s # .f 1864s # .d 1864s # .b 1864s # .e 1864s # .c 1864s # .b 1864s # .f 1864s # .d 1864s # .e 1864s # .b 1864s # .c 1864s # .f 1864s # .d 1865s # .e 1865s # .b 1865s # .c 1865s # .d 1865s # .f 1865s # .e 1865s # .b 1865s # .c 1865s # .d 1865s # .f 1865s # .e 1865s # .b 1865s # .d 1865s # .f 1865s # .c 1866s # .e 1866s # .b 1866s # .d 1866s # .c 1866s # .f 1866s # .b 1866s # .e 1866s # .d 1866s # .c 1866s # .f 1866s # .b 1866s # .e 1866s # .d 1866s # .c 1866s # .f 1866s # Executing: glib/properties-refcount1.test 1866s ok 1 /gobject/refcount/properties-1 1866s # slow test /gobject/refcount/properties-1 executed in 3.00 secs 1866s # End of refcount tests 1866s # End of gobject tests 1866s ok - glib/properties-refcount1.test 1866s # Running test: glib/socket-address.test 1866s TAP version 14 1866s # random seed: R02S6e9f42c38453fa5a47b41415010ac6a8 1866s 1..2 1866s # Start of socket tests 1866s # Start of address tests 1866s # Start of unix tests 1866s ok 1 /socket/address/unix/construct 1866s ok 2 /socket/address/unix/to-string 1866s # End of unix tests 1866s # End of address tests 1866s # End of socket tests 1866s ok - glib/socket-address.test 1866s # Running test: glib/bookmarkfile.test 1866s TAP version 14 1866s # random seed: R02S7648dd021767fb87f2c91929d9dd650d 1866s 1..96 1866s # Start of bookmarks tests 1866s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/load-from-data-dirs/.dirs/home 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/load-from-data-dirs/.dirs/cache 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/load-from-data-dirs/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/load-from-data-dirs/.dirs/system-config2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/load-from-data-dirs/.dirs/config 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/load-from-data-dirs/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/load-from-data-dirs/.dirs/system-data2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/load-from-data-dirs/.dirs/data 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/load-from-data-dirs/.dirs/state 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/load-from-data-dirs/.dirs/runtime 1866s ok 1 /bookmarks/load-from-data-dirs 1866s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/to-file/.dirs/home 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/to-file/.dirs/cache 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/to-file/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/to-file/.dirs/system-config2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/to-file/.dirs/config 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/to-file/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/to-file/.dirs/system-data2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/to-file/.dirs/data 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/to-file/.dirs/state 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/to-file/.dirs/runtime 1866s # Roundtrip from newly created bookmark file /tmp/test_bookmarkfile_AW98B3/bookmarkfile-test-2E78B3.xbel 1866s # Roundtrip from a valid bookmark file 1866s ok 2 /bookmarks/to-file 1866s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/move-item/.dirs/home 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/move-item/.dirs/cache 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/move-item/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/move-item/.dirs/system-config2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/move-item/.dirs/config 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/move-item/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/move-item/.dirs/system-data2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/move-item/.dirs/data 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/move-item/.dirs/state 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/move-item/.dirs/runtime 1866s ok 3 /bookmarks/move-item 1866s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/corner-cases/.dirs/home 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/corner-cases/.dirs/cache 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/corner-cases/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/corner-cases/.dirs/system-config2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/corner-cases/.dirs/config 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/corner-cases/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/corner-cases/.dirs/system-data2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/corner-cases/.dirs/data 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/corner-cases/.dirs/state 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/corner-cases/.dirs/runtime 1866s ok 4 /bookmarks/corner-cases 1866s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/misc/.dirs/home 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/misc/.dirs/cache 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/misc/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/misc/.dirs/system-config2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/misc/.dirs/config 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/misc/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/misc/.dirs/system-data2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/misc/.dirs/data 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/misc/.dirs/state 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/misc/.dirs/runtime 1866s ok 5 /bookmarks/misc 1866s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/deprecated/.dirs/home 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/deprecated/.dirs/cache 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/deprecated/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/deprecated/.dirs/system-config2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/deprecated/.dirs/config 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/deprecated/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/deprecated/.dirs/system-data2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/deprecated/.dirs/data 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/deprecated/.dirs/state 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/deprecated/.dirs/runtime 1866s ok 6 /bookmarks/deprecated 1866s # Start of parse tests 1866s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-01.xbel/.dirs/home 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-01.xbel/.dirs/cache 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-01.xbel/.dirs/system-config2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-01.xbel/.dirs/config 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-01.xbel/.dirs/system-data2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-01.xbel/.dirs/data 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-01.xbel/.dirs/state 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-01.xbel/.dirs/runtime 1866s ok 7 /bookmarks/parse/fail-01.xbel 1866s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-02.xbel/.dirs/home 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-02.xbel/.dirs/cache 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-02.xbel/.dirs/system-config2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-02.xbel/.dirs/config 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-02.xbel/.dirs/system-data2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-02.xbel/.dirs/data 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-02.xbel/.dirs/state 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-02.xbel/.dirs/runtime 1866s ok 8 /bookmarks/parse/fail-02.xbel 1866s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-03.xbel/.dirs/home 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-03.xbel/.dirs/cache 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-03.xbel/.dirs/system-config2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-03.xbel/.dirs/config 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-03.xbel/.dirs/system-data2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-03.xbel/.dirs/data 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-03.xbel/.dirs/state 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-03.xbel/.dirs/runtime 1866s ok 9 /bookmarks/parse/fail-03.xbel 1866s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-04.xbel/.dirs/home 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-04.xbel/.dirs/cache 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-04.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-04.xbel/.dirs/system-config2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-04.xbel/.dirs/config 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-04.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-04.xbel/.dirs/system-data2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-04.xbel/.dirs/data 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-04.xbel/.dirs/state 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-04.xbel/.dirs/runtime 1866s ok 10 /bookmarks/parse/fail-04.xbel 1866s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-05.xbel/.dirs/home 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-05.xbel/.dirs/cache 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-05.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-05.xbel/.dirs/system-config2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-05.xbel/.dirs/config 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-05.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-05.xbel/.dirs/system-data2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-05.xbel/.dirs/data 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-05.xbel/.dirs/state 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-05.xbel/.dirs/runtime 1866s ok 11 /bookmarks/parse/fail-05.xbel 1866s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-06.xbel/.dirs/home 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-06.xbel/.dirs/cache 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-06.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-06.xbel/.dirs/system-config2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-06.xbel/.dirs/config 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-06.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-06.xbel/.dirs/system-data2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-06.xbel/.dirs/data 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-06.xbel/.dirs/state 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-06.xbel/.dirs/runtime 1866s ok 12 /bookmarks/parse/fail-06.xbel 1866s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-07.xbel/.dirs/home 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-07.xbel/.dirs/cache 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-07.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-07.xbel/.dirs/system-config2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-07.xbel/.dirs/config 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-07.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-07.xbel/.dirs/system-data2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-07.xbel/.dirs/data 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-07.xbel/.dirs/state 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-07.xbel/.dirs/runtime 1866s ok 13 /bookmarks/parse/fail-07.xbel 1866s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-08.xbel/.dirs/home 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-08.xbel/.dirs/cache 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-08.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-08.xbel/.dirs/system-config2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-08.xbel/.dirs/config 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-08.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-08.xbel/.dirs/system-data2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-08.xbel/.dirs/data 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-08.xbel/.dirs/state 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-08.xbel/.dirs/runtime 1866s ok 14 /bookmarks/parse/fail-08.xbel 1866s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-09.xbel/.dirs/home 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-09.xbel/.dirs/cache 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-09.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-09.xbel/.dirs/system-config2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-09.xbel/.dirs/config 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-09.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-09.xbel/.dirs/system-data2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-09.xbel/.dirs/data 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-09.xbel/.dirs/state 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-09.xbel/.dirs/runtime 1866s ok 15 /bookmarks/parse/fail-09.xbel 1866s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-10.xbel/.dirs/home 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-10.xbel/.dirs/cache 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-10.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-10.xbel/.dirs/system-config2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-10.xbel/.dirs/config 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-10.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-10.xbel/.dirs/system-data2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-10.xbel/.dirs/data 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-10.xbel/.dirs/state 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-10.xbel/.dirs/runtime 1866s ok 16 /bookmarks/parse/fail-10.xbel 1866s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-11.xbel/.dirs/home 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-11.xbel/.dirs/cache 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-11.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-11.xbel/.dirs/system-config2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-11.xbel/.dirs/config 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-11.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-11.xbel/.dirs/system-data2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-11.xbel/.dirs/data 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-11.xbel/.dirs/state 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-11.xbel/.dirs/runtime 1866s ok 17 /bookmarks/parse/fail-11.xbel 1866s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-12.xbel/.dirs/home 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-12.xbel/.dirs/cache 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-12.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-12.xbel/.dirs/system-config2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-12.xbel/.dirs/config 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-12.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-12.xbel/.dirs/system-data2 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-12.xbel/.dirs/data 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-12.xbel/.dirs/state 1866s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-12.xbel/.dirs/runtime 1866s ok 18 /bookmarks/parse/fail-12.xbel 1867s ok - glib/bookmarkfile.test 1867s # Running test: glib/hook.test 1867s ok - glib/hook.test 1867s # Running test: glib/network-monitor-race.test 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-13.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-13.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-13.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-13.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-13.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-13.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-13.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-13.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-13.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-13.xbel/.dirs/runtime 1867s ok 19 /bookmarks/parse/fail-13.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-14.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-14.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-14.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-14.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-14.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-14.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-14.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-14.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-14.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-14.xbel/.dirs/runtime 1867s ok 20 /bookmarks/parse/fail-14.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-15.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-15.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-15.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-15.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-15.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-15.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-15.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-15.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-15.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-15.xbel/.dirs/runtime 1867s ok 21 /bookmarks/parse/fail-15.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-16.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-16.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-16.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-16.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-16.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-16.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-16.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-16.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-16.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-16.xbel/.dirs/runtime 1867s ok 22 /bookmarks/parse/fail-16.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-17.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-17.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-17.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-17.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-17.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-17.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-17.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-17.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-17.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-17.xbel/.dirs/runtime 1867s ok 23 /bookmarks/parse/fail-17.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-18.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-18.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-18.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-18.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-18.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-18.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-18.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-18.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-18.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-18.xbel/.dirs/runtime 1867s ok 24 /bookmarks/parse/fail-18.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-19.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-19.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-19.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-19.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-19.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-19.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-19.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-19.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-19.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-19.xbel/.dirs/runtime 1867s ok 25 /bookmarks/parse/fail-19.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-20.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-20.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-20.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-20.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-20.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-20.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-20.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-20.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-20.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-20.xbel/.dirs/runtime 1867s ok 26 /bookmarks/parse/fail-20.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-21.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-21.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-21.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-21.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-21.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-21.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-21.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-21.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-21.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-21.xbel/.dirs/runtime 1867s ok 27 /bookmarks/parse/fail-21.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-22.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-22.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-22.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-22.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-22.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-22.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-22.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-22.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-22.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-22.xbel/.dirs/runtime 1867s ok 28 /bookmarks/parse/fail-22.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-23.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-23.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-23.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-23.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-23.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-23.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-23.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-23.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-23.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-23.xbel/.dirs/runtime 1867s ok 29 /bookmarks/parse/fail-23.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-24.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-24.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-24.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-24.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-24.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-24.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-24.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-24.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-24.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-24.xbel/.dirs/runtime 1867s ok 30 /bookmarks/parse/fail-24.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-25.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-25.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-25.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-25.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-25.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-25.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-25.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-25.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-25.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-25.xbel/.dirs/runtime 1867s ok 31 /bookmarks/parse/fail-25.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-26.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-26.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-26.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-26.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-26.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-26.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-26.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-26.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-26.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-26.xbel/.dirs/runtime 1867s ok 32 /bookmarks/parse/fail-26.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-27.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-27.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-27.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-27.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-27.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-27.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-27.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-27.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-27.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-27.xbel/.dirs/runtime 1867s ok 33 /bookmarks/parse/fail-27.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-28.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-28.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-28.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-28.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-28.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-28.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-28.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-28.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-28.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-28.xbel/.dirs/runtime 1867s ok 34 /bookmarks/parse/fail-28.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-29.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-29.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-29.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-29.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-29.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-29.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-29.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-29.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-29.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-29.xbel/.dirs/runtime 1867s ok 35 /bookmarks/parse/fail-29.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-30.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-30.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-30.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-30.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-30.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-30.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-30.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-30.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-30.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-30.xbel/.dirs/runtime 1867s ok 36 /bookmarks/parse/fail-30.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-31.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-31.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-31.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-31.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-31.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-31.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-31.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-31.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-31.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-31.xbel/.dirs/runtime 1867s ok 37 /bookmarks/parse/fail-31.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-32.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-32.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-32.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-32.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-32.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-32.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-32.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-32.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-32.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-32.xbel/.dirs/runtime 1867s ok 38 /bookmarks/parse/fail-32.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-33.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-33.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-33.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-33.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-33.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-33.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-33.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-33.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-33.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-33.xbel/.dirs/runtime 1867s ok 39 /bookmarks/parse/fail-33.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-34.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-34.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-34.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-34.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-34.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-34.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-34.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-34.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-34.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-34.xbel/.dirs/runtime 1867s ok 40 /bookmarks/parse/fail-34.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-35.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-35.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-35.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-35.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-35.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-35.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-35.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-35.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-35.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-35.xbel/.dirs/runtime 1867s ok 41 /bookmarks/parse/fail-35.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-36.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-36.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-36.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-36.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-36.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-36.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-36.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-36.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-36.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-36.xbel/.dirs/runtime 1867s ok 42 /bookmarks/parse/fail-36.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-37.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-37.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-37.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-37.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-37.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-37.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-37.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-37.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-37.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-37.xbel/.dirs/runtime 1867s ok 43 /bookmarks/parse/fail-37.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-38.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-38.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-38.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-38.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-38.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-38.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-38.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-38.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-38.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-38.xbel/.dirs/runtime 1867s ok 44 /bookmarks/parse/fail-38.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-39.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-39.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-39.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-39.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-39.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-39.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-39.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-39.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-39.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-39.xbel/.dirs/runtime 1867s ok 45 /bookmarks/parse/fail-39.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-40.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-40.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-40.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-40.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-40.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-40.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-40.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-40.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-40.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-40.xbel/.dirs/runtime 1867s ok 46 /bookmarks/parse/fail-40.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-41.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-41.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-41.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-41.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-41.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-41.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-41.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-41.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-41.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-41.xbel/.dirs/runtime 1867s ok 47 /bookmarks/parse/fail-41.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-42.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-42.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-42.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-42.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-42.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-42.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-42.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-42.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-42.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/fail-42.xbel/.dirs/runtime 1867s ok 48 /bookmarks/parse/fail-42.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/valid-01.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/valid-01.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/valid-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/valid-01.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/valid-01.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/valid-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/valid-01.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/valid-01.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/valid-01.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/valid-01.xbel/.dirs/runtime 1867s ok 49 /bookmarks/parse/valid-01.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/valid-02.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/valid-02.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/valid-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/valid-02.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/valid-02.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/valid-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/valid-02.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/valid-02.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/valid-02.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/valid-02.xbel/.dirs/runtime 1867s ok 50 /bookmarks/parse/valid-02.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/valid-03.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/valid-03.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/valid-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/valid-03.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/valid-03.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/valid-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/parse/valid-03.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/valid-03.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/valid-03.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/parse/valid-03.xbel/.dirs/runtime 1867s ok 51 /bookmarks/parse/valid-03.xbel 1867s # End of parse tests 1867s # Start of copy tests 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-01.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-01.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-01.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-01.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-01.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-01.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-01.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-01.xbel/.dirs/runtime 1867s ok 52 /bookmarks/copy/fail-01.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-02.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-02.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-02.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-02.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-02.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-02.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-02.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-02.xbel/.dirs/runtime 1867s ok 53 /bookmarks/copy/fail-02.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-03.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-03.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-03.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-03.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-03.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-03.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-03.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-03.xbel/.dirs/runtime 1867s ok 54 /bookmarks/copy/fail-03.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-04.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-04.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-04.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-04.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-04.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-04.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-04.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-04.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-04.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-04.xbel/.dirs/runtime 1867s ok 55 /bookmarks/copy/fail-04.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-05.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-05.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-05.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-05.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-05.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-05.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-05.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-05.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-05.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-05.xbel/.dirs/runtime 1867s ok 56 /bookmarks/copy/fail-05.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-06.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-06.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-06.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-06.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-06.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-06.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-06.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-06.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-06.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-06.xbel/.dirs/runtime 1867s ok 57 /bookmarks/copy/fail-06.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-07.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-07.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-07.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-07.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-07.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-07.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-07.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-07.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-07.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-07.xbel/.dirs/runtime 1867s ok 58 /bookmarks/copy/fail-07.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-08.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-08.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-08.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-08.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-08.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-08.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-08.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-08.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-08.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-08.xbel/.dirs/runtime 1867s ok 59 /bookmarks/copy/fail-08.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-09.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-09.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-09.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-09.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-09.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-09.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-09.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-09.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-09.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-09.xbel/.dirs/runtime 1867s ok 60 /bookmarks/copy/fail-09.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-10.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-10.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-10.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-10.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-10.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-10.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-10.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-10.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-10.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-10.xbel/.dirs/runtime 1867s ok 61 /bookmarks/copy/fail-10.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-11.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-11.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-11.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-11.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-11.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-11.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-11.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-11.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-11.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-11.xbel/.dirs/runtime 1867s ok 62 /bookmarks/copy/fail-11.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-12.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-12.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-12.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-12.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-12.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-12.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-12.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-12.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-12.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-12.xbel/.dirs/runtime 1867s ok 63 /bookmarks/copy/fail-12.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-13.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-13.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-13.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-13.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-13.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-13.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-13.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-13.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-13.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-13.xbel/.dirs/runtime 1867s ok 64 /bookmarks/copy/fail-13.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-14.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-14.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-14.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-14.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-14.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-14.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-14.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-14.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-14.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-14.xbel/.dirs/runtime 1867s ok 65 /bookmarks/copy/fail-14.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-15.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-15.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-15.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-15.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-15.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-15.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-15.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-15.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-15.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-15.xbel/.dirs/runtime 1867s ok 66 /bookmarks/copy/fail-15.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-16.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-16.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-16.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-16.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-16.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-16.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-16.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-16.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-16.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-16.xbel/.dirs/runtime 1867s ok 67 /bookmarks/copy/fail-16.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-17.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-17.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-17.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-17.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-17.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-17.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-17.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-17.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-17.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-17.xbel/.dirs/runtime 1867s ok 68 /bookmarks/copy/fail-17.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-18.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-18.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-18.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-18.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-18.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-18.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-18.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-18.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-18.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-18.xbel/.dirs/runtime 1867s ok 69 /bookmarks/copy/fail-18.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-19.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-19.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-19.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-19.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-19.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-19.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-19.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-19.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-19.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-19.xbel/.dirs/runtime 1867s ok 70 /bookmarks/copy/fail-19.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-20.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-20.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-20.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-20.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-20.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-20.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-20.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-20.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-20.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-20.xbel/.dirs/runtime 1867s ok 71 /bookmarks/copy/fail-20.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-21.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-21.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-21.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-21.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-21.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-21.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-21.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-21.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-21.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-21.xbel/.dirs/runtime 1867s ok 72 /bookmarks/copy/fail-21.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-22.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-22.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-22.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-22.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-22.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-22.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-22.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-22.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-22.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-22.xbel/.dirs/runtime 1867s ok 73 /bookmarks/copy/fail-22.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-23.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-23.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-23.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-23.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-23.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-23.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-23.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-23.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-23.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-23.xbel/.dirs/runtime 1867s ok 74 /bookmarks/copy/fail-23.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-24.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-24.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-24.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-24.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-24.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-24.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-24.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-24.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-24.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-24.xbel/.dirs/runtime 1867s ok 75 /bookmarks/copy/fail-24.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-25.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-25.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-25.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-25.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-25.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-25.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-25.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-25.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-25.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-25.xbel/.dirs/runtime 1867s ok 76 /bookmarks/copy/fail-25.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-26.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-26.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-26.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-26.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-26.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-26.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-26.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-26.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-26.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-26.xbel/.dirs/runtime 1867s ok 77 /bookmarks/copy/fail-26.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-27.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-27.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-27.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-27.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-27.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-27.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-27.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-27.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-27.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-27.xbel/.dirs/runtime 1867s ok 78 /bookmarks/copy/fail-27.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-28.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-28.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-28.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-28.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-28.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-28.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-28.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-28.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-28.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-28.xbel/.dirs/runtime 1867s ok 79 /bookmarks/copy/fail-28.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-29.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-29.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-29.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-29.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-29.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-29.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-29.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-29.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-29.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-29.xbel/.dirs/runtime 1867s ok 80 /bookmarks/copy/fail-29.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-30.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-30.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-30.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-30.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-30.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-30.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-30.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-30.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-30.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-30.xbel/.dirs/runtime 1867s ok 81 /bookmarks/copy/fail-30.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-31.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-31.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-31.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-31.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-31.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-31.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-31.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-31.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-31.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-31.xbel/.dirs/runtime 1867s ok 82 /bookmarks/copy/fail-31.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-32.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-32.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-32.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-32.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-32.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-32.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-32.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-32.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-32.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-32.xbel/.dirs/runtime 1867s ok 83 /bookmarks/copy/fail-32.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-33.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-33.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-33.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-33.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-33.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-33.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-33.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-33.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-33.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-33.xbel/.dirs/runtime 1867s ok 84 /bookmarks/copy/fail-33.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-34.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-34.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-34.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-34.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-34.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-34.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-34.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-34.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-34.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-34.xbel/.dirs/runtime 1867s ok 85 /bookmarks/copy/fail-34.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-35.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-35.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-35.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-35.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-35.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-35.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-35.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-35.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-35.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-35.xbel/.dirs/runtime 1867s ok 86 /bookmarks/copy/fail-35.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-36.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-36.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-36.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-36.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-36.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-36.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-36.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-36.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-36.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-36.xbel/.dirs/runtime 1867s ok 87 /bookmarks/copy/fail-36.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-37.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-37.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-37.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-37.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-37.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-37.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-37.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-37.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-37.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-37.xbel/.dirs/runtime 1867s ok 88 /bookmarks/copy/fail-37.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-38.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-38.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-38.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-38.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-38.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-38.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-38.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-38.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-38.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-38.xbel/.dirs/runtime 1867s ok 89 /bookmarks/copy/fail-38.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-39.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-39.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-39.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-39.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-39.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-39.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-39.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-39.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-39.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-39.xbel/.dirs/runtime 1867s ok 90 /bookmarks/copy/fail-39.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-40.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-40.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-40.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-40.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-40.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-40.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-40.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-40.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-40.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-40.xbel/.dirs/runtime 1867s ok 91 /bookmarks/copy/fail-40.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-41.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-41.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-41.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-41.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-41.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-41.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-41.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-41.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-41.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-41.xbel/.dirs/runtime 1867s ok 92 /bookmarks/copy/fail-41.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-42.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-42.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-42.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-42.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-42.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-42.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-42.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-42.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-42.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/fail-42.xbel/.dirs/runtime 1867s ok 93 /bookmarks/copy/fail-42.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/valid-01.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/valid-01.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/valid-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/valid-01.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/valid-01.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/valid-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/valid-01.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/valid-01.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/valid-01.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/valid-01.xbel/.dirs/runtime 1867s ok 94 /bookmarks/copy/valid-01.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/valid-02.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/valid-02.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/valid-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/valid-02.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/valid-02.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/valid-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/valid-02.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/valid-02.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/valid-02.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/valid-02.xbel/.dirs/runtime 1867s ok 95 /bookmarks/copy/valid-02.xbel 1867s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/valid-03.xbel/.dirs/home 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/valid-03.xbel/.dirs/cache 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/valid-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/valid-03.xbel/.dirs/system-config2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/valid-03.xbel/.dirs/config 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/valid-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_AW98B3/bookmarks/copy/valid-03.xbel/.dirs/system-data2 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/valid-03.xbel/.dirs/data 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/valid-03.xbel/.dirs/state 1867s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_AW98B3/bookmarks/copy/valid-03.xbel/.dirs/runtime 1867s ok 96 /bookmarks/copy/valid-03.xbel 1867s # End of copy tests 1867s # End of bookmarks tests 1867s TAP version 14 1867s # random seed: R02S09485ab26c957d4e0d84f6fc037dcd53 1867s 1..2 1867s # Start of hook tests 1867s ok 1 /hook/basics 1867s ok 2 /hook/corner-cases 1867s # End of hook tests 1867s TAP version 14 1867s # random seed: R02S385ef9d840fbefe2b671fa8ead0838e4 1867s 1..1 1867s # Start of network-monitor tests 1867s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=793727 1869s ok - glib/network-monitor-race.test 1869s ok 1 /network-monitor/create-in-thread 1869s # slow test /network-monitor/create-in-thread executed in 2.31 secs 1869s # End of network-monitor tests 1869s # Running test: glib/rand.test 1869s TAP version 14 1869s # random seed: R02S1277513898a805f8b79ef0633c172172 1869s 1..2 1869s # Start of rand tests 1869s ok 1 /rand/test-rand 1869s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=502560 1869s ok 2 /rand/double-range 1869s # End of rand tests 1869s ok - glib/rand.test 1869s # Running test: glib/ir-parser.test 1869s TAP version 14 1869s # random seed: R02S9ed7362b89aa77c85b90bd83fa97c144 1869s 1..1 1869s # Start of ir-parser tests 1869s # /ir-parser/type-parsing summary: Test parsing different valid and invalid types 1869s # GLib-GIRepository-DEBUG: 1869s # GLib-GIRepository-DEBUG: pushing node 1 dummy 1869s # GLib-GIRepository-DEBUG: Parsed type: GLib.Error => 20 1869s # GLib-GIRepository-DEBUG: 1869s # GLib-GIRepository-DEBUG: 1869s # GLib-GIRepository-DEBUG: 1869s # GLib-GIRepository-DEBUG: 1869s # GLib-GIRepository-DEBUG: popping node 1 dummy 1869s # GLib-GIRepository-DEBUG: 1869s # GLib-GIRepository-DEBUG: 1869s # GLib-GIRepository-DEBUG: 1869s # GLib-GIRepository-DEBUG: pushing node 1 dummy 1869s # GLib-GIRepository-DEBUG: Parsed type: GLib.Error => 20 1869s # GLib-GIRepository-DEBUG: 1869s # GLib-GIRepository-DEBUG: 1869s # GLib-GIRepository-DEBUG: 1869s # GLib-GIRepository-DEBUG: 1869s # GLib-GIRepository-DEBUG: popping node 1 dummy 1869s # GLib-GIRepository-DEBUG: 1869s # GLib-GIRepository-DEBUG: 1869s # GLib-GIRepository-DEBUG: 1869s # GLib-GIRepository-DEBUG: pushing node 1 dummy 1869s # GLib-GIRepository-DEBUG: Failed to parse type: 'GLib.Error expected: Sat 1875s # %a -> actual: Sat 1875s # %A -> expected: Saturday 1875s # %A -> actual: Saturday 1875s # %b -> expected: Oct 1875s # %b -> actual: Oct 1875s # %B -> expected: October 1875s # %B -> actual: October 1875s # %d -> expected: 24 1875s # %d -> actual: 24 1875s # %d -> expected: 01 1875s # %d -> actual: 01 1875s # %e -> expected: 24 1875s # %e -> actual: 24 1875s # %e -> expected:  1 1875s # %e -> actual:  1 1875s # %f -> expected: 001000 1875s # %f -> actual: 001000 1875s # %h -> expected: Oct 1875s # %h -> actual: Oct 1875s # %H -> expected: 00 1875s # %H -> actual: 00 1875s # %H -> expected: 15 1875s # %H -> actual: 15 1875s # %I -> expected: 12 1875s # %I -> actual: 12 1875s # %I -> expected: 12 1875s # %I -> actual: 12 1875s # %I -> expected: 03 1875s # %I -> actual: 03 1875s # %j -> expected: 297 1875s # %j -> actual: 297 1875s # %k -> expected:  0 1875s # %k -> actual:  0 1875s # %k -> expected: 13 1875s # %k -> actual: 13 1875s # %l -> expected: 12 1875s # %l -> actual: 12 1875s # %I -> expected: 12 1875s # %I -> actual: 12 1875s # %l -> expected:  1 1875s # %l -> actual:  1 1875s # %l -> expected: 10 1875s # %l -> actual: 10 1875s # %m -> expected: 10 1875s # %m -> actual: 10 1875s # %M -> expected: 00 1875s # %M -> actual: 00 1875s # %p -> expected: AM 1875s # %p -> actual: AM 1875s # %p -> expected: PM 1875s # %p -> actual: PM 1875s # %P -> expected: am 1875s # %P -> actual: am 1875s # %P -> expected: pm 1875s # %P -> actual: pm 1875s # %r -> expected: 12:00:00 AM 1875s # %r -> actual: 12:00:00 AM 1875s # %r -> expected: 01:13:13 PM 1875s # %r -> actual: 01:13:13 PM 1875s # %R -> expected: 00:00 1875s # %R -> actual: 00:00 1875s # %R -> expected: 13:13 1875s # %R -> actual: 13:13 1875s # %S -> expected: 00 1875s # %S -> actual: 00 1875s # %t -> expected: 1875s # %t -> actual: 1875s # %u -> expected: 6 1875s # %u -> actual: 6 1875s # %x -> expected: 10/24/09 1875s # %x -> actual: 10/24/09 1875s # %X -> expected: 00:00:00 1875s # %X -> actual: 00:00:00 1875s # %X -> expected: 13:14:15 1875s # %X -> actual: 13:14:15 1875s # %y -> expected: 09 1875s # %y -> actual: 09 1875s # %Y -> expected: 2009 1875s # %Y -> actual: 2009 1875s # %% -> expected: % 1875s # %% -> actual: % 1875s # % -> expected: 1875s # % -> actual: 1875s # %9 -> expected: (null) 1875s # %9 -> actual: (null) 1875s # %Z -> expected: UTC 1875s # %Z -> actual: UTC 1875s # %#Z %Z -> expected: utc UTC 1875s # %#Z %Z -> actual: utc UTC 1875s ok 32 /GDateTime/printf 1875s # %a -> expected: 土 1875s # %a -> actual: 土 1875s # %A -> expected: 土曜日 1875s # %A -> actual: 土曜日 1875s # %b -> expected: 10月 1875s # %b -> actual: 10月 1875s # %B -> expected: 10月 1875s # %B -> actual: 10月 1875s # %c -> expected: 2009年10月24日 00時00分00秒 1875s # %c -> actual: 2009年10月24日 00時00分00秒 1875s # %C -> expected: 20 1875s # %C -> actual: 20 1875s # %d -> expected: 24 1875s # %d -> actual: 24 1875s # %d -> expected: 01 1875s # %d -> actual: 01 1875s # %e -> expected: 24 1875s # %e -> actual: 24 1875s # %h -> expected: 10月 1875s # %h -> actual: 10月 1875s # %H -> expected: 00 1875s # %H -> actual: 00 1875s # %H -> expected: 15 1875s # %H -> actual: 15 1875s # %I -> expected: 12 1875s # %I -> actual: 12 1875s # %I -> expected: 12 1875s # %I -> actual: 12 1875s # %I -> expected: 03 1875s # %I -> actual: 03 1875s # %j -> expected: 297 1875s # %j -> actual: 297 1875s # %k -> expected:  0 1875s # %k -> actual:  0 1875s # %k -> expected: 13 1875s # %k -> actual: 13 1875s # %l -> expected: 12 1875s # %l -> actual: 12 1875s # %I -> expected: 12 1875s # %I -> actual: 12 1875s # %l -> expected:  1 1875s # %l -> actual:  1 1875s # %l -> expected: 10 1875s # %l -> actual: 10 1875s # %m -> expected: 10 1875s # %m -> actual: 10 1875s # %M -> expected: 00 1875s # %M -> actual: 00 1875s # %p -> expected: 午前 1875s # %p -> actual: 午前 1875s # %p -> expected: 午後 1875s # %p -> actual: 午後 1875s # %P -> expected: 午前 1875s # %P -> actual: 午前 1875s # %P -> expected: 午後 1875s # %P -> actual: 午後 1875s # %r -> expected: 午前12時00分00秒 1875s # %r -> actual: 午前12時00分00秒 1875s # %r -> expected: 午後01時13分13秒 1875s # %r -> actual: 午後01時13分13秒 1875s # %R -> expected: 00:00 1875s # %R -> actual: 00:00 1875s # %R -> expected: 13:13 1875s # %R -> actual: 13:13 1875s # %S -> expected: 00 1875s # %S -> actual: 00 1875s # %t -> expected: 1875s # %t -> actual: 1875s # %u -> expected: 6 1875s # %u -> actual: 6 1875s # %x -> expected: 2009年10月24日 1875s # %x -> actual: 2009年10月24日 1875s # %X -> expected: 00時00分00秒 1875s # %X -> actual: 00時00分00秒 1875s # %X -> expected: 13時14分15秒 1875s # %X -> actual: 13時14分15秒 1875s # %y -> expected: 09 1875s # %y -> actual: 09 1875s # %Y -> expected: 2009 1875s # %Y -> actual: 2009 1875s # %% -> expected: % 1875s # %% -> actual: % 1875s # % -> expected: 1875s # % -> actual: 1875s # %9 -> expected: (null) 1875s # %9 -> actual: (null) 1875s # %Ec -> expected: 平成21年10月24日 00時00分00秒 1875s # %Ec -> actual: 平成21年10月24日 00時00分00秒 1875s # %EC -> expected: 平成 1875s # %EC -> actual: 平成 1875s # %Ex -> expected: 平成21年10月24日 1875s # %Ex -> actual: 平成21年10月24日 1875s # %EX -> expected: 00時00分00秒 1875s # %EX -> actual: 00時00分00秒 1875s # %Ey -> expected: 21 1875s # %Ey -> actual: 21 1875s # %EY -> expected: 平成21年 1875s # %EY -> actual: 平成21年 1875s ok 33 /GDateTime/non_utf8_printf 1875s # ąśćł -> expected: ąśćł 1875s # ąśćł -> actual: ąśćł 1875s # %H∶%M -> expected: 23∶15 1875s # %H∶%M -> actual: 23∶15 1875s # %H∶%M -> expected: 23∶15 1875s # %H∶%M -> actual: 23∶15 1875s ok 34 /GDateTime/format_unrepresentable 1875s ok 35 /GDateTime/format_iso8601 1875s ok 36 /GDateTime/strftime 1875s # %d -> expected: 01 1875s # %d -> actual: 01 1875s # %_d -> expected: 1 1875s # %_d -> actual: 1 1875s # %-d -> expected: 1 1875s # %-d -> actual: 1 1875s # %0d -> expected: 01 1875s # %0d -> actual: 01 1875s # %d -> expected: 21 1875s # %d -> actual: 21 1875s # %_d -> expected: 21 1875s # %_d -> actual: 21 1875s # %-d -> expected: 21 1875s # %-d -> actual: 21 1875s # %0d -> expected: 21 1875s # %0d -> actual: 21 1875s # %e -> expected:  1 1875s # %e -> actual:  1 1875s # %_e -> expected: 1 1875s # %_e -> actual: 1 1875s # %-e -> expected: 1 1875s # %-e -> actual: 1 1875s # %0e -> expected: 01 1875s # %0e -> actual: 01 1875s # %e -> expected: 21 1875s # %e -> actual: 21 1875s # %_e -> expected: 21 1875s # %_e -> actual: 21 1875s # %-e -> expected: 21 1875s # %-e -> actual: 21 1875s # %0e -> expected: 21 1875s # %0e -> actual: 21 1875s # %a -> expected: Thu 1875s # %a -> actual: Thu 1875s # %^a -> expected: THU 1875s # %^a -> actual: THU 1875s # %#a -> expected: THU 1875s # %#a -> actual: THU 1875s # %A -> expected: Thursday 1875s # %A -> actual: Thursday 1875s # %^A -> expected: THURSDAY 1875s # %^A -> actual: THURSDAY 1875s # %#A -> expected: THURSDAY 1875s # %#A -> actual: THURSDAY 1875s # %b -> expected: Jan 1875s # %b -> actual: Jan 1875s # %^b -> expected: JAN 1875s # %^b -> actual: JAN 1875s # %#b -> expected: JAN 1875s # %#b -> actual: JAN 1875s # %B -> expected: January 1875s # %B -> actual: January 1875s # %^B -> expected: JANUARY 1875s # %^B -> actual: JANUARY 1875s # %#B -> expected: JANUARY 1875s # %#B -> actual: JANUARY 1875s # %h -> expected: Jan 1875s # %h -> actual: Jan 1875s # %^h -> expected: JAN 1875s # %^h -> actual: JAN 1875s # %#h -> expected: JAN 1875s # %#h -> actual: JAN 1875s # %Z -> expected: UTC 1875s # %Z -> actual: UTC 1875s # %^Z -> expected: UTC 1875s # %^Z -> actual: UTC 1875s # %#Z -> expected: utc 1875s # %#Z -> actual: utc 1875s # %H -> expected: 01 1875s # %H -> actual: 01 1875s # %_H -> expected: 1 1875s # %_H -> actual: 1 1875s # %-H -> expected: 1 1875s # %-H -> actual: 1 1875s # %0H -> expected: 01 1875s # %0H -> actual: 01 1875s # %H -> expected: 21 1875s # %H -> actual: 21 1875s # %_H -> expected: 21 1875s # %_H -> actual: 21 1875s # %-H -> expected: 21 1875s # %-H -> actual: 21 1875s # %0H -> expected: 21 1875s # %0H -> actual: 21 1875s # %I -> expected: 01 1875s # %I -> actual: 01 1875s # %_I -> expected: 1 1875s # %_I -> actual: 1 1875s # %-I -> expected: 1 1875s # %-I -> actual: 1 1875s # %0I -> expected: 01 1875s # %0I -> actual: 01 1875s # %I -> expected: 11 1875s # %I -> actual: 11 1875s # %_I -> expected: 11 1875s # %_I -> actual: 11 1875s # %-I -> expected: 11 1875s # %-I -> actual: 11 1875s # %0I -> expected: 11 1875s # %0I -> actual: 11 1875s # %k -> expected:  1 1875s # %k -> actual:  1 1875s # %_k -> expected: 1 1875s # %_k -> actual: 1 1875s # %-k -> expected: 1 1875s # %-k -> actual: 1 1875s # %0k -> expected: 01 1875s # %0k -> actual: 01 1875s # %l -> expected:  1 1875s # %l -> actual:  1 1875s # %_l -> expected: 1 1875s # %_l -> actual: 1 1875s # %-l -> expected: 1 1875s # %-l -> actual: 1 1875s # %0l -> expected: 01 1875s # %0l -> actual: 01 1875s # %l -> expected: 11 1875s # %l -> actual: 11 1875s # %_l -> expected: 11 1875s # %_l -> actual: 11 1875s # %-l -> expected: 11 1875s # %-l -> actual: 11 1875s # %0l -> expected: 11 1875s # %0l -> actual: 11 1875s # %p -> expected: AM 1875s # %p -> actual: AM 1875s # %^p -> expected: AM 1875s # %^p -> actual: AM 1875s # %#p -> expected: am 1875s # %#p -> actual: am 1875s # %P -> expected: am 1875s # %P -> actual: am 1875s # %^P -> expected: AM 1875s # %^P -> actual: AM 1875s # %#P -> expected: am 1875s # %#P -> actual: am 1875s # %OH -> expected: ۲۳ 1875s # %OH -> actual: ۲۳ 1875s # %OI -> expected: ۱۱ 1875s # %OI -> actual: ۱۱ 1875s # %OM -> expected: ۰۰ 1875s # %OM -> actual: ۰۰ 1875s # %Om -> expected: ۰۷ 1875s # %Om -> actual: ۰۷ 1875s # %0Om -> expected: ۰۷ 1875s # %0Om -> actual: ۰۷ 1875s # %-Om -> expected: ۷ 1875s # %-Om -> actual: ۷ 1875s # %_Om -> expected: ۷ 1875s # %_Om -> actual: ۷ 1875s # %c -> expected: thu 01 jan 2009 00:00:00 utc 1875s # %c -> actual: Thu 01 Jan 2009 00:00:00 UTC 1875s # %Ec -> expected: thu 01 jan 2009 00:00:00 utc 1875s # %Ec -> actual: Thu 01 Jan 2009 00:00:00 UTC 1875s # %C -> expected: 20 1875s # %C -> actual: 20 1875s # %EC -> expected: 20 1875s # %EC -> actual: 20 1875s # %x -> expected: 02/01/09 1875s # %x -> actual: 02/01/09 1875s # %Ex -> expected: 02/01/09 1875s # %Ex -> actual: 02/01/09 1875s # %X -> expected: 01:02:03 1875s # %X -> actual: 01:02:03 1875s # %EX -> expected: 01:02:03 1875s # %EX -> actual: 01:02:03 1875s # %y -> expected: 09 1875s # %y -> actual: 09 1875s # %Ey -> expected: 09 1875s # %Ey -> actual: 09 1875s # %Y -> expected: 2009 1875s # %Y -> actual: 2009 1875s # %EY -> expected: 2009 1875s # %EY -> actual: 2009 1875s ok 37 /GDateTime/modifiers # SKIP locale gu_IN not available, skipping O modifier tests 1875s # Bug Reference: http://bugzilla.gnome.org/749206 1875s # %B -> expected: January 1875s # %B -> actual: January 1875s # %OB -> expected: February 1875s # %OB -> actual: February 1875s # %b -> expected: Mar 1875s # %b -> actual: Mar 1875s # %Ob -> expected: Apr 1875s # %Ob -> actual: Apr 1875s # %h -> expected: May 1875s # %h -> actual: May 1875s # %Oh -> expected: Jun 1875s # %Oh -> actual: Jun 1875s # %B -> expected: Juli 1875s # %B -> actual: Juli 1875s # %OB -> expected: August 1875s # %OB -> actual: August 1875s # %b -> expected: Sep 1875s # %b -> actual: Sep 1875s # %Ob -> expected: Okt 1875s # %Ob -> actual: Okt 1875s # %h -> expected: Nov 1875s # %h -> actual: Nov 1875s # %Oh -> expected: Dez 1875s # %Oh -> actual: Dez 1875s # %B -> expected: enero 1875s # %B -> actual: enero 1875s # %OB -> expected: febrero 1875s # %OB -> actual: febrero 1875s # %b -> expected: mar 1875s # %b -> actual: mar 1875s # %Ob -> expected: abr 1875s # %Ob -> actual: abr 1875s # %h -> expected: may 1875s # %h -> actual: may 1875s # %Oh -> expected: jun 1875s # %Oh -> actual: jun 1875s # %B -> expected: juillet 1875s # %B -> actual: juillet 1875s # %OB -> expected: août 1875s # %OB -> actual: août 1875s # %b -> expected: sept. 1875s # %b -> actual: sept. 1875s # %Ob -> expected: oct. 1875s # %Ob -> actual: oct. 1875s # %h -> expected: nov. 1875s # %h -> actual: nov. 1875s # %Oh -> expected: déc. 1875s # %Oh -> actual: déc. 1875s # %B -> expected: Ιανουαρίου 1875s # %B -> actual: Ιανουαρίου 1875s # %B -> expected: Φεβρουαρίου 1875s # %B -> actual: Φεβρουαρίου 1875s # %B -> expected: Μαρτίου 1875s # %B -> actual: Μαρτίου 1875s # %OB -> expected: Απρίλιος 1875s # %OB -> actual: Απρίλιος 1875s # %OB -> expected: Μάιος 1875s # %OB -> actual: Μάιος 1875s # %OB -> expected: Ιούνιος 1875s # %OB -> actual: Ιούνιος 1875s # %b -> expected: Ιουλ 1875s # %b -> actual: Ιουλ 1875s # %Ob -> expected: Αύγ 1875s # %Ob -> actual: Αύγ 1875s # %B -> expected: svibnja 1875s # %B -> actual: svibnja 1875s # %B -> expected: lipnja 1875s # %B -> actual: lipnja 1875s # %B -> expected: srpnja 1875s # %B -> actual: srpnja 1875s # %OB -> expected: Kolovoz 1875s # %OB -> actual: kolovoz 1875s # %OB -> expected: Rujan 1875s # %OB -> actual: rujan 1875s # %OB -> expected: Listopad 1875s # %OB -> actual: listopad 1875s # %b -> expected: Stu 1875s # %b -> actual: stu 1875s # %Ob -> expected: Pro 1875s # %Ob -> actual: pro 1875s # %B -> expected: sausio 1875s # %B -> actual: sausio 1875s # %B -> expected: vasario 1875s # %B -> actual: vasario 1875s # %B -> expected: kovo 1875s # %B -> actual: kovo 1875s # %OB -> expected: balandis 1875s # %OB -> actual: balandis 1875s # %OB -> expected: gegužė 1875s # %OB -> actual: gegužė 1875s # %OB -> expected: birželis 1875s # %OB -> actual: birželis 1875s # %b -> expected: liep. 1875s # %b -> actual: liep. 1875s # %Ob -> expected: rugp. 1875s # %Ob -> actual: rugp. 1875s # %B -> expected: maja 1875s # %B -> actual: maja 1875s # %B -> expected: czerwca 1875s # %B -> actual: czerwca 1875s # %B -> expected: lipca 1875s # %B -> actual: lipca 1875s # %OB -> expected: sierpień 1875s # %OB -> actual: sierpień 1875s # %OB -> expected: wrzesień 1875s # %OB -> actual: wrzesień 1875s # %OB -> expected: październik 1875s # %OB -> actual: październik 1875s # %b -> expected: lis 1875s # %b -> actual: lis 1875s # %Ob -> expected: gru 1875s # %Ob -> actual: gru 1875s # %B -> expected: января 1875s # %B -> actual: января 1875s # %B -> expected: февраля 1875s # %B -> actual: февраля 1875s # %B -> expected: марта 1875s # %B -> actual: марта 1875s # %OB -> expected: Апрель 1875s # %OB -> actual: Апрель 1875s # %OB -> expected: Май 1875s # %OB -> actual: Май 1875s # %OB -> expected: Июнь 1875s # %OB -> actual: Июнь 1875s # %b -> expected: июл 1875s # %b -> actual: июл 1875s # %Ob -> expected: авг 1875s # %Ob -> actual: авг 1875s # %b -> expected: мая 1875s # %b -> actual: мая 1875s # %Ob -> expected: май 1875s # %Ob -> actual: май 1875s ok 38 /GDateTime/month_names 1875s ok 39 /GDateTime/to_local 1875s ok 40 /GDateTime/to_unix 1875s ok 41 /GDateTime/to_timeval 1875s ok 42 /GDateTime/to_utc 1875s ok 43 /GDateTime/now_utc 1875s ok 44 /GDateTime/dst 1875s # Bug Reference: http://bugzilla.gnome.org/642935 1875s ok 45 /GDateTime/test_z 1876s # Executing: glib/gdatetime.test 1877s ok 46 /GDateTime/test-all-dates 1877s # slow test /GDateTime/test-all-dates executed in 1.63 secs 1877s ok 47 /GDateTime/unix_usec 1877s # Start of new_from_unix tests 1877s # Bug Reference: http://bugzilla.gnome.org/782089 1877s ok 48 /GDateTime/new_from_unix/overflow 1877s # End of new_from_unix tests 1877s # Start of new_from_timeval tests 1877s # Bug Reference: http://bugzilla.gnome.org/782089 1877s # Maximum supported GTimeVal.tv_sec = 2147483647 1877s ok 49 /GDateTime/new_from_timeval/overflow 1877s # End of new_from_timeval tests 1877s # Start of new_from_iso8601 tests 1877s # /GDateTime/new_from_iso8601/2 summary: Further parser tests for g_date_time_new_from_iso8601(), checking success and failure using test vectors. 1877s # Vector 0: 1990-11-01T10:21:17Z 1877s # Vector 1: 19901101T102117Z 1877s # Vector 2: 1970-01-01T00:00:17.12Z 1877s # Vector 3: 1970-01-01T00:00:17.1234Z 1877s # Vector 4: 1970-01-01T00:00:17.123456Z 1877s # Vector 5: 1980-02-22T12:36:00+02:00 1877s # Vector 6: 1990-12-31T15:59:60-08:00 1877s # Vector 7: 1877s # Vector 8: x 1877s # Vector 9: 123x 1877s # Vector 10: 2001-10+x 1877s # Vector 11: 1980-02-22T 1877s # Vector 12: 2001-10-08Tx 1877s # Vector 13: 2001-10-08T10:11x 1877s # Vector 14: Wed Dec 19 17:20:20 GMT 2007 1877s # Vector 15: 1980-02-22T10:36:00Zulu 1877s # Vector 16: 2T0+819855292164632335 1877s # Vector 17: 2018-08-03T14:08:05.446178377+01:00 1877s # Vector 18: 2147483648-08-03T14:08:05.446178377+01:00 1877s # Vector 19: 2018-13-03T14:08:05.446178377+01:00 1877s # Vector 20: 2018-00-03T14:08:05.446178377+01:00 1877s # Vector 21: 2018-08-00T14:08:05.446178377+01:00 1877s # Vector 22: 2018-08-32T14:08:05.446178377+01:00 1877s # Vector 23: 2018-08-03T24:08:05.446178377+01:00 1877s # Vector 24: 2018-08-03T14:60:05.446178377+01:00 1877s # Vector 25: 2018-08-03T14:08:63.446178377+01:00 1877s # Vector 26: 2018-08-03T14:08:05.446178377+100:00 1877s # Vector 27: 20180803T140805.446178377+0100 1877s # Vector 28: 21474836480803T140805.446178377+0100 1877s # Vector 29: 20181303T140805.446178377+0100 1877s # Vector 30: 20180003T140805.446178377+0100 1877s # Vector 31: 20180800T140805.446178377+0100 1877s # Vector 32: 20180832T140805.446178377+0100 1877s # Vector 33: 20180803T240805.446178377+0100 1877s # Vector 34: 20180803T146005.446178377+0100 1877s # Vector 35: 20180803T140863.446178377+0100 1877s # Vector 36: 20180803T140805.446178377+10000 1877s # Vector 37: -0005-01-01T00:00:00Z 1877s # Vector 38: 2018-08-06 1877s # Vector 39: 20180803T140805,446178377+0100 1877s # Vector 40: 2018-08-03T14:08:05.446178377-01:00 1877s # Vector 41: 2018-08-03T14:08:05.446178377 01:00 1877s # Vector 42: 1990-11-01T10:21:17 1877s # Vector 43: 1719W462 407777-07 1877s # Vector 44: 4011090 260528Z 1877s # Vector 45: 0000W011 228214-22 1877s ok 50 /GDateTime/new_from_iso8601/2 1877s # End of new_from_iso8601 tests 1877s # Start of format_mixed tests 1877s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1877s # %b -> expected: mar 1877s # %b -> actual: Mar 1877s # %B -> expected: march 1877s # %B -> actual: March 1877s ok 51 /GDateTime/format_mixed/utf8_time_non_utf8_messages 1877s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1877s # %b -> expected: mar 1877s # %b -> actual: Mar 1877s # %B -> expected: march 1877s # %B -> actual: March 1877s ok 52 /GDateTime/format_mixed/utf8_time_utf8_messages 1877s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1877s # %b -> expected: Mär 1877s # %b -> actual: Mär 1877s # %B -> expected: März 1877s # %B -> actual: März 1877s ok 53 /GDateTime/format_mixed/non_utf8_time_non_utf8_messages 1877s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1877s # %b -> expected: Mär 1877s # %b -> actual: Mär 1877s # %B -> expected: März 1877s # %B -> actual: März 1877s ok 54 /GDateTime/format_mixed/non_utf8_time_utf8_messages 1877s # End of format_mixed tests 1877s # Start of strftime tests 1877s # %r -> expected: (null) 1877s # %r -> actual: (null) 1877s ok 55 /GDateTime/strftime/error_handling 1877s # End of strftime tests 1877s # Start of eras tests 1877s # %Ec -> expected: 令和05年06月01日 00時00分00秒 1877s # %Ec -> actual: 令和05年06月01日 00時00分00秒 1877s # %EC -> expected: 令和 1877s # %EC -> actual: 令和 1877s # %Ex -> expected: 令和05年06月01日 1877s # %Ex -> actual: 令和05年06月01日 1877s # %EX -> expected: 00時00分00秒 1877s # %EX -> actual: 00時00分00秒 1877s # %Ey -> expected: 05 1877s # %Ey -> actual: 05 1877s # %EY -> expected: 令和05年 1877s # %EY -> actual: 令和05年 1877s # %Ec -> expected: 平成31年04月30日 00時00分00秒 1877s # %Ec -> actual: 平成31年04月30日 00時00分00秒 1877s # %EC -> expected: 平成 1877s # %EC -> actual: 平成 1877s # %Ex -> expected: 平成31年04月30日 1877s # %Ex -> actual: 平成31年04月30日 1877s # %EX -> expected: 00時00分00秒 1877s # %EX -> actual: 00時00分00秒 1877s # %Ey -> expected: 31 1877s # %Ey -> actual: 31 1877s # %EY -> expected: 平成31年 1877s # %EY -> actual: 平成31年 1877s # %Ec -> expected: 昭和元年12月25日 00時00分00秒 1877s # %Ec -> actual: 昭和元年12月25日 00時00分00秒 1877s # %EC -> expected: 昭和 1877s # %EC -> actual: 昭和 1877s # %Ex -> expected: 昭和元年12月25日 1877s # %Ex -> actual: 昭和元年12月25日 1877s # %EX -> expected: 00時00分00秒 1877s # %EX -> actual: 00時00分00秒 1877s # %Ey -> expected: 01 1877s # %Ey -> actual: 01 1877s # %EY -> expected: 昭和元年 1877s # %EY -> actual: 昭和元年 1877s ok 56 /GDateTime/eras/japan 1877s ok - glib/gdatetime.test 1877s # Running test: glib/spawn-test.test 1877s ok 57 /GDateTime/eras/thailand # SKIP locale th_TH.utf-8 not available, skipping Thai era tests 1877s # Vector 0: 1877s # Vector 1: +:1:-543/01/01:+*:พ.ศ.:%EC %Ey 1877s # Vector 2: +:2:2020/01/01:+*:令和:%EC%Ey年;+:1:2019/05/01:2019/12/31:令和:%EC元年;+:2:1990/01/01:2019/04/30:平成:%EC%Ey年;+:1:1989/01/08:1989/12/31:平成:%EC元年;+:2:1927/01/01:1989/01/07:昭和:%EC%Ey年;+:1:1926/12/25:1926/12/31:昭和:%EC元年;+:2:1913/01/01:1926/12/24:大正:%EC%Ey年;+:1:1912/07/30:1912/12/31:大正:%EC元年;+:6:1873/01/01:1912/07/29:明治:%EC%Ey年;+:1:0001/01/01:1872/12/31:西暦:%EC%Ey年;+:1:-0001/12/31:-*:紀元前:%EC%Ey年 1877s # Vector 3: -:2:2020/01/01:-*:令和:%EC%Ey年 1877s # Vector 4: +:2:2020/01/01:2020/01/01:令和:%EC%Ey年 1877s # Vector 5: +:2:+2020/01/01:+*:令和:%EC%Ey年 1877s # Vector 6: .:2:2020/01/01:+*:令和:%EC%Ey年 1877s # Vector 7: +.2:2020/01/01:+*:令和:%EC%Ey年 1877s # Vector 8: + 1877s # Vector 9: +: 1877s # Vector 10: +:: 1877s # Vector 11: +:200 1877s # Vector 12: +:2nonsense 1877s # Vector 13: +:2nonsense: 1877s # Vector 14: +:2: 1877s # Vector 15: +:2:: 1877s # Vector 16: +:2:2020-01/01:+*:令和:%EC%Ey年 1877s # Vector 17: +:2:2020nonsense/01/01:+*:令和:%EC%Ey年 1877s # Vector 18: +:2:2020:+*:令和:%EC%Ey年 1877s # Vector 19: +:2:18446744073709551615/01/01:+*:令和:%EC%Ey年 1877s # Vector 20: +:2:2020/01-01:+*:令和:%EC%Ey年 1877s # Vector 21: +:2:2020/01nonsense/01:+*:令和:%EC%Ey年 1877s # Vector 22: +:2:2020/01:+*:令和:%EC%Ey年 1877s # Vector 23: +:2:2020/00/01:+*:令和:%EC%Ey年 1877s # Vector 24: +:2:2020/13/01:+*:令和:%EC%Ey年 1877s # Vector 25: +:2:2020/01/00:+*:令和:%EC%Ey年 1877s # Vector 26: +:2:2020/01/32:+*:令和:%EC%Ey年 1877s # Vector 27: +:2:2020/01/01nonsense:+*:令和:%EC%Ey年 1877s # Vector 28: +:2:2020/01/01 1877s # Vector 29: +:2:2020/01/01: 1877s # Vector 30: +:2:2020/01/01:: 1877s # Vector 31: +:2:2020/01/01:2021-01-01:令和:%EC%Ey年 1877s # Vector 32: +:2:2020/01/01:+* 1877s # Vector 33: +:2:2020/01/01:+*: 1877s # Vector 34: +:2:2020/01/01:+*:: 1877s # Vector 35: +:2:2020/01/01:+*:令和 1877s # Vector 36: +:2:2020/01/01:+*:令和: 1877s # Vector 37: +:2:2020/01/01:+*:令和:; 1877s ok 58 /GDateTime/eras/parsing 1877s # End of eras tests 1877s # End of GDateTime tests 1877s # Start of GTimeZone tests 1877s ok 59 /GTimeZone/find-interval 1877s ok 60 /GTimeZone/adjust-time 1877s ok 61 /GTimeZone/no-header 1877s ok 62 /GTimeZone/no-header-identifier 1877s ok 63 /GTimeZone/posix-parse 1877s # Bug Reference: http://bugzilla.gnome.org/697715 1877s ok 64 /GTimeZone/floating-point 1877s # System time zone identifier: Etc/UTC 1877s ok 65 /GTimeZone/identifier 1877s # Vector 0: -158400 1877s # Vector 1: -10000 1877s # Vector 2: -3600 1877s # Vector 3: -61 1877s # Vector 4: -60 1877s # Vector 5: -59 1877s # Vector 6: 0 1877s # Vector 7: 59 1877s # Vector 8: 60 1877s # Vector 9: 61 1877s # Vector 10: 3600 1877s # Vector 11: 10000 1877s # Vector 12: 158400 1877s ok 66 /GTimeZone/new-offset 1877s # /GTimeZone/parse-rfc8536 summary: Test parsing time zone files in RFC 8536 version 3 format 1877s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2129 1877s ok 67 /GTimeZone/parse-rfc8536 1877s # /GTimeZone/caching summary: GTimeZone instances are cached 1877s ok 68 /GTimeZone/caching 1877s # End of GTimeZone tests 1877s TAP version 14 1877s # random seed: R02S6b28d4e55d990d55930e11db7fdf15d8 1877s 1..2 1877s # Start of spawn tests 1877s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_spawn-test_N4C0B3/spawn/basics/.dirs/home 1877s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_spawn-test_N4C0B3/spawn/basics/.dirs/cache 1877s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_spawn-test_N4C0B3/spawn/basics/.dirs/system-config1:/tmp/test_spawn-test_N4C0B3/spawn/basics/.dirs/system-config2 1877s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_spawn-test_N4C0B3/spawn/basics/.dirs/config 1877s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_spawn-test_N4C0B3/spawn/basics/.dirs/system-data1:/tmp/test_spawn-test_N4C0B3/spawn/basics/.dirs/system-data2 1877s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_spawn-test_N4C0B3/spawn/basics/.dirs/data 1877s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_spawn-test_N4C0B3/spawn/basics/.dirs/state 1877s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_spawn-test_N4C0B3/spawn/basics/.dirs/runtime 1877s ok 1 /spawn/basics 1877s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_spawn-test_N4C0B3/spawn/stdio-overwrite/.dirs/home 1877s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_spawn-test_N4C0B3/spawn/stdio-overwrite/.dirs/cache 1877s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_spawn-test_N4C0B3/spawn/stdio-overwrite/.dirs/system-config1:/tmp/test_spawn-test_N4C0B3/spawn/stdio-overwrite/.dirs/system-config2 1877s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_spawn-test_N4C0B3/spawn/stdio-overwrite/.dirs/config 1877s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_spawn-test_N4C0B3/spawn/stdio-overwrite/.dirs/system-data1:/tmp/test_spawn-test_N4C0B3/spawn/stdio-overwrite/.dirs/system-data2 1877s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_spawn-test_N4C0B3/spawn/stdio-overwrite/.dirs/data 1877s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_spawn-test_N4C0B3/spawn/stdio-overwrite/.dirs/state 1877s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_spawn-test_N4C0B3/spawn/stdio-overwrite/.dirs/runtime 1877s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/16 1877s # Fetching GSpawn result output and error output with stdin open, stdout open, stderr open 1877s # Fetching GSpawn result output and error output with stdin open, stdout open, stderr already closed 1877s # Fetching GSpawn result output and error output with stdin open, stdout already closed, stderr open 1877s # Fetching GSpawn result output and error output with stdin open, stdout already closed, stderr already closed 1877s # Fetching GSpawn result output and error output with stdin already closed, stdout open, stderr open 1877s # Fetching GSpawn result output and error output with stdin already closed, stdout open, stderr already closed 1877s # Fetching GSpawn result output and error output with stdin already closed, stdout already closed, stderr open 1877s # Fetching GSpawn result output and error output with stdin already closed, stdout already closed, stderr already closed 1877s # Fetching GSpawn result output with stdin open, stdout open, stderr open 1877s # Fetching GSpawn result output with stdin open, stdout open, stderr already closed 1877s # Fetching GSpawn result output with stdin open, stdout already closed, stderr open 1877s # Fetching GSpawn result output with stdin open, stdout already closed, stderr already closed 1877s # Fetching GSpawn result output with stdin already closed, stdout open, stderr open 1877s # Fetching GSpawn result output with stdin already closed, stdout open, stderr already closed 1877s # Fetching GSpawn result output with stdin already closed, stdout already closed, stderr open 1877s # Fetching GSpawn result output with stdin already closed, stdout already closed, stderr already closed 1877s # Fetching GSpawn result error output with stdin open, stdout open, stderr open 1877s # Fetching GSpawn result error output with stdin open, stdout open, stderr already closed 1877s # Fetching GSpawn result error output with stdin open, stdout already closed, stderr open 1877s # Fetching GSpawn result error output with stdin open, stdout already closed, stderr already closed 1877s # Fetching GSpawn result error output with stdin already closed, stdout open, stderr open 1877s # Fetching GSpawn result error output with stdin already closed, stdout open, stderr already closed 1877s # Fetching GSpawn result error output with stdin already closed, stdout already closed, stderr open 1877s # Fetching GSpawn result error output with stdin already closed, stdout already closed, stderr already closed 1877s # Fetching GSpawn result with stdin open, stdout open, stderr open 1877s # Fetching GSpawn result with stdin open, stdout open, stderr already closed 1877s # Fetching GSpawn result with stdin open, stdout already closed, stderr open 1877s # Fetching GSpawn result with stdin open, stdout already closed, stderr already closed 1877s # Fetching GSpawn result with stdin already closed, stdout open, stderr open 1877s # Fetching GSpawn result with stdin already closed, stdout open, stderr already closed 1877s # Fetching GSpawn result with stdin already closed, stdout already closed, stderr open 1877s # Fetching GSpawn result with stdin already closed, stdout already closed, stderr already closed 1877s ok - glib/spawn-test.test 1877s ok 2 /spawn/stdio-overwrite 1877s # End of spawn tests 1877s # Running test: glib/uri.test 1877s TAP version 14 1877s # random seed: R02Sded829ad5d838742ad7f39679406f73b 1877s 1..24 1877s # Start of uri tests 1877s ok 1 /uri/file-to-uri 1877s ok 2 /uri/file-from-uri 1877s ok - glib/uri.test 1877s # Running test: glib/converter.test 1877s ok - glib/converter.test 1877s # Running test: glib/null-settings-backend.test 1877s ok - glib/null-settings-backend.test 1877s # Running test: glib/cxx-98.test 1877s ok 3 /uri/file-roundtrip 1877s ok 4 /uri/list 1877s # Test 0: %2Babc %4F 1877s # Test 1: %2Babc %4F 1877s # Test 2: %00abc %4F 1877s # Test 3: /cursors/none.png 1877s # Test 4: /cursors%2fbad-subdir/none.png 1877s # Test 5: %0 1877s # Test 6: %ra 1877s # Test 7: %2r 1877s # Test 8: Timm Bäder 1877s # Test 9: (null) 1877s ok 5 /uri/unescape-string 1877s ok 6 /uri/unescape-segment 1877s # Test 0: abcdefgABCDEFG._~ 1877s # Test 1: :+ \\?# 1877s # Test 2: a+b:c 1877s # Test 3: a+b:c\303\234 1877s # Test 4: \374;\322 1877s # Test 5: \303\261\303( 1877s ok 7 /uri/escape-string 1877s ok 8 /uri/escape-bytes 1877s ok 9 /uri/scheme 1877s ok 10 /uri/build 1877s ok 11 /uri/split 1877s ok 12 /uri/is_valid 1877s ok 13 /uri/to-string 1877s ok 14 /uri/join 1877s # /uri/join-split-round-trip summary: Test that joining different URI components survives a round trip 1877s # Combination 0 1877s # Combination 1 1877s # Combination 2 1877s # Combination 3 1877s # Combination 4 1877s # Combination 5 1877s # Combination 6 1877s # Combination 7 1877s # Combination 8 1877s # Combination 9 1877s # Combination 10 1877s # Combination 11 1877s # Combination 12 1877s # Combination 13 1877s # Combination 14 1877s # Combination 15 1877s # Combination 16 1877s # Combination 17 1877s # Combination 18 1877s # Combination 19 1877s # Combination 20 1877s # Combination 21 1877s # Combination 22 1877s # Combination 23 1877s # Combination 24 1877s # Combination 25 1877s # Combination 26 1877s # Combination 27 1877s # Combination 28 1877s # Combination 29 1877s # Combination 30 1877s # Combination 31 1877s # Combination 32 1877s # Combination 33 1877s # Combination 34 1877s # Combination 35 1877s # Combination 36 1877s # Combination 37 1877s # Combination 38 1877s # Combination 39 1877s # Combination 40 1877s # Combination 41 1877s # Combination 42 1877s # Combination 43 1877s # Combination 44 1877s # Combination 45 1877s # Combination 46 1877s # Combination 47 1877s # Combination 48 1877s # Combination 49 1877s # Combination 50 1877s # Combination 51 1877s # Combination 52 1877s # Combination 53 1877s # Combination 54 1877s # Combination 55 1877s # Combination 56 1877s # Combination 57 1877s # Combination 58 1877s # Combination 59 1877s # Combination 60 1877s # Combination 61 1877s # Combination 62 1877s # Combination 63 1877s # Combination 64 1877s # Combination 65 1877s # Combination 66 1877s # Combination 67 1877s # Combination 68 1877s # Combination 69 1877s # Combination 70 1877s # Combination 71 1877s # Combination 72 1877s # Combination 73 1877s # Combination 74 1877s # Combination 75 1877s # Combination 76 1877s # Combination 77 1877s # Combination 78 1877s # Combination 79 1877s # Combination 80 1877s # Combination 81 1877s # Combination 82 1877s # Combination 83 1877s # Combination 84 1877s # Combination 85 1877s # Combination 86 1877s # Combination 87 1877s # Combination 88 1877s # Combination 89 1877s # Combination 90 1877s # Combination 91 1877s # Combination 92 1877s # Combination 93 1877s # Combination 94 1877s # Combination 95 1877s # Combination 96 1877s # Combination 97 1877s # Combination 98 1877s # Combination 99 1877s # Combination 100 1877s # Combination 101 1877s # Combination 102 1877s # Combination 103 1877s # Combination 104 1877s # Combination 105 1877s # Combination 106 1877s # Combination 107 1877s # Combination 108 1877s # Combination 109 1877s # Combination 110 1877s # Combination 111 1877s # Combination 112 1877s # Combination 113 1877s # Combination 114 1877s # Combination 115 1877s # Combination 116 1877s # Combination 117 1877s # Combination 118 1877s # Combination 119 1877s # Combination 120 1877s # Combination 121 1877s # Combination 122 1877s # Combination 123 1877s # Combination 124 1877s # Combination 125 1877s # Combination 126 1877s # Combination 127 1877s # Combination 128 1877s # Combination 129 1877s # Combination 130 1877s # Combination 131 1877s # Combination 132 1877s # Combination 133 1877s # Combination 134 1877s # Combination 135 1877s # Combination 136 1877s # Combination 137 1877s # Combination 138 1877s # Combination 139 1877s # Combination 140 1877s # Combination 141 1877s # Combination 142 1877s # Combination 143 1877s # Combination 144 1877s # Combination 145 1877s # Combination 146 1877s # Combination 147 1877s # Combination 148 1877s # Combination 149 1877s # Combination 150 1877s # Combination 151 1877s # Combination 152 1877s # Combination 153 1877s # Combination 154 1877s # Combination 155 1877s # Combination 156 1877s # Combination 157 1877s # Combination 158 1877s # Combination 159 1877s # Combination 160 1877s # Combination 161 1877s # Combination 162 1877s # Combination 163 1877s # Combination 164 1877s # Combination 165 1877s # Combination 166 1877s # Combination 167 1877s # Combination 168 1877s # Combination 169 1877s # Combination 170 1877s # Combination 171 1877s # Combination 172 1877s # Combination 173 1877s # Combination 174 1877s # Combination 175 1877s # Combination 176 1877s # Combination 177 1877s # Combination 178 1877s # Combination 179 1877s # Combination 180 1877s # Combination 181 1877s # Combination 182 1877s # Combination 183 1877s # Combination 184 1877s # Combination 185 1877s # Combination 186 1877s # Combination 187 1877s # Combination 188 1877s # Combination 189 1877s # Combination 190 1877s # Combination 191 1877s # Combination 192 1877s # Combination 193 1877s # Combination 194 1877s # Combination 195 1877s # Combination 196 1877s # Combination 197 1877s # Combination 198 1877s # Combination 199 1877s # Combination 200 1877s # Combination 201 1877s # Combination 202 1877s # Combination 203 1877s # Combination 204 1877s # Combination 205 1877s # Combination 206 1877s # Combination 207 1877s # Combination 208 1877s # Combination 209 1877s # Combination 210 1877s # Combination 211 1877s # Combination 212 1877s # Combination 213 1877s # Combination 214 1877s # Combination 215 1877s # Combination 216 1877s # Combination 217 1877s # Combination 218 1877s # Combination 219 1877s # Combination 220 1877s # Combination 221 1877s # Combination 222 1877s # Combination 223 1877s # Combination 224 1877s # Combination 225 1877s # Combination 226 1877s # Combination 227 1877s # Combination 228 1877s # Combination 229 1877s # Combination 230 1877s # Combination 231 1877s # Combination 232 1877s # Combination 233 1877s # Combination 234 1877s # Combination 235 1877s # Combination 236 1877s # Combination 237 1877s # Combination 238 1877s # Combination 239 1877s # Combination 240 1877s # Combination 241 1877s # Combination 242 1877s # Combination 243 1877s # Combination 244 1877s # Combination 245 1877s # Combination 246 1877s # Combination 247 1877s # Combination 248 1877s # Combination 249 1877s # Combination 250 1877s # Combination 251 1877s # Combination 252 1877s # Combination 253 1877s # Combination 254 1877s # Combination 255 1877s ok 15 /uri/join-split-round-trip 1877s ok 16 /uri/normalize 1877s # Start of unescape-bytes tests 1877s # Test 0: %00%00 1877s # Test 1: /cursors/none.png 1877s # Test 2: /cursors%2fbad-subdir/none.png 1877s # Test 3: %% 1877s # Test 4: % 1877s ok 17 /uri/unescape-bytes/nul-terminated 1877s # Test 0: %00%00 1877s # Test 1: /cursors/none.png 1877s # Test 2: /cursors%2fbad-subdir/none.png 1877s # Test 3: %% 1877s # Test 4: % 1877s ok 18 /uri/unescape-bytes/length 1877s # End of unescape-bytes tests 1877s # Start of parsing tests 1877s # Test 0: foo: 1877s # Test 1: file:/dev/null 1877s # Test 2: file:///dev/null 1877s # Test 3: ftp://user@host/path 1877s # Test 4: ftp://user@host:9999/path 1877s # Test 5: ftp://user:password@host/path 1877s # Test 6: ftp://user:password@host:9999/path 1877s # Test 7: ftp://user:password@host 1877s # Test 8: http://us%65r@host 1877s # Test 9: http://us%40r@host 1877s # Test 10: http://us%3ar@host 1877s # Test 11: http://us%2fr@host 1877s # Test 12: http://us%3fr@host 1877s # Test 13: http://host?query 1877s # Test 14: http://host/path?query=http%3A%2F%2Fhost%2Fpath%3Fchildparam%3Dchildvalue¶m=value 1877s # Test 15: http://control-chars/%01%02%03%04%05%06%07%08%09%0A%0B%0C%0D%0E%0F%10%11%12%13%14%15%16%17%18%19%1A%1B%1C%1D%1E%1F%7F 1877s # Test 16: http://space/%20 1877s # Test 17: http://delims/%3C%3E%23%25%22 1877s # Test 18: http://unwise-chars/%7B%7D%7C%5C%5E%5B%5D%60 1877s # Test 19: http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:80/index.html 1877s # Test 20: http://[1080:0:0:0:8:800:200C:417A]/index.html 1877s # Test 21: http://[3ffe:2a00:100:7031::1] 1877s # Test 22: http://[1080::8:800:200C:417A]/foo 1877s # Test 23: http://[::192.9.5.5]/ipng 1877s # Test 24: http://[::FFFF:129.144.52.38]:80/index.html 1877s # Test 25: http://[2010:836B:4179::836B:4179] 1877s # Test 26: http://host/path with spaces 1877s # Test 27: http://host/path 1877s # Test 28: http://host/path 1877s # Test 29: http://host 1877s # Test 30: http://host:999 1877s # Test 31: http://host/pa 1877s # th 1877s # Test 32: http: 1877s # //host/path 1877s # Test 33: http:// host/path 1877s # Test 34: http://host/path? 1877s # Test 35: http://host/path# 1877s # Test 36: http://host/path% 1877s # Test 37: http://h%ost/path 1877s # Test 38: http://host/path%% 1877s # Test 39: http://host/path%%% 1877s # Test 40: http://host/path%/x/ 1877s # Test 41: http://host/path%0x/ 1877s # Test 42: http://host/path%ax 1877s # Test 43: http://host/päth/ 1877s # Test 44: HTTP://////////////// 1877s # Test 45: http://@host 1877s # Test 46: http://:@host 1877s # Test 47: scheme://foo%3Abar._webdav._tcp.local 1877s # Test 48: http://example.com/.. 1877s # Test 49: foo0://host/path 1877s # Test 50: f0.o://host/path 1877s # Test 51: http++://host/path 1877s # Test 52: http-ish://host/path 1877s # Test 53: http://[fe80::dead:beef%]/ 1877s # Test 54: http://[fe80::dead:beef%em1]/ 1877s # Test 55: http://[fe80::dead:beef%em1]/ 1877s # Test 56: http://[fe80::dead:beef%25em1]/ 1877s # Test 57: http://[fe80::dead:beef%25em1%20]/ 1877s # Test 58: http://[fe80::dead:beef%25em%31]/ 1877s # Test 59: http://[fe80::dead:beef%10]/ 1877s # Test 60: http://[fe80::dead:beef%10]/ 1877s # Test 61: http://[fe80::dead:beef%25]/ 1877s # Test 62: http://[fe80::dead:beef%25]/ 1877s # Test 63: http://[192.168.0.1%25em1]/ 1877s # Test 64: http://[fe80::dead:beef%2em1]/ 1877s # Test 65: http://[fe80::dead:beef%2em1]/ 1877s # Test 66: http://[fe80::dead:beef%25em1%00]/ 1877s # Test 67: http://[fe80::dead:beef%25em1%00]/ 1877s # Test 68: http://xn--mixed-üp/ 1877s # Test 69: data:./// 1877s # Test 70: data:/.// 1877s ok 19 /uri/parsing/absolute 1877s ok 20 /uri/parsing/relative 1877s # End of parsing tests 1877s # Start of iter-params tests 1877s # URI 0: p1=foo&p2=bar;p3=baz 1877s # URI 1: p1=foo&p2=bar 1877s # URI 2: p1=foo&&P1=bar 1877s # URI 3: %00=foo 1877s # URI 4: p1=%00 1877s # URI 5: p1=foo&p1=bar 1877s # URI 6: p1=foo&P1=bar 1877s # URI 7: =% 1877s # URI 8: = 1877s # URI 9: foo 1877s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1877s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1877s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 1877s ok 21 /uri/iter-params/nul-terminated 1877s # URI 0: p1=foo&p2=bar;p3=baz 1877s # URI 1: p1=foo&p2=bar 1877s # URI 2: p1=foo&&P1=bar 1877s # URI 3: %00=foo 1877s # URI 4: p1=%00 1877s # URI 5: p1=foo&p1=bar 1877s # URI 6: p1=foo&P1=bar 1877s # URI 7: =% 1877s # URI 8: = 1877s # URI 9: foo 1877s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1877s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1877s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 1877s ok 22 /uri/iter-params/length 1877s # End of iter-params tests 1877s # Start of parse-params tests 1877s # URI 0: p1=foo&p2=bar;p3=baz 1877s # URI 1: p1=foo&p2=bar 1877s # URI 2: p1=foo&&P1=bar 1877s # URI 3: %00=foo 1877s # URI 4: p1=%00 1877s # URI 5: p1=foo&p1=bar 1877s # URI 6: p1=foo&P1=bar 1877s # URI 7: =% 1877s # URI 8: = 1877s # URI 9: foo 1877s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1877s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1877s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 1877s ok 23 /uri/parse-params/nul-terminated 1877s # URI 0: p1=foo&p2=bar;p3=baz 1877s # URI 1: p1=foo&p2=bar 1877s # URI 2: p1=foo&&P1=bar 1877s # URI 3: %00=foo 1877s # URI 4: p1=%00 1877s # URI 5: p1=foo&p1=bar 1877s # URI 6: p1=foo&P1=bar 1877s # URI 7: =% 1877s # URI 8: = 1877s # URI 9: foo 1877s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1877s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1877s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 1877s ok 24 /uri/parse-params/length 1877s # End of parse-params tests 1877s # End of uri tests 1877s TAP version 14 1877s # random seed: R02Sdefe2579718f20a2280be039d47e808d 1877s 1..3 1877s # Start of converter tests 1877s ok 1 /converter/bytes 1877s ok 2 /converter/extra-bytes-at-end 1877s ok 3 /converter/gzip-os-property 1877s # End of converter tests 1877s TAP version 14 1877s # random seed: R02Seb1b33582af72395a27cc5ce20fd8dc4 1877s 1..1 1877s # Start of null-settings-backend tests 1877s ok 1 /null-settings-backend/extension-point-registered 1877s # End of null-settings-backend tests 1877s ok - glib/cxx-98.test 1877s TAP version 14 1877s # random seed: R02S272c79c4b1ebeb79b6aee50c74e4fea8 1877s 1..2 1877s # Start of gtask tests 1877s # GLib-GIO-DEBUG: GTask some other name (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1877s ok 1 /gtask/name 1877s # Start of name tests 1877s # GLib-GIO-DEBUG: GTask some other name (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1877s ok 2 /gtask/name/macro-wrapper 1877s # End of name tests 1877s # End of gtask tests 1877s # Running test: glib/hostutils.test 1877s TAP version 14 1877s # random seed: R02S053debf8283431d7d64c372acb2ae20c 1877s 1..3 1877s # Start of hostutils tests 1877s ok 1 /hostutils/to_ascii 1877s ok 2 /hostutils/to_unicode 1877s ok 3 /hostutils/is_ip_addr 1877s # End of hostutils tests 1877s TAP version 14 1877s # random seed: R02Sd468f1348854d20c392bc918c379d687 1877s 1..1 1877s # Start of unicode tests 1877s ok 1 /unicode/encoding 1877s # End of unicode tests 1877s ok - glib/hostutils.test 1877s # Running test: glib/unicode-encoding.test 1877s ok - glib/unicode-encoding.test 1877s # Running test: glib/gio-tool.py.test 1877s TAP version 13 1877s ok 1 __main__.TestGioLaunchExpandsDesktopEntry.test_absolute_from_folder 1877s # gio: /usr/bin/gio 1877s # tmpdir: /tmp/tmps278isop 1877s # Running: ['/usr/bin/gio', 'launch', '/tmp/tmps278isop/folder/desktop.entry'] 1877s # Working Directory: /tmp/tmps278isop/folder 1877s # Return code: 0 1877s # Output: 1877s # /tmp/tmps278isop/folder/desktop.entry 1877s # Error: 1877s ok 2 __main__.TestGioLaunchExpandsDesktopEntry.test_absolute_from_parent 1877s # gio: /usr/bin/gio 1877s # tmpdir: /tmp/tmpx5mb43ds 1877s # Running: ['/usr/bin/gio', 'launch', '/tmp/tmpx5mb43ds/folder/desktop.entry'] 1877s # Working Directory: /tmp/tmpx5mb43ds 1877s # Return code: 0 1877s # Output: 1877s # /tmp/tmpx5mb43ds/folder/desktop.entry 1877s # Error: 1877s ok 3 __main__.TestGioLaunchExpandsDesktopEntry.test_absolute_from_sibling 1877s # gio: /usr/bin/gio 1877s # tmpdir: /tmp/tmpd9cdpmvk 1877s # Running: ['/usr/bin/gio', 'launch', '/tmp/tmpd9cdpmvk/folder/desktop.entry'] 1877s # Working Directory: /tmp/tmpd9cdpmvk/sibling 1877s # Return code: 0 1877s # Output: 1877s # /tmp/tmpd9cdpmvk/folder/desktop.entry 1877s # Error: 1878s ok 4 __main__.TestGioLaunchExpandsDesktopEntry.test_relative_from_folder 1878s # gio: /usr/bin/gio 1878s # tmpdir: /tmp/tmpmp0dlqfl 1878s # Running: ['/usr/bin/gio', 'launch', 'desktop.entry'] 1878s # Working Directory: /tmp/tmpmp0dlqfl/folder 1878s # Return code: 0 1878s # Output: 1878s # /tmp/tmpmp0dlqfl/folder/desktop.entry 1878s # Error: 1878s ok 5 __main__.TestGioLaunchExpandsDesktopEntry.test_relative_from_parent 1878s # gio: /usr/bin/gio 1878s # tmpdir: /tmp/tmpbzscj5al 1878s # Running: ['/usr/bin/gio', 'launch', 'folder/desktop.entry'] 1878s # Working Directory: /tmp/tmpbzscj5al 1878s # Return code: 0 1878s # Output: 1878s # /tmp/tmpbzscj5al/folder/desktop.entry 1878s # Error: 1878s ok 6 __main__.TestGioLaunchExpandsDesktopEntry.test_relative_from_sibling 1878s # gio: /usr/bin/gio 1878s # tmpdir: /tmp/tmp891h8biv 1878s # Running: ['/usr/bin/gio', 'launch', '../folder/desktop.entry'] 1878s # Working Directory: /tmp/tmp891h8biv/sibling 1878s # Return code: 0 1878s # Output: 1878s # /tmp/tmp891h8biv/folder/desktop.entry 1878s # Error: 1878s ok 7 __main__.TestGioTool.test_help 1878s # gio: /usr/bin/gio 1878s # tmpdir: /tmp/tmp9c90fp39 1878s # Running: ['/usr/bin/gio', '--help'] 1878s # Return code: 0 1878s # Output: 1878s # Usage: 1878s # gio COMMAND [ARGS…] 1878s # 1878s # Commands: 1878s # help Print help 1878s # version Print version 1878s # cat Concatenate files to standard output 1878s # copy Copy one or more files 1878s # info Show information about locations 1878s # launch Launch an application from a desktop file 1878s # list List the contents of locations 1878s # mime Get or set the handler for a mimetype 1878s # mkdir Create directories 1878s # monitor Monitor files and directories for changes 1878s # mount Mount or unmount the locations 1878s # move Move one or more files 1878s # open Open files with the default application 1878s # rename Rename a file 1878s # remove Delete one or more files 1878s # save Read from standard input and save 1878s # set Set a file attribute 1878s # trash Move files or directories to the trash 1878s # tree Lists the contents of locations in a tree 1878s # 1878s # Use “gio help COMMAND” to get detailed help. 1878s # Error: 1878s # 1878s # Running: ['/usr/bin/gio', 'help'] 1878s # Return code: 0 1878s # Output: 1878s # Usage: 1878s # gio COMMAND [ARGS…] 1878s # 1878s # Commands: 1878s # help Print help 1878s # version Print version 1878s # cat Concatenate files to standard output 1878s # copy Copy one or more files 1878s # info Show information about locations 1878s # launch Launch an application from a desktop file 1878s # list List the contents of locations 1878s # mime Get or set the handler for a mimetype 1878s # mkdir Create directories 1878s # monitor Monitor files and directories for changes 1878s # mount Mount or unmount the locations 1878s # move Move one or more files 1878s # open Open files with the default application 1878s # rename Rename a file 1878s # remove Delete one or more files 1878s # save Read from standard input and save 1878s # set Set a file attribute 1878s # trash Move files or directories to the trash 1878s # tree Lists the contents of locations in a tree 1878s # 1878s # Use “gio help COMMAND” to get detailed help. 1878s # Error: 1878s ok 8 __main__.TestGioTool.test_info_non_default_attributes 1878s # gio: /usr/bin/gio 1878s # tmpdir: /tmp/tmpn8olzf5m 1878s # Running: ['/usr/bin/gio', 'info', '--attributes=standard::content-type', '/tmp/tmpn8olzf5m/tmp_7f14qvu'] 1878s # Return code: 0 1878s # Output: 1878s # uri: file:///tmp/tmpn8olzf5m/tmp_7f14qvu 1878s # local path: /tmp/tmpn8olzf5m/tmp_7f14qvu 1878s # unix mount: /dev/vda2[/lxd/containers/autopkgtest-lxd-rmuqpr/rootfs] / btrfs rw,relatime,idmapped,discard=async,space_cache=v2,user_subvol_rm_allowed,subvolid=22301,subvol=/lxd/containers/autopkgtest-lxd-rmuqpr 1878s # attributes: 1878s # standard::content-type: application/x-zerosize 1878s # Error: 1878s ok 9 __main__.TestGioTool.test_no_args 1878s # gio: /usr/bin/gio 1878s # tmpdir: /tmp/tmpqofkje3h 1878s # Running: ['/usr/bin/gio'] 1878s # Return code: 1 1878s # Output: 1878s # 1878s # Error: 1878s # Usage: 1878s # gio COMMAND [ARGS…] 1878s # 1878s # Commands: 1878s # help Print help 1878s # version Print version 1878s # cat Concatenate files to standard output 1878s # copy Copy one or more files 1878s # info Show information about locations 1878s # launch Launch an application from a desktop file 1878s # list List the contents of locations 1878s # mime Get or set the handler for a mimetype 1878s # mkdir Create directories 1878s # monitor Monitor files and directories for changes 1878s # mount Mount or unmount the locations 1878s # move Move one or more files 1878s # open Open files with the default application 1878s # rename Rename a file 1878s # remove Delete one or more files 1878s # save Read from standard input and save 1878s # set Set a file attribute 1878s # trash Move files or directories to the trash 1878s # tree Lists the contents of locations in a tree 1878s # 1878s # Use “gio help COMMAND” to get detailed help. 1878s 1..9 1878s ok - glib/gio-tool.py.test 1878s # Running test: glib/gvariant.test 1878s TAP version 14 1878s # random seed: R02S019332c288dd45a8e1cbe61e81ce7552 1878s 1..69 1878s # Start of gvariant tests 1878s ok 1 /gvariant/type 1878s ok 2 /gvariant/typeinfo 1878s ok 3 /gvariant/string 1878s ok 4 /gvariant/utf8 1878s ok 5 /gvariant/utf8-new-strings 1878s ok 6 /gvariant/containers 1878s ok 7 /gvariant/format-strings 1878s ok 8 /gvariant/invalid-varargs 1878s ok 9 /gvariant/varargs 1878s ok 10 /gvariant/valist 1878s ok 11 /gvariant/builder-memory 1879s ok 12 /gvariant/hashing 1879s ok 13 /gvariant/byteswap 1879s ok 14 /gvariant/parser 1879s ok 15 /gvariant/parse-failures 1879s ok 16 /gvariant/parse-positional 1879s ok 17 /gvariant/floating 1879s ok 18 /gvariant/bytestring 1879s ok 19 /gvariant/lookup-value 1879s ok 20 /gvariant/lookup 1879s ok 21 /gvariant/compare 1879s ok 22 /gvariant/equal 1879s ok 23 /gvariant/fixed-array 1879s ok 24 /gvariant/check-format-string 1879s ok 25 /gvariant/checksum-basic 1879s ok 26 /gvariant/checksum-nested 1879s ok 27 /gvariant/gbytes 1879s ok 28 /gvariant/print-context 1879s ok 29 /gvariant/error-quark 1879s ok 30 /gvariant/stack-builder-init 1879s ok 31 /gvariant/stack-builder-init-static 1879s ok 32 /gvariant/stack-builder-init-unset 1879s ok 33 /gvariant/stack-dict-init 1879s ok 34 /gvariant/unaligned-construction 1879s # Start of type tests 1879s # Start of string-scan tests 1879s # Start of recursion tests 1879s ok 35 /gvariant/type/string-scan/recursion/tuple 1879s ok 36 /gvariant/type/string-scan/recursion/array 1879s # End of recursion tests 1879s # End of string-scan tests 1879s # End of type tests 1879s # Start of serialiser tests 1879s ok 37 /gvariant/serialiser/maybe 1879s ok 38 /gvariant/serialiser/array 1879s ok 39 /gvariant/serialiser/tuple 1879s ok 40 /gvariant/serialiser/variant 1879s ok 41 /gvariant/serialiser/strings 1881s ok 42 /gvariant/serialiser/byteswap 1881s # slow test /gvariant/serialiser/byteswap executed in 1.94 secs 1881s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1865 1881s # /gvariant/serialiser/children summary: Test that getting a child variant before and after serialisation of the parent works 1881s ok 43 /gvariant/serialiser/children 1881s # Start of byteswap tests 1881s ok 44 /gvariant/serialiser/byteswap/zero-sized 1881s # End of byteswap tests 1881s # Start of fuzz tests 1881s # Executing: glib/gvariant.test 1882s ok 45 /gvariant/serialiser/fuzz/1% 1883s ok 46 /gvariant/serialiser/fuzz/5% 1883s # slow test /gvariant/serialiser/fuzz/5% executed in 1.13 secs 1883s ok 47 /gvariant/serialiser/fuzz/9% 1883s # slow test /gvariant/serialiser/fuzz/9% executed in 0.73 secs 1884s ok 48 /gvariant/serialiser/fuzz/13% 1884s # slow test /gvariant/serialiser/fuzz/13% executed in 0.59 secs 1885s ok 49 /gvariant/serialiser/fuzz/17% 1885s # slow test /gvariant/serialiser/fuzz/17% executed in 0.99 secs 1885s # End of fuzz tests 1885s # End of serialiser tests 1885s # Start of utf8 tests 1885s # Start of subprocess tests 1885s # End of subprocess tests 1885s # End of utf8 tests 1885s # Start of varargs tests 1885s # Start of subprocess tests 1885s # End of subprocess tests 1885s # End of varargs tests 1885s # Start of byteswap tests 1885s # /gvariant/byteswap/non-normal-non-aligned summary: Test that calling g_variant_byteswap() on a variant which is in non-normal form and doesn’t need byteswapping returns the same variant in normal form. 1885s ok 50 /gvariant/byteswap/non-normal-non-aligned 1885s # End of byteswap tests 1885s # Start of parser tests 1885s ok 51 /gvariant/parser/integer-bounds 1885s ok 52 /gvariant/parser/recursion 1885s # Start of recursion tests 1885s ok 53 /gvariant/parser/recursion/typedecls 1885s # /gvariant/parser/recursion/maybes summary: Test that nested maybes are handled correctly when parsing text-form variants 1885s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2782 1885s # Text form 0: @mmmu 5 1885s # Text form 1: @mmmas ['hello'] 1885s # Text form 2: @mmmu just just nothing 1885s # Text form 3: @mmmas just just nothing 1885s # Text form 4: @mmmu just nothing 1885s # Text form 5: @mmmas just nothing 1885s # Text form 6: @mmmu nothing 1885s # Text form 7: @mmmas nothing 1885s ok 54 /gvariant/parser/recursion/maybes 1885s # End of recursion tests 1885s # End of parser tests 1885s # Start of parse tests 1885s # Start of subprocess tests 1885s # End of subprocess tests 1885s # End of parse tests 1885s # Start of normal-checking tests 1885s ok 55 /gvariant/normal-checking/tuples 1885s ok 56 /gvariant/normal-checking/array-offsets 1885s ok 57 /gvariant/normal-checking/array-offsets2 1885s ok 58 /gvariant/normal-checking/tuple-offsets 1885s ok 59 /gvariant/normal-checking/tuple-offsets2 1885s ok 60 /gvariant/normal-checking/tuple-offsets3 1885s ok 61 /gvariant/normal-checking/tuple-offsets4 1885s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2840 1885s ok 62 /gvariant/normal-checking/tuple-offsets5 1885s ok 63 /gvariant/normal-checking/empty-object-path 1885s # Start of array-offsets tests 1885s ok 64 /gvariant/normal-checking/array-offsets/overlapped 1885s ok 65 /gvariant/normal-checking/array-offsets/minimal-sized 1885s # End of array-offsets tests 1885s # Start of tuple-offsets tests 1885s ok 66 /gvariant/normal-checking/tuple-offsets/minimal-sized 1885s # End of tuple-offsets tests 1885s # End of normal-checking tests 1885s # Start of recursion-limits tests 1885s ok 67 /gvariant/recursion-limits/variant-in-variant 1885s ok 68 /gvariant/recursion-limits/array-in-variant 1885s # End of recursion-limits tests 1885s # End of gvariant tests 1885s # Start of gvarianttype tests 1885s ok 69 /gvarianttype/hash 1885s # End of gvarianttype tests 1885s ok - glib/gvariant.test 1885s # Running test: glib/gdbus-test-codegen-min-required-2-64.test 1885s TAP version 14 1885s # random seed: R02S0bff1bfb9ce767caf4f56492517ada2f 1885s 1..8 1885s # Start of gdbus tests 1885s # Start of codegen tests 1885s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/annotations/.dirs/home 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/annotations/.dirs/cache 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/annotations/.dirs/system-config2 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/annotations/.dirs/config 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/annotations/.dirs/system-data2 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/annotations/.dirs/data 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/annotations/.dirs/state 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/annotations/.dirs/runtime 1885s ok 1 /gdbus/codegen/annotations 1885s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/interface_stability/.dirs/home 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/interface_stability/.dirs/cache 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/interface_stability/.dirs/system-config2 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/interface_stability/.dirs/config 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/interface_stability/.dirs/system-data2 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/interface_stability/.dirs/data 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/interface_stability/.dirs/state 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/interface_stability/.dirs/runtime 1885s ok 2 /gdbus/codegen/interface_stability 1885s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/object-manager/.dirs/home 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/object-manager/.dirs/cache 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/object-manager/.dirs/system-config2 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/object-manager/.dirs/config 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/object-manager/.dirs/system-data2 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/object-manager/.dirs/data 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/object-manager/.dirs/state 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/object-manager/.dirs/runtime 1885s ok 3 /gdbus/codegen/object-manager 1885s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/property-naming/.dirs/home 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/property-naming/.dirs/cache 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/property-naming/.dirs/system-config2 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/property-naming/.dirs/config 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/property-naming/.dirs/system-data2 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/property-naming/.dirs/data 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/property-naming/.dirs/state 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/property-naming/.dirs/runtime 1885s ok 4 /gdbus/codegen/property-naming 1885s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/autocleanups/.dirs/home 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/autocleanups/.dirs/cache 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/autocleanups/.dirs/system-config2 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/autocleanups/.dirs/config 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/autocleanups/.dirs/system-data2 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/autocleanups/.dirs/data 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/autocleanups/.dirs/state 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/autocleanups/.dirs/runtime 1885s ok 5 /gdbus/codegen/autocleanups 1885s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/deprecations/.dirs/home 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/deprecations/.dirs/cache 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/deprecations/.dirs/system-config2 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/deprecations/.dirs/config 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/deprecations/.dirs/system-data2 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/deprecations/.dirs/data 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/deprecations/.dirs/state 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/deprecations/.dirs/runtime 1885s ok 6 /gdbus/codegen/deprecations 1885s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/standalone-interface-info/.dirs/home 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/standalone-interface-info/.dirs/cache 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/standalone-interface-info/.dirs/system-config2 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/standalone-interface-info/.dirs/config 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/standalone-interface-info/.dirs/system-data2 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/standalone-interface-info/.dirs/data 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/standalone-interface-info/.dirs/state 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/standalone-interface-info/.dirs/runtime 1885s ok 7 /gdbus/codegen/standalone-interface-info 1885s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/unix-fd-list/.dirs/home 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/unix-fd-list/.dirs/cache 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/unix-fd-list/.dirs/system-config2 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/unix-fd-list/.dirs/config 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/unix-fd-list/.dirs/system-data2 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/unix-fd-list/.dirs/data 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/unix-fd-list/.dirs/state 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_NZS1B3/gdbus/codegen/unix-fd-list/.dirs/runtime 1885s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 1885s ok 8 /gdbus/codegen/unix-fd-list 1885s # End of codegen tests 1885s # End of gdbus tests 1885s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1885s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1885s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1885s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1885s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1885s ok - glib/gdbus-test-codegen-min-required-2-64.test 1885s # Running test: glib/gdbus-proxy.test 1885s TAP version 14 1885s # random seed: R02S100364766c3393e4570bbb36242ac331 1885s 1..5 1885s # Start of gdbus tests 1885s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/.dirs/home 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/.dirs/cache 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/.dirs/system-config1:/tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/.dirs/system-config2 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/.dirs/config 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/.dirs/system-data1:/tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/.dirs/system-data2 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/.dirs/data 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/.dirs/state 1885s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/.dirs/runtime 1886s # Executing: glib/gdbus-proxy.test 1887s ok 1 /gdbus/proxy 1887s # slow test /gdbus/proxy executed in 1.75 secs 1887s # Start of proxy tests 1887s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/no-properties/.dirs/home 1887s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/no-properties/.dirs/cache 1887s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/no-properties/.dirs/system-config1:/tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/no-properties/.dirs/system-config2 1887s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/no-properties/.dirs/config 1887s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/no-properties/.dirs/system-data1:/tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/no-properties/.dirs/system-data2 1887s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/no-properties/.dirs/data 1887s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/no-properties/.dirs/state 1887s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/no-properties/.dirs/runtime 1887s ok 2 /gdbus/proxy/no-properties 1887s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/wellknown-noauto/.dirs/home 1887s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/wellknown-noauto/.dirs/cache 1887s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/wellknown-noauto/.dirs/system-config1:/tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/wellknown-noauto/.dirs/system-config2 1887s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/wellknown-noauto/.dirs/config 1887s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/wellknown-noauto/.dirs/system-data1:/tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/wellknown-noauto/.dirs/system-data2 1887s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/wellknown-noauto/.dirs/data 1887s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/wellknown-noauto/.dirs/state 1887s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/wellknown-noauto/.dirs/runtime 1887s ok 3 /gdbus/proxy/wellknown-noauto 1887s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/async/.dirs/home 1887s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/async/.dirs/cache 1887s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/async/.dirs/system-config1:/tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/async/.dirs/system-config2 1887s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/async/.dirs/config 1887s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/async/.dirs/system-data1:/tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/async/.dirs/system-data2 1887s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/async/.dirs/data 1887s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/async/.dirs/state 1887s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/async/.dirs/runtime 1889s ok 4 /gdbus/proxy/async 1889s # slow test /gdbus/proxy/async executed in 1.74 secs 1889s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/no-match-rule/.dirs/home 1889s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/no-match-rule/.dirs/cache 1889s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/no-match-rule/.dirs/system-config1:/tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/no-match-rule/.dirs/system-config2 1889s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/no-match-rule/.dirs/config 1889s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/no-match-rule/.dirs/system-data1:/tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/no-match-rule/.dirs/system-data2 1889s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/no-match-rule/.dirs/data 1889s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/no-match-rule/.dirs/state 1889s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_WT2ZB3/gdbus/proxy/no-match-rule/.dirs/runtime 1889s # /gdbus/proxy/no-match-rule summary: Test that G_DBUS_PROXY_FLAGS_NO_MATCH_RULE works 1889s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1109 1890s ok 5 /gdbus/proxy/no-match-rule 1890s # slow test /gdbus/proxy/no-match-rule executed in 1.74 secs 1890s # End of proxy tests 1890s # End of gdbus tests 1890s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1890s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1890s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1890s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1890s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1890s ok - glib/gdbus-proxy.test 1890s # Running test: glib/bytes.test 1890s TAP version 14 1890s # random seed: R02Sabf63108d088a715a63e3cb95b56948a 1890s 1..21 1890s # Start of bytes tests 1890s ok 1 /bytes/new 1890s ok 2 /bytes/new-take 1890s ok 3 /bytes/new-static 1890s ok 4 /bytes/new-with-free-func 1890s ok 5 /bytes/new-from-bytes 1890s ok 6 /bytes/new-from-bytes-slice 1890s ok 7 /bytes/new-from-bytes-shared-ref 1890s ok 8 /bytes/hash 1890s ok 9 /bytes/equal 1890s ok 10 /bytes/compare 1890s ok 11 /bytes/null 1890s ok 12 /bytes/get-region 1890s # /bytes/unref-null summary: Test that calling g_bytes_unref() on NULL is a no-op 1890s ok 13 /bytes/unref-null 1890s # Start of to-data tests 1890s ok 14 /bytes/to-data/transferred 1890s ok 15 /bytes/to-data/two-refs 1890s ok 16 /bytes/to-data/non-malloc 1890s ok 17 /bytes/to-data/different-free-func 1890s # End of to-data tests 1890s # Start of to-array tests 1890s ok 18 /bytes/to-array/transferred 1890s ok 19 /bytes/to-array/two-refs 1890s ok 20 /bytes/to-array/non-malloc 1890s # Start of transferred tests 1890s # g_bytes_unref_to_array() can only take GBytes up to G_MAXUINT in length; test that longer ones are rejected 1890s ok 21 /bytes/to-array/transferred/oversize # SKIP Skipping test as guint is not smaller than gsize 1890s # End of transferred tests 1890s # End of to-array tests 1890s # End of bytes tests 1890s ok - glib/bytes.test 1890s # Running test: glib/srvtarget.test 1890s TAP version 14 1890s # random seed: R02S8e95bdc5d52f7d0342183837597ac65e 1890s 1..1 1890s # Start of srvtarget tests 1891s ok 1 /srvtarget/srv-target-ordering 1891s # slow test /srvtarget/srv-target-ordering executed in 0.57 secs 1891s # End of srvtarget tests 1891s ok - glib/srvtarget.test 1891s # Running test: glib/rec-mutex.test 1891s TAP version 14 1891s # random seed: R02Se0fadf9526cf7f4019ffdf68b29d4520 1891s 1..29 1891s # Start of thread tests 1891s ok 1 /thread/rec-mutex1 1891s ok 2 /thread/rec-mutex2 1891s ok 3 /thread/rec-mutex3 1891s ok 4 /thread/rec-mutex4 1891s # Start of rec-mutex tests 1891s # Start of perf tests 1891s # Start of uncontended tests 1891s # max perf: 0.500000 mips 1891s ok 5 /thread/rec-mutex/perf/uncontended/depth1 1891s # max perf: inf mips 1891s ok 6 /thread/rec-mutex/perf/uncontended/depth2 1891s # max perf: 1.000000 mips 1891s ok 7 /thread/rec-mutex/perf/uncontended/depth3 1891s # max perf: inf mips 1891s ok 8 /thread/rec-mutex/perf/uncontended/depth4 1891s # max perf: 1.000000 mips 1891s ok 9 /thread/rec-mutex/perf/uncontended/depth5 1891s # End of uncontended tests 1891s # Start of contended1 tests 1891s # max perf: inf mips 1891s ok 10 /thread/rec-mutex/perf/contended1/depth1 1891s # max perf: inf mips 1891s ok 11 /thread/rec-mutex/perf/contended1/depth2 1891s # max perf: 2.000000 mips 1891s ok 12 /thread/rec-mutex/perf/contended1/depth3 1891s # max perf: 2.000000 mips 1891s ok 13 /thread/rec-mutex/perf/contended1/depth4 1891s # max perf: 2.000000 mips 1891s ok 14 /thread/rec-mutex/perf/contended1/depth5 1891s # End of contended1 tests 1891s # Start of contended2 tests 1891s # max perf: 3.000000 mips 1891s ok 15 /thread/rec-mutex/perf/contended2/depth1 1891s # max perf: 3.000000 mips 1891s ok 16 /thread/rec-mutex/perf/contended2/depth2 1891s # max perf: 3.000000 mips 1891s ok 17 /thread/rec-mutex/perf/contended2/depth3 1891s # max perf: 3.000000 mips 1891s ok 18 /thread/rec-mutex/perf/contended2/depth4 1891s # max perf: 3.000000 mips 1891s ok 19 /thread/rec-mutex/perf/contended2/depth5 1891s # End of contended2 tests 1891s # Start of contended3 tests 1891s # max perf: 4.000000 mips 1891s ok 20 /thread/rec-mutex/perf/contended3/depth1 1891s ok - glib/rec-mutex.test 1891s # Running test: glib/power-profile-monitor-portal.test 1891s # max perf: 1.000000 mips 1891s ok 21 /thread/rec-mutex/perf/contended3/depth2 1891s # max perf: 4.000000 mips 1891s ok 22 /thread/rec-mutex/perf/contended3/depth3 1891s # max perf: 1.000000 mips 1891s ok 23 /thread/rec-mutex/perf/contended3/depth4 1891s # max perf: 0.173913 mips 1891s ok 24 /thread/rec-mutex/perf/contended3/depth5 1891s # End of contended3 tests 1891s # Start of contended4 tests 1891s # max perf: 0.333333 mips 1891s ok 25 /thread/rec-mutex/perf/contended4/depth1 1891s # max perf: 2.500000 mips 1891s ok 26 /thread/rec-mutex/perf/contended4/depth2 1891s # max perf: 2.500000 mips 1891s ok 27 /thread/rec-mutex/perf/contended4/depth3 1891s # max perf: 1.250000 mips 1891s ok 28 /thread/rec-mutex/perf/contended4/depth4 1891s # max perf: 0.294118 mips 1891s ok 29 /thread/rec-mutex/perf/contended4/depth5 1891s # End of contended4 tests 1891s # End of perf tests 1891s # End of rec-mutex tests 1891s # End of thread tests 1891s # Executing: glib/power-profile-monitor-portal.test 1892s TAP version 13 1892s ok 1 __main__.TestPowerProfileMonitorPortal.test_power_profile_power_saver_enabled_portal # SKIP xdg-desktop-portal not available 1892s ok 2 __main__.TestPowerProfileMonitorPortal.test_power_profile_power_saver_enabled_portal_default # SKIP xdg-desktop-portal not available 1892s 1..2 1892s ok - glib/power-profile-monitor-portal.test 1892s # Running test: glib/asyncqueue.test 1892s TAP version 14 1892s # random seed: R02Sabce7393b8862655b036e99cd6caaa62 1892s 1..7 1892s # Start of asyncqueue tests 1892s ok 1 /asyncqueue/basics 1892s ok 2 /asyncqueue/sort 1892s ok 3 /asyncqueue/destroy 1892s ok 4 /asyncqueue/threads 1892s ok - glib/asyncqueue.test 1892s ok 5 /asyncqueue/timed 1892s ok 6 /asyncqueue/remove 1892s ok 7 /asyncqueue/push_front 1892s # End of asyncqueue tests 1892s # Running test: glib/markup-subparser.test 1892s ok - glib/markup-subparser.test 1892s TAP version 14 1892s # random seed: R02S92607aaffd6526ec830ff1a737d544ef 1892s 1..14 1892s # Start of glib tests 1892s # Start of markup tests 1892s # Start of subparser tests 1892s # Start of success tests 1892s ok 1 /glib/markup/subparser/success/0 1892s ok 2 /glib/markup/subparser/success/1 1892s ok 3 /glib/markup/subparser/success/2 1892s ok 4 /glib/markup/subparser/success/3 1892s ok 5 /glib/markup/subparser/success/4 1892s ok 6 /glib/markup/subparser/success/5 1892s ok 7 /glib/markup/subparser/success/6 1892s # End of success tests 1892s # Start of failure tests 1892s ok 8 /glib/markup/subparser/failure/0 1892s ok 9 /glib/markup/subparser/failure/1 1892s ok 10 /glib/markup/subparser/failure/2 1892s ok 11 /glib/markup/subparser/failure/3 1892s ok 12 /glib/markup/subparser/failure/4 1892s ok 13 /glib/markup/subparser/failure/5 1892s ok 14 /glib/markup/subparser/failure/6 1892s # End of failure tests 1892s # End of subparser tests 1892s # End of markup tests 1892s # End of glib tests 1892s # Running test: glib/sequence.test 1892s TAP version 14 1892s # random seed: R02S3acf9049f462d848fe9d81cdf2c5c3dd 1892s 1..16 1892s # Start of sequence tests 1892s ok 1 /sequence/out-of-range-jump 1892s ok 2 /sequence/iter-move 1892s ok 3 /sequence/insert-sorted-non-pointer 1893s ok 4 /sequence/stable-sort 1893s ok 5 /sequence/is_empty 1893s # Start of random tests 1893s ok 6 /sequence/random/seed:825541564 1893s # slow test /sequence/random/seed:825541564 executed in 0.61 secs 1894s ok 7 /sequence/random/seed:801678400 1894s # slow test /sequence/random/seed:801678400 executed in 0.58 secs 1894s ok 8 /sequence/random/seed:1477639090 1894s # slow test /sequence/random/seed:1477639090 executed in 0.60 secs 1895s ok 9 /sequence/random/seed:3369132895 1895s # slow test /sequence/random/seed:3369132895 executed in 0.56 secs 1895s ok 10 /sequence/random/seed:1192944867 1895s # slow test /sequence/random/seed:1192944867 executed in 0.59 secs 1896s ok 11 /sequence/random/seed:770458294 1896s # slow test /sequence/random/seed:770458294 executed in 0.61 secs 1896s # Executing: glib/sequence.test 1897s ok 12 /sequence/random/seed:1099575817 1897s # slow test /sequence/random/seed:1099575817 executed in 0.58 secs 1897s ok 13 /sequence/random/seed:590523467 1897s # slow test /sequence/random/seed:590523467 executed in 0.60 secs 1898s ok 14 /sequence/random/seed:3583571454 1898s # slow test /sequence/random/seed:3583571454 executed in 0.61 secs 1898s ok 15 /sequence/random/seed:579241222 1898s # slow test /sequence/random/seed:579241222 executed in 0.61 secs 1899s ok 16 /sequence/random/seed:779549672 1899s # slow test /sequence/random/seed:779549672 executed in 0.60 secs 1899s # End of random tests 1899s # End of sequence tests 1899s ok - glib/sequence.test 1899s # Running test: glib/overflow-fallback.test 1899s TAP version 14 1899s # random seed: R02S28f34d18a1eb0ca9a575ebabca24e248 1899s 1..6 1899s # Start of glib tests 1899s # Start of checked-math tests 1899s ok 1 /glib/checked-math/guint-add 1899s ok 2 /glib/checked-math/guint-mul 1899s ok 3 /glib/checked-math/guint64-add 1899s ok 4 /glib/checked-math/guint64-mul 1899s ok 5 /glib/checked-math/gsize-add 1899s ok 6 /glib/checked-math/gsize-mul 1899s # End of checked-math tests 1899s # End of glib tests 1899s ok - glib/overflow-fallback.test 1899s # Running test: glib/permission.test 1899s TAP version 14 1899s # random seed: R02S3f1f8c66e69e403e387285557ebdf8a4 1899s 1..1 1899s # Start of permission tests 1899s ok - glib/permission.test 1899s ok 1 /permission/simple 1899s # End of permission tests 1899s # Running test: glib/proxy-test.test 1899s TAP version 14 1899s # random seed: R02S0840123187e02dcc725403083a1c0740 1899s 1..11 1899s # Start of proxy tests 1899s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestProxyResolver) for ‘gio-proxy-resolver’ 1899s ok 1 /proxy/direct_sync 1899s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1899s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc5a58d8 and GSocketClientAsyncConnectData 0xc5a4288 1899s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1899s ok - glib/proxy-test.test 1899s # Running test: glib/dbus-appinfo.test 1899s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1899s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc5a6640 for GSocketClientAsyncConnectData 0xc5a4288 1899s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1899s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1899s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1899s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1899s ok 2 /proxy/direct_async 1899s ok 3 /proxy/single_sync 1899s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1899s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc5a61b8 and GSocketClientAsyncConnectData 0xc5a4288 1899s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1899s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1899s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc5a7308 for GSocketClientAsyncConnectData 0xc5a4288 1899s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1899s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1899s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1899s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1899s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1899s ok 4 /proxy/single_async 1899s ok 5 /proxy/multiple_sync 1899s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1899s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc5a63c8 and GSocketClientAsyncConnectData 0xc5a64d8 1899s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1899s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1899s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc5a7308 for GSocketClientAsyncConnectData 0xc5a64d8 1899s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1899s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1899s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1899s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1899s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1899s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1899s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc5a6488 for GSocketClientAsyncConnectData 0xc5a64d8 1899s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1899s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1899s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1899s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1899s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1899s ok 6 /proxy/multiple_async 1899s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2597 1899s ok 7 /proxy/invalid-uris-sync 1899s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2597 1899s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1899s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc5a6120 and GSocketClientAsyncConnectData 0xc5a6258 1899s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1899s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1899s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Unspecified proxy lookup failure 1899s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unspecified proxy lookup failure 1899s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1899s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc5a61b8 and GSocketClientAsyncConnectData 0xc5a7530 1899s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1899s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1899s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Unspecified proxy lookup failure 1899s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unspecified proxy lookup failure 1899s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1899s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc5a6120 and GSocketClientAsyncConnectData 0xc5a6258 1899s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1899s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1899s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc5a7308 for GSocketClientAsyncConnectData 0xc5a6258 1899s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1899s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1899s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1899s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1899s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1899s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc5a61b8 and GSocketClientAsyncConnectData 0xc5a4288 1899s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1899s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1899s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc5a7308 for GSocketClientAsyncConnectData 0xc5a4288 1899s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1899s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1899s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1899s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1899s ok 8 /proxy/invalid-uris-async 1899s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1899s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc5a58d8 and GSocketClientAsyncConnectData 0xc5a6448 1899s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1899s # GLib-GIO-DEBUG: IPv6 DNS error: Not found 1899s # GLib-GIO-DEBUG: IPv4 DNS error: Not found 1899s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1899s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Not found 1899s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Not found 1899s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1899s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc5a77d0 and GSocketClientAsyncConnectData 0xc5a6258 1899s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1899s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1899s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc5a73d0 for GSocketClientAsyncConnectData 0xc5a6258 1899s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1899s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1899s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1899s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1899s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1899s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1899s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 1899s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 1899s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1899s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc5a6120 and GSocketClientAsyncConnectData 0xc5a6448 1899s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1899s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1899s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc5a73d0 for GSocketClientAsyncConnectData 0xc5a6448 1899s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1899s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1899s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1899s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1899s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1899s ok 9 /proxy/dns 1899s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1899s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc5a6120 and GSocketClientAsyncConnectData 0xc5a6448 1899s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1899s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1899s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc5a7308 for GSocketClientAsyncConnectData 0xc5a6448 1899s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1899s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1899s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1899s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1899s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1899s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1899s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 1899s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 1899s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1899s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc5a77d0 and GSocketClientAsyncConnectData 0xc5a4288 1899s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1899s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1899s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc5a7308 for GSocketClientAsyncConnectData 0xc5a4288 1899s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1899s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1899s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1899s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1899s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1899s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1899s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc5a6120 and GSocketClientAsyncConnectData 0xc5a4288 1899s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1899s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1899s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc5a7308 for GSocketClientAsyncConnectData 0xc5a4288 1899s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1899s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1899s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1899s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1899s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1899s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1899s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 1899s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 1899s ok 10 /proxy/override 1899s ok 11 /proxy/enumerator-ports 1899s # End of proxy tests 1899s TAP version 14 1899s # random seed: R02Sa052589c498eee0c41725362b4d33216 1899s 1..7 1899s # Start of appinfo tests 1899s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/dbusappinfo/.dirs/home 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/dbusappinfo/.dirs/cache 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/dbusappinfo/.dirs/system-config1:/tmp/test_dbus-appinfo_FL1ZB3/appinfo/dbusappinfo/.dirs/system-config2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/dbusappinfo/.dirs/config 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/dbusappinfo/.dirs/system-data1:/tmp/test_dbus-appinfo_FL1ZB3/appinfo/dbusappinfo/.dirs/system-data2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/dbusappinfo/.dirs/data 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/dbusappinfo/.dirs/state 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/dbusappinfo/.dirs/runtime 1899s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1899s ok 1 /appinfo/dbusappinfo 1899s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/flatpak-doc-export/.dirs/home 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/flatpak-doc-export/.dirs/cache 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/flatpak-doc-export/.dirs/system-config1:/tmp/test_dbus-appinfo_FL1ZB3/appinfo/flatpak-doc-export/.dirs/system-config2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/flatpak-doc-export/.dirs/config 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/flatpak-doc-export/.dirs/system-data1:/tmp/test_dbus-appinfo_FL1ZB3/appinfo/flatpak-doc-export/.dirs/system-data2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/flatpak-doc-export/.dirs/data 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/flatpak-doc-export/.dirs/state 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/flatpak-doc-export/.dirs/runtime 1899s # /appinfo/flatpak-doc-export summary: Test that files launched via Flatpak apps are made available via the document portal. 1899s # Acquired a message bus connection 1899s # Acquired the name org.freedesktop.portal.Documents 1899s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_FL1ZB3/appinfo/dbusappinfo/.dirs/config to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/flatpak-doc-export/.dirs/config 1899s # on_flatpak_open received file '/document-portal/document-id/org.gtk.test.dbusappinfo.flatpak.desktop' 1899s # fake-document-portal cancelled 1899s ok 2 /appinfo/flatpak-doc-export 1899s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/flatpak-missing-doc-export/.dirs/home 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/flatpak-missing-doc-export/.dirs/cache 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/flatpak-missing-doc-export/.dirs/system-config1:/tmp/test_dbus-appinfo_FL1ZB3/appinfo/flatpak-missing-doc-export/.dirs/system-config2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/flatpak-missing-doc-export/.dirs/config 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/flatpak-missing-doc-export/.dirs/system-data1:/tmp/test_dbus-appinfo_FL1ZB3/appinfo/flatpak-missing-doc-export/.dirs/system-data2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/flatpak-missing-doc-export/.dirs/data 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/flatpak-missing-doc-export/.dirs/state 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/flatpak-missing-doc-export/.dirs/runtime 1899s # /appinfo/flatpak-missing-doc-export summary: Test that files launched via Flatpak apps are made available via the document portal. 1899s # Acquired a message bus connection 1899s # Acquired the name org.freedesktop.portal.Documents 1899s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_FL1ZB3/appinfo/flatpak-doc-export/.dirs/config to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/flatpak-missing-doc-export/.dirs/config 1899s # on_flatpak_open received file '/hopefully/an/invalid/path.desktop' 1899s # fake-document-portal cancelled 1899s ok 3 /appinfo/flatpak-missing-doc-export 1899s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-file/.dirs/home 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-file/.dirs/cache 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-file/.dirs/system-config1:/tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-file/.dirs/system-config2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-file/.dirs/config 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-file/.dirs/system-data1:/tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-file/.dirs/system-data2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-file/.dirs/data 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-file/.dirs/state 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-file/.dirs/runtime 1899s # Acquired a message bus connection 1899s # Acquired the name org.freedesktop.portal.Desktop 1899s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_FL1ZB3/appinfo/flatpak-missing-doc-export/.dirs/config to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-file/.dirs/config 1899s # Got open file request for file:///usr/libexec/installed-tests/glib/org.gtk.test.dbusappinfo.flatpak.desktop 1899s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_5/t 1899s # Response emitted 1899s # fake-desktop-portal cancelled 1899s ok 4 /appinfo/portal-open-file 1899s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-uri/.dirs/home 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-uri/.dirs/cache 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-uri/.dirs/system-config1:/tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-uri/.dirs/system-config2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-uri/.dirs/config 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-uri/.dirs/system-data1:/tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-uri/.dirs/system-data2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-uri/.dirs/data 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-uri/.dirs/state 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-uri/.dirs/runtime 1899s # Acquired a message bus connection 1899s # Acquired the name org.freedesktop.portal.Desktop 1899s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-file/.dirs/config to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-uri/.dirs/config 1899s # Got open file request for http://example.com 1899s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_7/t 1899s # Response emitted 1899s # fake-desktop-portal cancelled 1899s ok 5 /appinfo/portal-open-uri 1899s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-file-async/.dirs/home 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-file-async/.dirs/cache 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-file-async/.dirs/system-config1:/tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-file-async/.dirs/system-config2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-file-async/.dirs/config 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-file-async/.dirs/system-data1:/tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-file-async/.dirs/system-data2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-file-async/.dirs/data 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-file-async/.dirs/state 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-file-async/.dirs/runtime 1899s # Acquired a message bus connection 1899s # Acquired the name org.freedesktop.portal.Desktop 1899s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-uri/.dirs/config to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-file-async/.dirs/config 1899s # Got open file request for file:///usr/libexec/installed-tests/glib/org.gtk.test.dbusappinfo.flatpak.desktop 1899s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_9/gio1865985836 1899s # Response emitted 1899s # fake-desktop-portal cancelled 1899s ok 6 /appinfo/portal-open-file-async 1899s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-uri-async/.dirs/home 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-uri-async/.dirs/cache 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-uri-async/.dirs/system-config1:/tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-uri-async/.dirs/system-config2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-uri-async/.dirs/config 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-uri-async/.dirs/system-data1:/tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-uri-async/.dirs/system-data2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-uri-async/.dirs/data 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-uri-async/.dirs/state 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-uri-async/.dirs/runtime 1899s # Acquired a message bus connection 1899s # Acquired the name org.freedesktop.portal.Desktop 1899s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-file-async/.dirs/config to /tmp/test_dbus-appinfo_FL1ZB3/appinfo/portal-open-uri-async/.dirs/config 1899s # Got open file request for http://example.com 1899s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_11/gio1177307398 1899s # Response emitted 1899s # fake-desktop-portal cancelled 1899s ok 7 /appinfo/portal-open-uri-async 1899s # End of appinfo tests 1899s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1899s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1899s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1899s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1899s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1899s ok - glib/dbus-appinfo.test 1899s # Running test: glib/utf8-private.test 1899s TAP version 14 1899s # random seed: R02S9e57174125591f2f18cf691eebc25d99 1899s 1..2 1899s # Start of utf8 tests 1899s ok 1 /utf8/utf8-to-utf16-make-valid 1899s ok 2 /utf8/utf8-to-utf16-make-valid-backtrack 1899s # End of utf8 tests 1899s ok - glib/utf8-private.test 1899s # Running test: glib/data-output-stream.test 1899s TAP version 14 1899s # random seed: R02Sbe8e73166176ff9f0f7732a95cd9a2e9 1899s 1..7 1899s # Start of data-output-stream tests 1899s ok 1 /data-output-stream/basic 1899s ok 2 /data-output-stream/write-lines-LF 1899s ok 3 /data-output-stream/write-lines-CR 1899s ok 4 /data-output-stream/write-lines-CR-LF 1899s ok 5 /data-output-stream/write-int 1899s ok 6 /data-output-stream/seek 1899s ok 7 /data-output-stream/truncate 1899s # End of data-output-stream tests 1899s ok - glib/data-output-stream.test 1899s # Running test: glib/rcbox.test 1899s TAP version 14 1899s # random seed: R02S68098de87a532c1bdbfead6f7fb3f6f2 1899s 1..8 1899s # Start of rcbox tests 1899s ok 1 /rcbox/new 1899s # global_point = 0xaffefa8 1899s ok 2 /rcbox/release-full 1899s # global_point_a = 0xaffefa8 1899s # global_point_b = 0xafff050 1899s ok 3 /rcbox/dup 1899s ok 4 /rcbox/alignment 1899s # End of rcbox tests 1899s # Start of atomic-rcbox tests 1899s ok 5 /atomic-rcbox/new 1899s # global_point = 0xafff050 1899s ok 6 /atomic-rcbox/release-full 1899s # global_point_a = 0xafff050 1899s # global_point_b = 0xaffefa8 1899s ok 7 /atomic-rcbox/dup 1899s ok 8 /atomic-rcbox/alignment 1899s # End of atomic-rcbox tests 1899s ok - glib/rcbox.test 1899s # Running test: glib/readwrite.test 1899s TAP version 14 1899s # random seed: R02Se66b0f95067f8905f912603e16960a61 1899s 1..3 1899s # Start of readwrite tests 1899s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1899s ok 1 /readwrite/test_g_file_open_readwrite 1899s ok 2 /readwrite/test_g_file_create_readwrite 1899s ok - glib/readwrite.test 1899s ok 3 /readwrite/test_g_file_replace_readwrite 1899s # End of readwrite tests 1899s # Running test: glib/stream-rw_all.test 1899s TAP version 14 1899s # random seed: R02S96d9ef094f152d9ec3b06dbb9eb0475a 1899s 1..3 1899s # Start of stream tests 1899s # Start of read_all_async tests 1899s ok 1 /stream/read_all_async/memory 1899s # End of read_all_async tests 1899s # Start of write_all_async tests 1899s ok 2 /stream/write_all_async/memory 1899s # End of write_all_async tests 1899s # Start of read_write_all_async tests 1899s ok 3 /stream/read_write_all_async/pipe 1899s # End of read_write_all_async tests 1899s # End of stream tests 1899s ok - glib/stream-rw_all.test 1899s # Running test: glib/gdbus-serialization.test 1899s TAP version 14 1899s # random seed: R02S7f58030f95d1325f6653738918dc7a5b 1899s 1..18 1899s # Start of gdbus tests 1899s # Start of message-serialize tests 1899s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/basic/.dirs/home 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/basic/.dirs/cache 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/basic/.dirs/system-config1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/basic/.dirs/system-config2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/basic/.dirs/config 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/basic/.dirs/system-data1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/basic/.dirs/system-data2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/basic/.dirs/data 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/basic/.dirs/state 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/basic/.dirs/runtime 1899s ok 1 /gdbus/message-serialize/basic 1899s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/complex/.dirs/home 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/complex/.dirs/cache 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/complex/.dirs/system-config1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/complex/.dirs/system-config2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/complex/.dirs/config 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/complex/.dirs/system-data1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/complex/.dirs/system-data2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/complex/.dirs/data 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/complex/.dirs/state 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/complex/.dirs/runtime 1899s ok 2 /gdbus/message-serialize/complex 1899s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/invalid/.dirs/home 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/invalid/.dirs/cache 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/invalid/.dirs/system-config1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/invalid/.dirs/system-config2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/invalid/.dirs/config 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/invalid/.dirs/system-data1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/invalid/.dirs/system-data2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/invalid/.dirs/data 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/invalid/.dirs/state 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/invalid/.dirs/runtime 1899s ok 3 /gdbus/message-serialize/invalid 1899s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/header-checks/.dirs/home 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/header-checks/.dirs/cache 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/header-checks/.dirs/system-config1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/header-checks/.dirs/system-config2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/header-checks/.dirs/config 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/header-checks/.dirs/system-data1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/header-checks/.dirs/system-data2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/header-checks/.dirs/data 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/header-checks/.dirs/state 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/header-checks/.dirs/runtime 1899s ok 4 /gdbus/message-serialize/header-checks 1899s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/double-array/.dirs/home 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/double-array/.dirs/cache 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/double-array/.dirs/system-config1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/double-array/.dirs/system-config2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/double-array/.dirs/config 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/double-array/.dirs/system-data1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/double-array/.dirs/system-data2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/double-array/.dirs/data 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/double-array/.dirs/state 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/double-array/.dirs/runtime 1899s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=732754 1899s ok 5 /gdbus/message-serialize/double-array 1899s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/empty-structure/.dirs/home 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/empty-structure/.dirs/cache 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/empty-structure/.dirs/system-config1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/empty-structure/.dirs/system-config2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/empty-structure/.dirs/config 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/empty-structure/.dirs/system-data1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/empty-structure/.dirs/system-data2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/empty-structure/.dirs/data 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/empty-structure/.dirs/state 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/empty-structure/.dirs/runtime 1899s # /gdbus/message-serialize/empty-structure summary: Test that empty structures are rejected when serializing. 1899s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2557 1899s ok 6 /gdbus/message-serialize/empty-structure 1899s # Start of header-checks tests 1899s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/header-checks/valid/.dirs/home 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/header-checks/valid/.dirs/cache 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/header-checks/valid/.dirs/system-config1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/header-checks/valid/.dirs/system-config2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/header-checks/valid/.dirs/config 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/header-checks/valid/.dirs/system-data1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/header-checks/valid/.dirs/system-data2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/header-checks/valid/.dirs/data 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/header-checks/valid/.dirs/state 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-serialize/header-checks/valid/.dirs/runtime 1899s # /gdbus/message-serialize/header-checks/valid summary: Test that validation allows well-formed messages of all the different types 1899s ok 7 /gdbus/message-serialize/header-checks/valid 1899s # End of header-checks tests 1899s # End of message-serialize tests 1899s # Start of message-parse tests 1899s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/home 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/cache 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-config1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-config2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/config 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-data1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-data2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/data 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/state 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/runtime 1899s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=673612 1899s ok 8 /gdbus/message-parse/empty-arrays-of-arrays 1899s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/non-signature-header/.dirs/home 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/non-signature-header/.dirs/cache 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/non-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/non-signature-header/.dirs/system-config2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/non-signature-header/.dirs/config 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/non-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/non-signature-header/.dirs/system-data2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/non-signature-header/.dirs/data 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/non-signature-header/.dirs/state 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/non-signature-header/.dirs/runtime 1899s ok 9 /gdbus/message-parse/non-signature-header 1899s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/empty-signature-header/.dirs/home 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/empty-signature-header/.dirs/cache 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/empty-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/empty-signature-header/.dirs/system-config2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/empty-signature-header/.dirs/config 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/empty-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/empty-signature-header/.dirs/system-data2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/empty-signature-header/.dirs/data 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/empty-signature-header/.dirs/state 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/empty-signature-header/.dirs/runtime 1899s ok 10 /gdbus/message-parse/empty-signature-header 1899s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/multiple-signature-header/.dirs/home 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/multiple-signature-header/.dirs/cache 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/multiple-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/multiple-signature-header/.dirs/system-config2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/multiple-signature-header/.dirs/config 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/multiple-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/multiple-signature-header/.dirs/system-data2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/multiple-signature-header/.dirs/data 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/multiple-signature-header/.dirs/state 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/multiple-signature-header/.dirs/runtime 1899s ok - glib/gdbus-serialization.test 1899s # Running test: glib/param.test 1899s ok 11 /gdbus/message-parse/multiple-signature-header 1899s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/over-long-signature-header/.dirs/home 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/over-long-signature-header/.dirs/cache 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/over-long-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/over-long-signature-header/.dirs/system-config2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/over-long-signature-header/.dirs/config 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/over-long-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/over-long-signature-header/.dirs/system-data2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/over-long-signature-header/.dirs/data 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/over-long-signature-header/.dirs/state 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/over-long-signature-header/.dirs/runtime 1899s ok 12 /gdbus/message-parse/over-long-signature-header 1899s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/deep-header-nesting/.dirs/home 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/deep-header-nesting/.dirs/cache 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/deep-header-nesting/.dirs/system-config1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/deep-header-nesting/.dirs/system-config2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/deep-header-nesting/.dirs/config 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/deep-header-nesting/.dirs/system-data1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/deep-header-nesting/.dirs/system-data2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/deep-header-nesting/.dirs/data 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/deep-header-nesting/.dirs/state 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/deep-header-nesting/.dirs/runtime 1899s ok 13 /gdbus/message-parse/deep-header-nesting 1899s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/deep-body-nesting/.dirs/home 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/deep-body-nesting/.dirs/cache 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/deep-body-nesting/.dirs/system-config1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/deep-body-nesting/.dirs/system-config2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/deep-body-nesting/.dirs/config 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/deep-body-nesting/.dirs/system-data1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/deep-body-nesting/.dirs/system-data2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/deep-body-nesting/.dirs/data 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/deep-body-nesting/.dirs/state 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/deep-body-nesting/.dirs/runtime 1899s ok 14 /gdbus/message-parse/deep-body-nesting 1899s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/truncated/.dirs/home 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/truncated/.dirs/cache 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/truncated/.dirs/system-config1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/truncated/.dirs/system-config2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/truncated/.dirs/config 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/truncated/.dirs/system-data1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/truncated/.dirs/system-data2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/truncated/.dirs/data 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/truncated/.dirs/state 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/truncated/.dirs/runtime 1899s # /gdbus/message-parse/truncated summary: Test that truncated messages are properly rejected. 1899s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2528 1899s ok 15 /gdbus/message-parse/truncated 1899s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/empty-structure/.dirs/home 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/empty-structure/.dirs/cache 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/empty-structure/.dirs/system-config1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/empty-structure/.dirs/system-config2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/empty-structure/.dirs/config 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/empty-structure/.dirs/system-data1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/empty-structure/.dirs/system-data2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/empty-structure/.dirs/data 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/empty-structure/.dirs/state 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/empty-structure/.dirs/runtime 1899s # /gdbus/message-parse/empty-structure summary: Test that empty structures are rejected when parsing. 1899s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2557 1899s ok 16 /gdbus/message-parse/empty-structure 1899s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/missing-header/.dirs/home 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/missing-header/.dirs/cache 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/missing-header/.dirs/system-config1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/missing-header/.dirs/system-config2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/missing-header/.dirs/config 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/missing-header/.dirs/system-data1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/missing-header/.dirs/system-data2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/missing-header/.dirs/data 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/missing-header/.dirs/state 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/missing-header/.dirs/runtime 1899s # /gdbus/message-parse/missing-header summary: Test that missing (required) headers prompt an error. 1899s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3061 1899s ok 17 /gdbus/message-parse/missing-header 1899s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/invalid-header-type/.dirs/home 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/invalid-header-type/.dirs/cache 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/invalid-header-type/.dirs/system-config1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/invalid-header-type/.dirs/system-config2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/invalid-header-type/.dirs/config 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/invalid-header-type/.dirs/system-data1:/tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/invalid-header-type/.dirs/system-data2 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/invalid-header-type/.dirs/data 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/invalid-header-type/.dirs/state 1899s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_6XF2B3/gdbus/message-parse/invalid-header-type/.dirs/runtime 1899s # /gdbus/message-parse/invalid-header-type summary: Test that the type of well-known headers is checked. 1899s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3061 1899s ok 18 /gdbus/message-parse/invalid-header-type 1899s # End of message-parse tests 1899s # End of gdbus tests 1899s TAP version 14 1899s # random seed: R02Sa4e1a834dff432e33c0912808b496e01 1899s 1..32 1899s # Start of param tests 1899s ok 1 /param/value 1899s ok 2 /param/strings 1899s ok 3 /param/qdata 1899s ok 4 /param/validate 1899s ok 5 /param/convert 1899s ok 6 /param/implement # SKIP Skipping slow /param/implement test 1899s ok 7 /param/default 1899s ok 8 /param/is-valid-name 1899s # Start of invalid-name tests 1899s # /param/invalid-name/colon summary: Test that properties cannot be created with invalid names 1899s ok 9 /param/invalid-name/colon 1899s # /param/invalid-name/first-char summary: Test that properties cannot be created with invalid names 1899s ok 10 /param/invalid-name/first-char 1899s # /param/invalid-name/empty summary: Test that properties cannot be created with invalid names 1899s ok 11 /param/invalid-name/empty 1899s # End of invalid-name tests 1899s # Start of implement tests 1899s # Start of subprocess tests 1899s # End of subprocess tests 1899s # End of implement tests 1899s # End of param tests 1899s # Start of value tests 1899s ok 12 /value/transform 1899s # End of value tests 1899s # Start of paramspec tests 1899s ok 13 /paramspec/char 1899s ok 14 /paramspec/uchar 1899s ok 15 /paramspec/int 1899s ok 16 /paramspec/uint 1899s ok 17 /paramspec/long 1899s ok 18 /paramspec/ulong 1899s ok 19 /paramspec/int64 1899s ok 20 /paramspec/uint64 1899s ok 21 /paramspec/float 1899s ok 22 /paramspec/double 1899s ok 23 /paramspec/unichar 1899s ok 24 /paramspec/param 1899s ok 25 /paramspec/null-param 1899s ok 26 /paramspec/string 1899s ok 27 /paramspec/override 1899s ok 28 /paramspec/gtype 1899s ok 29 /paramspec/variant 1899s ok 30 /paramspec/custom 1899s ok 31 /paramspec/pool 1899s # Start of variant tests 1899s ok 32 /paramspec/variant/cmp 1899s # End of variant tests 1899s # End of paramspec tests 1899s ok - glib/param.test 1899s # Running test: glib/contenttype.test 1899s TAP version 14 1899s # random seed: R02Sd03c05396bf38e378303b83f5c505460 1899s 1..14 1899s # Start of contenttype tests 1899s ok 1 /contenttype/guess 1899s ok 2 /contenttype/guess_svg_from_data 1899s ok 3 /contenttype/mime_to_content # SKIP mime from content type test not implemented on UNIX 1899s ok 4 /contenttype/mime_from_content # SKIP mime from content type test not implemented on UNIX 1899s ok 5 /contenttype/unknown 1899s ok 6 /contenttype/subtype 1899s ok 7 /contenttype/list 1899s ok 8 /contenttype/executable 1899s ok 9 /contenttype/description 1899s ok 10 /contenttype/icon 1899s ok 11 /contenttype/symbolic-icon 1899s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1899s ok 12 /contenttype/tree 1899s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3168 1899s ok 13 /contenttype/tree_invalid_encoding 1899s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=782311 1899s ok 14 /contenttype/test_type_is_a_special_case 1899s # End of contenttype tests 1899s ok - glib/contenttype.test 1899s # Running test: glib/timer.test 1899s TAP version 14 1899s # random seed: R02S9f58bc351eddc4e36a053cd972e739e1 1899s 1..10 1899s # Start of timer tests 1899s ok 1 /timer/basic # SKIP Not reliable due to floating-point rounding (glib#820) 1899s ok 2 /timer/stop 1899s ok 3 /timer/continue 1899s ok 4 /timer/reset 1899s ok 5 /timer/is_active 1899s # End of timer tests 1899s # Start of timeval tests 1899s ok 6 /timeval/add 1899s ok 7 /timeval/from-iso8601 1899s ok 8 /timeval/to-iso8601 1899s # Start of to-iso8601 tests 1899s ok 9 /timeval/to-iso8601/overflow # SKIP G_MAXINT == G_MAXLONG - we can't make g_time_val_to_iso8601() overflow. 1899s # End of to-iso8601 tests 1899s # End of timeval tests 1899s # Start of usleep tests 1899s ok 10 /usleep/with-zero-wait 1899s # End of usleep tests 1899s ok - glib/timer.test 1899s # Running test: glib/date.test 1899s TAP version 14 1899s # random seed: R02S110d627591e85098f52659594fa28617 1899s 1..122 1899s # Start of date tests 1899s ok 1 /date/basic 1899s ok 2 /date/empty 1899s ok 3 /date/dmy 1899s ok 4 /date/julian 1899s ok 5 /date/compare 1899s ok 6 /date/dates 1899s ok 7 /date/strftime 1899s ok 8 /date/two-digit-years 1899s ok 9 /date/parse 1899s ok 10 /date/parse_locale_change # SKIP locale th_TH not available 1899s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=793550 1899s ok 11 /date/month_substring 1899s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=749206 1899s ok 12 /date/month_names # SKIP libc doesn’t support all alternative month names 1899s ok 13 /date/clamp 1899s ok 14 /date/order 1899s ok 15 /date/copy 1899s # Vector 0: 0000-00-00, invalid 1899s # Vector 1: 0001-01-01, valid 1899s # Vector 2: 0000-01-01, invalid 1899s # Vector 3: 2000-02-30, invalid 1899s # Vector 4: 2000-02-29, valid 1899s # Vector 5: 2001-02-29, invalid 1899s # Vector 6: 65535-01-01, valid 1899s ok 16 /date/valid-dmy 1899s # Considering 2000-01-01 1899s # Considering 2000-01-07 1899s # Considering 2000-01-08 1899s # Considering 2001-01-01 1899s # Considering 2001-01-07 1899s # Considering 2001-01-08 1899s # Considering 2002-01-01 1899s # Considering 2002-01-07 1899s # Considering 2002-01-08 1899s # Considering 2003-01-01 1899s # Considering 2003-01-07 1899s # Considering 2003-01-08 1899s # Considering 2004-01-01 1899s # Considering 2004-01-07 1899s # Considering 2004-01-08 1899s # Considering 2006-01-01 1899s # Considering 2006-01-07 1899s # Considering 2006-01-08 1899s # Considering 2010-01-01 1899s # Considering 2010-01-07 1899s # Considering 2010-01-08 1899s ok 17 /date/week-of-year 1899s # Start of parse tests 1899s # Test 0 1899s # Test 1 1899s ok 18 /date/parse/invalid 1899s # End of parse tests 1899s # Start of year tests 1899s ok 19 /date/year/1 1899s ok 20 /date/year/2 1900s ok 21 /date/year/3 1900s ok 22 /date/year/4 1900s ok 23 /date/year/5 1900s ok 24 /date/year/6 1900s ok 25 /date/year/7 1900s ok 26 /date/year/8 1900s ok 27 /date/year/9 1900s ok 28 /date/year/10 1900s ok 29 /date/year/11 1900s ok 30 /date/year/12 1900s ok 31 /date/year/13 1900s ok 32 /date/year/14 1900s ok 33 /date/year/98 1900s ok 34 /date/year/99 1900s ok 35 /date/year/100 1900s ok 36 /date/year/101 1900s ok 37 /date/year/102 1900s ok 38 /date/year/103 1900s ok 39 /date/year/397 1900s ok 40 /date/year/398 1900s ok 41 /date/year/399 1900s ok 42 /date/year/400 1900s ok 43 /date/year/401 1900s ok 44 /date/year/402 1900s ok 45 /date/year/403 1900s ok 46 /date/year/404 1900s ok 47 /date/year/405 1900s ok 48 /date/year/406 1900s ok 49 /date/year/1598 1900s ok 50 /date/year/1599 1900s ok 51 /date/year/1600 1900s ok 52 /date/year/1601 1900s ok 53 /date/year/1602 1900s ok 54 /date/year/1650 1900s ok 55 /date/year/1651 1900s ok 56 /date/year/1897 1900s ok 57 /date/year/1898 1900s ok 58 /date/year/1899 1900s ok 59 /date/year/1900 1900s ok 60 /date/year/1901 1900s ok 61 /date/year/1902 1900s ok 62 /date/year/1903 1900s ok 63 /date/year/1961 1900s ok 64 /date/year/1962 1900s ok 65 /date/year/1963 1900s ok 66 /date/year/1964 1900s ok 67 /date/year/1965 1900s ok 68 /date/year/1967 1900s ok 69 /date/year/1968 1900s ok 70 /date/year/1969 1900s ok 71 /date/year/1970 1900s ok 72 /date/year/1971 1900s ok 73 /date/year/1972 1900s ok 74 /date/year/1973 1900s ok 75 /date/year/1974 1900s ok 76 /date/year/1975 1900s ok 77 /date/year/1976 1900s ok 78 /date/year/1977 1900s ok 79 /date/year/1978 1900s ok 80 /date/year/1979 1900s ok 81 /date/year/1980 1900s ok 82 /date/year/1981 1900s ok 83 /date/year/1982 1900s ok 84 /date/year/1983 1900s ok 85 /date/year/1984 1900s ok 86 /date/year/1985 1900s ok 87 /date/year/1986 1900s ok 88 /date/year/1987 1900s ok 89 /date/year/1988 1900s ok 90 /date/year/1989 1900s ok 91 /date/year/1990 1900s ok 92 /date/year/1991 1900s ok 93 /date/year/1992 1900s ok 94 /date/year/1993 1900s ok 95 /date/year/1994 1900s ok 96 /date/year/1995 1900s ok 97 /date/year/1996 1900s ok 98 /date/year/1997 1900s ok 99 /date/year/1998 1900s ok 100 /date/year/1999 1900s ok 101 /date/year/2000 1900s ok 102 /date/year/2001 1900s ok 103 /date/year/2002 1900s ok 104 /date/year/2003 1900s ok 105 /date/year/2004 1900s ok 106 /date/year/2005 1900s ok 107 /date/year/2006 1900s ok 108 /date/year/2007 1900s ok 109 /date/year/2008 1900s ok 110 /date/year/2009 1900s ok 111 /date/year/2010 1900s ok 112 /date/year/2011 1900s ok 113 /date/year/2012 1900s ok 114 /date/year/3000 1900s ok 115 /date/year/3001 1900s ok 116 /date/year/3002 1900s ok 117 /date/year/3998 1900s ok 118 /date/year/3999 1900s ok 119 /date/year/4000 1900s ok 120 /date/year/4001 1900s ok 121 /date/year/4002 1900s ok 122 /date/year/4003 1900s # End of year tests 1900s # End of date tests 1900s ok - glib/date.test 1900s # Running test: glib/performance-threaded.test 1900s Running test "liststore-is-a" 1901s 6805 runs, min/avg/max = 0.143/0.146/0.290 ms 1901s Running test "liststore-interface-peek" 1901s # Executing: glib/performance-threaded.test 1902s 8880 runs, min/avg/max = 0.109/0.112/0.896 ms 1902s Running test "liststore-interface-peek-same" 1903s 8941 runs, min/avg/max = 0.109/0.111/0.354 ms 1903s ok - glib/performance-threaded.test 1903s # Running test: glib/basics-gobject.test 1903s ok - glib/basics-gobject.test 1903s TAP version 14 1903s # random seed: R02S9398778dad46b3939ac6d375ddefc841 1903s 1..1 1903s # Start of gobject tests 1903s # private data during initialization: 54321 == 54321 1903s # MAIN: emit test-signal: 1903s # ::test_signal default_handler called 1903s # ::test_signal default_handler called 1903s # ::test_signal default_handler called 1903s # signal return: "" 1903s # MAIN: call iface print-string on test and derived object: 1903s # Iface-FOO: "iface-string-from-test-type" from 0x3e155d0 1903s # Iface-BAR: "iface-string-from-derived-type" from 0x3e154a8 1903s # chaining: 1903s # Iface-FOO: "iface-string-from-derived-type" from 0x3e154a8 1903s # private data after initialization: 54321 == 54321 1903s ok 1 /gobject/basics 1903s # End of gobject tests 1903s # Running test: glib/codegen.py.test 1903s TAP version 13 1903s ok 1 __main__.TestCodegen.test_call_flags_and_timeout_method_args 1903s # gdbus-codegen: /usr/bin/gdbus-codegen 1903s # tmpdir: /tmp/tmpu_qhvqj5 1903s # /tmp/tmpu_qhvqj5/tmpog9qeozj.xml: 1903s # 1903s # 1903s # 1903s # 1903s # 1903s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpu_qhvqj5/tmpog9qeozj.xml', '--output', '-', '--header'] 1903s # Return code: 0 1903s # Output: 1903s # /* 1903s # * This file is generated by gdbus-codegen, do not modify it. 1903s # * 1903s # * The license of this code is the same as for the D-Bus interface description 1903s # * it was derived from. Note that it links to GLib, so must comply with the 1903s # * LGPL linking clauses. 1903s # */ 1903s # 1903s # #ifndef __STDOUT__ 1903s # #define __STDOUT__ 1903s # 1903s # #include 1903s # 1903s # G_BEGIN_DECLS 1903s # 1903s # 1903s # /* ------------------------------------------------------------------------ */ 1903s # /* Declarations for org.project.UsefulInterface */ 1903s # 1903s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 1903s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 1903s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 1903s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 1903s # 1903s # struct _OrgProjectUsefulInterface; 1903s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 1903s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 1903s # 1903s # struct _OrgProjectUsefulInterfaceIface 1903s # { 1903s # GTypeInterface parent_iface; 1903s # 1903s # gboolean (*handle_useful_method) ( 1903s # OrgProjectUsefulInterface *object, 1903s # GDBusMethodInvocation *invocation); 1903s # 1903s # }; 1903s # 1903s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 1903s # 1903s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 1903s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 1903s # 1903s # 1903s # /* D-Bus method call completion functions: */ 1903s # void org_project_useful_interface_complete_useful_method ( 1903s # OrgProjectUsefulInterface *object, 1903s # GDBusMethodInvocation *invocation); 1903s # 1903s # 1903s # 1903s # /* D-Bus method calls: */ 1903s # void org_project_useful_interface_call_useful_method ( 1903s # OrgProjectUsefulInterface *proxy, 1903s # GCancellable *cancellable, 1903s # GAsyncReadyCallback callback, 1903s # gpointer user_data); 1903s # 1903s # gboolean org_project_useful_interface_call_useful_method_finish ( 1903s # OrgProjectUsefulInterface *proxy, 1903s # GAsyncResult *res, 1903s # GError **error); 1903s # 1903s # gboolean org_project_useful_interface_call_useful_method_sync ( 1903s # OrgProjectUsefulInterface *proxy, 1903s # GCancellable *cancellable, 1903s # GError **error); 1903s # 1903s # 1903s # 1903s # /* ---- */ 1903s # 1903s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 1903s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 1903s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1903s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1903s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1903s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1903s # 1903s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 1903s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 1903s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 1903s # 1903s # struct _OrgProjectUsefulInterfaceProxy 1903s # { 1903s # /*< private >*/ 1903s # GDBusProxy parent_instance; 1903s # OrgProjectUsefulInterfaceProxyPrivate *priv; 1903s # }; 1903s # 1903s # struct _OrgProjectUsefulInterfaceProxyClass 1903s # { 1903s # GDBusProxyClass parent_class; 1903s # }; 1903s # 1903s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 1903s # 1903s # #if GLIB_CHECK_VERSION(2, 44, 0) 1903s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 1903s # #endif 1903s # 1903s # void org_project_useful_interface_proxy_new ( 1903s # GDBusConnection *connection, 1903s # GDBusProxyFlags flags, 1903s # const gchar *name, 1903s # const gchar *object_path, 1903s # GCancellable *cancellable, 1903s # GAsyncReadyCallback callback, 1903s # gpointer user_data); 1903s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 1903s # GAsyncResult *res, 1903s # GError **error); 1903s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 1903s # GDBusConnection *connection, 1903s # GDBusProxyFlags flags, 1903s # const gchar *name, 1903s # const gchar *object_path, 1903s # GCancellable *cancellable, 1903s # GError **error); 1903s # 1903s # void org_project_useful_interface_proxy_new_for_bus ( 1903s # GBusType bus_type, 1903s # GDBusProxyFlags flags, 1903s # const gchar *name, 1903s # const gchar *object_path, 1903s # GCancellable *cancellable, 1903s # GAsyncReadyCallback callback, 1903s # gpointer user_data); 1903s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 1903s # GAsyncResult *res, 1903s # GError **error); 1903s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 1903s # GBusType bus_type, 1903s # GDBusProxyFlags flags, 1903s # const gchar *name, 1903s # const gchar *object_path, 1903s # GCancellable *cancellable, 1903s # GError **error); 1903s # 1903s # 1903s # /* ---- */ 1903s # 1903s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 1903s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 1903s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1903s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1903s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1903s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1903s # 1903s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 1903s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 1903s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 1903s # 1903s # struct _OrgProjectUsefulInterfaceSkeleton 1903s # { 1903s # /*< private >*/ 1903s # GDBusInterfaceSkeleton parent_instance; 1903s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 1903s # }; 1903s # 1903s # struct _OrgProjectUsefulInterfaceSkeletonClass 1903s # { 1903s # GDBusInterfaceSkeletonClass parent_class; 1903s # }; 1903s # 1903s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 1903s # 1903s # #if GLIB_CHECK_VERSION(2, 44, 0) 1903s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 1903s # #endif 1903s # 1903s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 1903s # 1903s # 1903s # G_END_DECLS 1903s # 1903s # #endif /* __STDOUT__ */ 1903s # Error: 1903s # 1903s # /tmp/tmpu_qhvqj5/tmpke2hh7yu.xml: 1903s # 1903s # 1903s # 1903s # 1903s # 1903s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpu_qhvqj5/tmpke2hh7yu.xml', '--output', '-', '--header', '--glib-min-required', '2.32'] 1903s # Return code: 0 1903s # Output: 1903s # /* 1903s # * This file is generated by gdbus-codegen, do not modify it. 1903s # * 1903s # * The license of this code is the same as for the D-Bus interface description 1903s # * it was derived from. Note that it links to GLib, so must comply with the 1903s # * LGPL linking clauses. 1903s # */ 1903s # 1903s # #ifndef __STDOUT__ 1903s # #define __STDOUT__ 1903s # 1903s # #include 1903s # 1903s # G_BEGIN_DECLS 1903s # 1903s # 1903s # /* ------------------------------------------------------------------------ */ 1903s # /* Declarations for org.project.UsefulInterface */ 1903s # 1903s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 1903s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 1903s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 1903s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 1903s # 1903s # struct _OrgProjectUsefulInterface; 1903s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 1903s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 1903s # 1903s # struct _OrgProjectUsefulInterfaceIface 1903s # { 1903s # GTypeInterface parent_iface; 1903s # 1903s # gboolean (*handle_useful_method) ( 1903s # OrgProjectUsefulInterface *object, 1903s # GDBusMethodInvocation *invocation); 1903s # 1903s # }; 1903s # 1903s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 1903s # 1903s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 1903s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 1903s # 1903s # 1903s # /* D-Bus method call completion functions: */ 1903s # void org_project_useful_interface_complete_useful_method ( 1903s # OrgProjectUsefulInterface *object, 1903s # GDBusMethodInvocation *invocation); 1903s # 1903s # 1903s # 1903s # /* D-Bus method calls: */ 1903s # void org_project_useful_interface_call_useful_method ( 1903s # OrgProjectUsefulInterface *proxy, 1903s # GCancellable *cancellable, 1903s # GAsyncReadyCallback callback, 1903s # gpointer user_data); 1903s # 1903s # gboolean org_project_useful_interface_call_useful_method_finish ( 1903s # OrgProjectUsefulInterface *proxy, 1903s # GAsyncResult *res, 1903s # GError **error); 1903s # 1903s # gboolean org_project_useful_interface_call_useful_method_sync ( 1903s # OrgProjectUsefulInterface *proxy, 1903s # GCancellable *cancellable, 1903s # GError **error); 1903s # 1903s # 1903s # 1903s # /* ---- */ 1903s # 1903s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 1903s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 1903s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1903s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1903s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1903s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1903s # 1903s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 1903s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 1903s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 1903s # 1903s # struct _OrgProjectUsefulInterfaceProxy 1903s # { 1903s # /*< private >*/ 1903s # GDBusProxy parent_instance; 1903s # OrgProjectUsefulInterfaceProxyPrivate *priv; 1903s # }; 1903s # 1903s # struct _OrgProjectUsefulInterfaceProxyClass 1903s # { 1903s # GDBusProxyClass parent_class; 1903s # }; 1903s # 1903s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 1903s # 1903s # #if GLIB_CHECK_VERSION(2, 44, 0) 1903s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 1903s # #endif 1903s # 1903s # void org_project_useful_interface_proxy_new ( 1903s # GDBusConnection *connection, 1903s # GDBusProxyFlags flags, 1903s # const gchar *name, 1903s # const gchar *object_path, 1903s # GCancellable *cancellable, 1903s # GAsyncReadyCallback callback, 1903s # gpointer user_data); 1903s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 1903s # GAsyncResult *res, 1903s # GError **error); 1903s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 1903s # GDBusConnection *connection, 1903s # GDBusProxyFlags flags, 1903s # const gchar *name, 1903s # const gchar *object_path, 1903s # GCancellable *cancellable, 1903s # GError **error); 1903s # 1903s # void org_project_useful_interface_proxy_new_for_bus ( 1903s # GBusType bus_type, 1903s # GDBusProxyFlags flags, 1903s # const gchar *name, 1903s # const gchar *object_path, 1903s # GCancellable *cancellable, 1903s # GAsyncReadyCallback callback, 1903s # gpointer user_data); 1903s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 1903s # GAsyncResult *res, 1903s # GError **error); 1903s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 1903s # GBusType bus_type, 1903s # GDBusProxyFlags flags, 1903s # const gchar *name, 1903s # const gchar *object_path, 1903s # GCancellable *cancellable, 1903s # GError **error); 1903s # 1903s # 1903s # /* ---- */ 1903s # 1903s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 1903s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 1903s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1903s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1903s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1903s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1903s # 1903s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 1903s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 1903s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 1903s # 1903s # struct _OrgProjectUsefulInterfaceSkeleton 1903s # { 1903s # /*< private >*/ 1903s # GDBusInterfaceSkeleton parent_instance; 1903s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 1903s # }; 1903s # 1903s # struct _OrgProjectUsefulInterfaceSkeletonClass 1903s # { 1903s # GDBusInterfaceSkeletonClass parent_class; 1903s # }; 1903s # 1903s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 1903s # 1903s # #if GLIB_CHECK_VERSION(2, 44, 0) 1903s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 1903s # #endif 1903s # 1903s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 1903s # 1903s # 1903s # G_END_DECLS 1903s # 1903s # #endif /* __STDOUT__ */ 1903s # Error: 1903s # 1903s # /tmp/tmpu_qhvqj5/tmphxoljt7t.xml: 1903s # 1903s # 1903s # 1903s # 1903s # 1903s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpu_qhvqj5/tmphxoljt7t.xml', '--output', '-', '--header', '--glib-min-required', '2.64'] 1903s # Return code: 0 1903s # Output: 1903s # /* 1903s # * This file is generated by gdbus-codegen, do not modify it. 1903s # * 1903s # * The license of this code is the same as for the D-Bus interface description 1903s # * it was derived from. Note that it links to GLib, so must comply with the 1903s # * LGPL linking clauses. 1903s # */ 1903s # 1903s # #ifndef __STDOUT__ 1903s # #define __STDOUT__ 1903s # 1903s # #include 1903s # 1903s # G_BEGIN_DECLS 1903s # 1903s # 1903s # /* ------------------------------------------------------------------------ */ 1903s # /* Declarations for org.project.UsefulInterface */ 1903s # 1903s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 1903s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 1903s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 1903s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 1903s # 1903s # struct _OrgProjectUsefulInterface; 1903s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 1903s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 1903s # 1903s # struct _OrgProjectUsefulInterfaceIface 1903s # { 1903s # GTypeInterface parent_iface; 1903s # 1903s # gboolean (*handle_useful_method) ( 1903s # OrgProjectUsefulInterface *object, 1903s # GDBusMethodInvocation *invocation); 1903s # 1903s # }; 1903s # 1903s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 1903s # 1903s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 1903s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 1903s # 1903s # 1903s # /* D-Bus method call completion functions: */ 1903s # void org_project_useful_interface_complete_useful_method ( 1903s # OrgProjectUsefulInterface *object, 1903s # GDBusMethodInvocation *invocation); 1903s # 1903s # 1903s # 1903s # /* D-Bus method calls: */ 1903s # void org_project_useful_interface_call_useful_method ( 1903s # OrgProjectUsefulInterface *proxy, 1903s # GDBusCallFlags call_flags, 1903s # gint timeout_msec, 1903s # GCancellable *cancellable, 1903s # GAsyncReadyCallback callback, 1903s # gpointer user_data); 1903s # 1903s # gboolean org_project_useful_interface_call_useful_method_finish ( 1903s # OrgProjectUsefulInterface *proxy, 1903s # GAsyncResult *res, 1903s # GError **error); 1903s # 1903s # gboolean org_project_useful_interface_call_useful_method_sync ( 1903s # OrgProjectUsefulInterface *proxy, 1903s # GDBusCallFlags call_flags, 1903s # gint timeout_msec, 1903s # GCancellable *cancellable, 1903s # GError **error); 1903s # 1903s # 1903s # 1903s # /* ---- */ 1903s # 1903s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 1903s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 1903s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1903s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1903s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1903s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1903s # 1903s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 1903s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 1903s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 1903s # 1903s # struct _OrgProjectUsefulInterfaceProxy 1903s # { 1903s # /*< private >*/ 1903s # GDBusProxy parent_instance; 1903s # OrgProjectUsefulInterfaceProxyPrivate *priv; 1903s # }; 1903s # 1903s # struct _OrgProjectUsefulInterfaceProxyClass 1903s # { 1903s # GDBusProxyClass parent_class; 1903s # }; 1903s # 1903s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 1903s # 1903s # #if GLIB_CHECK_VERSION(2, 44, 0) 1903s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 1903s # #endif 1903s # 1903s # void org_project_useful_interface_proxy_new ( 1903s # GDBusConnection *connection, 1903s # GDBusProxyFlags flags, 1903s # const gchar *name, 1903s # const gchar *object_path, 1903s # GCancellable *cancellable, 1903s # GAsyncReadyCallback callback, 1903s # gpointer user_data); 1903s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 1903s # GAsyncResult *res, 1903s # GError **error); 1903s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 1903s # GDBusConnection *connection, 1903s # GDBusProxyFlags flags, 1903s # const gchar *name, 1903s # const gchar *object_path, 1903s # GCancellable *cancellable, 1903s # GError **error); 1903s # 1903s # void org_project_useful_interface_proxy_new_for_bus ( 1903s # GBusType bus_type, 1903s # GDBusProxyFlags flags, 1903s # const gchar *name, 1903s # const gchar *object_path, 1903s # GCancellable *cancellable, 1903s # GAsyncReadyCallback callback, 1903s # gpointer user_data); 1903s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 1903s # GAsyncResult *res, 1903s # GError **error); 1903s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 1903s # GBusType bus_type, 1903s # GDBusProxyFlags flags, 1903s # const gchar *name, 1903s # const gchar *object_path, 1903s # GCancellable *cancellable, 1903s # GError **error); 1903s # 1903s # 1903s # /* ---- */ 1903s # 1903s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 1903s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 1903s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1903s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1903s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1903s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1903s # 1903s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 1903s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 1903s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 1903s # 1903s # struct _OrgProjectUsefulInterfaceSkeleton 1903s # { 1903s # /*< private >*/ 1903s # GDBusInterfaceSkeleton parent_instance; 1903s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 1903s # }; 1903s # 1903s # struct _OrgProjectUsefulInterfaceSkeletonClass 1903s # { 1903s # GDBusInterfaceSkeletonClass parent_class; 1903s # }; 1903s # 1903s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 1903s # 1903s # #if GLIB_CHECK_VERSION(2, 44, 0) 1903s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 1903s # #endif 1903s # 1903s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 1903s # 1903s # 1903s # G_END_DECLS 1903s # 1903s # #endif /* __STDOUT__ */ 1903s # Error: 1904s ok 2 __main__.TestCodegen.test_dbus_types 1904s # gdbus-codegen: /usr/bin/gdbus-codegen 1904s # tmpdir: /tmp/tmps4mkgta1 1904s # /tmp/tmps4mkgta1/tmpwwr8sw6o.xml: 1904s # 1904s # 1904s # 1904s # 1904s # 1904s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps4mkgta1/tmpwwr8sw6o.xml', '--output', '-', '--body'] 1904s # Return code: 1 1904s # Output: 1904s # 1904s # Error: 1904s # ERROR: Bad signature "{vs}". "v" is not a valid type for dictionary keys at position 1. 1904s # /tmp/tmps4mkgta1/tmpfevh6uti.xml: 1904s # 1904s # 1904s # 1904s # 1904s # 1904s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps4mkgta1/tmpfevh6uti.xml', '--output', '-', '--body'] 1904s # Return code: 1 1904s # Output: 1904s # 1904s # Error: 1904s # ERROR: Bad signature "(ss(s{{sv}s}))". "{" is not a valid type for dictionary keys at position 6. 1904s # /tmp/tmps4mkgta1/tmppf09tzyi.xml: 1904s # 1904s # 1904s # 1904s # 1904s # 1904s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps4mkgta1/tmppf09tzyi.xml', '--output', '-', '--body'] 1904s # Return code: 1 1904s # Output: 1904s # 1904s # Error: 1904s # ERROR: Bad signature "{s". Error parsing string or brackets not closed. 1904s # /tmp/tmps4mkgta1/tmp438ypy1_.xml: 1904s # 1904s # 1904s # 1904s # 1904s # 1904s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps4mkgta1/tmp438ypy1_.xml', '--output', '-', '--body'] 1904s # Return code: 1 1904s # Output: 1904s # 1904s # Error: 1904s # ERROR: Bad signature "(s{sss})". Dict must end with "}" at position 5. 1904s # /tmp/tmps4mkgta1/tmpzkqv0h6k.xml: 1904s # 1904s # 1904s # 1904s # 1904s # 1904s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps4mkgta1/tmpzkqv0h6k.xml', '--output', '-', '--body'] 1904s # Return code: 1 1904s # Output: 1904s # 1904s # Error: 1904s # ERROR: Bad signature "z". "z" is not a valid D-Bus type. 1904s # /tmp/tmps4mkgta1/tmp632jc31t.xml: 1904s # 1904s # 1904s # 1904s # 1904s # 1904s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps4mkgta1/tmp632jc31t.xml', '--output', '-', '--body'] 1904s # Return code: 1 1904s # Output: 1904s # 1904s # Error: 1904s # ERROR: Bad signature "(ssms)". "m" is not a valid D-Bus type. 1904s # /tmp/tmps4mkgta1/tmpwbiwuowx.xml: 1904s # 1904s # 1904s # 1904s # 1904s # 1904s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps4mkgta1/tmpwbiwuowx.xml', '--output', '-', '--body'] 1904s # Return code: 1 1904s # Output: 1904s # 1904s # Error: 1904s # ERROR: Bad signature "(". Error parsing string or brackets not closed. 1904s # /tmp/tmps4mkgta1/tmpjinp_flc.xml: 1904s # 1904s # 1904s # 1904s # 1904s # 1904s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps4mkgta1/tmpjinp_flc.xml', '--output', '-', '--body'] 1904s # Return code: 1 1904s # Output: 1904s # 1904s # Error: 1904s # ERROR: Bad signature "(((ss))". Error parsing string or brackets not closed. 1904s # /tmp/tmps4mkgta1/tmp2awkpfjn.xml: 1904s # 1904s # 1904s # 1904s # 1904s # 1904s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps4mkgta1/tmp2awkpfjn.xml', '--output', '-', '--body'] 1904s # Return code: 1 1904s # Output: 1904s # 1904s # Error: 1904s # ERROR: Bad signature "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas". Too much recursion beginning at 129. 1904s # /tmp/tmps4mkgta1/tmp2tomsytj.xml: 1904s # 1904s # 1904s # 1904s # 1904s # 1904s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps4mkgta1/tmp2tomsytj.xml', '--output', '-', '--body'] 1904s # Return code: 1 1904s # Output: 1904s # 1904s # Error: 1904s # ERROR: D-Bus maximum signature length of 255 exceeded. 1904s # /tmp/tmps4mkgta1/tmp_0f2mcxh.xml: 1904s # 1904s # 1904s # 1904s # 1904s # 1904s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps4mkgta1/tmp_0f2mcxh.xml', '--output', '-', '--body'] 1904s # Return code: 1 1904s # Output: 1904s # 1904s # Error: 1904s # ERROR: D-Bus maximum signature length of 255 exceeded. 1904s # /tmp/tmps4mkgta1/tmpoc9li9zd.xml: 1904s # 1904s # 1904s # 1904s # 1904s # 1904s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps4mkgta1/tmpoc9li9zd.xml', '--output', '-', '--body'] 1904s # Return code: 1 1904s # Output: 1904s # 1904s # Error: 1904s # ERROR: Bad signature "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaa{sv})". Too much recursion beginning at 129. 1904s # /tmp/tmps4mkgta1/tmpc2c4mrxr.xml: 1904s # 1904s # 1904s # 1904s # 1904s # 1904s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps4mkgta1/tmpc2c4mrxr.xml', '--output', '-', '--body'] 1904s # Return code: 1 1904s # Output: 1904s # 1904s # Error: 1904s # ERROR: D-Bus maximum signature length of 255 exceeded. 1904s # /tmp/tmps4mkgta1/tmpsy2gbp98.xml: 1904s # 1904s # 1904s # 1904s # 1904s # 1904s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps4mkgta1/tmpsy2gbp98.xml', '--output', '-', '--body'] 1904s # Return code: 0 1904s # Output: 1904s # /* 1904s # * This file is generated by gdbus-codegen, do not modify it. 1904s # * 1904s # * The license of this code is the same as for the D-Bus interface description 1904s # * it was derived from. Note that it links to GLib, so must comply with the 1904s # * LGPL linking clauses. 1904s # */ 1904s # 1904s # #ifdef HAVE_CONFIG_H 1904s # # include "config.h" 1904s # #endif 1904s # 1904s # #include 1904s # #ifdef G_OS_UNIX 1904s # # include 1904s # #endif 1904s # 1904s # #ifdef G_ENABLE_DEBUG 1904s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1904s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1904s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1904s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1904s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1904s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1904s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1904s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1904s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1904s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1904s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1904s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1904s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1904s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1904s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1904s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1904s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1904s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1904s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1904s # #else /* !G_ENABLE_DEBUG */ 1904s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1904s # * Do not access GValues directly in your code. Instead, use the 1904s # * g_value_get_*() functions 1904s # */ 1904s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1904s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1904s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1904s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1904s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1904s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1904s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1904s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1904s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1904s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1904s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1904s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1904s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1904s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1904s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1904s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1904s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1904s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1904s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1904s # #endif /* !G_ENABLE_DEBUG */ 1904s # 1904s # typedef struct 1904s # { 1904s # GDBusArgInfo parent_struct; 1904s # gboolean use_gvariant; 1904s # } _ExtendedGDBusArgInfo; 1904s # 1904s # typedef struct 1904s # { 1904s # GDBusMethodInfo parent_struct; 1904s # const gchar *signal_name; 1904s # gboolean pass_fdlist; 1904s # } _ExtendedGDBusMethodInfo; 1904s # 1904s # typedef struct 1904s # { 1904s # GDBusSignalInfo parent_struct; 1904s # const gchar *signal_name; 1904s # } _ExtendedGDBusSignalInfo; 1904s # 1904s # typedef struct 1904s # { 1904s # GDBusPropertyInfo parent_struct; 1904s # const gchar *hyphen_name; 1904s # guint use_gvariant : 1; 1904s # guint emits_changed_signal : 1; 1904s # } _ExtendedGDBusPropertyInfo; 1904s # 1904s # typedef struct 1904s # { 1904s # GDBusInterfaceInfo parent_struct; 1904s # const gchar *hyphen_name; 1904s # } _ExtendedGDBusInterfaceInfo; 1904s # 1904s # typedef struct 1904s # { 1904s # const _ExtendedGDBusPropertyInfo *info; 1904s # guint prop_id; 1904s # GValue orig_value; /* the value before the change */ 1904s # } ChangedProperty; 1904s # 1904s # static void 1904s # _changed_property_free (ChangedProperty *data) 1904s # { 1904s # g_value_unset (&data->orig_value); 1904s # g_free (data); 1904s # } 1904s # 1904s # static gboolean 1904s # _g_strv_equal0 (gchar **a, gchar **b) 1904s # { 1904s # gboolean ret = FALSE; 1904s # guint n; 1904s # if (a == NULL && b == NULL) 1904s # { 1904s # ret = TRUE; 1904s # goto out; 1904s # } 1904s # if (a == NULL || b == NULL) 1904s # goto out; 1904s # if (g_strv_length (a) != g_strv_length (b)) 1904s # goto out; 1904s # for (n = 0; a[n] != NULL; n++) 1904s # if (g_strcmp0 (a[n], b[n]) != 0) 1904s # goto out; 1904s # ret = TRUE; 1904s # out: 1904s # return ret; 1904s # } 1904s # 1904s # static gboolean 1904s # _g_variant_equal0 (GVariant *a, GVariant *b) 1904s # { 1904s # gboolean ret = FALSE; 1904s # if (a == NULL && b == NULL) 1904s # { 1904s # ret = TRUE; 1904s # goto out; 1904s # } 1904s # if (a == NULL || b == NULL) 1904s # goto out; 1904s # ret = g_variant_equal (a, b); 1904s # out: 1904s # return ret; 1904s # } 1904s # 1904s # G_GNUC_UNUSED static gboolean 1904s # _g_value_equal (const GValue *a, const GValue *b) 1904s # { 1904s # gboolean ret = FALSE; 1904s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1904s # switch (G_VALUE_TYPE (a)) 1904s # { 1904s # case G_TYPE_BOOLEAN: 1904s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1904s # break; 1904s # case G_TYPE_UCHAR: 1904s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1904s # break; 1904s # case G_TYPE_INT: 1904s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1904s # break; 1904s # case G_TYPE_UINT: 1904s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1904s # break; 1904s # case G_TYPE_INT64: 1904s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1904s # break; 1904s # case G_TYPE_UINT64: 1904s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1904s # break; 1904s # case G_TYPE_DOUBLE: 1904s # { 1904s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1904s # gdouble da = g_value_get_double (a); 1904s # gdouble db = g_value_get_double (b); 1904s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1904s # } 1904s # break; 1904s # case G_TYPE_STRING: 1904s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1904s # break; 1904s # case G_TYPE_VARIANT: 1904s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1904s # break; 1904s # default: 1904s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1904s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1904s # else 1904s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1904s # break; 1904s # } 1904s # return ret; 1904s # } 1904s # 1904s # /* ------------------------------------------------------------------------ 1904s # * Code for interface GoodTypes 1904s # * ------------------------------------------------------------------------ 1904s # */ 1904s # 1904s # /** 1904s # * SECTION:GoodTypes 1904s # * @title: GoodTypes 1904s # * @short_description: Generated C code for the GoodTypes D-Bus interface 1904s # * 1904s # * This section contains code for working with the GoodTypes D-Bus interface in C. 1904s # */ 1904s # 1904s # /* ---- Introspection data for GoodTypes ---- */ 1904s # 1904s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 1904s # { 1904s # { 1904s # -1, 1904s # (gchar *) "GoodPropertyType", 1904s # (gchar *) "si{s{b(ybnqiuxtdh)}}{yv}{nv}{dv}", 1904s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1904s # NULL 1904s # }, 1904s # "good-property-type", 1904s # FALSE, 1904s # TRUE 1904s # }; 1904s # 1904s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 1904s # { 1904s # &_good_types_property_info_good_property_type.parent_struct, 1904s # NULL 1904s # }; 1904s # 1904s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 1904s # { 1904s # { 1904s # -1, 1904s # (gchar *) "GoodTypes", 1904s # NULL, 1904s # NULL, 1904s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 1904s # NULL 1904s # }, 1904s # "good-types", 1904s # }; 1904s # 1904s # 1904s # /** 1904s # * good_types_interface_info: 1904s # * 1904s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 1904s # * 1904s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1904s # */ 1904s # GDBusInterfaceInfo * 1904s # good_types_interface_info (void) 1904s # { 1904s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 1904s # } 1904s # 1904s # /** 1904s # * good_types_override_properties: 1904s # * @klass: The class structure for a #GObject derived class. 1904s # * @property_id_begin: The property id to assign to the first overridden property. 1904s # * 1904s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 1904s # * The properties are overridden in the order they are defined. 1904s # * 1904s # * Returns: The last property id. 1904s # */ 1904s # guint 1904s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 1904s # { 1904s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 1904s # return property_id_begin - 1; 1904s # } 1904s # 1904s # 1904s # 1904s # /** 1904s # * GoodTypes: 1904s # * 1904s # * Abstract interface type for the D-Bus interface GoodTypes. 1904s # */ 1904s # 1904s # /** 1904s # * GoodTypesIface: 1904s # * @parent_iface: The parent interface. 1904s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 1904s # * 1904s # * Virtual table for the D-Bus interface GoodTypes. 1904s # */ 1904s # 1904s # typedef GoodTypesIface GoodTypesInterface; 1904s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 1904s # 1904s # static void 1904s # good_types_default_init (GoodTypesIface *iface) 1904s # { 1904s # /* GObject properties for D-Bus properties: */ 1904s # /** 1904s # * GoodTypes:good-property-type: 1904s # * 1904s # * Represents the D-Bus property "GoodPropertyType". 1904s # * 1904s # * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side. 1904s # */ 1904s # g_object_interface_install_property (iface, 1904s # g_param_spec_variant ("good-property-type", "GoodPropertyType", "GoodPropertyType", G_VARIANT_TYPE ("si{s{b(ybnqiuxtdh)}}{yv}{nv}{dv}"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1904s # } 1904s # 1904s # /** 1904s # * good_types_get_good_property_type: (skip) 1904s # * @object: A GoodTypes. 1904s # * 1904s # * Gets the value of the "GoodPropertyType" D-Bus property. 1904s # * 1904s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1904s # * 1904s # * The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where @object was constructed. Use good_types_dup_good_property_type() if on another thread. 1904s # * 1904s # * Returns: (transfer none) (nullable): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. 1904s # */ 1904s # GVariant * 1904s # good_types_get_good_property_type (GoodTypes *object) 1904s # { 1904s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 1904s # 1904s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 1904s # } 1904s # 1904s # /** 1904s # * good_types_dup_good_property_type: (skip) 1904s # * @object: A GoodTypes. 1904s # * 1904s # * Gets a copy of the "GoodPropertyType" D-Bus property. 1904s # * 1904s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1904s # * 1904s # * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_variant_unref(). 1904s # */ 1904s # GVariant * 1904s # good_types_dup_good_property_type (GoodTypes *object) 1904s # { 1904s # GVariant *value; 1904s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 1904s # return value; 1904s # } 1904s # 1904s # /** 1904s # * good_types_set_good_property_type: (skip) 1904s # * @object: A GoodTypes. 1904s # * @value: The value to set. 1904s # * 1904s # * Sets the "GoodPropertyType" D-Bus property to @value. 1904s # * 1904s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1904s # */ 1904s # void 1904s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 1904s # { 1904s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 1904s # } 1904s # 1904s # /* ------------------------------------------------------------------------ */ 1904s # 1904s # /** 1904s # * GoodTypesProxy: 1904s # * 1904s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 1904s # */ 1904s # 1904s # /** 1904s # * GoodTypesProxyClass: 1904s # * @parent_class: The parent class. 1904s # * 1904s # * Class structure for GoodTypesProxy. 1904s # */ 1904s # 1904s # struct _GoodTypesProxyPrivate 1904s # { 1904s # GData *qdata; 1904s # }; 1904s # 1904s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 1904s # 1904s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1904s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1904s # G_ADD_PRIVATE (GoodTypesProxy) 1904s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1904s # 1904s # #else 1904s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1904s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1904s # 1904s # #endif 1904s # static void 1904s # good_types_proxy_finalize (GObject *object) 1904s # { 1904s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1904s # g_datalist_clear (&proxy->priv->qdata); 1904s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 1904s # } 1904s # 1904s # static void 1904s # good_types_proxy_get_property (GObject *object, 1904s # guint prop_id, 1904s # GValue *value, 1904s # GParamSpec *pspec G_GNUC_UNUSED) 1904s # { 1904s # const _ExtendedGDBusPropertyInfo *info; 1904s # GVariant *variant; 1904s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1904s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1904s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1904s # if (info->use_gvariant) 1904s # { 1904s # g_value_set_variant (value, variant); 1904s # } 1904s # else 1904s # { 1904s # if (variant != NULL) 1904s # g_dbus_gvariant_to_gvalue (variant, value); 1904s # } 1904s # if (variant != NULL) 1904s # g_variant_unref (variant); 1904s # } 1904s # 1904s # static void 1904s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 1904s # GAsyncResult *res, 1904s # gpointer user_data) 1904s # { 1904s # const _ExtendedGDBusPropertyInfo *info = user_data; 1904s # GError *error; 1904s # GVariant *_ret; 1904s # error = NULL; 1904s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1904s # if (!_ret) 1904s # { 1904s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 1904s # info->parent_struct.name, 1904s # error->message, g_quark_to_string (error->domain), error->code); 1904s # g_error_free (error); 1904s # } 1904s # else 1904s # { 1904s # g_variant_unref (_ret); 1904s # } 1904s # } 1904s # 1904s # static void 1904s # good_types_proxy_set_property (GObject *object, 1904s # guint prop_id, 1904s # const GValue *value, 1904s # GParamSpec *pspec G_GNUC_UNUSED) 1904s # { 1904s # const _ExtendedGDBusPropertyInfo *info; 1904s # GVariant *variant; 1904s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1904s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1904s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1904s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1904s # "org.freedesktop.DBus.Properties.Set", 1904s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 1904s # G_DBUS_CALL_FLAGS_NONE, 1904s # -1, 1904s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1904s # g_variant_unref (variant); 1904s # } 1904s # 1904s # static void 1904s # good_types_proxy_g_signal (GDBusProxy *proxy, 1904s # const gchar *sender_name G_GNUC_UNUSED, 1904s # const gchar *signal_name, 1904s # GVariant *parameters) 1904s # { 1904s # _ExtendedGDBusSignalInfo *info; 1904s # GVariantIter iter; 1904s # GVariant *child; 1904s # GValue *paramv; 1904s # gsize num_params; 1904s # gsize n; 1904s # guint signal_id; 1904s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 1904s # if (info == NULL) 1904s # return; 1904s # num_params = g_variant_n_children (parameters); 1904s # paramv = g_new0 (GValue, num_params + 1); 1904s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 1904s # g_value_set_object (¶mv[0], proxy); 1904s # g_variant_iter_init (&iter, parameters); 1904s # n = 1; 1904s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1904s # { 1904s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1904s # if (arg_info->use_gvariant) 1904s # { 1904s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1904s # g_value_set_variant (¶mv[n], child); 1904s # n++; 1904s # } 1904s # else 1904s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1904s # g_variant_unref (child); 1904s # } 1904s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1904s # g_signal_emitv (paramv, signal_id, 0, NULL); 1904s # for (n = 0; n < num_params + 1; n++) 1904s # g_value_unset (¶mv[n]); 1904s # g_free (paramv); 1904s # } 1904s # 1904s # static void 1904s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 1904s # GVariant *changed_properties, 1904s # const gchar *const *invalidated_properties) 1904s # { 1904s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 1904s # guint n; 1904s # const gchar *key; 1904s # GVariantIter *iter; 1904s # _ExtendedGDBusPropertyInfo *info; 1904s # g_variant_get (changed_properties, "a{sv}", &iter); 1904s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1904s # { 1904s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 1904s # g_datalist_remove_data (&proxy->priv->qdata, key); 1904s # if (info != NULL) 1904s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1904s # } 1904s # g_variant_iter_free (iter); 1904s # for (n = 0; invalidated_properties[n] != NULL; n++) 1904s # { 1904s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 1904s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1904s # if (info != NULL) 1904s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1904s # } 1904s # } 1904s # 1904s # static GVariant * 1904s # good_types_proxy_get_good_property_type (GoodTypes *object) 1904s # { 1904s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1904s # GVariant *variant; 1904s # GVariant *value = NULL; 1904s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 1904s # value = variant; 1904s # if (variant != NULL) 1904s # g_variant_unref (variant); 1904s # return value; 1904s # } 1904s # 1904s # static void 1904s # good_types_proxy_init (GoodTypesProxy *proxy) 1904s # { 1904s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1904s # proxy->priv = good_types_proxy_get_instance_private (proxy); 1904s # #else 1904s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 1904s # #endif 1904s # 1904s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 1904s # } 1904s # 1904s # static void 1904s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 1904s # { 1904s # GObjectClass *gobject_class; 1904s # GDBusProxyClass *proxy_class; 1904s # 1904s # gobject_class = G_OBJECT_CLASS (klass); 1904s # gobject_class->finalize = good_types_proxy_finalize; 1904s # gobject_class->get_property = good_types_proxy_get_property; 1904s # gobject_class->set_property = good_types_proxy_set_property; 1904s # 1904s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1904s # proxy_class->g_signal = good_types_proxy_g_signal; 1904s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 1904s # 1904s # good_types_override_properties (gobject_class, 1); 1904s # 1904s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1904s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 1904s # #endif 1904s # } 1904s # 1904s # static void 1904s # good_types_proxy_iface_init (GoodTypesIface *iface) 1904s # { 1904s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 1904s # } 1904s # 1904s # /** 1904s # * good_types_proxy_new: 1904s # * @connection: A #GDBusConnection. 1904s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1904s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1904s # * @object_path: An object path. 1904s # * @cancellable: (nullable): A #GCancellable or %NULL. 1904s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1904s # * @user_data: User data to pass to @callback. 1904s # * 1904s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 1904s # * 1904s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1904s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 1904s # * 1904s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 1904s # */ 1904s # void 1904s # good_types_proxy_new ( 1904s # GDBusConnection *connection, 1904s # GDBusProxyFlags flags, 1904s # const gchar *name, 1904s # const gchar *object_path, 1904s # GCancellable *cancellable, 1904s # GAsyncReadyCallback callback, 1904s # gpointer user_data) 1904s # { 1904s # g_async_initable_new_async (TYPE_GOOD_TYPES_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "GoodTypes", NULL); 1904s # } 1904s # 1904s # /** 1904s # * good_types_proxy_new_finish: 1904s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 1904s # * @error: Return location for error or %NULL 1904s # * 1904s # * Finishes an operation started with good_types_proxy_new(). 1904s # * 1904s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1904s # */ 1904s # GoodTypes * 1904s # good_types_proxy_new_finish ( 1904s # GAsyncResult *res, 1904s # GError **error) 1904s # { 1904s # GObject *ret; 1904s # GObject *source_object; 1904s # source_object = g_async_result_get_source_object (res); 1904s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1904s # g_object_unref (source_object); 1904s # if (ret != NULL) 1904s # return GOOD_TYPES (ret); 1904s # else 1904s # return NULL; 1904s # } 1904s # 1904s # /** 1904s # * good_types_proxy_new_sync: 1904s # * @connection: A #GDBusConnection. 1904s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1904s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1904s # * @object_path: An object path. 1904s # * @cancellable: (nullable): A #GCancellable or %NULL. 1904s # * @error: Return location for error or %NULL 1904s # * 1904s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 1904s # * 1904s # * The calling thread is blocked until a reply is received. 1904s # * 1904s # * See good_types_proxy_new() for the asynchronous version of this constructor. 1904s # * 1904s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1904s # */ 1904s # GoodTypes * 1904s # good_types_proxy_new_sync ( 1904s # GDBusConnection *connection, 1904s # GDBusProxyFlags flags, 1904s # const gchar *name, 1904s # const gchar *object_path, 1904s # GCancellable *cancellable, 1904s # GError **error) 1904s # { 1904s # GInitable *ret; 1904s # ret = g_initable_new (TYPE_GOOD_TYPES_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "GoodTypes", NULL); 1904s # if (ret != NULL) 1904s # return GOOD_TYPES (ret); 1904s # else 1904s # return NULL; 1904s # } 1904s # 1904s # 1904s # /** 1904s # * good_types_proxy_new_for_bus: 1904s # * @bus_type: A #GBusType. 1904s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1904s # * @name: A bus name (well-known or unique). 1904s # * @object_path: An object path. 1904s # * @cancellable: (nullable): A #GCancellable or %NULL. 1904s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1904s # * @user_data: User data to pass to @callback. 1904s # * 1904s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1904s # * 1904s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1904s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 1904s # * 1904s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1904s # */ 1904s # void 1904s # good_types_proxy_new_for_bus ( 1904s # GBusType bus_type, 1904s # GDBusProxyFlags flags, 1904s # const gchar *name, 1904s # const gchar *object_path, 1904s # GCancellable *cancellable, 1904s # GAsyncReadyCallback callback, 1904s # gpointer user_data) 1904s # { 1904s # g_async_initable_new_async (TYPE_GOOD_TYPES_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "GoodTypes", NULL); 1904s # } 1904s # 1904s # /** 1904s # * good_types_proxy_new_for_bus_finish: 1904s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 1904s # * @error: Return location for error or %NULL 1904s # * 1904s # * Finishes an operation started with good_types_proxy_new_for_bus(). 1904s # * 1904s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1904s # */ 1904s # GoodTypes * 1904s # good_types_proxy_new_for_bus_finish ( 1904s # GAsyncResult *res, 1904s # GError **error) 1904s # { 1904s # GObject *ret; 1904s # GObject *source_object; 1904s # source_object = g_async_result_get_source_object (res); 1904s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1904s # g_object_unref (source_object); 1904s # if (ret != NULL) 1904s # return GOOD_TYPES (ret); 1904s # else 1904s # return NULL; 1904s # } 1904s # 1904s # /** 1904s # * good_types_proxy_new_for_bus_sync: 1904s # * @bus_type: A #GBusType. 1904s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1904s # * @name: A bus name (well-known or unique). 1904s # * @object_path: An object path. 1904s # * @cancellable: (nullable): A #GCancellable or %NULL. 1904s # * @error: Return location for error or %NULL 1904s # * 1904s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1904s # * 1904s # * The calling thread is blocked until a reply is received. 1904s # * 1904s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 1904s # * 1904s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1904s # */ 1904s # GoodTypes * 1904s # good_types_proxy_new_for_bus_sync ( 1904s # GBusType bus_type, 1904s # GDBusProxyFlags flags, 1904s # const gchar *name, 1904s # const gchar *object_path, 1904s # GCancellable *cancellable, 1904s # GError **error) 1904s # { 1904s # GInitable *ret; 1904s # ret = g_initable_new (TYPE_GOOD_TYPES_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "GoodTypes", NULL); 1904s # if (ret != NULL) 1904s # return GOOD_TYPES (ret); 1904s # else 1904s # return NULL; 1904s # } 1904s # 1904s # 1904s # /* ------------------------------------------------------------------------ */ 1904s # 1904s # /** 1904s # * GoodTypesSkeleton: 1904s # * 1904s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 1904s # */ 1904s # 1904s # /** 1904s # * GoodTypesSkeletonClass: 1904s # * @parent_class: The parent class. 1904s # * 1904s # * Class structure for GoodTypesSkeleton. 1904s # */ 1904s # 1904s # struct _GoodTypesSkeletonPrivate 1904s # { 1904s # GValue *properties; 1904s # GList *changed_properties; 1904s # GSource *changed_properties_idle_source; 1904s # GMainContext *context; 1904s # GMutex lock; 1904s # }; 1904s # 1904s # static void 1904s # _good_types_skeleton_handle_method_call ( 1904s # GDBusConnection *connection G_GNUC_UNUSED, 1904s # const gchar *sender G_GNUC_UNUSED, 1904s # const gchar *object_path G_GNUC_UNUSED, 1904s # const gchar *interface_name, 1904s # const gchar *method_name, 1904s # GVariant *parameters, 1904s # GDBusMethodInvocation *invocation, 1904s # gpointer user_data) 1904s # { 1904s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1904s # _ExtendedGDBusMethodInfo *info; 1904s # GVariantIter iter; 1904s # GVariant *child; 1904s # GValue *paramv; 1904s # gsize num_params; 1904s # guint num_extra; 1904s # gsize n; 1904s # guint signal_id; 1904s # GValue return_value = G_VALUE_INIT; 1904s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1904s # g_assert (info != NULL); 1904s # num_params = g_variant_n_children (parameters); 1904s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1904s # n = 0; 1904s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 1904s # g_value_set_object (¶mv[n++], skeleton); 1904s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1904s # g_value_set_object (¶mv[n++], invocation); 1904s # if (info->pass_fdlist) 1904s # { 1904s # #ifdef G_OS_UNIX 1904s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1904s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1904s # #else 1904s # g_assert_not_reached (); 1904s # #endif 1904s # } 1904s # g_variant_iter_init (&iter, parameters); 1904s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1904s # { 1904s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1904s # if (arg_info->use_gvariant) 1904s # { 1904s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1904s # g_value_set_variant (¶mv[n], child); 1904s # n++; 1904s # } 1904s # else 1904s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1904s # g_variant_unref (child); 1904s # } 1904s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1904s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1904s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1904s # if (!g_value_get_boolean (&return_value)) 1904s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1904s # g_value_unset (&return_value); 1904s # for (n = 0; n < num_params + num_extra; n++) 1904s # g_value_unset (¶mv[n]); 1904s # g_free (paramv); 1904s # } 1904s # 1904s # static GVariant * 1904s # _good_types_skeleton_handle_get_property ( 1904s # GDBusConnection *connection G_GNUC_UNUSED, 1904s # const gchar *sender G_GNUC_UNUSED, 1904s # const gchar *object_path G_GNUC_UNUSED, 1904s # const gchar *interface_name G_GNUC_UNUSED, 1904s # const gchar *property_name, 1904s # GError **error, 1904s # gpointer user_data) 1904s # { 1904s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1904s # GValue value = G_VALUE_INIT; 1904s # GParamSpec *pspec; 1904s # _ExtendedGDBusPropertyInfo *info; 1904s # GVariant *ret; 1904s # ret = NULL; 1904s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1904s # g_assert (info != NULL); 1904s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1904s # if (pspec == NULL) 1904s # { 1904s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1904s # } 1904s # else 1904s # { 1904s # g_value_init (&value, pspec->value_type); 1904s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1904s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1904s # g_value_unset (&value); 1904s # } 1904s # return ret; 1904s # } 1904s # 1904s # static gboolean 1904s # _good_types_skeleton_handle_set_property ( 1904s # GDBusConnection *connection G_GNUC_UNUSED, 1904s # const gchar *sender G_GNUC_UNUSED, 1904s # const gchar *object_path G_GNUC_UNUSED, 1904s # const gchar *interface_name G_GNUC_UNUSED, 1904s # const gchar *property_name, 1904s # GVariant *variant, 1904s # GError **error, 1904s # gpointer user_data) 1904s # { 1904s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1904s # GValue value = G_VALUE_INIT; 1904s # GParamSpec *pspec; 1904s # _ExtendedGDBusPropertyInfo *info; 1904s # gboolean ret; 1904s # ret = FALSE; 1904s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1904s # g_assert (info != NULL); 1904s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1904s # if (pspec == NULL) 1904s # { 1904s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1904s # } 1904s # else 1904s # { 1904s # if (info->use_gvariant) 1904s # g_value_set_variant (&value, variant); 1904s # else 1904s # g_dbus_gvariant_to_gvalue (variant, &value); 1904s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1904s # g_value_unset (&value); 1904s # ret = TRUE; 1904s # } 1904s # return ret; 1904s # } 1904s # 1904s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 1904s # { 1904s # _good_types_skeleton_handle_method_call, 1904s # _good_types_skeleton_handle_get_property, 1904s # _good_types_skeleton_handle_set_property, 1904s # {NULL} 1904s # }; 1904s # 1904s # static GDBusInterfaceInfo * 1904s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1904s # { 1904s # return good_types_interface_info (); 1904s # } 1904s # 1904s # static GDBusInterfaceVTable * 1904s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1904s # { 1904s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 1904s # } 1904s # 1904s # static GVariant * 1904s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1904s # { 1904s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1904s # 1904s # GVariantBuilder builder; 1904s # guint n; 1904s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1904s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1904s # #else 1904s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1904s # #endif 1904s # if (_good_types_interface_info.parent_struct.properties == NULL) 1904s # goto out; 1904s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 1904s # { 1904s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 1904s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1904s # { 1904s # GVariant *value; 1904s # value = _good_types_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "GoodTypes", info->name, NULL, skeleton); 1904s # if (value != NULL) 1904s # { 1904s # g_variant_take_ref (value); 1904s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1904s # g_variant_unref (value); 1904s # } 1904s # } 1904s # } 1904s # out: 1904s # return g_variant_builder_end (&builder); 1904s # } 1904s # 1904s # static gboolean _good_types_emit_changed (gpointer user_data); 1904s # 1904s # static void 1904s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1904s # { 1904s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1904s # gboolean emit_changed = FALSE; 1904s # 1904s # g_mutex_lock (&skeleton->priv->lock); 1904s # if (skeleton->priv->changed_properties_idle_source != NULL) 1904s # { 1904s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1904s # skeleton->priv->changed_properties_idle_source = NULL; 1904s # emit_changed = TRUE; 1904s # } 1904s # g_mutex_unlock (&skeleton->priv->lock); 1904s # 1904s # if (emit_changed) 1904s # _good_types_emit_changed (skeleton); 1904s # } 1904s # 1904s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 1904s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1904s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1904s # G_ADD_PRIVATE (GoodTypesSkeleton) 1904s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1904s # 1904s # #else 1904s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1904s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1904s # 1904s # #endif 1904s # static void 1904s # good_types_skeleton_finalize (GObject *object) 1904s # { 1904s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1904s # guint n; 1904s # for (n = 0; n < 1; n++) 1904s # g_value_unset (&skeleton->priv->properties[n]); 1904s # g_free (skeleton->priv->properties); 1904s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1904s # if (skeleton->priv->changed_properties_idle_source != NULL) 1904s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1904s # g_main_context_unref (skeleton->priv->context); 1904s # g_mutex_clear (&skeleton->priv->lock); 1904s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 1904s # } 1904s # 1904s # static void 1904s # good_types_skeleton_get_property (GObject *object, 1904s # guint prop_id, 1904s # GValue *value, 1904s # GParamSpec *pspec G_GNUC_UNUSED) 1904s # { 1904s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1904s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1904s # g_mutex_lock (&skeleton->priv->lock); 1904s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1904s # g_mutex_unlock (&skeleton->priv->lock); 1904s # } 1904s # 1904s # static gboolean 1904s # _good_types_emit_changed (gpointer user_data) 1904s # { 1904s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1904s # GList *l; 1904s # GVariantBuilder builder; 1904s # GVariantBuilder invalidated_builder; 1904s # guint num_changes; 1904s # 1904s # g_mutex_lock (&skeleton->priv->lock); 1904s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1904s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1904s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1904s # #else 1904s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1904s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1904s # #endif 1904s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1904s # { 1904s # ChangedProperty *cp = l->data; 1904s # GVariant *variant; 1904s # const GValue *cur_value; 1904s # 1904s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1904s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1904s # { 1904s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1904s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1904s # g_variant_unref (variant); 1904s # num_changes++; 1904s # } 1904s # } 1904s # if (num_changes > 0) 1904s # { 1904s # GList *connections, *ll; 1904s # GVariant *signal_variant; 1904s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 1904s # &builder, &invalidated_builder)); 1904s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1904s # for (ll = connections; ll != NULL; ll = ll->next) 1904s # { 1904s # GDBusConnection *connection = ll->data; 1904s # 1904s # g_dbus_connection_emit_signal (connection, 1904s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1904s # "org.freedesktop.DBus.Properties", 1904s # "PropertiesChanged", 1904s # signal_variant, 1904s # NULL); 1904s # } 1904s # g_variant_unref (signal_variant); 1904s # g_list_free_full (connections, g_object_unref); 1904s # } 1904s # else 1904s # { 1904s # g_variant_builder_clear (&builder); 1904s # g_variant_builder_clear (&invalidated_builder); 1904s # } 1904s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1904s # skeleton->priv->changed_properties = NULL; 1904s # skeleton->priv->changed_properties_idle_source = NULL; 1904s # g_mutex_unlock (&skeleton->priv->lock); 1904s # return FALSE; 1904s # } 1904s # 1904s # static void 1904s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1904s # { 1904s # ChangedProperty *cp; 1904s # GList *l; 1904s # cp = NULL; 1904s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1904s # { 1904s # ChangedProperty *i_cp = l->data; 1904s # if (i_cp->info == info) 1904s # { 1904s # cp = i_cp; 1904s # break; 1904s # } 1904s # } 1904s # if (cp == NULL) 1904s # { 1904s # cp = g_new0 (ChangedProperty, 1); 1904s # cp->prop_id = prop_id; 1904s # cp->info = info; 1904s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1904s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1904s # g_value_copy (orig_value, &cp->orig_value); 1904s # } 1904s # } 1904s # 1904s # static void 1904s # good_types_skeleton_notify (GObject *object, 1904s # GParamSpec *pspec G_GNUC_UNUSED) 1904s # { 1904s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1904s # g_mutex_lock (&skeleton->priv->lock); 1904s # if (skeleton->priv->changed_properties != NULL && 1904s # skeleton->priv->changed_properties_idle_source == NULL) 1904s # { 1904s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1904s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1904s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1904s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 1904s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1904s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1904s # } 1904s # g_mutex_unlock (&skeleton->priv->lock); 1904s # } 1904s # 1904s # static void 1904s # good_types_skeleton_set_property (GObject *object, 1904s # guint prop_id, 1904s # const GValue *value, 1904s # GParamSpec *pspec) 1904s # { 1904s # const _ExtendedGDBusPropertyInfo *info; 1904s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1904s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1904s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1904s # g_mutex_lock (&skeleton->priv->lock); 1904s # g_object_freeze_notify (object); 1904s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1904s # { 1904s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1904s # info->emits_changed_signal) 1904s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1904s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1904s # g_object_notify_by_pspec (object, pspec); 1904s # } 1904s # g_mutex_unlock (&skeleton->priv->lock); 1904s # g_object_thaw_notify (object); 1904s # } 1904s # 1904s # static void 1904s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 1904s # { 1904s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1904s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 1904s # #else 1904s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 1904s # #endif 1904s # 1904s # g_mutex_init (&skeleton->priv->lock); 1904s # skeleton->priv->context = g_main_context_ref_thread_default (); 1904s # skeleton->priv->properties = g_new0 (GValue, 1); 1904s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 1904s # } 1904s # 1904s # static GVariant * 1904s # good_types_skeleton_get_good_property_type (GoodTypes *object) 1904s # { 1904s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1904s # GVariant *value; 1904s # g_mutex_lock (&skeleton->priv->lock); 1904s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 1904s # g_mutex_unlock (&skeleton->priv->lock); 1904s # return value; 1904s # } 1904s # 1904s # static void 1904s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 1904s # { 1904s # GObjectClass *gobject_class; 1904s # GDBusInterfaceSkeletonClass *skeleton_class; 1904s # 1904s # gobject_class = G_OBJECT_CLASS (klass); 1904s # gobject_class->finalize = good_types_skeleton_finalize; 1904s # gobject_class->get_property = good_types_skeleton_get_property; 1904s # gobject_class->set_property = good_types_skeleton_set_property; 1904s # gobject_class->notify = good_types_skeleton_notify; 1904s # 1904s # 1904s # good_types_override_properties (gobject_class, 1); 1904s # 1904s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1904s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 1904s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 1904s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 1904s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 1904s # 1904s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1904s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 1904s # #endif 1904s # } 1904s # 1904s # static void 1904s # good_types_skeleton_iface_init (GoodTypesIface *iface) 1904s # { 1904s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 1904s # } 1904s # 1904s # /** 1904s # * good_types_skeleton_new: 1904s # * 1904s # * Creates a skeleton object for the D-Bus interface GoodTypes. 1904s # * 1904s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 1904s # */ 1904s # GoodTypes * 1904s # good_types_skeleton_new (void) 1904s # { 1904s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 1904s # } 1904s # Error: 1904s # 1904s # /tmp/tmps4mkgta1/tmptqpuq2_b.xml: 1904s # 1904s # 1904s # 1904s # 1904s # 1904s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps4mkgta1/tmptqpuq2_b.xml', '--output', '-', '--body'] 1904s # Return code: 0 1904s # Output: 1904s # /* 1904s # * This file is generated by gdbus-codegen, do not modify it. 1904s # * 1904s # * The license of this code is the same as for the D-Bus interface description 1904s # * it was derived from. Note that it links to GLib, so must comply with the 1904s # * LGPL linking clauses. 1904s # */ 1904s # 1904s # #ifdef HAVE_CONFIG_H 1904s # # include "config.h" 1904s # #endif 1904s # 1904s # #include 1904s # #ifdef G_OS_UNIX 1904s # # include 1904s # #endif 1904s # 1904s # #ifdef G_ENABLE_DEBUG 1904s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1904s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1904s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1904s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1904s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1904s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1904s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1904s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1904s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1904s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1904s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1904s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1904s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1904s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1904s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1904s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1904s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1904s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1904s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1904s # #else /* !G_ENABLE_DEBUG */ 1904s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1904s # * Do not access GValues directly in your code. Instead, use the 1904s # * g_value_get_*() functions 1904s # */ 1904s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1904s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1904s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1904s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1904s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1904s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1904s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1904s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1904s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1904s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1904s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1904s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1904s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1904s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1904s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1904s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1904s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1904s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1904s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1904s # #endif /* !G_ENABLE_DEBUG */ 1904s # 1904s # typedef struct 1904s # { 1904s # GDBusArgInfo parent_struct; 1904s # gboolean use_gvariant; 1904s # } _ExtendedGDBusArgInfo; 1904s # 1904s # typedef struct 1904s # { 1904s # GDBusMethodInfo parent_struct; 1904s # const gchar *signal_name; 1904s # gboolean pass_fdlist; 1904s # } _ExtendedGDBusMethodInfo; 1904s # 1904s # typedef struct 1904s # { 1904s # GDBusSignalInfo parent_struct; 1904s # const gchar *signal_name; 1904s # } _ExtendedGDBusSignalInfo; 1904s # 1904s # typedef struct 1904s # { 1904s # GDBusPropertyInfo parent_struct; 1904s # const gchar *hyphen_name; 1904s # guint use_gvariant : 1; 1904s # guint emits_changed_signal : 1; 1904s # } _ExtendedGDBusPropertyInfo; 1904s # 1904s # typedef struct 1904s # { 1904s # GDBusInterfaceInfo parent_struct; 1904s # const gchar *hyphen_name; 1904s # } _ExtendedGDBusInterfaceInfo; 1904s # 1904s # typedef struct 1904s # { 1904s # const _ExtendedGDBusPropertyInfo *info; 1904s # guint prop_id; 1904s # GValue orig_value; /* the value before the change */ 1904s # } ChangedProperty; 1904s # 1904s # static void 1904s # _changed_property_free (ChangedProperty *data) 1904s # { 1904s # g_value_unset (&data->orig_value); 1904s # g_free (data); 1904s # } 1904s # 1904s # static gboolean 1904s # _g_strv_equal0 (gchar **a, gchar **b) 1904s # { 1904s # gboolean ret = FALSE; 1904s # guint n; 1904s # if (a == NULL && b == NULL) 1904s # { 1904s # ret = TRUE; 1904s # goto out; 1904s # } 1904s # if (a == NULL || b == NULL) 1904s # goto out; 1904s # if (g_strv_length (a) != g_strv_length (b)) 1904s # goto out; 1904s # for (n = 0; a[n] != NULL; n++) 1904s # if (g_strcmp0 (a[n], b[n]) != 0) 1904s # goto out; 1904s # ret = TRUE; 1904s # out: 1904s # return ret; 1904s # } 1904s # 1904s # static gboolean 1904s # _g_variant_equal0 (GVariant *a, GVariant *b) 1904s # { 1904s # gboolean ret = FALSE; 1904s # if (a == NULL && b == NULL) 1904s # { 1904s # ret = TRUE; 1904s # goto out; 1904s # } 1904s # if (a == NULL || b == NULL) 1904s # goto out; 1904s # ret = g_variant_equal (a, b); 1904s # out: 1904s # return ret; 1904s # } 1904s # 1904s # G_GNUC_UNUSED static gboolean 1904s # _g_value_equal (const GValue *a, const GValue *b) 1904s # { 1904s # gboolean ret = FALSE; 1904s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1904s # switch (G_VALUE_TYPE (a)) 1904s # { 1904s # case G_TYPE_BOOLEAN: 1904s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1904s # break; 1904s # case G_TYPE_UCHAR: 1904s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1904s # break; 1904s # case G_TYPE_INT: 1904s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1904s # break; 1904s # case G_TYPE_UINT: 1904s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1904s # break; 1904s # case G_TYPE_INT64: 1904s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1904s # break; 1904s # case G_TYPE_UINT64: 1904s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1904s # break; 1904s # case G_TYPE_DOUBLE: 1904s # { 1904s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1904s # gdouble da = g_value_get_double (a); 1904s # gdouble db = g_value_get_double (b); 1904s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1904s # } 1904s # break; 1904s # case G_TYPE_STRING: 1904s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1904s # break; 1904s # case G_TYPE_VARIANT: 1904s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1904s # break; 1904s # default: 1904s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1904s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1904s # else 1904s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1904s # break; 1904s # } 1904s # return ret; 1904s # } 1904s # 1904s # /* ------------------------------------------------------------------------ 1904s # * Code for interface GoodTypes 1904s # * ------------------------------------------------------------------------ 1904s # */ 1904s # 1904s # /** 1904s # * SECTION:GoodTypes 1904s # * @title: GoodTypes 1904s # * @short_description: Generated C code for the GoodTypes D-Bus interface 1904s # * 1904s # * This section contains code for working with the GoodTypes D-Bus interface in C. 1904s # */ 1904s # 1904s # /* ---- Introspection data for GoodTypes ---- */ 1904s # 1904s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 1904s # { 1904s # { 1904s # -1, 1904s # (gchar *) "GoodPropertyType", 1904s # (gchar *) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas", 1904s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1904s # NULL 1904s # }, 1904s # "good-property-type", 1904s # FALSE, 1904s # TRUE 1904s # }; 1904s # 1904s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 1904s # { 1904s # &_good_types_property_info_good_property_type.parent_struct, 1904s # NULL 1904s # }; 1904s # 1904s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 1904s # { 1904s # { 1904s # -1, 1904s # (gchar *) "GoodTypes", 1904s # NULL, 1904s # NULL, 1904s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 1904s # NULL 1904s # }, 1904s # "good-types", 1904s # }; 1904s # 1904s # 1904s # /** 1904s # * good_types_interface_info: 1904s # * 1904s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 1904s # * 1904s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1904s # */ 1904s # GDBusInterfaceInfo * 1904s # good_types_interface_info (void) 1904s # { 1904s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 1904s # } 1904s # 1904s # /** 1904s # * good_types_override_properties: 1904s # * @klass: The class structure for a #GObject derived class. 1904s # * @property_id_begin: The property id to assign to the first overridden property. 1904s # * 1904s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 1904s # * The properties are overridden in the order they are defined. 1904s # * 1904s # * Returns: The last property id. 1904s # */ 1904s # guint 1904s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 1904s # { 1904s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 1904s # return property_id_begin - 1; 1904s # } 1904s # 1904s # 1904s # 1904s # /** 1904s # * GoodTypes: 1904s # * 1904s # * Abstract interface type for the D-Bus interface GoodTypes. 1904s # */ 1904s # 1904s # /** 1904s # * GoodTypesIface: 1904s # * @parent_iface: The parent interface. 1904s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 1904s # * 1904s # * Virtual table for the D-Bus interface GoodTypes. 1904s # */ 1904s # 1904s # typedef GoodTypesIface GoodTypesInterface; 1904s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 1904s # 1904s # static void 1904s # good_types_default_init (GoodTypesIface *iface) 1904s # { 1904s # /* GObject properties for D-Bus properties: */ 1904s # /** 1904s # * GoodTypes:good-property-type: 1904s # * 1904s # * Represents the D-Bus property "GoodPropertyType". 1904s # * 1904s # * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side. 1904s # */ 1904s # g_object_interface_install_property (iface, 1904s # g_param_spec_variant ("good-property-type", "GoodPropertyType", "GoodPropertyType", G_VARIANT_TYPE ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1904s # } 1904s # 1904s # /** 1904s # * good_types_get_good_property_type: (skip) 1904s # * @object: A GoodTypes. 1904s # * 1904s # * Gets the value of the "GoodPropertyType" D-Bus property. 1904s # * 1904s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1904s # * 1904s # * The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where @object was constructed. Use good_types_dup_good_property_type() if on another thread. 1904s # * 1904s # * Returns: (transfer none) (nullable): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. 1904s # */ 1904s # GVariant * 1904s # good_types_get_good_property_type (GoodTypes *object) 1904s # { 1904s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 1904s # 1904s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 1904s # } 1904s # 1904s # /** 1904s # * good_types_dup_good_property_type: (skip) 1904s # * @object: A GoodTypes. 1904s # * 1904s # * Gets a copy of the "GoodPropertyType" D-Bus property. 1904s # * 1904s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1904s # * 1904s # * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_variant_unref(). 1904s # */ 1904s # GVariant * 1904s # good_types_dup_good_property_type (GoodTypes *object) 1904s # { 1904s # GVariant *value; 1904s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 1904s # return value; 1904s # } 1904s # 1904s # /** 1904s # * good_types_set_good_property_type: (skip) 1904s # * @object: A GoodTypes. 1904s # * @value: The value to set. 1904s # * 1904s # * Sets the "GoodPropertyType" D-Bus property to @value. 1904s # * 1904s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1904s # */ 1904s # void 1904s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 1904s # { 1904s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 1904s # } 1904s # 1904s # /* ------------------------------------------------------------------------ */ 1904s # 1904s # /** 1904s # * GoodTypesProxy: 1904s # * 1904s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 1904s # */ 1904s # 1904s # /** 1904s # * GoodTypesProxyClass: 1904s # * @parent_class: The parent class. 1904s # * 1904s # * Class structure for GoodTypesProxy. 1904s # */ 1904s # 1904s # struct _GoodTypesProxyPrivate 1904s # { 1904s # GData *qdata; 1904s # }; 1904s # 1904s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 1904s # 1904s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1904s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1904s # G_ADD_PRIVATE (GoodTypesProxy) 1904s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1904s # 1904s # #else 1904s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1904s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1904s # 1904s # #endif 1904s # static void 1904s # good_types_proxy_finalize (GObject *object) 1904s # { 1904s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1904s # g_datalist_clear (&proxy->priv->qdata); 1904s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 1904s # } 1904s # 1904s # static void 1904s # good_types_proxy_get_property (GObject *object, 1904s # guint prop_id, 1904s # GValue *value, 1904s # GParamSpec *pspec G_GNUC_UNUSED) 1904s # { 1904s # const _ExtendedGDBusPropertyInfo *info; 1904s # GVariant *variant; 1904s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1904s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1904s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1904s # if (info->use_gvariant) 1904s # { 1904s # g_value_set_variant (value, variant); 1904s # } 1904s # else 1904s # { 1904s # if (variant != NULL) 1904s # g_dbus_gvariant_to_gvalue (variant, value); 1904s # } 1904s # if (variant != NULL) 1904s # g_variant_unref (variant); 1904s # } 1904s # 1904s # static void 1904s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 1904s # GAsyncResult *res, 1904s # gpointer user_data) 1904s # { 1904s # const _ExtendedGDBusPropertyInfo *info = user_data; 1904s # GError *error; 1904s # GVariant *_ret; 1904s # error = NULL; 1904s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1904s # if (!_ret) 1904s # { 1904s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 1904s # info->parent_struct.name, 1904s # error->message, g_quark_to_string (error->domain), error->code); 1904s # g_error_free (error); 1904s # } 1904s # else 1904s # { 1904s # g_variant_unref (_ret); 1904s # } 1904s # } 1904s # 1904s # static void 1904s # good_types_proxy_set_property (GObject *object, 1904s # guint prop_id, 1904s # const GValue *value, 1904s # GParamSpec *pspec G_GNUC_UNUSED) 1904s # { 1904s # const _ExtendedGDBusPropertyInfo *info; 1904s # GVariant *variant; 1904s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1904s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1904s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1904s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1904s # "org.freedesktop.DBus.Properties.Set", 1904s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 1904s # G_DBUS_CALL_FLAGS_NONE, 1904s # -1, 1904s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1904s # g_variant_unref (variant); 1904s # } 1904s # 1904s # static void 1904s # good_types_proxy_g_signal (GDBusProxy *proxy, 1904s # const gchar *sender_name G_GNUC_UNUSED, 1904s # const gchar *signal_name, 1904s # GVariant *parameters) 1904s # { 1904s # _ExtendedGDBusSignalInfo *info; 1904s # GVariantIter iter; 1904s # GVariant *child; 1904s # GValue *paramv; 1904s # gsize num_params; 1904s # gsize n; 1904s # guint signal_id; 1904s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 1904s # if (info == NULL) 1904s # return; 1904s # num_params = g_variant_n_children (parameters); 1904s # paramv = g_new0 (GValue, num_params + 1); 1904s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 1904s # g_value_set_object (¶mv[0], proxy); 1904s # g_variant_iter_init (&iter, parameters); 1904s # n = 1; 1904s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1904s # { 1904s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1904s # if (arg_info->use_gvariant) 1904s # { 1904s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1904s # g_value_set_variant (¶mv[n], child); 1904s # n++; 1904s # } 1904s # else 1904s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1904s # g_variant_unref (child); 1904s # } 1904s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1904s # g_signal_emitv (paramv, signal_id, 0, NULL); 1904s # for (n = 0; n < num_params + 1; n++) 1904s # g_value_unset (¶mv[n]); 1904s # g_free (paramv); 1904s # } 1904s # 1904s # static void 1904s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 1904s # GVariant *changed_properties, 1904s # const gchar *const *invalidated_properties) 1904s # { 1904s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 1904s # guint n; 1904s # const gchar *key; 1904s # GVariantIter *iter; 1904s # _ExtendedGDBusPropertyInfo *info; 1904s # g_variant_get (changed_properties, "a{sv}", &iter); 1904s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1904s # { 1904s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 1904s # g_datalist_remove_data (&proxy->priv->qdata, key); 1904s # if (info != NULL) 1904s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1904s # } 1904s # g_variant_iter_free (iter); 1904s # for (n = 0; invalidated_properties[n] != NULL; n++) 1904s # { 1904s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 1904s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1904s # if (info != NULL) 1904s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1904s # } 1904s # } 1904s # 1904s # static GVariant * 1904s # good_types_proxy_get_good_property_type (GoodTypes *object) 1904s # { 1904s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1904s # GVariant *variant; 1904s # GVariant *value = NULL; 1904s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 1904s # value = variant; 1904s # if (variant != NULL) 1904s # g_variant_unref (variant); 1904s # return value; 1904s # } 1904s # 1904s # static void 1904s # good_types_proxy_init (GoodTypesProxy *proxy) 1904s # { 1904s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1904s # proxy->priv = good_types_proxy_get_instance_private (proxy); 1904s # #else 1904s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 1904s # #endif 1904s # 1904s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 1904s # } 1904s # 1904s # static void 1904s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 1904s # { 1904s # GObjectClass *gobject_class; 1904s # GDBusProxyClass *proxy_class; 1904s # 1904s # gobject_class = G_OBJECT_CLASS (klass); 1904s # gobject_class->finalize = good_types_proxy_finalize; 1904s # gobject_class->get_property = good_types_proxy_get_property; 1904s # gobject_class->set_property = good_types_proxy_set_property; 1904s # 1904s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1904s # proxy_class->g_signal = good_types_proxy_g_signal; 1904s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 1904s # 1904s # good_types_override_properties (gobject_class, 1); 1904s # 1904s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1904s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 1904s # #endif 1904s # } 1904s # 1904s # static void 1904s # good_types_proxy_iface_init (GoodTypesIface *iface) 1904s # { 1904s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 1904s # } 1904s # 1904s # /** 1904s # * good_types_proxy_new: 1904s # * @connection: A #GDBusConnection. 1904s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1904s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1904s # * @object_path: An object path. 1904s # * @cancellable: (nullable): A #GCancellable or %NULL. 1904s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1904s # * @user_data: User data to pass to @callback. 1904s # * 1904s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 1904s # * 1904s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1904s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 1904s # * 1904s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 1904s # */ 1904s # void 1904s # good_types_proxy_new ( 1904s # GDBusConnection *connection, 1904s # GDBusProxyFlags flags, 1904s # const gchar *name, 1904s # const gchar *object_path, 1904s # GCancellable *cancellable, 1904s # GAsyncReadyCallback callback, 1904s # gpointer user_data) 1904s # { 1904s # g_async_initable_new_async (TYPE_GOOD_TYPES_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "GoodTypes", NULL); 1904s # } 1904s # 1904s # /** 1904s # * good_types_proxy_new_finish: 1904s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 1904s # * @error: Return location for error or %NULL 1904s # * 1904s # * Finishes an operation started with good_types_proxy_new(). 1904s # * 1904s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1904s # */ 1904s # GoodTypes * 1904s # good_types_proxy_new_finish ( 1904s # GAsyncResult *res, 1904s # GError **error) 1904s # { 1904s # GObject *ret; 1904s # GObject *source_object; 1904s # source_object = g_async_result_get_source_object (res); 1904s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1904s # g_object_unref (source_object); 1904s # if (ret != NULL) 1904s # return GOOD_TYPES (ret); 1904s # else 1904s # return NULL; 1904s # } 1904s # 1904s # /** 1904s # * good_types_proxy_new_sync: 1904s # * @connection: A #GDBusConnection. 1904s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1904s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1904s # * @object_path: An object path. 1904s # * @cancellable: (nullable): A #GCancellable or %NULL. 1904s # * @error: Return location for error or %NULL 1904s # * 1904s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 1904s # * 1904s # * The calling thread is blocked until a reply is received. 1904s # * 1904s # * See good_types_proxy_new() for the asynchronous version of this constructor. 1904s # * 1904s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1904s # */ 1904s # GoodTypes * 1904s # good_types_proxy_new_sync ( 1904s # GDBusConnection *connection, 1904s # GDBusProxyFlags flags, 1904s # const gchar *name, 1904s # const gchar *object_path, 1904s # GCancellable *cancellable, 1904s # GError **error) 1904s # { 1904s # GInitable *ret; 1904s # ret = g_initable_new (TYPE_GOOD_TYPES_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "GoodTypes", NULL); 1904s # if (ret != NULL) 1904s # return GOOD_TYPES (ret); 1904s # else 1904s # return NULL; 1904s # } 1904s # 1904s # 1904s # /** 1904s # * good_types_proxy_new_for_bus: 1904s # * @bus_type: A #GBusType. 1904s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1904s # * @name: A bus name (well-known or unique). 1904s # * @object_path: An object path. 1904s # * @cancellable: (nullable): A #GCancellable or %NULL. 1904s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1904s # * @user_data: User data to pass to @callback. 1904s # * 1904s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1904s # * 1904s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1904s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 1904s # * 1904s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1904s # */ 1904s # void 1904s # good_types_proxy_new_for_bus ( 1904s # GBusType bus_type, 1904s # GDBusProxyFlags flags, 1904s # const gchar *name, 1904s # const gchar *object_path, 1904s # GCancellable *cancellable, 1904s # GAsyncReadyCallback callback, 1904s # gpointer user_data) 1904s # { 1904s # g_async_initable_new_async (TYPE_GOOD_TYPES_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "GoodTypes", NULL); 1904s # } 1904s # 1904s # /** 1904s # * good_types_proxy_new_for_bus_finish: 1904s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 1904s # * @error: Return location for error or %NULL 1904s # * 1904s # * Finishes an operation started with good_types_proxy_new_for_bus(). 1904s # * 1904s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1904s # */ 1904s # GoodTypes * 1904s # good_types_proxy_new_for_bus_finish ( 1904s # GAsyncResult *res, 1904s # GError **error) 1904s # { 1904s # GObject *ret; 1904s # GObject *source_object; 1904s # source_object = g_async_result_get_source_object (res); 1904s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1904s # g_object_unref (source_object); 1904s # if (ret != NULL) 1904s # return GOOD_TYPES (ret); 1904s # else 1904s # return NULL; 1904s # } 1904s # 1904s # /** 1904s # * good_types_proxy_new_for_bus_sync: 1904s # * @bus_type: A #GBusType. 1904s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1904s # * @name: A bus name (well-known or unique). 1904s # * @object_path: An object path. 1904s # * @cancellable: (nullable): A #GCancellable or %NULL. 1904s # * @error: Return location for error or %NULL 1904s # * 1904s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1904s # * 1904s # * The calling thread is blocked until a reply is received. 1904s # * 1904s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 1904s # * 1904s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1904s # */ 1904s # GoodTypes * 1904s # good_types_proxy_new_for_bus_sync ( 1904s # GBusType bus_type, 1904s # GDBusProxyFlags flags, 1904s # const gchar *name, 1904s # const gchar *object_path, 1904s # GCancellable *cancellable, 1904s # GError **error) 1904s # { 1904s # GInitable *ret; 1904s # ret = g_initable_new (TYPE_GOOD_TYPES_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "GoodTypes", NULL); 1904s # if (ret != NULL) 1904s # return GOOD_TYPES (ret); 1904s # else 1904s # return NULL; 1904s # } 1904s # 1904s # 1904s # /* ------------------------------------------------------------------------ */ 1904s # 1904s # /** 1904s # * GoodTypesSkeleton: 1904s # * 1904s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 1904s # */ 1904s # 1904s # /** 1904s # * GoodTypesSkeletonClass: 1904s # * @parent_class: The parent class. 1904s # * 1904s # * Class structure for GoodTypesSkeleton. 1904s # */ 1904s # 1904s # struct _GoodTypesSkeletonPrivate 1904s # { 1904s # GValue *properties; 1904s # GList *changed_properties; 1904s # GSource *changed_properties_idle_source; 1904s # GMainContext *context; 1904s # GMutex lock; 1904s # }; 1904s # 1904s # static void 1904s # _good_types_skeleton_handle_method_call ( 1904s # GDBusConnection *connection G_GNUC_UNUSED, 1904s # const gchar *sender G_GNUC_UNUSED, 1904s # const gchar *object_path G_GNUC_UNUSED, 1904s # const gchar *interface_name, 1904s # const gchar *method_name, 1904s # GVariant *parameters, 1904s # GDBusMethodInvocation *invocation, 1904s # gpointer user_data) 1904s # { 1904s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1904s # _ExtendedGDBusMethodInfo *info; 1904s # GVariantIter iter; 1904s # GVariant *child; 1904s # GValue *paramv; 1904s # gsize num_params; 1904s # guint num_extra; 1904s # gsize n; 1904s # guint signal_id; 1904s # GValue return_value = G_VALUE_INIT; 1904s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1904s # g_assert (info != NULL); 1904s # num_params = g_variant_n_children (parameters); 1904s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1904s # n = 0; 1904s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 1904s # g_value_set_object (¶mv[n++], skeleton); 1904s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1904s # g_value_set_object (¶mv[n++], invocation); 1904s # if (info->pass_fdlist) 1904s # { 1904s # #ifdef G_OS_UNIX 1904s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1904s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1904s # #else 1904s # g_assert_not_reached (); 1904s # #endif 1904s # } 1904s # g_variant_iter_init (&iter, parameters); 1904s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1904s # { 1904s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1904s # if (arg_info->use_gvariant) 1904s # { 1904s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1904s # g_value_set_variant (¶mv[n], child); 1904s # n++; 1904s # } 1904s # else 1904s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1904s # g_variant_unref (child); 1904s # } 1904s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1904s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1904s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1904s # if (!g_value_get_boolean (&return_value)) 1904s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1904s # g_value_unset (&return_value); 1904s # for (n = 0; n < num_params + num_extra; n++) 1904s # g_value_unset (¶mv[n]); 1904s # g_free (paramv); 1904s # } 1904s # 1904s # static GVariant * 1904s # _good_types_skeleton_handle_get_property ( 1904s # GDBusConnection *connection G_GNUC_UNUSED, 1904s # const gchar *sender G_GNUC_UNUSED, 1904s # const gchar *object_path G_GNUC_UNUSED, 1904s # const gchar *interface_name G_GNUC_UNUSED, 1904s # const gchar *property_name, 1904s # GError **error, 1904s # gpointer user_data) 1904s # { 1904s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1904s # GValue value = G_VALUE_INIT; 1904s # GParamSpec *pspec; 1904s # _ExtendedGDBusPropertyInfo *info; 1904s # GVariant *ret; 1904s # ret = NULL; 1904s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1904s # g_assert (info != NULL); 1904s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1904s # if (pspec == NULL) 1904s # { 1904s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1904s # } 1904s # else 1904s # { 1904s # g_value_init (&value, pspec->value_type); 1904s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1904s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1904s # g_value_unset (&value); 1904s # } 1904s # return ret; 1904s # } 1904s # 1904s # static gboolean 1904s # _good_types_skeleton_handle_set_property ( 1904s # GDBusConnection *connection G_GNUC_UNUSED, 1904s # const gchar *sender G_GNUC_UNUSED, 1904s # const gchar *object_path G_GNUC_UNUSED, 1904s # const gchar *interface_name G_GNUC_UNUSED, 1904s # const gchar *property_name, 1904s # GVariant *variant, 1904s # GError **error, 1904s # gpointer user_data) 1904s # { 1904s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1904s # GValue value = G_VALUE_INIT; 1904s # GParamSpec *pspec; 1904s # _ExtendedGDBusPropertyInfo *info; 1904s # gboolean ret; 1904s # ret = FALSE; 1904s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1904s # g_assert (info != NULL); 1904s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1904s # if (pspec == NULL) 1904s # { 1904s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1904s # } 1904s # else 1904s # { 1904s # if (info->use_gvariant) 1904s # g_value_set_variant (&value, variant); 1904s # else 1904s # g_dbus_gvariant_to_gvalue (variant, &value); 1904s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1904s # g_value_unset (&value); 1904s # ret = TRUE; 1904s # } 1904s # return ret; 1904s # } 1904s # 1904s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 1904s # { 1904s # _good_types_skeleton_handle_method_call, 1904s # _good_types_skeleton_handle_get_property, 1904s # _good_types_skeleton_handle_set_property, 1904s # {NULL} 1904s # }; 1904s # 1904s # static GDBusInterfaceInfo * 1904s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1904s # { 1904s # return good_types_interface_info (); 1904s # } 1904s # 1904s # static GDBusInterfaceVTable * 1904s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1904s # { 1904s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 1904s # } 1904s # 1904s # static GVariant * 1904s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1904s # { 1904s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1904s # 1904s # GVariantBuilder builder; 1904s # guint n; 1904s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1904s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1904s # #else 1904s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1904s # #endif 1904s # if (_good_types_interface_info.parent_struct.properties == NULL) 1904s # goto out; 1904s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 1904s # { 1904s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 1904s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1904s # { 1904s # GVariant *value; 1904s # value = _good_types_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "GoodTypes", info->name, NULL, skeleton); 1904s # if (value != NULL) 1904s # { 1904s # g_variant_take_ref (value); 1904s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1904s # g_variant_unref (value); 1904s # } 1904s # } 1904s # } 1904s # out: 1904s # return g_variant_builder_end (&builder); 1904s # } 1904s # 1904s # static gboolean _good_types_emit_changed (gpointer user_data); 1904s # 1904s # static void 1904s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1904s # { 1904s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1904s # gboolean emit_changed = FALSE; 1904s # 1904s # g_mutex_lock (&skeleton->priv->lock); 1904s # if (skeleton->priv->changed_properties_idle_source != NULL) 1904s # { 1904s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1904s # skeleton->priv->changed_properties_idle_source = NULL; 1904s # emit_changed = TRUE; 1904s # } 1904s # g_mutex_unlock (&skeleton->priv->lock); 1904s # 1904s # if (emit_changed) 1904s # _good_types_emit_changed (skeleton); 1904s # } 1904s # 1904s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 1904s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1904s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1904s # G_ADD_PRIVATE (GoodTypesSkeleton) 1904s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1904s # 1904s # #else 1904s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1904s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1904s # 1904s # #endif 1904s # static void 1904s # good_types_skeleton_finalize (GObject *object) 1904s # { 1904s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1904s # guint n; 1904s # for (n = 0; n < 1; n++) 1904s # g_value_unset (&skeleton->priv->properties[n]); 1904s # g_free (skeleton->priv->properties); 1904s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1904s # if (skeleton->priv->changed_properties_idle_source != NULL) 1904s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1904s # g_main_context_unref (skeleton->priv->context); 1904s # g_mutex_clear (&skeleton->priv->lock); 1904s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 1904s # } 1904s # 1904s # static void 1904s # good_types_skeleton_get_property (GObject *object, 1904s # guint prop_id, 1904s # GValue *value, 1904s # GParamSpec *pspec G_GNUC_UNUSED) 1904s # { 1904s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1904s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1904s # g_mutex_lock (&skeleton->priv->lock); 1904s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1904s # g_mutex_unlock (&skeleton->priv->lock); 1904s # } 1904s # 1904s # static gboolean 1904s # _good_types_emit_changed (gpointer user_data) 1904s # { 1904s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1904s # GList *l; 1904s # GVariantBuilder builder; 1904s # GVariantBuilder invalidated_builder; 1904s # guint num_changes; 1904s # 1904s # g_mutex_lock (&skeleton->priv->lock); 1904s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1904s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1904s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1904s # #else 1904s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1904s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1904s # #endif 1904s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1904s # { 1904s # ChangedProperty *cp = l->data; 1904s # GVariant *variant; 1904s # const GValue *cur_value; 1904s # 1904s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1904s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1904s # { 1904s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1904s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1904s # g_variant_unref (variant); 1904s # num_changes++; 1904s # } 1904s # } 1904s # if (num_changes > 0) 1904s # { 1904s # GList *connections, *ll; 1904s # GVariant *signal_variant; 1904s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 1904s # &builder, &invalidated_builder)); 1904s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1904s # for (ll = connections; ll != NULL; ll = ll->next) 1904s # { 1904s # GDBusConnection *connection = ll->data; 1904s # 1904s # g_dbus_connection_emit_signal (connection, 1904s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1904s # "org.freedesktop.DBus.Properties", 1904s # "PropertiesChanged", 1904s # signal_variant, 1904s # NULL); 1904s # } 1904s # g_variant_unref (signal_variant); 1904s # g_list_free_full (connections, g_object_unref); 1904s # } 1904s # else 1904s # { 1904s # g_variant_builder_clear (&builder); 1904s # g_variant_builder_clear (&invalidated_builder); 1904s # } 1904s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1904s # skeleton->priv->changed_properties = NULL; 1904s # skeleton->priv->changed_properties_idle_source = NULL; 1904s # g_mutex_unlock (&skeleton->priv->lock); 1904s # return FALSE; 1904s # } 1904s # 1904s # static void 1904s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1904s # { 1904s # ChangedProperty *cp; 1904s # GList *l; 1904s # cp = NULL; 1904s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1904s # { 1904s # ChangedProperty *i_cp = l->data; 1904s # if (i_cp->info == info) 1904s # { 1904s # cp = i_cp; 1904s # break; 1904s # } 1904s # } 1904s # if (cp == NULL) 1904s # { 1904s # cp = g_new0 (ChangedProperty, 1); 1904s # cp->prop_id = prop_id; 1904s # cp->info = info; 1904s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1904s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1904s # g_value_copy (orig_value, &cp->orig_value); 1904s # } 1904s # } 1904s # 1904s # static void 1904s # good_types_skeleton_notify (GObject *object, 1904s # GParamSpec *pspec G_GNUC_UNUSED) 1904s # { 1904s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1904s # g_mutex_lock (&skeleton->priv->lock); 1904s # if (skeleton->priv->changed_properties != NULL && 1904s # skeleton->priv->changed_properties_idle_source == NULL) 1904s # { 1904s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1904s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1904s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1904s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 1904s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1904s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1904s # } 1904s # g_mutex_unlock (&skeleton->priv->lock); 1904s # } 1904s # 1904s # static void 1904s # good_types_skeleton_set_property (GObject *object, 1904s # guint prop_id, 1904s # const GValue *value, 1904s # GParamSpec *pspec) 1904s # { 1904s # const _ExtendedGDBusPropertyInfo *info; 1904s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1904s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1904s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1904s # g_mutex_lock (&skeleton->priv->lock); 1904s # g_object_freeze_notify (object); 1904s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1904s # { 1904s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1904s # info->emits_changed_signal) 1904s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1904s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1904s # g_object_notify_by_pspec (object, pspec); 1904s # } 1904s # g_mutex_unlock (&skeleton->priv->lock); 1904s # g_object_thaw_notify (object); 1904s # } 1904s # 1904s # static void 1904s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 1904s # { 1904s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1904s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 1904s # #else 1904s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 1904s # #endif 1904s # 1904s # g_mutex_init (&skeleton->priv->lock); 1904s # skeleton->priv->context = g_main_context_ref_thread_default (); 1904s # skeleton->priv->properties = g_new0 (GValue, 1); 1904s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 1904s # } 1904s # 1904s # static GVariant * 1904s # good_types_skeleton_get_good_property_type (GoodTypes *object) 1904s # { 1904s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1904s # GVariant *value; 1904s # g_mutex_lock (&skeleton->priv->lock); 1904s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 1904s # g_mutex_unlock (&skeleton->priv->lock); 1904s # return value; 1904s # } 1904s # 1904s # static void 1904s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 1904s # { 1904s # GObjectClass *gobject_class; 1904s # GDBusInterfaceSkeletonClass *skeleton_class; 1904s # 1904s # gobject_class = G_OBJECT_CLASS (klass); 1904s # gobject_class->finalize = good_types_skeleton_finalize; 1904s # gobject_class->get_property = good_types_skeleton_get_property; 1904s # gobject_class->set_property = good_types_skeleton_set_property; 1904s # gobject_class->notify = good_types_skeleton_notify; 1904s # 1904s # 1904s # good_types_override_properties (gobject_class, 1); 1904s # 1904s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1904s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 1904s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 1904s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 1904s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 1904s # 1904s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1904s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 1904s # #endif 1904s # } 1904s # 1904s # static void 1904s # good_types_skeleton_iface_init (GoodTypesIface *iface) 1904s # { 1904s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 1904s # } 1904s # 1904s # /** 1904s # * good_types_skeleton_new: 1904s # * 1904s # * Creates a skeleton object for the D-Bus interface GoodTypes. 1904s # * 1904s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 1904s # */ 1904s # GoodTypes * 1904s # good_types_skeleton_new (void) 1904s # { 1904s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 1904s # } 1904s # Error: 1904s # 1904s # /tmp/tmps4mkgta1/tmpwukvsok_.xml: 1904s # 1904s # 1904s # 1904s # 1904s # 1904s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmps4mkgta1/tmpwukvsok_.xml', '--output', '-', '--body'] 1904s # Return code: 0 1904s # Output: 1904s # /* 1904s # * This file is generated by gdbus-codegen, do not modify it. 1904s # * 1904s # * The license of this code is the same as for the D-Bus interface description 1904s # * it was derived from. Note that it links to GLib, so must comply with the 1904s # * LGPL linking clauses. 1904s # */ 1904s # 1904s # #ifdef HAVE_CONFIG_H 1904s # # include "config.h" 1904s # #endif 1904s # 1904s # #include 1904s # #ifdef G_OS_UNIX 1904s # # include 1904s # #endif 1904s # 1904s # #ifdef G_ENABLE_DEBUG 1904s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1904s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1904s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1904s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1904s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1904s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1904s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1904s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1904s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1904s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1904s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1904s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1904s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1904s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1904s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1904s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1904s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1904s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1904s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1904s # #else /* !G_ENABLE_DEBUG */ 1904s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1904s # * Do not access GValues directly in your code. Instead, use the 1904s # * g_value_get_*() functions 1904s # */ 1904s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1904s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1904s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1904s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1904s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1904s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1904s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1904s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1904s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1904s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1904s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1904s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1904s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1904s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1904s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1904s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1904s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1904s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1904s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1904s # #endif /* !G_ENABLE_DEBUG */ 1904s # 1904s # typedef struct 1904s # { 1904s # GDBusArgInfo parent_struct; 1904s # gboolean use_gvariant; 1904s # } _ExtendedGDBusArgInfo; 1904s # 1904s # typedef struct 1904s # { 1904s # GDBusMethodInfo parent_struct; 1904s # const gchar *signal_name; 1904s # gboolean pass_fdlist; 1904s # } _ExtendedGDBusMethodInfo; 1904s # 1904s # typedef struct 1904s # { 1904s # GDBusSignalInfo parent_struct; 1904s # const gchar *signal_name; 1904s # } _ExtendedGDBusSignalInfo; 1904s # 1904s # typedef struct 1904s # { 1904s # GDBusPropertyInfo parent_struct; 1904s # const gchar *hyphen_name; 1904s # guint use_gvariant : 1; 1904s # guint emits_changed_signal : 1; 1904s # } _ExtendedGDBusPropertyInfo; 1904s # 1904s # typedef struct 1904s # { 1904s # GDBusInterfaceInfo parent_struct; 1904s # const gchar *hyphen_name; 1904s # } _ExtendedGDBusInterfaceInfo; 1904s # 1904s # typedef struct 1904s # { 1904s # const _ExtendedGDBusPropertyInfo *info; 1904s # guint prop_id; 1904s # GValue orig_value; /* the value before the change */ 1904s # } ChangedProperty; 1904s # 1904s # static void 1904s # _changed_property_free (ChangedProperty *data) 1904s # { 1904s # g_value_unset (&data->orig_value); 1904s # g_free (data); 1904s # } 1904s # 1904s # static gboolean 1904s # _g_strv_equal0 (gchar **a, gchar **b) 1904s # { 1904s # gboolean ret = FALSE; 1904s # guint n; 1904s # if (a == NULL && b == NULL) 1904s # { 1904s # ret = TRUE; 1904s # goto out; 1904s # } 1904s # if (a == NULL || b == NULL) 1904s # goto out; 1904s # if (g_strv_length (a) != g_strv_length (b)) 1904s # goto out; 1904s # for (n = 0; a[n] != NULL; n++) 1904s # if (g_strcmp0 (a[n], b[n]) != 0) 1904s # goto out; 1904s # ret = TRUE; 1904s # out: 1904s # return ret; 1904s # } 1904s # 1904s # static gboolean 1904s # _g_variant_equal0 (GVariant *a, GVariant *b) 1904s # { 1904s # gboolean ret = FALSE; 1904s # if (a == NULL && b == NULL) 1904s # { 1904s # ret = TRUE; 1904s # goto out; 1904s # } 1904s # if (a == NULL || b == NULL) 1904s # goto out; 1904s # ret = g_variant_equal (a, b); 1904s # out: 1904s # return ret; 1904s # } 1904s # 1904s # G_GNUC_UNUSED static gboolean 1904s # _g_value_equal (const GValue *a, const GValue *b) 1904s # { 1904s # gboolean ret = FALSE; 1904s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1904s # switch (G_VALUE_TYPE (a)) 1904s # { 1904s # case G_TYPE_BOOLEAN: 1904s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1904s # break; 1904s # case G_TYPE_UCHAR: 1904s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1904s # break; 1904s # case G_TYPE_INT: 1904s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1904s # break; 1904s # case G_TYPE_UINT: 1904s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1904s # break; 1904s # case G_TYPE_INT64: 1904s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1904s # break; 1904s # case G_TYPE_UINT64: 1904s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1904s # break; 1904s # case G_TYPE_DOUBLE: 1904s # { 1904s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1904s # gdouble da = g_value_get_double (a); 1904s # gdouble db = g_value_get_double (b); 1904s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1904s # } 1904s # break; 1904s # case G_TYPE_STRING: 1904s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1904s # break; 1904s # case G_TYPE_VARIANT: 1904s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1904s # break; 1904s # default: 1904s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1904s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1904s # else 1904s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1904s # break; 1904s # } 1904s # return ret; 1904s # } 1904s # 1904s # /* ------------------------------------------------------------------------ 1904s # * Code for interface GoodTypes 1904s # * ------------------------------------------------------------------------ 1904s # */ 1904s # 1904s # /** 1904s # * SECTION:GoodTypes 1904s # * @title: GoodTypes 1904s # * @short_description: Generated C code for the GoodTypes D-Bus interface 1904s # * 1904s # * This section contains code for working with the GoodTypes D-Bus interface in C. 1904s # */ 1904s # 1904s # /* ---- Introspection data for GoodTypes ---- */ 1904s # 1904s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 1904s # { 1904s # { 1904s # -1, 1904s # (gchar *) "GoodPropertyType", 1904s # (gchar *) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaa{sv})", 1904s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1904s # NULL 1904s # }, 1904s # "good-property-type", 1904s # FALSE, 1904s # TRUE 1904s # }; 1904s # 1904s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 1904s # { 1904s # &_good_types_property_info_good_property_type.parent_struct, 1904s # NULL 1904s # }; 1904s # 1904s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 1904s # { 1904s # { 1904s # -1, 1904s # (gchar *) "GoodTypes", 1904s # NULL, 1904s # NULL, 1904s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 1904s # NULL 1904s # }, 1904s # "good-types", 1904s # }; 1904s # 1904s # 1904s # /** 1904s # * good_types_interface_info: 1904s # * 1904s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 1904s # * 1904s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1904s # */ 1904s # GDBusInterfaceInfo * 1904s # good_types_interface_info (void) 1904s # { 1904s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 1904s # } 1904s # 1904s # /** 1904s # * good_types_override_properties: 1904s # * @klass: The class structure for a #GObject derived class. 1904s # * @property_id_begin: The property id to assign to the first overridden property. 1904s # * 1904s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 1904s # * The properties are overridden in the order they are defined. 1904s # * 1904s # * Returns: The last property id. 1904s # */ 1904s # guint 1904s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 1904s # { 1904s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 1904s # return property_id_begin - 1; 1904s # } 1904s # 1904s # 1904s # 1904s # /** 1904s # * GoodTypes: 1904s # * 1904s # * Abstract interface type for the D-Bus interface GoodTypes. 1904s # */ 1904s # 1904s # /** 1904s # * GoodTypesIface: 1904s # * @parent_iface: The parent interface. 1904s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 1904s # * 1904s # * Virtual table for the D-Bus interface GoodTypes. 1904s # */ 1904s # 1904s # typedef GoodTypesIface GoodTypesInterface; 1904s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 1904s # 1904s # static void 1904s # good_types_default_init (GoodTypesIface *iface) 1904s # { 1904s # /* GObject properties for D-Bus properties: */ 1904s # /** 1904s # * GoodTypes:good-property-type: 1904s # * 1904s # * Represents the D-Bus property "GoodPropertyType". 1904s # * 1904s # * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side. 1904s # */ 1904s # g_object_interface_install_property (iface, 1904s # g_param_spec_variant ("good-property-type", "GoodPropertyType", "GoodPropertyType", G_VARIANT_TYPE ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaa{sv})"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1904s # } 1904s # 1904s # /** 1904s # * good_types_get_good_property_type: (skip) 1904s # * @object: A GoodTypes. 1904s # * 1904s # * Gets the value of the "GoodPropertyType" D-Bus property. 1904s # * 1904s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1904s # * 1904s # * The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where @object was constructed. Use good_types_dup_good_property_type() if on another thread. 1904s # * 1904s # * Returns: (transfer none) (nullable): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. 1904s # */ 1904s # GVariant * 1904s # good_types_get_good_property_type (GoodTypes *object) 1904s # { 1904s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 1904s # 1904s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 1904s # } 1904s # 1904s # /** 1904s # * good_types_dup_good_property_type: (skip) 1904s # * @object: A GoodTypes. 1904s # * 1904s # * Gets a copy of the "GoodPropertyType" D-Bus property. 1904s # * 1904s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1904s # * 1904s # * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_variant_unref(). 1904s # */ 1904s # GVariant * 1904s # good_types_dup_good_property_type (GoodTypes *object) 1904s # { 1904s # GVariant *value; 1904s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 1904s # return value; 1904s # } 1904s # 1904s # /** 1904s # * good_types_set_good_property_type: (skip) 1904s # * @object: A GoodTypes. 1904s # * @value: The value to set. 1904s # * 1904s # * Sets the "GoodPropertyType" D-Bus property to @value. 1904s # * 1904s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1904s # */ 1904s # void 1904s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 1904s # { 1904s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 1904s # } 1904s # 1904s # /* ------------------------------------------------------------------------ */ 1904s # 1904s # /** 1904s # * GoodTypesProxy: 1904s # * 1904s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 1904s # */ 1904s # 1904s # /** 1904s # * GoodTypesProxyClass: 1904s # * @parent_class: The parent class. 1904s # * 1904s # * Class structure for GoodTypesProxy. 1904s # */ 1904s # 1904s # struct _GoodTypesProxyPrivate 1904s # { 1904s # GData *qdata; 1904s # }; 1904s # 1904s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 1904s # 1904s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1904s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1904s # G_ADD_PRIVATE (GoodTypesProxy) 1904s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1904s # 1904s # #else 1904s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1904s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1904s # 1904s # #endif 1904s # static void 1904s # good_types_proxy_finalize (GObject *object) 1904s # { 1904s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1904s # g_datalist_clear (&proxy->priv->qdata); 1904s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 1904s # } 1904s # 1904s # static void 1904s # good_types_proxy_get_property (GObject *object, 1904s # guint prop_id, 1904s # GValue *value, 1904s # GParamSpec *pspec G_GNUC_UNUSED) 1904s # { 1904s # const _ExtendedGDBusPropertyInfo *info; 1904s # GVariant *variant; 1904s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1904s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1904s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1904s # if (info->use_gvariant) 1904s # { 1904s # g_value_set_variant (value, variant); 1904s # } 1904s # else 1904s # { 1904s # if (variant != NULL) 1904s # g_dbus_gvariant_to_gvalue (variant, value); 1904s # } 1904s # if (variant != NULL) 1904s # g_variant_unref (variant); 1904s # } 1904s # 1904s # static void 1904s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 1904s # GAsyncResult *res, 1904s # gpointer user_data) 1904s # { 1904s # const _ExtendedGDBusPropertyInfo *info = user_data; 1904s # GError *error; 1904s # GVariant *_ret; 1904s # error = NULL; 1904s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1904s # if (!_ret) 1904s # { 1904s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 1904s # info->parent_struct.name, 1904s # error->message, g_quark_to_string (error->domain), error->code); 1904s # g_error_free (error); 1904s # } 1904s # else 1904s # { 1904s # g_variant_unref (_ret); 1904s # } 1904s # } 1904s # 1904s # static void 1904s # good_types_proxy_set_property (GObject *object, 1904s # guint prop_id, 1904s # const GValue *value, 1904s # GParamSpec *pspec G_GNUC_UNUSED) 1904s # { 1904s # const _ExtendedGDBusPropertyInfo *info; 1904s # GVariant *variant; 1904s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1904s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1904s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1904s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1904s # "org.freedesktop.DBus.Properties.Set", 1904s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 1904s # G_DBUS_CALL_FLAGS_NONE, 1904s # -1, 1904s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1904s # g_variant_unref (variant); 1904s # } 1904s # 1904s # static void 1904s # good_types_proxy_g_signal (GDBusProxy *proxy, 1904s # const gchar *sender_name G_GNUC_UNUSED, 1904s # const gchar *signal_name, 1904s # GVariant *parameters) 1904s # { 1904s # _ExtendedGDBusSignalInfo *info; 1904s # GVariantIter iter; 1904s # GVariant *child; 1904s # GValue *paramv; 1904s # gsize num_params; 1904s # gsize n; 1904s # guint signal_id; 1904s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 1904s # if (info == NULL) 1904s # return; 1904s # num_params = g_variant_n_children (parameters); 1904s # paramv = g_new0 (GValue, num_params + 1); 1904s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 1904s # g_value_set_object (¶mv[0], proxy); 1904s # g_variant_iter_init (&iter, parameters); 1904s # n = 1; 1904s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1904s # { 1904s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1904s # if (arg_info->use_gvariant) 1904s # { 1904s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1904s # g_value_set_variant (¶mv[n], child); 1904s # n++; 1904s # } 1904s # else 1904s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1904s # g_variant_unref (child); 1904s # } 1904s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1904s # g_signal_emitv (paramv, signal_id, 0, NULL); 1904s # for (n = 0; n < num_params + 1; n++) 1904s # g_value_unset (¶mv[n]); 1904s # g_free (paramv); 1904s # } 1904s # 1904s # static void 1904s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 1904s # GVariant *changed_properties, 1904s # const gchar *const *invalidated_properties) 1904s # { 1904s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 1904s # guint n; 1904s # const gchar *key; 1904s # GVariantIter *iter; 1904s # _ExtendedGDBusPropertyInfo *info; 1904s # g_variant_get (changed_properties, "a{sv}", &iter); 1904s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1904s # { 1904s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 1904s # g_datalist_remove_data (&proxy->priv->qdata, key); 1904s # if (info != NULL) 1904s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1904s # } 1904s # g_variant_iter_free (iter); 1904s # for (n = 0; invalidated_properties[n] != NULL; n++) 1904s # { 1904s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 1904s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1904s # if (info != NULL) 1904s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1904s # } 1904s # } 1904s # 1904s # static GVariant * 1904s # good_types_proxy_get_good_property_type (GoodTypes *object) 1904s # { 1904s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1904s # GVariant *variant; 1904s # GVariant *value = NULL; 1904s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 1904s # value = variant; 1904s # if (variant != NULL) 1904s # g_variant_unref (variant); 1904s # return value; 1904s # } 1904s # 1904s # static void 1904s # good_types_proxy_init (GoodTypesProxy *proxy) 1904s # { 1904s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1904s # proxy->priv = good_types_proxy_get_instance_private (proxy); 1904s # #else 1904s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 1904s # #endif 1904s # 1904s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 1904s # } 1904s # 1904s # static void 1904s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 1904s # { 1904s # GObjectClass *gobject_class; 1904s # GDBusProxyClass *proxy_class; 1904s # 1904s # gobject_class = G_OBJECT_CLASS (klass); 1904s # gobject_class->finalize = good_types_proxy_finalize; 1904s # gobject_class->get_property = good_types_proxy_get_property; 1904s # gobject_class->set_property = good_types_proxy_set_property; 1904s # 1904s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1904s # proxy_class->g_signal = good_types_proxy_g_signal; 1904s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 1904s # 1904s # good_types_override_properties (gobject_class, 1); 1904s # 1904s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1904s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 1904s # #endif 1904s # } 1904s # 1904s # static void 1904s # good_types_proxy_iface_init (GoodTypesIface *iface) 1904s # { 1904s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 1904s # } 1904s # 1904s # /** 1904s # * good_types_proxy_new: 1904s # * @connection: A #GDBusConnection. 1904s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1904s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1904s # * @object_path: An object path. 1904s # * @cancellable: (nullable): A #GCancellable or %NULL. 1904s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1904s # * @user_data: User data to pass to @callback. 1904s # * 1904s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 1904s # * 1904s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1904s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 1904s # * 1904s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 1904s # */ 1904s # void 1904s # good_types_proxy_new ( 1904s # GDBusConnection *connection, 1904s # GDBusProxyFlags flags, 1904s # const gchar *name, 1904s # const gchar *object_path, 1904s # GCancellable *cancellable, 1904s # GAsyncReadyCallback callback, 1904s # gpointer user_data) 1904s # { 1904s # g_async_initable_new_async (TYPE_GOOD_TYPES_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "GoodTypes", NULL); 1904s # } 1904s # 1904s # /** 1904s # * good_types_proxy_new_finish: 1904s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 1904s # * @error: Return location for error or %NULL 1904s # * 1904s # * Finishes an operation started with good_types_proxy_new(). 1904s # * 1904s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1904s # */ 1904s # GoodTypes * 1904s # good_types_proxy_new_finish ( 1904s # GAsyncResult *res, 1904s # GError **error) 1904s # { 1904s # GObject *ret; 1904s # GObject *source_object; 1904s # source_object = g_async_result_get_source_object (res); 1904s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1904s # g_object_unref (source_object); 1904s # if (ret != NULL) 1904s # return GOOD_TYPES (ret); 1904s # else 1904s # return NULL; 1904s # } 1904s # 1904s # /** 1904s # * good_types_proxy_new_sync: 1904s # * @connection: A #GDBusConnection. 1904s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1904s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1904s # * @object_path: An object path. 1904s # * @cancellable: (nullable): A #GCancellable or %NULL. 1904s # * @error: Return location for error or %NULL 1904s # * 1904s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 1904s # * 1904s # * The calling thread is blocked until a reply is received. 1904s # * 1904s # * See good_types_proxy_new() for the asynchronous version of this constructor. 1904s # * 1904s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1904s # */ 1904s # GoodTypes * 1904s # good_types_proxy_new_sync ( 1904s # GDBusConnection *connection, 1904s # GDBusProxyFlags flags, 1904s # const gchar *name, 1904s # const gchar *object_path, 1904s # GCancellable *cancellable, 1904s # GError **error) 1904s # { 1904s # GInitable *ret; 1904s # ret = g_initable_new (TYPE_GOOD_TYPES_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "GoodTypes", NULL); 1904s # if (ret != NULL) 1904s # return GOOD_TYPES (ret); 1904s # else 1904s # return NULL; 1904s # } 1904s # 1904s # 1904s # /** 1904s # * good_types_proxy_new_for_bus: 1904s # * @bus_type: A #GBusType. 1904s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1904s # * @name: A bus name (well-known or unique). 1904s # * @object_path: An object path. 1904s # * @cancellable: (nullable): A #GCancellable or %NULL. 1904s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1904s # * @user_data: User data to pass to @callback. 1904s # * 1904s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1904s # * 1904s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1904s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 1904s # * 1904s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1904s # */ 1904s # void 1904s # good_types_proxy_new_for_bus ( 1904s # GBusType bus_type, 1904s # GDBusProxyFlags flags, 1904s # const gchar *name, 1904s # const gchar *object_path, 1904s # GCancellable *cancellable, 1904s # GAsyncReadyCallback callback, 1904s # gpointer user_data) 1904s # { 1904s # g_async_initable_new_async (TYPE_GOOD_TYPES_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "GoodTypes", NULL); 1904s # } 1904s # 1904s # /** 1904s # * good_types_proxy_new_for_bus_finish: 1904s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 1904s # * @error: Return location for error or %NULL 1904s # * 1904s # * Finishes an operation started with good_types_proxy_new_for_bus(). 1904s # * 1904s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1904s # */ 1904s # GoodTypes * 1904s # good_types_proxy_new_for_bus_finish ( 1904s # GAsyncResult *res, 1904s # GError **error) 1904s # { 1904s # GObject *ret; 1904s # GObject *source_object; 1904s # source_object = g_async_result_get_source_object (res); 1904s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1904s # g_object_unref (source_object); 1904s # if (ret != NULL) 1904s # return GOOD_TYPES (ret); 1904s # else 1904s # return NULL; 1904s # } 1904s # 1904s # /** 1904s # * good_types_proxy_new_for_bus_sync: 1904s # * @bus_type: A #GBusType. 1904s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1904s # * @name: A bus name (well-known or unique). 1904s # * @object_path: An object path. 1904s # * @cancellable: (nullable): A #GCancellable or %NULL. 1904s # * @error: Return location for error or %NULL 1904s # * 1904s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1904s # * 1904s # * The calling thread is blocked until a reply is received. 1904s # * 1904s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 1904s # * 1904s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1904s # */ 1904s # GoodTypes * 1904s # good_types_proxy_new_for_bus_sync ( 1904s # GBusType bus_type, 1904s # GDBusProxyFlags flags, 1904s # const gchar *name, 1904s # const gchar *object_path, 1904s # GCancellable *cancellable, 1904s # GError **error) 1904s # { 1904s # GInitable *ret; 1904s # ret = g_initable_new (TYPE_GOOD_TYPES_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "GoodTypes", NULL); 1904s # if (ret != NULL) 1904s # return GOOD_TYPES (ret); 1904s # else 1904s # return NULL; 1904s # } 1904s # 1904s # 1904s # /* ------------------------------------------------------------------------ */ 1904s # 1904s # /** 1904s # * GoodTypesSkeleton: 1904s # * 1904s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 1904s # */ 1904s # 1904s # /** 1904s # * GoodTypesSkeletonClass: 1904s # * @parent_class: The parent class. 1904s # * 1904s # * Class structure for GoodTypesSkeleton. 1904s # */ 1904s # 1904s # struct _GoodTypesSkeletonPrivate 1904s # { 1904s # GValue *properties; 1904s # GList *changed_properties; 1904s # GSource *changed_properties_idle_source; 1904s # GMainContext *context; 1904s # GMutex lock; 1904s # }; 1904s # 1904s # static void 1904s # _good_types_skeleton_handle_method_call ( 1904s # GDBusConnection *connection G_GNUC_UNUSED, 1904s # const gchar *sender G_GNUC_UNUSED, 1904s # const gchar *object_path G_GNUC_UNUSED, 1904s # const gchar *interface_name, 1904s # const gchar *method_name, 1904s # GVariant *parameters, 1904s # GDBusMethodInvocation *invocation, 1904s # gpointer user_data) 1904s # { 1904s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1904s # _ExtendedGDBusMethodInfo *info; 1904s # GVariantIter iter; 1904s # GVariant *child; 1904s # GValue *paramv; 1904s # gsize num_params; 1904s # guint num_extra; 1904s # gsize n; 1904s # guint signal_id; 1904s # GValue return_value = G_VALUE_INIT; 1904s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1904s # g_assert (info != NULL); 1904s # num_params = g_variant_n_children (parameters); 1904s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1904s # n = 0; 1904s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 1904s # g_value_set_object (¶mv[n++], skeleton); 1904s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1904s # g_value_set_object (¶mv[n++], invocation); 1904s # if (info->pass_fdlist) 1904s # { 1904s # #ifdef G_OS_UNIX 1904s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1904s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1904s # #else 1904s # g_assert_not_reached (); 1904s # #endif 1904s # } 1904s # g_variant_iter_init (&iter, parameters); 1904s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1904s # { 1904s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1904s # if (arg_info->use_gvariant) 1904s # { 1904s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1904s # g_value_set_variant (¶mv[n], child); 1904s # n++; 1904s # } 1904s # else 1904s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1904s # g_variant_unref (child); 1904s # } 1904s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1904s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1904s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1904s # if (!g_value_get_boolean (&return_value)) 1904s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1904s # g_value_unset (&return_value); 1904s # for (n = 0; n < num_params + num_extra; n++) 1904s # g_value_unset (¶mv[n]); 1904s # g_free (paramv); 1904s # } 1904s # 1904s # static GVariant * 1904s # _good_types_skeleton_handle_get_property ( 1904s # GDBusConnection *connection G_GNUC_UNUSED, 1904s # const gchar *sender G_GNUC_UNUSED, 1904s # const gchar *object_path G_GNUC_UNUSED, 1904s # const gchar *interface_name G_GNUC_UNUSED, 1904s # const gchar *property_name, 1904s # GError **error, 1904s # gpointer user_data) 1904s # { 1904s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1904s # GValue value = G_VALUE_INIT; 1904s # GParamSpec *pspec; 1904s # _ExtendedGDBusPropertyInfo *info; 1904s # GVariant *ret; 1904s # ret = NULL; 1904s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1904s # g_assert (info != NULL); 1904s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1904s # if (pspec == NULL) 1904s # { 1904s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1904s # } 1904s # else 1904s # { 1904s # g_value_init (&value, pspec->value_type); 1904s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1904s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1904s # g_value_unset (&value); 1904s # } 1904s # return ret; 1904s # } 1904s # 1904s # static gboolean 1904s # _good_types_skeleton_handle_set_property ( 1904s # GDBusConnection *connection G_GNUC_UNUSED, 1904s # const gchar *sender G_GNUC_UNUSED, 1904s # const gchar *object_path G_GNUC_UNUSED, 1904s # const gchar *interface_name G_GNUC_UNUSED, 1904s # const gchar *property_name, 1904s # GVariant *variant, 1904s # GError **error, 1904s # gpointer user_data) 1904s # { 1904s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1904s # GValue value = G_VALUE_INIT; 1904s # GParamSpec *pspec; 1904s # _ExtendedGDBusPropertyInfo *info; 1904s # gboolean ret; 1904s # ret = FALSE; 1904s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1904s # g_assert (info != NULL); 1904s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1904s # if (pspec == NULL) 1904s # { 1904s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1904s # } 1904s # else 1904s # { 1904s # if (info->use_gvariant) 1904s # g_value_set_variant (&value, variant); 1904s # else 1904s # g_dbus_gvariant_to_gvalue (variant, &value); 1904s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1904s # g_value_unset (&value); 1904s # ret = TRUE; 1904s # } 1904s # return ret; 1904s # } 1904s # 1904s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 1904s # { 1904s # _good_types_skeleton_handle_method_call, 1904s # _good_types_skeleton_handle_get_property, 1904s # _good_types_skeleton_handle_set_property, 1904s # {NULL} 1904s # }; 1904s # 1904s # static GDBusInterfaceInfo * 1904s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1904s # { 1904s # return good_types_interface_info (); 1904s # } 1904s # 1904s # static GDBusInterfaceVTable * 1904s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1904s # { 1904s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 1904s # } 1904s # 1904s # static GVariant * 1904s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1904s # { 1904s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1904s # 1904s # GVariantBuilder builder; 1904s # guint n; 1904s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1904s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1904s # #else 1904s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1904s # #endif 1904s # if (_good_types_interface_info.parent_struct.properties == NULL) 1904s # goto out; 1904s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 1904s # { 1904s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 1904s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1904s # { 1904s # GVariant *value; 1904s # value = _good_types_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "GoodTypes", info->name, NULL, skeleton); 1904s # if (value != NULL) 1904s # { 1904s # g_variant_take_ref (value); 1904s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1904s # g_variant_unref (value); 1904s # } 1904s # } 1904s # } 1904s # out: 1904s # return g_variant_builder_end (&builder); 1904s # } 1904s # 1904s # static gboolean _good_types_emit_changed (gpointer user_data); 1904s # 1904s # static void 1904s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1904s # { 1904s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1904s # gboolean emit_changed = FALSE; 1904s # 1904s # g_mutex_lock (&skeleton->priv->lock); 1904s # if (skeleton->priv->changed_properties_idle_source != NULL) 1904s # { 1904s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1904s # skeleton->priv->changed_properties_idle_source = NULL; 1904s # emit_changed = TRUE; 1904s # } 1904s # g_mutex_unlock (&skeleton->priv->lock); 1904s # 1904s # if (emit_changed) 1904s # _good_types_emit_changed (skeleton); 1904s # } 1904s # 1904s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 1904s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1904s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1904s # G_ADD_PRIVATE (GoodTypesSkeleton) 1904s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1904s # 1904s # #else 1904s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1904s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1904s # 1904s # #endif 1904s # static void 1904s # good_types_skeleton_finalize (GObject *object) 1904s # { 1904s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1904s # guint n; 1904s # for (n = 0; n < 1; n++) 1904s # g_value_unset (&skeleton->priv->properties[n]); 1904s # g_free (skeleton->priv->properties); 1904s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1904s # if (skeleton->priv->changed_properties_idle_source != NULL) 1904s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1904s # g_main_context_unref (skeleton->priv->context); 1904s # g_mutex_clear (&skeleton->priv->lock); 1904s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 1904s # } 1904s # 1904s # static void 1904s # good_types_skeleton_get_property (GObject *object, 1904s # guint prop_id, 1904s # GValue *value, 1904s # GParamSpec *pspec G_GNUC_UNUSED) 1904s # { 1904s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1904s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1904s # g_mutex_lock (&skeleton->priv->lock); 1904s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1904s # g_mutex_unlock (&skeleton->priv->lock); 1904s # } 1904s # 1904s # static gboolean 1904s # _good_types_emit_changed (gpointer user_data) 1904s # { 1904s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1904s # GList *l; 1904s # GVariantBuilder builder; 1904s # GVariantBuilder invalidated_builder; 1904s # guint num_changes; 1904s # 1904s # g_mutex_lock (&skeleton->priv->lock); 1904s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1904s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1904s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1904s # #else 1904s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1904s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1904s # #endif 1904s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1904s # { 1904s # ChangedProperty *cp = l->data; 1904s # GVariant *variant; 1904s # const GValue *cur_value; 1904s # 1904s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1904s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1904s # { 1904s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1904s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1904s # g_variant_unref (variant); 1904s # num_changes++; 1904s # } 1904s # } 1904s # if (num_changes > 0) 1904s # { 1904s # GList *connections, *ll; 1904s # GVariant *signal_variant; 1904s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 1904s # &builder, &invalidated_builder)); 1904s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1904s # for (ll = connections; ll != NULL; ll = ll->next) 1904s # { 1904s # GDBusConnection *connection = ll->data; 1904s # 1904s # g_dbus_connection_emit_signal (connection, 1904s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1904s # "org.freedesktop.DBus.Properties", 1904s # "PropertiesChanged", 1904s # signal_variant, 1904s # NULL); 1904s # } 1904s # g_variant_unref (signal_variant); 1904s # g_list_free_full (connections, g_object_unref); 1904s # } 1904s # else 1904s # { 1904s # g_variant_builder_clear (&builder); 1904s # g_variant_builder_clear (&invalidated_builder); 1904s # } 1904s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1904s # skeleton->priv->changed_properties = NULL; 1904s # skeleton->priv->changed_properties_idle_source = NULL; 1904s # g_mutex_unlock (&skeleton->priv->lock); 1904s # return FALSE; 1904s # } 1904s # 1904s # static void 1904s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1904s # { 1904s # ChangedProperty *cp; 1904s # GList *l; 1904s # cp = NULL; 1904s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1904s # { 1904s # ChangedProperty *i_cp = l->data; 1904s # if (i_cp->info == info) 1904s # { 1904s # cp = i_cp; 1904s # break; 1904s # } 1904s # } 1904s # if (cp == NULL) 1904s # { 1904s # cp = g_new0 (ChangedProperty, 1); 1904s # cp->prop_id = prop_id; 1904s # cp->info = info; 1904s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1904s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1904s # g_value_copy (orig_value, &cp->orig_value); 1904s # } 1904s # } 1904s # 1904s # static void 1904s # good_types_skeleton_notify (GObject *object, 1904s # GParamSpec *pspec G_GNUC_UNUSED) 1904s # { 1904s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1904s # g_mutex_lock (&skeleton->priv->lock); 1904s # if (skeleton->priv->changed_properties != NULL && 1904s # skeleton->priv->changed_properties_idle_source == NULL) 1904s # { 1904s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1904s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1904s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1904s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 1904s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1904s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1904s # } 1904s # g_mutex_unlock (&skeleton->priv->lock); 1904s # } 1904s # 1904s # static void 1904s # good_types_skeleton_set_property (GObject *object, 1904s # guint prop_id, 1904s # const GValue *value, 1904s # GParamSpec *pspec) 1904s # { 1904s # const _ExtendedGDBusPropertyInfo *info; 1904s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1904s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1904s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1904s # g_mutex_lock (&skeleton->priv->lock); 1904s # g_object_freeze_notify (object); 1904s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1904s # { 1904s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1904s # info->emits_changed_signal) 1904s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1904s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1904s # g_object_notify_by_pspec (object, pspec); 1904s # } 1904s # g_mutex_unlock (&skeleton->priv->lock); 1904s # g_object_thaw_notify (object); 1904s # } 1904s # 1904s # static void 1904s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 1904s # { 1904s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1904s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 1904s # #else 1904s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 1904s # #endif 1904s # 1904s # g_mutex_init (&skeleton->priv->lock); 1904s # skeleton->priv->context = g_main_context_ref_thread_default (); 1904s # skeleton->priv->properties = g_new0 (GValue, 1); 1904s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 1904s # } 1904s # 1904s # static GVariant * 1904s # good_types_skeleton_get_good_property_type (GoodTypes *object) 1904s # { 1904s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1904s # GVariant *value; 1904s # g_mutex_lock (&skeleton->priv->lock); 1904s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 1904s # g_mutex_unlock (&skeleton->priv->lock); 1904s # return value; 1904s # } 1904s # 1904s # static void 1904s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 1904s # { 1904s # GObjectClass *gobject_class; 1904s # GDBusInterfaceSkeletonClass *skeleton_class; 1904s # 1904s # gobject_class = G_OBJECT_CLASS (klass); 1904s # gobject_class->finalize = good_types_skeleton_finalize; 1904s # gobject_class->get_property = good_types_skeleton_get_property; 1904s # gobject_class->set_property = good_types_skeleton_set_property; 1904s # gobject_class->notify = good_types_skeleton_notify; 1904s # 1904s # 1904s # good_types_override_properties (gobject_class, 1); 1904s # 1904s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1904s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 1904s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 1904s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 1904s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 1904s # 1904s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1904s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 1904s # #endif 1904s # } 1904s # 1904s # static void 1904s # good_types_skeleton_iface_init (GoodTypesIface *iface) 1904s # { 1904s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 1904s # } 1904s # 1904s # /** 1904s # * good_types_skeleton_new: 1904s # * 1904s # * Creates a skeleton object for the D-Bus interface GoodTypes. 1904s # * 1904s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 1904s # */ 1904s # GoodTypes * 1904s # good_types_skeleton_new (void) 1904s # { 1904s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 1904s # } 1904s # Error: 1904s ok 3 __main__.TestCodegen.test_empty_interface_body 1904s # gdbus-codegen: /usr/bin/gdbus-codegen 1904s # tmpdir: /tmp/tmpd1jyhj_h 1904s # /tmp/tmpd1jyhj_h/tmpdow65c4l.xml: 1904s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpd1jyhj_h/tmpdow65c4l.xml', '--output', '-', '--body'] 1904s # Return code: 0 1904s # Output: 1904s # /* 1904s # * This file is generated by gdbus-codegen, do not modify it. 1904s # * 1904s # * The license of this code is the same as for the D-Bus interface description 1904s # * it was derived from. Note that it links to GLib, so must comply with the 1904s # * LGPL linking clauses. 1904s # */ 1904s # 1904s # #ifdef HAVE_CONFIG_H 1904s # # include "config.h" 1904s # #endif 1904s # 1904s # #include 1904s # #ifdef G_OS_UNIX 1904s # # include 1904s # #endif 1904s # 1904s # #ifdef G_ENABLE_DEBUG 1904s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1904s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1904s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1904s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1904s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1904s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1904s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1904s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1904s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1904s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1904s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1904s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1904s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1904s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1904s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1904s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1904s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1904s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1904s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1904s # #else /* !G_ENABLE_DEBUG */ 1904s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1904s # * Do not access GValues directly in your code. Instead, use the 1904s # * g_value_get_*() functions 1904s # */ 1904s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1904s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1904s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1904s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1904s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1904s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1904s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1904s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1904s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1904s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1904s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1904s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1904s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1904s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1904s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1904s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1904s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1904s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1904s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1904s # #endif /* !G_ENABLE_DEBUG */ 1904s # 1904s # typedef struct 1904s # { 1904s # GDBusArgInfo parent_struct; 1904s # gboolean use_gvariant; 1904s # } _ExtendedGDBusArgInfo; 1904s # 1904s # typedef struct 1904s # { 1904s # GDBusMethodInfo parent_struct; 1904s # const gchar *signal_name; 1904s # gboolean pass_fdlist; 1904s # } _ExtendedGDBusMethodInfo; 1904s # 1904s # typedef struct 1904s # { 1904s # GDBusSignalInfo parent_struct; 1904s # const gchar *signal_name; 1904s # } _ExtendedGDBusSignalInfo; 1904s # 1904s # typedef struct 1904s # { 1904s # GDBusPropertyInfo parent_struct; 1904s # const gchar *hyphen_name; 1904s # guint use_gvariant : 1; 1904s # guint emits_changed_signal : 1; 1904s # } _ExtendedGDBusPropertyInfo; 1904s # 1904s # typedef struct 1904s # { 1904s # GDBusInterfaceInfo parent_struct; 1904s # const gchar *hyphen_name; 1904s # } _ExtendedGDBusInterfaceInfo; 1904s # 1904s # typedef struct 1904s # { 1904s # const _ExtendedGDBusPropertyInfo *info; 1904s # guint prop_id; 1904s # GValue orig_value; /* the value before the change */ 1904s # } ChangedProperty; 1904s # 1904s # static void 1904s # _changed_property_free (ChangedProperty *data) 1904s # { 1904s # g_value_unset (&data->orig_value); 1904s # g_free (data); 1904s # } 1904s # 1904s # static gboolean 1904s # _g_strv_equal0 (gchar **a, gchar **b) 1904s # { 1904s # gboolean ret = FALSE; 1904s # guint n; 1904s # if (a == NULL && b == NULL) 1904s # { 1904s # ret = TRUE; 1904s # goto out; 1904s # } 1904s # if (a == NULL || b == NULL) 1904s # goto out; 1904s # if (g_strv_length (a) != g_strv_length (b)) 1904s # goto out; 1904s # for (n = 0; a[n] != NULL; n++) 1904s # if (g_strcmp0 (a[n], b[n]) != 0) 1904s # goto out; 1904s # ret = TRUE; 1904s # out: 1904s # return ret; 1904s # } 1904s # 1904s # static gboolean 1904s # _g_variant_equal0 (GVariant *a, GVariant *b) 1904s # { 1904s # gboolean ret = FALSE; 1904s # if (a == NULL && b == NULL) 1904s # { 1904s # ret = TRUE; 1904s # goto out; 1904s # } 1904s # if (a == NULL || b == NULL) 1904s # goto out; 1904s # ret = g_variant_equal (a, b); 1904s # out: 1904s # return ret; 1904s # } 1904s # 1904s # G_GNUC_UNUSED static gboolean 1904s # _g_value_equal (const GValue *a, const GValue *b) 1904s # { 1904s # gboolean ret = FALSE; 1904s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1904s # switch (G_VALUE_TYPE (a)) 1904s # { 1904s # case G_TYPE_BOOLEAN: 1904s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1904s # break; 1904s # case G_TYPE_UCHAR: 1904s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1904s # break; 1904s # case G_TYPE_INT: 1904s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1904s # break; 1904s # case G_TYPE_UINT: 1904s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1904s # break; 1904s # case G_TYPE_INT64: 1904s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1904s # break; 1904s # case G_TYPE_UINT64: 1904s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1904s # break; 1904s # case G_TYPE_DOUBLE: 1904s # { 1904s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1904s # gdouble da = g_value_get_double (a); 1904s # gdouble db = g_value_get_double (b); 1904s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1904s # } 1904s # break; 1904s # case G_TYPE_STRING: 1904s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1904s # break; 1904s # case G_TYPE_VARIANT: 1904s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1904s # break; 1904s # default: 1904s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1904s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1904s # else 1904s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1904s # break; 1904s # } 1904s # return ret; 1904s # } 1904s # Error: 1904s ok 4 __main__.TestCodegen.test_empty_interface_header 1904s # gdbus-codegen: /usr/bin/gdbus-codegen 1904s # tmpdir: /tmp/tmpvq8h9h5j 1904s # /tmp/tmpvq8h9h5j/tmpr0kjmpja.xml: 1904s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpvq8h9h5j/tmpr0kjmpja.xml', '--output', '-', '--header'] 1904s # Return code: 0 1904s # Output: 1904s # /* 1904s # * This file is generated by gdbus-codegen, do not modify it. 1904s # * 1904s # * The license of this code is the same as for the D-Bus interface description 1904s # * it was derived from. Note that it links to GLib, so must comply with the 1904s # * LGPL linking clauses. 1904s # */ 1904s # 1904s # #ifndef __STDOUT__ 1904s # #define __STDOUT__ 1904s # 1904s # #include 1904s # 1904s # G_BEGIN_DECLS 1904s # 1904s # 1904s # G_END_DECLS 1904s # 1904s # #endif /* __STDOUT__ */ 1904s # Error: 1904s ok 5 __main__.TestCodegen.test_empty_interface_info_body 1904s # gdbus-codegen: /usr/bin/gdbus-codegen 1904s # tmpdir: /tmp/tmpwz4ge3bd 1904s # /tmp/tmpwz4ge3bd/tmpw89dt30_.xml: 1904s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwz4ge3bd/tmpw89dt30_.xml', '--output', '-', '--interface-info-body'] 1904s # Return code: 0 1904s # Output: 1904s # /* 1904s # * This file is generated by gdbus-codegen, do not modify it. 1904s # * 1904s # * The license of this code is the same as for the D-Bus interface description 1904s # * it was derived from. Note that it links to GLib, so must comply with the 1904s # * LGPL linking clauses. 1904s # */ 1904s # 1904s # #ifdef HAVE_CONFIG_H 1904s # # include "config.h" 1904s # #endif 1904s # 1904s # #include 1904s # Error: 1905s ok 6 __main__.TestCodegen.test_empty_interface_info_header 1905s # gdbus-codegen: /usr/bin/gdbus-codegen 1905s # tmpdir: /tmp/tmphhl0v35o 1905s # /tmp/tmphhl0v35o/tmpns8524nz.xml: 1905s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphhl0v35o/tmpns8524nz.xml', '--output', '-', '--interface-info-header'] 1905s # Return code: 0 1905s # Output: 1905s # /* 1905s # * This file is generated by gdbus-codegen, do not modify it. 1905s # * 1905s # * The license of this code is the same as for the D-Bus interface description 1905s # * it was derived from. Note that it links to GLib, so must comply with the 1905s # * LGPL linking clauses. 1905s # */ 1905s # 1905s # #ifndef __STDOUT__ 1905s # #define __STDOUT__ 1905s # 1905s # #include 1905s # 1905s # G_BEGIN_DECLS 1905s # 1905s # 1905s # G_END_DECLS 1905s # 1905s # #endif /* __STDOUT__ */ 1905s # Error: 1905s ok 7 __main__.TestCodegen.test_generate_docbook 1905s # gdbus-codegen: /usr/bin/gdbus-codegen 1905s # tmpdir: /tmp/tmpzjbvvvrx 1905s # /tmp/tmpzjbvvvrx/tmp61ncneot.xml: 1905s # 1905s # 1905s # 1905s # 1905s # 1905s # 1905s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpzjbvvvrx/tmp61ncneot.xml', '--generate-docbook', 'test'] 1905s # Return code: 0 1905s # Output: 1905s # 1905s # Error: 1905s ok 8 __main__.TestCodegen.test_generate_md 1905s # gdbus-codegen: /usr/bin/gdbus-codegen 1905s # tmpdir: /tmp/tmpn1lu2unp 1905s # /tmp/tmpn1lu2unp/tmp0zqj42gd.xml: 1905s # 1905s # 1905s # 1905s # 1905s # 1905s # 1905s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpn1lu2unp/tmp0zqj42gd.xml', '--generate-md', 'test'] 1905s # Return code: 0 1905s # Output: 1905s # 1905s # Error: 1905s ok 9 __main__.TestCodegen.test_generate_methods_marshaller_simple_method 1905s # gdbus-codegen: /usr/bin/gdbus-codegen 1905s # tmpdir: /tmp/tmpadc7g8dp 1905s # /tmp/tmpadc7g8dp/tmp2qg5v1oe.xml: 1905s # 1905s # 1905s # 1905s # 1905s # 1905s # 1905s # 1905s # 1905s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpadc7g8dp/tmp2qg5v1oe.xml', '--output', '-', '--body'] 1905s # Return code: 0 1905s # Output: 1905s # /* 1905s # * This file is generated by gdbus-codegen, do not modify it. 1905s # * 1905s # * The license of this code is the same as for the D-Bus interface description 1905s # * it was derived from. Note that it links to GLib, so must comply with the 1905s # * LGPL linking clauses. 1905s # */ 1905s # 1905s # #ifdef HAVE_CONFIG_H 1905s # # include "config.h" 1905s # #endif 1905s # 1905s # #include 1905s # #ifdef G_OS_UNIX 1905s # # include 1905s # #endif 1905s # 1905s # #ifdef G_ENABLE_DEBUG 1905s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1905s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1905s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1905s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1905s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1905s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1905s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1905s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1905s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1905s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1905s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1905s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1905s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1905s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1905s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1905s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1905s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1905s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1905s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1905s # #else /* !G_ENABLE_DEBUG */ 1905s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1905s # * Do not access GValues directly in your code. Instead, use the 1905s # * g_value_get_*() functions 1905s # */ 1905s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1905s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1905s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1905s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1905s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1905s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1905s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1905s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1905s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1905s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1905s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1905s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1905s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1905s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1905s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1905s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1905s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1905s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1905s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1905s # #endif /* !G_ENABLE_DEBUG */ 1905s # 1905s # typedef struct 1905s # { 1905s # GDBusArgInfo parent_struct; 1905s # gboolean use_gvariant; 1905s # } _ExtendedGDBusArgInfo; 1905s # 1905s # typedef struct 1905s # { 1905s # GDBusMethodInfo parent_struct; 1905s # const gchar *signal_name; 1905s # gboolean pass_fdlist; 1905s # } _ExtendedGDBusMethodInfo; 1905s # 1905s # typedef struct 1905s # { 1905s # GDBusSignalInfo parent_struct; 1905s # const gchar *signal_name; 1905s # } _ExtendedGDBusSignalInfo; 1905s # 1905s # typedef struct 1905s # { 1905s # GDBusPropertyInfo parent_struct; 1905s # const gchar *hyphen_name; 1905s # guint use_gvariant : 1; 1905s # guint emits_changed_signal : 1; 1905s # } _ExtendedGDBusPropertyInfo; 1905s # 1905s # typedef struct 1905s # { 1905s # GDBusInterfaceInfo parent_struct; 1905s # const gchar *hyphen_name; 1905s # } _ExtendedGDBusInterfaceInfo; 1905s # 1905s # typedef struct 1905s # { 1905s # const _ExtendedGDBusPropertyInfo *info; 1905s # guint prop_id; 1905s # GValue orig_value; /* the value before the change */ 1905s # } ChangedProperty; 1905s # 1905s # static void 1905s # _changed_property_free (ChangedProperty *data) 1905s # { 1905s # g_value_unset (&data->orig_value); 1905s # g_free (data); 1905s # } 1905s # 1905s # static gboolean 1905s # _g_strv_equal0 (gchar **a, gchar **b) 1905s # { 1905s # gboolean ret = FALSE; 1905s # guint n; 1905s # if (a == NULL && b == NULL) 1905s # { 1905s # ret = TRUE; 1905s # goto out; 1905s # } 1905s # if (a == NULL || b == NULL) 1905s # goto out; 1905s # if (g_strv_length (a) != g_strv_length (b)) 1905s # goto out; 1905s # for (n = 0; a[n] != NULL; n++) 1905s # if (g_strcmp0 (a[n], b[n]) != 0) 1905s # goto out; 1905s # ret = TRUE; 1905s # out: 1905s # return ret; 1905s # } 1905s # 1905s # static gboolean 1905s # _g_variant_equal0 (GVariant *a, GVariant *b) 1905s # { 1905s # gboolean ret = FALSE; 1905s # if (a == NULL && b == NULL) 1905s # { 1905s # ret = TRUE; 1905s # goto out; 1905s # } 1905s # if (a == NULL || b == NULL) 1905s # goto out; 1905s # ret = g_variant_equal (a, b); 1905s # out: 1905s # return ret; 1905s # } 1905s # 1905s # G_GNUC_UNUSED static gboolean 1905s # _g_value_equal (const GValue *a, const GValue *b) 1905s # { 1905s # gboolean ret = FALSE; 1905s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1905s # switch (G_VALUE_TYPE (a)) 1905s # { 1905s # case G_TYPE_BOOLEAN: 1905s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1905s # break; 1905s # case G_TYPE_UCHAR: 1905s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1905s # break; 1905s # case G_TYPE_INT: 1905s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1905s # break; 1905s # case G_TYPE_UINT: 1905s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1905s # break; 1905s # case G_TYPE_INT64: 1905s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1905s # break; 1905s # case G_TYPE_UINT64: 1905s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1905s # break; 1905s # case G_TYPE_DOUBLE: 1905s # { 1905s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1905s # gdouble da = g_value_get_double (a); 1905s # gdouble db = g_value_get_double (b); 1905s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1905s # } 1905s # break; 1905s # case G_TYPE_STRING: 1905s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1905s # break; 1905s # case G_TYPE_VARIANT: 1905s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1905s # break; 1905s # default: 1905s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1905s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1905s # else 1905s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1905s # break; 1905s # } 1905s # return ret; 1905s # } 1905s # 1905s # static void 1905s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1905s # GClosure *closure, 1905s # GValue *return_value, 1905s # unsigned int n_param_values, 1905s # const GValue *param_values, 1905s # void *invocation_hint G_GNUC_UNUSED, 1905s # void *marshal_data) 1905s # { 1905s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1905s # (void *data1, 1905s # GDBusMethodInvocation *arg_method_invocation, 1905s # void *data2); 1905s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1905s # GCClosure *cc = (GCClosure*) closure; 1905s # void *data1, *data2; 1905s # gboolean v_return; 1905s # 1905s # g_return_if_fail (return_value != NULL); 1905s # g_return_if_fail (n_param_values == 2); 1905s # 1905s # if (G_CCLOSURE_SWAP_DATA (closure)) 1905s # { 1905s # data1 = closure->data; 1905s # data2 = g_value_peek_pointer (param_values + 0); 1905s # } 1905s # else 1905s # { 1905s # data1 = g_value_peek_pointer (param_values + 0); 1905s # data2 = closure->data; 1905s # } 1905s # 1905s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1905s # (marshal_data ? marshal_data : cc->callback); 1905s # 1905s # v_return = 1905s # callback (data1, 1905s # g_marshal_value_peek_object (param_values + 1), 1905s # data2); 1905s # 1905s # g_value_set_boolean (return_value, v_return); 1905s # } 1905s # 1905s # /* ------------------------------------------------------------------------ 1905s # * Code for interface org.project.CallableIface 1905s # * ------------------------------------------------------------------------ 1905s # */ 1905s # 1905s # /** 1905s # * SECTION:OrgProjectCallableIface 1905s # * @title: OrgProjectCallableIface 1905s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 1905s # * 1905s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 1905s # */ 1905s # 1905s # /* ---- Introspection data for org.project.CallableIface ---- */ 1905s # 1905s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_simple_method = 1905s # { 1905s # { 1905s # -1, 1905s # (gchar *) "SimpleMethod", 1905s # NULL, 1905s # NULL, 1905s # NULL 1905s # }, 1905s # "handle-simple-method", 1905s # FALSE 1905s # }; 1905s # 1905s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 1905s # { 1905s # &_org_project_callable_iface_method_info_simple_method.parent_struct, 1905s # NULL 1905s # }; 1905s # 1905s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 1905s # { 1905s # { 1905s # -1, 1905s # (gchar *) "org.project.CallableIface", 1905s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 1905s # NULL, 1905s # NULL, 1905s # NULL 1905s # }, 1905s # "org-project-callable-iface", 1905s # }; 1905s # 1905s # 1905s # /** 1905s # * org_project_callable_iface_interface_info: 1905s # * 1905s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 1905s # * 1905s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1905s # */ 1905s # GDBusInterfaceInfo * 1905s # org_project_callable_iface_interface_info (void) 1905s # { 1905s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 1905s # } 1905s # 1905s # /** 1905s # * org_project_callable_iface_override_properties: 1905s # * @klass: The class structure for a #GObject derived class. 1905s # * @property_id_begin: The property id to assign to the first overridden property. 1905s # * 1905s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 1905s # * The properties are overridden in the order they are defined. 1905s # * 1905s # * Returns: The last property id. 1905s # */ 1905s # guint 1905s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1905s # { 1905s # return property_id_begin - 1; 1905s # } 1905s # 1905s # 1905s # inline static void 1905s # org_project_callable_iface_method_marshal_simple_method ( 1905s # GClosure *closure, 1905s # GValue *return_value, 1905s # unsigned int n_param_values, 1905s # const GValue *param_values, 1905s # void *invocation_hint, 1905s # void *marshal_data) 1905s # { 1905s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1905s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1905s # } 1905s # 1905s # 1905s # /** 1905s # * OrgProjectCallableIface: 1905s # * 1905s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 1905s # */ 1905s # 1905s # /** 1905s # * OrgProjectCallableIfaceIface: 1905s # * @parent_iface: The parent interface. 1905s # * @handle_simple_method: Handler for the #OrgProjectCallableIface::handle-simple-method signal. 1905s # * 1905s # * Virtual table for the D-Bus interface org.project.CallableIface. 1905s # */ 1905s # 1905s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 1905s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 1905s # 1905s # static void 1905s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 1905s # { 1905s # /* GObject signals for incoming D-Bus method calls: */ 1905s # /** 1905s # * OrgProjectCallableIface::handle-simple-method: 1905s # * @object: A #OrgProjectCallableIface. 1905s # * @invocation: A #GDBusMethodInvocation. 1905s # * 1905s # * Signal emitted when a remote caller is invoking the SimpleMethod() D-Bus method. 1905s # * 1905s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_callable_iface_complete_simple_method() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1905s # * 1905s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1905s # */ 1905s # g_signal_new ("handle-simple-method", 1905s # G_TYPE_FROM_INTERFACE (iface), 1905s # G_SIGNAL_RUN_LAST, 1905s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_simple_method), 1905s # g_signal_accumulator_true_handled, 1905s # NULL, 1905s # org_project_callable_iface_method_marshal_simple_method, 1905s # G_TYPE_BOOLEAN, 1905s # 1, 1905s # G_TYPE_DBUS_METHOD_INVOCATION); 1905s # 1905s # } 1905s # 1905s # /** 1905s # * org_project_callable_iface_call_simple_method: 1905s # * @proxy: A #OrgProjectCallableIfaceProxy. 1905s # * @cancellable: (nullable): A #GCancellable or %NULL. 1905s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1905s # * @user_data: User data to pass to @callback. 1905s # * 1905s # * Asynchronously invokes the SimpleMethod() D-Bus method on @proxy. 1905s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1905s # * You can then call org_project_callable_iface_call_simple_method_finish() to get the result of the operation. 1905s # * 1905s # * See org_project_callable_iface_call_simple_method_sync() for the synchronous, blocking version of this method. 1905s # */ 1905s # void 1905s # org_project_callable_iface_call_simple_method ( 1905s # OrgProjectCallableIface *proxy, 1905s # GCancellable *cancellable, 1905s # GAsyncReadyCallback callback, 1905s # gpointer user_data) 1905s # { 1905s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1905s # "SimpleMethod", 1905s # g_variant_new ("()"), 1905s # G_DBUS_CALL_FLAGS_NONE, 1905s # -1, 1905s # cancellable, 1905s # callback, 1905s # user_data); 1905s # } 1905s # 1905s # /** 1905s # * org_project_callable_iface_call_simple_method_finish: 1905s # * @proxy: A #OrgProjectCallableIfaceProxy. 1905s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_simple_method(). 1905s # * @error: Return location for error or %NULL. 1905s # * 1905s # * Finishes an operation started with org_project_callable_iface_call_simple_method(). 1905s # * 1905s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1905s # */ 1905s # gboolean 1905s # org_project_callable_iface_call_simple_method_finish ( 1905s # OrgProjectCallableIface *proxy, 1905s # GAsyncResult *res, 1905s # GError **error) 1905s # { 1905s # GVariant *_ret; 1905s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1905s # if (_ret == NULL) 1905s # goto _out; 1905s # g_variant_get (_ret, 1905s # "()"); 1905s # g_variant_unref (_ret); 1905s # _out: 1905s # return _ret != NULL; 1905s # } 1905s # 1905s # /** 1905s # * org_project_callable_iface_call_simple_method_sync: 1905s # * @proxy: A #OrgProjectCallableIfaceProxy. 1905s # * @cancellable: (nullable): A #GCancellable or %NULL. 1905s # * @error: Return location for error or %NULL. 1905s # * 1905s # * Synchronously invokes the SimpleMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1905s # * 1905s # * See org_project_callable_iface_call_simple_method() for the asynchronous version of this method. 1905s # * 1905s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1905s # */ 1905s # gboolean 1905s # org_project_callable_iface_call_simple_method_sync ( 1905s # OrgProjectCallableIface *proxy, 1905s # GCancellable *cancellable, 1905s # GError **error) 1905s # { 1905s # GVariant *_ret; 1905s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1905s # "SimpleMethod", 1905s # g_variant_new ("()"), 1905s # G_DBUS_CALL_FLAGS_NONE, 1905s # -1, 1905s # cancellable, 1905s # error); 1905s # if (_ret == NULL) 1905s # goto _out; 1905s # g_variant_get (_ret, 1905s # "()"); 1905s # g_variant_unref (_ret); 1905s # _out: 1905s # return _ret != NULL; 1905s # } 1905s # 1905s # /** 1905s # * org_project_callable_iface_complete_simple_method: 1905s # * @object: A #OrgProjectCallableIface. 1905s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1905s # * 1905s # * Helper function used in service implementations to finish handling invocations of the SimpleMethod() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1905s # * 1905s # * This method will free @invocation, you cannot use it afterwards. 1905s # */ 1905s # void 1905s # org_project_callable_iface_complete_simple_method ( 1905s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1905s # GDBusMethodInvocation *invocation) 1905s # { 1905s # g_dbus_method_invocation_return_value (invocation, 1905s # g_variant_new ("()")); 1905s # } 1905s # 1905s # /* ------------------------------------------------------------------------ */ 1905s # 1905s # /** 1905s # * OrgProjectCallableIfaceProxy: 1905s # * 1905s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1905s # */ 1905s # 1905s # /** 1905s # * OrgProjectCallableIfaceProxyClass: 1905s # * @parent_class: The parent class. 1905s # * 1905s # * Class structure for #OrgProjectCallableIfaceProxy. 1905s # */ 1905s # 1905s # struct _OrgProjectCallableIfaceProxyPrivate 1905s # { 1905s # GData *qdata; 1905s # }; 1905s # 1905s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 1905s # 1905s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1905s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1905s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 1905s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1905s # 1905s # #else 1905s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1905s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1905s # 1905s # #endif 1905s # static void 1905s # org_project_callable_iface_proxy_finalize (GObject *object) 1905s # { 1905s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 1905s # g_datalist_clear (&proxy->priv->qdata); 1905s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 1905s # } 1905s # 1905s # static void 1905s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1905s # guint prop_id G_GNUC_UNUSED, 1905s # GValue *value G_GNUC_UNUSED, 1905s # GParamSpec *pspec G_GNUC_UNUSED) 1905s # { 1905s # } 1905s # 1905s # static void 1905s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1905s # guint prop_id G_GNUC_UNUSED, 1905s # const GValue *value G_GNUC_UNUSED, 1905s # GParamSpec *pspec G_GNUC_UNUSED) 1905s # { 1905s # } 1905s # 1905s # static void 1905s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1905s # const gchar *sender_name G_GNUC_UNUSED, 1905s # const gchar *signal_name, 1905s # GVariant *parameters) 1905s # { 1905s # _ExtendedGDBusSignalInfo *info; 1905s # GVariantIter iter; 1905s # GVariant *child; 1905s # GValue *paramv; 1905s # gsize num_params; 1905s # gsize n; 1905s # guint signal_id; 1905s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 1905s # if (info == NULL) 1905s # return; 1905s # num_params = g_variant_n_children (parameters); 1905s # paramv = g_new0 (GValue, num_params + 1); 1905s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1905s # g_value_set_object (¶mv[0], proxy); 1905s # g_variant_iter_init (&iter, parameters); 1905s # n = 1; 1905s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1905s # { 1905s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1905s # if (arg_info->use_gvariant) 1905s # { 1905s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1905s # g_value_set_variant (¶mv[n], child); 1905s # n++; 1905s # } 1905s # else 1905s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1905s # g_variant_unref (child); 1905s # } 1905s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1905s # g_signal_emitv (paramv, signal_id, 0, NULL); 1905s # for (n = 0; n < num_params + 1; n++) 1905s # g_value_unset (¶mv[n]); 1905s # g_free (paramv); 1905s # } 1905s # 1905s # static void 1905s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1905s # GVariant *changed_properties, 1905s # const gchar *const *invalidated_properties) 1905s # { 1905s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 1905s # guint n; 1905s # const gchar *key; 1905s # GVariantIter *iter; 1905s # _ExtendedGDBusPropertyInfo *info; 1905s # g_variant_get (changed_properties, "a{sv}", &iter); 1905s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1905s # { 1905s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 1905s # g_datalist_remove_data (&proxy->priv->qdata, key); 1905s # if (info != NULL) 1905s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1905s # } 1905s # g_variant_iter_free (iter); 1905s # for (n = 0; invalidated_properties[n] != NULL; n++) 1905s # { 1905s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1905s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1905s # if (info != NULL) 1905s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1905s # } 1905s # } 1905s # 1905s # static void 1905s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 1905s # { 1905s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1905s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 1905s # #else 1905s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 1905s # #endif 1905s # 1905s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 1905s # } 1905s # 1905s # static void 1905s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 1905s # { 1905s # GObjectClass *gobject_class; 1905s # GDBusProxyClass *proxy_class; 1905s # 1905s # gobject_class = G_OBJECT_CLASS (klass); 1905s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 1905s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 1905s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 1905s # 1905s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1905s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 1905s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 1905s # 1905s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1905s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 1905s # #endif 1905s # } 1905s # 1905s # static void 1905s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1905s # { 1905s # } 1905s # 1905s # /** 1905s # * org_project_callable_iface_proxy_new: 1905s # * @connection: A #GDBusConnection. 1905s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1905s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1905s # * @object_path: An object path. 1905s # * @cancellable: (nullable): A #GCancellable or %NULL. 1905s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1905s # * @user_data: User data to pass to @callback. 1905s # * 1905s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 1905s # * 1905s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1905s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 1905s # * 1905s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1905s # */ 1905s # void 1905s # org_project_callable_iface_proxy_new ( 1905s # GDBusConnection *connection, 1905s # GDBusProxyFlags flags, 1905s # const gchar *name, 1905s # const gchar *object_path, 1905s # GCancellable *cancellable, 1905s # GAsyncReadyCallback callback, 1905s # gpointer user_data) 1905s # { 1905s # g_async_initable_new_async (TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.CallableIface", NULL); 1905s # } 1905s # 1905s # /** 1905s # * org_project_callable_iface_proxy_new_finish: 1905s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 1905s # * @error: Return location for error or %NULL 1905s # * 1905s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 1905s # * 1905s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1905s # */ 1905s # OrgProjectCallableIface * 1905s # org_project_callable_iface_proxy_new_finish ( 1905s # GAsyncResult *res, 1905s # GError **error) 1905s # { 1905s # GObject *ret; 1905s # GObject *source_object; 1905s # source_object = g_async_result_get_source_object (res); 1905s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1905s # g_object_unref (source_object); 1905s # if (ret != NULL) 1905s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1905s # else 1905s # return NULL; 1905s # } 1905s # 1905s # /** 1905s # * org_project_callable_iface_proxy_new_sync: 1905s # * @connection: A #GDBusConnection. 1905s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1905s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1905s # * @object_path: An object path. 1905s # * @cancellable: (nullable): A #GCancellable or %NULL. 1905s # * @error: Return location for error or %NULL 1905s # * 1905s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 1905s # * 1905s # * The calling thread is blocked until a reply is received. 1905s # * 1905s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 1905s # * 1905s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1905s # */ 1905s # OrgProjectCallableIface * 1905s # org_project_callable_iface_proxy_new_sync ( 1905s # GDBusConnection *connection, 1905s # GDBusProxyFlags flags, 1905s # const gchar *name, 1905s # const gchar *object_path, 1905s # GCancellable *cancellable, 1905s # GError **error) 1905s # { 1905s # GInitable *ret; 1905s # ret = g_initable_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.CallableIface", NULL); 1905s # if (ret != NULL) 1905s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1905s # else 1905s # return NULL; 1905s # } 1905s # 1905s # 1905s # /** 1905s # * org_project_callable_iface_proxy_new_for_bus: 1905s # * @bus_type: A #GBusType. 1905s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1905s # * @name: A bus name (well-known or unique). 1905s # * @object_path: An object path. 1905s # * @cancellable: (nullable): A #GCancellable or %NULL. 1905s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1905s # * @user_data: User data to pass to @callback. 1905s # * 1905s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1905s # * 1905s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1905s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1905s # * 1905s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1905s # */ 1905s # void 1905s # org_project_callable_iface_proxy_new_for_bus ( 1905s # GBusType bus_type, 1905s # GDBusProxyFlags flags, 1905s # const gchar *name, 1905s # const gchar *object_path, 1905s # GCancellable *cancellable, 1905s # GAsyncReadyCallback callback, 1905s # gpointer user_data) 1905s # { 1905s # g_async_initable_new_async (TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.CallableIface", NULL); 1905s # } 1905s # 1905s # /** 1905s # * org_project_callable_iface_proxy_new_for_bus_finish: 1905s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 1905s # * @error: Return location for error or %NULL 1905s # * 1905s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 1905s # * 1905s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1905s # */ 1905s # OrgProjectCallableIface * 1905s # org_project_callable_iface_proxy_new_for_bus_finish ( 1905s # GAsyncResult *res, 1905s # GError **error) 1905s # { 1905s # GObject *ret; 1905s # GObject *source_object; 1905s # source_object = g_async_result_get_source_object (res); 1905s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1905s # g_object_unref (source_object); 1905s # if (ret != NULL) 1905s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1905s # else 1905s # return NULL; 1905s # } 1905s # 1905s # /** 1905s # * org_project_callable_iface_proxy_new_for_bus_sync: 1905s # * @bus_type: A #GBusType. 1905s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1905s # * @name: A bus name (well-known or unique). 1905s # * @object_path: An object path. 1905s # * @cancellable: (nullable): A #GCancellable or %NULL. 1905s # * @error: Return location for error or %NULL 1905s # * 1905s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1905s # * 1905s # * The calling thread is blocked until a reply is received. 1905s # * 1905s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1905s # * 1905s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1905s # */ 1905s # OrgProjectCallableIface * 1905s # org_project_callable_iface_proxy_new_for_bus_sync ( 1905s # GBusType bus_type, 1905s # GDBusProxyFlags flags, 1905s # const gchar *name, 1905s # const gchar *object_path, 1905s # GCancellable *cancellable, 1905s # GError **error) 1905s # { 1905s # GInitable *ret; 1905s # ret = g_initable_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.CallableIface", NULL); 1905s # if (ret != NULL) 1905s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1905s # else 1905s # return NULL; 1905s # } 1905s # 1905s # 1905s # /* ------------------------------------------------------------------------ */ 1905s # 1905s # /** 1905s # * OrgProjectCallableIfaceSkeleton: 1905s # * 1905s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1905s # */ 1905s # 1905s # /** 1905s # * OrgProjectCallableIfaceSkeletonClass: 1905s # * @parent_class: The parent class. 1905s # * 1905s # * Class structure for #OrgProjectCallableIfaceSkeleton. 1905s # */ 1905s # 1905s # struct _OrgProjectCallableIfaceSkeletonPrivate 1905s # { 1905s # GValue *properties; 1905s # GList *changed_properties; 1905s # GSource *changed_properties_idle_source; 1905s # GMainContext *context; 1905s # GMutex lock; 1905s # }; 1905s # 1905s # static void 1905s # _org_project_callable_iface_skeleton_handle_method_call ( 1905s # GDBusConnection *connection G_GNUC_UNUSED, 1905s # const gchar *sender G_GNUC_UNUSED, 1905s # const gchar *object_path G_GNUC_UNUSED, 1905s # const gchar *interface_name, 1905s # const gchar *method_name, 1905s # GVariant *parameters, 1905s # GDBusMethodInvocation *invocation, 1905s # gpointer user_data) 1905s # { 1905s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1905s # _ExtendedGDBusMethodInfo *info; 1905s # GVariantIter iter; 1905s # GVariant *child; 1905s # GValue *paramv; 1905s # gsize num_params; 1905s # guint num_extra; 1905s # gsize n; 1905s # guint signal_id; 1905s # GValue return_value = G_VALUE_INIT; 1905s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1905s # g_assert (info != NULL); 1905s # num_params = g_variant_n_children (parameters); 1905s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1905s # n = 0; 1905s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1905s # g_value_set_object (¶mv[n++], skeleton); 1905s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1905s # g_value_set_object (¶mv[n++], invocation); 1905s # if (info->pass_fdlist) 1905s # { 1905s # #ifdef G_OS_UNIX 1905s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1905s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1905s # #else 1905s # g_assert_not_reached (); 1905s # #endif 1905s # } 1905s # g_variant_iter_init (&iter, parameters); 1905s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1905s # { 1905s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1905s # if (arg_info->use_gvariant) 1905s # { 1905s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1905s # g_value_set_variant (¶mv[n], child); 1905s # n++; 1905s # } 1905s # else 1905s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1905s # g_variant_unref (child); 1905s # } 1905s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1905s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1905s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1905s # if (!g_value_get_boolean (&return_value)) 1905s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1905s # g_value_unset (&return_value); 1905s # for (n = 0; n < num_params + num_extra; n++) 1905s # g_value_unset (¶mv[n]); 1905s # g_free (paramv); 1905s # } 1905s # 1905s # static GVariant * 1905s # _org_project_callable_iface_skeleton_handle_get_property ( 1905s # GDBusConnection *connection G_GNUC_UNUSED, 1905s # const gchar *sender G_GNUC_UNUSED, 1905s # const gchar *object_path G_GNUC_UNUSED, 1905s # const gchar *interface_name G_GNUC_UNUSED, 1905s # const gchar *property_name, 1905s # GError **error, 1905s # gpointer user_data) 1905s # { 1905s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1905s # GValue value = G_VALUE_INIT; 1905s # GParamSpec *pspec; 1905s # _ExtendedGDBusPropertyInfo *info; 1905s # GVariant *ret; 1905s # ret = NULL; 1905s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1905s # g_assert (info != NULL); 1905s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1905s # if (pspec == NULL) 1905s # { 1905s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1905s # } 1905s # else 1905s # { 1905s # g_value_init (&value, pspec->value_type); 1905s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1905s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1905s # g_value_unset (&value); 1905s # } 1905s # return ret; 1905s # } 1905s # 1905s # static gboolean 1905s # _org_project_callable_iface_skeleton_handle_set_property ( 1905s # GDBusConnection *connection G_GNUC_UNUSED, 1905s # const gchar *sender G_GNUC_UNUSED, 1905s # const gchar *object_path G_GNUC_UNUSED, 1905s # const gchar *interface_name G_GNUC_UNUSED, 1905s # const gchar *property_name, 1905s # GVariant *variant, 1905s # GError **error, 1905s # gpointer user_data) 1905s # { 1905s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1905s # GValue value = G_VALUE_INIT; 1905s # GParamSpec *pspec; 1905s # _ExtendedGDBusPropertyInfo *info; 1905s # gboolean ret; 1905s # ret = FALSE; 1905s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1905s # g_assert (info != NULL); 1905s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1905s # if (pspec == NULL) 1905s # { 1905s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1905s # } 1905s # else 1905s # { 1905s # if (info->use_gvariant) 1905s # g_value_set_variant (&value, variant); 1905s # else 1905s # g_dbus_gvariant_to_gvalue (variant, &value); 1905s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1905s # g_value_unset (&value); 1905s # ret = TRUE; 1905s # } 1905s # return ret; 1905s # } 1905s # 1905s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 1905s # { 1905s # _org_project_callable_iface_skeleton_handle_method_call, 1905s # _org_project_callable_iface_skeleton_handle_get_property, 1905s # _org_project_callable_iface_skeleton_handle_set_property, 1905s # {NULL} 1905s # }; 1905s # 1905s # static GDBusInterfaceInfo * 1905s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1905s # { 1905s # return org_project_callable_iface_interface_info (); 1905s # } 1905s # 1905s # static GDBusInterfaceVTable * 1905s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1905s # { 1905s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 1905s # } 1905s # 1905s # static GVariant * 1905s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1905s # { 1905s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 1905s # 1905s # GVariantBuilder builder; 1905s # guint n; 1905s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1905s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1905s # #else 1905s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1905s # #endif 1905s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 1905s # goto out; 1905s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1905s # { 1905s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 1905s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1905s # { 1905s # GVariant *value; 1905s # value = _org_project_callable_iface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.CallableIface", info->name, NULL, skeleton); 1905s # if (value != NULL) 1905s # { 1905s # g_variant_take_ref (value); 1905s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1905s # g_variant_unref (value); 1905s # } 1905s # } 1905s # } 1905s # out: 1905s # return g_variant_builder_end (&builder); 1905s # } 1905s # 1905s # static void 1905s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1905s # { 1905s # } 1905s # 1905s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 1905s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1905s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1905s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 1905s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1905s # 1905s # #else 1905s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1905s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1905s # 1905s # #endif 1905s # static void 1905s # org_project_callable_iface_skeleton_finalize (GObject *object) 1905s # { 1905s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 1905s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1905s # if (skeleton->priv->changed_properties_idle_source != NULL) 1905s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1905s # g_main_context_unref (skeleton->priv->context); 1905s # g_mutex_clear (&skeleton->priv->lock); 1905s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 1905s # } 1905s # 1905s # static void 1905s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 1905s # { 1905s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1905s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 1905s # #else 1905s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 1905s # #endif 1905s # 1905s # g_mutex_init (&skeleton->priv->lock); 1905s # skeleton->priv->context = g_main_context_ref_thread_default (); 1905s # } 1905s # 1905s # static void 1905s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 1905s # { 1905s # GObjectClass *gobject_class; 1905s # GDBusInterfaceSkeletonClass *skeleton_class; 1905s # 1905s # gobject_class = G_OBJECT_CLASS (klass); 1905s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 1905s # 1905s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1905s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 1905s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 1905s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 1905s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 1905s # 1905s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1905s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 1905s # #endif 1905s # } 1905s # 1905s # static void 1905s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1905s # { 1905s # } 1905s # 1905s # /** 1905s # * org_project_callable_iface_skeleton_new: 1905s # * 1905s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 1905s # * 1905s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 1905s # */ 1905s # OrgProjectCallableIface * 1905s # org_project_callable_iface_skeleton_new (void) 1905s # { 1905s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 1905s # } 1905s # 1905s # /* ------------------------------------------------------------------------ 1905s # * Code for interface org.project.OtherCallableIface 1905s # * ------------------------------------------------------------------------ 1905s # */ 1905s # 1905s # /** 1905s # * SECTION:OrgProjectOtherCallableIface 1905s # * @title: OrgProjectOtherCallableIface 1905s # * @short_description: Generated C code for the org.project.OtherCallableIface D-Bus interface 1905s # * 1905s # * This section contains code for working with the org.project.OtherCallableIface D-Bus interface in C. 1905s # */ 1905s # 1905s # /* ---- Introspection data for org.project.OtherCallableIface ---- */ 1905s # 1905s # static const _ExtendedGDBusMethodInfo _org_project_other_callable_iface_method_info_simple_method = 1905s # { 1905s # { 1905s # -1, 1905s # (gchar *) "SimpleMethod", 1905s # NULL, 1905s # NULL, 1905s # NULL 1905s # }, 1905s # "handle-simple-method", 1905s # FALSE 1905s # }; 1905s # 1905s # static const GDBusMethodInfo * const _org_project_other_callable_iface_method_info_pointers[] = 1905s # { 1905s # &_org_project_other_callable_iface_method_info_simple_method.parent_struct, 1905s # NULL 1905s # }; 1905s # 1905s # static const _ExtendedGDBusInterfaceInfo _org_project_other_callable_iface_interface_info = 1905s # { 1905s # { 1905s # -1, 1905s # (gchar *) "org.project.OtherCallableIface", 1905s # (GDBusMethodInfo **) &_org_project_other_callable_iface_method_info_pointers, 1905s # NULL, 1905s # NULL, 1905s # NULL 1905s # }, 1905s # "org-project-other-callable-iface", 1905s # }; 1905s # 1905s # 1905s # /** 1905s # * org_project_other_callable_iface_interface_info: 1905s # * 1905s # * Gets a machine-readable description of the org.project.OtherCallableIface D-Bus interface. 1905s # * 1905s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1905s # */ 1905s # GDBusInterfaceInfo * 1905s # org_project_other_callable_iface_interface_info (void) 1905s # { 1905s # return (GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct; 1905s # } 1905s # 1905s # /** 1905s # * org_project_other_callable_iface_override_properties: 1905s # * @klass: The class structure for a #GObject derived class. 1905s # * @property_id_begin: The property id to assign to the first overridden property. 1905s # * 1905s # * Overrides all #GObject properties in the #OrgProjectOtherCallableIface interface for a concrete class. 1905s # * The properties are overridden in the order they are defined. 1905s # * 1905s # * Returns: The last property id. 1905s # */ 1905s # guint 1905s # org_project_other_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1905s # { 1905s # return property_id_begin - 1; 1905s # } 1905s # 1905s # 1905s # inline static void 1905s # org_project_other_callable_iface_method_marshal_simple_method ( 1905s # GClosure *closure, 1905s # GValue *return_value, 1905s # unsigned int n_param_values, 1905s # const GValue *param_values, 1905s # void *invocation_hint, 1905s # void *marshal_data) 1905s # { 1905s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1905s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1905s # } 1905s # 1905s # 1905s # /** 1905s # * OrgProjectOtherCallableIface: 1905s # * 1905s # * Abstract interface type for the D-Bus interface org.project.OtherCallableIface. 1905s # */ 1905s # 1905s # /** 1905s # * OrgProjectOtherCallableIfaceIface: 1905s # * @parent_iface: The parent interface. 1905s # * @handle_simple_method: Handler for the #OrgProjectOtherCallableIface::handle-simple-method signal. 1905s # * 1905s # * Virtual table for the D-Bus interface org.project.OtherCallableIface. 1905s # */ 1905s # 1905s # typedef OrgProjectOtherCallableIfaceIface OrgProjectOtherCallableIfaceInterface; 1905s # G_DEFINE_INTERFACE (OrgProjectOtherCallableIface, org_project_other_callable_iface, G_TYPE_OBJECT) 1905s # 1905s # static void 1905s # org_project_other_callable_iface_default_init (OrgProjectOtherCallableIfaceIface *iface) 1905s # { 1905s # /* GObject signals for incoming D-Bus method calls: */ 1905s # /** 1905s # * OrgProjectOtherCallableIface::handle-simple-method: 1905s # * @object: A #OrgProjectOtherCallableIface. 1905s # * @invocation: A #GDBusMethodInvocation. 1905s # * 1905s # * Signal emitted when a remote caller is invoking the SimpleMethod() D-Bus method. 1905s # * 1905s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_other_callable_iface_complete_simple_method() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1905s # * 1905s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1905s # */ 1905s # g_signal_new ("handle-simple-method", 1905s # G_TYPE_FROM_INTERFACE (iface), 1905s # G_SIGNAL_RUN_LAST, 1905s # G_STRUCT_OFFSET (OrgProjectOtherCallableIfaceIface, handle_simple_method), 1905s # g_signal_accumulator_true_handled, 1905s # NULL, 1905s # org_project_other_callable_iface_method_marshal_simple_method, 1905s # G_TYPE_BOOLEAN, 1905s # 1, 1905s # G_TYPE_DBUS_METHOD_INVOCATION); 1905s # 1905s # } 1905s # 1905s # /** 1905s # * org_project_other_callable_iface_call_simple_method: 1905s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1905s # * @cancellable: (nullable): A #GCancellable or %NULL. 1905s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1905s # * @user_data: User data to pass to @callback. 1905s # * 1905s # * Asynchronously invokes the SimpleMethod() D-Bus method on @proxy. 1905s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1905s # * You can then call org_project_other_callable_iface_call_simple_method_finish() to get the result of the operation. 1905s # * 1905s # * See org_project_other_callable_iface_call_simple_method_sync() for the synchronous, blocking version of this method. 1905s # */ 1905s # void 1905s # org_project_other_callable_iface_call_simple_method ( 1905s # OrgProjectOtherCallableIface *proxy, 1905s # GCancellable *cancellable, 1905s # GAsyncReadyCallback callback, 1905s # gpointer user_data) 1905s # { 1905s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1905s # "SimpleMethod", 1905s # g_variant_new ("()"), 1905s # G_DBUS_CALL_FLAGS_NONE, 1905s # -1, 1905s # cancellable, 1905s # callback, 1905s # user_data); 1905s # } 1905s # 1905s # /** 1905s # * org_project_other_callable_iface_call_simple_method_finish: 1905s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1905s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_call_simple_method(). 1905s # * @error: Return location for error or %NULL. 1905s # * 1905s # * Finishes an operation started with org_project_other_callable_iface_call_simple_method(). 1905s # * 1905s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1905s # */ 1905s # gboolean 1905s # org_project_other_callable_iface_call_simple_method_finish ( 1905s # OrgProjectOtherCallableIface *proxy, 1905s # GAsyncResult *res, 1905s # GError **error) 1905s # { 1905s # GVariant *_ret; 1905s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1905s # if (_ret == NULL) 1905s # goto _out; 1905s # g_variant_get (_ret, 1905s # "()"); 1905s # g_variant_unref (_ret); 1905s # _out: 1905s # return _ret != NULL; 1905s # } 1905s # 1905s # /** 1905s # * org_project_other_callable_iface_call_simple_method_sync: 1905s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1905s # * @cancellable: (nullable): A #GCancellable or %NULL. 1905s # * @error: Return location for error or %NULL. 1905s # * 1905s # * Synchronously invokes the SimpleMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1905s # * 1905s # * See org_project_other_callable_iface_call_simple_method() for the asynchronous version of this method. 1905s # * 1905s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1905s # */ 1905s # gboolean 1905s # org_project_other_callable_iface_call_simple_method_sync ( 1905s # OrgProjectOtherCallableIface *proxy, 1905s # GCancellable *cancellable, 1905s # GError **error) 1905s # { 1905s # GVariant *_ret; 1905s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1905s # "SimpleMethod", 1905s # g_variant_new ("()"), 1905s # G_DBUS_CALL_FLAGS_NONE, 1905s # -1, 1905s # cancellable, 1905s # error); 1905s # if (_ret == NULL) 1905s # goto _out; 1905s # g_variant_get (_ret, 1905s # "()"); 1905s # g_variant_unref (_ret); 1905s # _out: 1905s # return _ret != NULL; 1905s # } 1905s # 1905s # /** 1905s # * org_project_other_callable_iface_complete_simple_method: 1905s # * @object: A #OrgProjectOtherCallableIface. 1905s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1905s # * 1905s # * Helper function used in service implementations to finish handling invocations of the SimpleMethod() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1905s # * 1905s # * This method will free @invocation, you cannot use it afterwards. 1905s # */ 1905s # void 1905s # org_project_other_callable_iface_complete_simple_method ( 1905s # OrgProjectOtherCallableIface *object G_GNUC_UNUSED, 1905s # GDBusMethodInvocation *invocation) 1905s # { 1905s # g_dbus_method_invocation_return_value (invocation, 1905s # g_variant_new ("()")); 1905s # } 1905s # 1905s # /* ------------------------------------------------------------------------ */ 1905s # 1905s # /** 1905s # * OrgProjectOtherCallableIfaceProxy: 1905s # * 1905s # * The #OrgProjectOtherCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1905s # */ 1905s # 1905s # /** 1905s # * OrgProjectOtherCallableIfaceProxyClass: 1905s # * @parent_class: The parent class. 1905s # * 1905s # * Class structure for #OrgProjectOtherCallableIfaceProxy. 1905s # */ 1905s # 1905s # struct _OrgProjectOtherCallableIfaceProxyPrivate 1905s # { 1905s # GData *qdata; 1905s # }; 1905s # 1905s # static void org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1905s # 1905s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1905s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1905s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceProxy) 1905s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1905s # 1905s # #else 1905s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1905s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1905s # 1905s # #endif 1905s # static void 1905s # org_project_other_callable_iface_proxy_finalize (GObject *object) 1905s # { 1905s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (object); 1905s # g_datalist_clear (&proxy->priv->qdata); 1905s # G_OBJECT_CLASS (org_project_other_callable_iface_proxy_parent_class)->finalize (object); 1905s # } 1905s # 1905s # static void 1905s # org_project_other_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1905s # guint prop_id G_GNUC_UNUSED, 1905s # GValue *value G_GNUC_UNUSED, 1905s # GParamSpec *pspec G_GNUC_UNUSED) 1905s # { 1905s # } 1905s # 1905s # static void 1905s # org_project_other_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1905s # guint prop_id G_GNUC_UNUSED, 1905s # const GValue *value G_GNUC_UNUSED, 1905s # GParamSpec *pspec G_GNUC_UNUSED) 1905s # { 1905s # } 1905s # 1905s # static void 1905s # org_project_other_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1905s # const gchar *sender_name G_GNUC_UNUSED, 1905s # const gchar *signal_name, 1905s # GVariant *parameters) 1905s # { 1905s # _ExtendedGDBusSignalInfo *info; 1905s # GVariantIter iter; 1905s # GVariant *child; 1905s # GValue *paramv; 1905s # gsize num_params; 1905s # gsize n; 1905s # guint signal_id; 1905s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, signal_name); 1905s # if (info == NULL) 1905s # return; 1905s # num_params = g_variant_n_children (parameters); 1905s # paramv = g_new0 (GValue, num_params + 1); 1905s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1905s # g_value_set_object (¶mv[0], proxy); 1905s # g_variant_iter_init (&iter, parameters); 1905s # n = 1; 1905s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1905s # { 1905s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1905s # if (arg_info->use_gvariant) 1905s # { 1905s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1905s # g_value_set_variant (¶mv[n], child); 1905s # n++; 1905s # } 1905s # else 1905s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1905s # g_variant_unref (child); 1905s # } 1905s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1905s # g_signal_emitv (paramv, signal_id, 0, NULL); 1905s # for (n = 0; n < num_params + 1; n++) 1905s # g_value_unset (¶mv[n]); 1905s # g_free (paramv); 1905s # } 1905s # 1905s # static void 1905s # org_project_other_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1905s # GVariant *changed_properties, 1905s # const gchar *const *invalidated_properties) 1905s # { 1905s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (_proxy); 1905s # guint n; 1905s # const gchar *key; 1905s # GVariantIter *iter; 1905s # _ExtendedGDBusPropertyInfo *info; 1905s # g_variant_get (changed_properties, "a{sv}", &iter); 1905s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1905s # { 1905s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, key); 1905s # g_datalist_remove_data (&proxy->priv->qdata, key); 1905s # if (info != NULL) 1905s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1905s # } 1905s # g_variant_iter_free (iter); 1905s # for (n = 0; invalidated_properties[n] != NULL; n++) 1905s # { 1905s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1905s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1905s # if (info != NULL) 1905s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1905s # } 1905s # } 1905s # 1905s # static void 1905s # org_project_other_callable_iface_proxy_init (OrgProjectOtherCallableIfaceProxy *proxy) 1905s # { 1905s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1905s # proxy->priv = org_project_other_callable_iface_proxy_get_instance_private (proxy); 1905s # #else 1905s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, OrgProjectOtherCallableIfaceProxyPrivate); 1905s # #endif 1905s # 1905s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_callable_iface_interface_info ()); 1905s # } 1905s # 1905s # static void 1905s # org_project_other_callable_iface_proxy_class_init (OrgProjectOtherCallableIfaceProxyClass *klass) 1905s # { 1905s # GObjectClass *gobject_class; 1905s # GDBusProxyClass *proxy_class; 1905s # 1905s # gobject_class = G_OBJECT_CLASS (klass); 1905s # gobject_class->finalize = org_project_other_callable_iface_proxy_finalize; 1905s # gobject_class->get_property = org_project_other_callable_iface_proxy_get_property; 1905s # gobject_class->set_property = org_project_other_callable_iface_proxy_set_property; 1905s # 1905s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1905s # proxy_class->g_signal = org_project_other_callable_iface_proxy_g_signal; 1905s # proxy_class->g_properties_changed = org_project_other_callable_iface_proxy_g_properties_changed; 1905s # 1905s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1905s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceProxyPrivate)); 1905s # #endif 1905s # } 1905s # 1905s # static void 1905s # org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1905s # { 1905s # } 1905s # 1905s # /** 1905s # * org_project_other_callable_iface_proxy_new: 1905s # * @connection: A #GDBusConnection. 1905s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1905s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1905s # * @object_path: An object path. 1905s # * @cancellable: (nullable): A #GCancellable or %NULL. 1905s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1905s # * @user_data: User data to pass to @callback. 1905s # * 1905s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new() for more details. 1905s # * 1905s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1905s # * You can then call org_project_other_callable_iface_proxy_new_finish() to get the result of the operation. 1905s # * 1905s # * See org_project_other_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1905s # */ 1905s # void 1905s # org_project_other_callable_iface_proxy_new ( 1905s # GDBusConnection *connection, 1905s # GDBusProxyFlags flags, 1905s # const gchar *name, 1905s # const gchar *object_path, 1905s # GCancellable *cancellable, 1905s # GAsyncReadyCallback callback, 1905s # gpointer user_data) 1905s # { 1905s # g_async_initable_new_async (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.OtherCallableIface", NULL); 1905s # } 1905s # 1905s # /** 1905s # * org_project_other_callable_iface_proxy_new_finish: 1905s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new(). 1905s # * @error: Return location for error or %NULL 1905s # * 1905s # * Finishes an operation started with org_project_other_callable_iface_proxy_new(). 1905s # * 1905s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1905s # */ 1905s # OrgProjectOtherCallableIface * 1905s # org_project_other_callable_iface_proxy_new_finish ( 1905s # GAsyncResult *res, 1905s # GError **error) 1905s # { 1905s # GObject *ret; 1905s # GObject *source_object; 1905s # source_object = g_async_result_get_source_object (res); 1905s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1905s # g_object_unref (source_object); 1905s # if (ret != NULL) 1905s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1905s # else 1905s # return NULL; 1905s # } 1905s # 1905s # /** 1905s # * org_project_other_callable_iface_proxy_new_sync: 1905s # * @connection: A #GDBusConnection. 1905s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1905s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1905s # * @object_path: An object path. 1905s # * @cancellable: (nullable): A #GCancellable or %NULL. 1905s # * @error: Return location for error or %NULL 1905s # * 1905s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new_sync() for more details. 1905s # * 1905s # * The calling thread is blocked until a reply is received. 1905s # * 1905s # * See org_project_other_callable_iface_proxy_new() for the asynchronous version of this constructor. 1905s # * 1905s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1905s # */ 1905s # OrgProjectOtherCallableIface * 1905s # org_project_other_callable_iface_proxy_new_sync ( 1905s # GDBusConnection *connection, 1905s # GDBusProxyFlags flags, 1905s # const gchar *name, 1905s # const gchar *object_path, 1905s # GCancellable *cancellable, 1905s # GError **error) 1905s # { 1905s # GInitable *ret; 1905s # ret = g_initable_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.OtherCallableIface", NULL); 1905s # if (ret != NULL) 1905s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1905s # else 1905s # return NULL; 1905s # } 1905s # 1905s # 1905s # /** 1905s # * org_project_other_callable_iface_proxy_new_for_bus: 1905s # * @bus_type: A #GBusType. 1905s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1905s # * @name: A bus name (well-known or unique). 1905s # * @object_path: An object path. 1905s # * @cancellable: (nullable): A #GCancellable or %NULL. 1905s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1905s # * @user_data: User data to pass to @callback. 1905s # * 1905s # * Like org_project_other_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1905s # * 1905s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1905s # * You can then call org_project_other_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1905s # * 1905s # * See org_project_other_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1905s # */ 1905s # void 1905s # org_project_other_callable_iface_proxy_new_for_bus ( 1905s # GBusType bus_type, 1905s # GDBusProxyFlags flags, 1905s # const gchar *name, 1905s # const gchar *object_path, 1905s # GCancellable *cancellable, 1905s # GAsyncReadyCallback callback, 1905s # gpointer user_data) 1905s # { 1905s # g_async_initable_new_async (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.OtherCallableIface", NULL); 1905s # } 1905s # 1905s # /** 1905s # * org_project_other_callable_iface_proxy_new_for_bus_finish: 1905s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new_for_bus(). 1905s # * @error: Return location for error or %NULL 1905s # * 1905s # * Finishes an operation started with org_project_other_callable_iface_proxy_new_for_bus(). 1905s # * 1905s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1905s # */ 1905s # OrgProjectOtherCallableIface * 1905s # org_project_other_callable_iface_proxy_new_for_bus_finish ( 1905s # GAsyncResult *res, 1905s # GError **error) 1905s # { 1905s # GObject *ret; 1905s # GObject *source_object; 1905s # source_object = g_async_result_get_source_object (res); 1905s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1905s # g_object_unref (source_object); 1905s # if (ret != NULL) 1905s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1905s # else 1905s # return NULL; 1905s # } 1905s # 1905s # /** 1905s # * org_project_other_callable_iface_proxy_new_for_bus_sync: 1905s # * @bus_type: A #GBusType. 1905s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1905s # * @name: A bus name (well-known or unique). 1905s # * @object_path: An object path. 1905s # * @cancellable: (nullable): A #GCancellable or %NULL. 1905s # * @error: Return location for error or %NULL 1905s # * 1905s # * Like org_project_other_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1905s # * 1905s # * The calling thread is blocked until a reply is received. 1905s # * 1905s # * See org_project_other_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1905s # * 1905s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1905s # */ 1905s # OrgProjectOtherCallableIface * 1905s # org_project_other_callable_iface_proxy_new_for_bus_sync ( 1905s # GBusType bus_type, 1905s # GDBusProxyFlags flags, 1905s # const gchar *name, 1905s # const gchar *object_path, 1905s # GCancellable *cancellable, 1905s # GError **error) 1905s # { 1905s # GInitable *ret; 1905s # ret = g_initable_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.OtherCallableIface", NULL); 1905s # if (ret != NULL) 1905s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1905s # else 1905s # return NULL; 1905s # } 1905s # 1905s # 1905s # /* ------------------------------------------------------------------------ */ 1905s # 1905s # /** 1905s # * OrgProjectOtherCallableIfaceSkeleton: 1905s # * 1905s # * The #OrgProjectOtherCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1905s # */ 1905s # 1905s # /** 1905s # * OrgProjectOtherCallableIfaceSkeletonClass: 1905s # * @parent_class: The parent class. 1905s # * 1905s # * Class structure for #OrgProjectOtherCallableIfaceSkeleton. 1905s # */ 1905s # 1905s # struct _OrgProjectOtherCallableIfaceSkeletonPrivate 1905s # { 1905s # GValue *properties; 1905s # GList *changed_properties; 1905s # GSource *changed_properties_idle_source; 1905s # GMainContext *context; 1905s # GMutex lock; 1905s # }; 1905s # 1905s # static void 1905s # _org_project_other_callable_iface_skeleton_handle_method_call ( 1905s # GDBusConnection *connection G_GNUC_UNUSED, 1905s # const gchar *sender G_GNUC_UNUSED, 1905s # const gchar *object_path G_GNUC_UNUSED, 1905s # const gchar *interface_name, 1905s # const gchar *method_name, 1905s # GVariant *parameters, 1905s # GDBusMethodInvocation *invocation, 1905s # gpointer user_data) 1905s # { 1905s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1905s # _ExtendedGDBusMethodInfo *info; 1905s # GVariantIter iter; 1905s # GVariant *child; 1905s # GValue *paramv; 1905s # gsize num_params; 1905s # guint num_extra; 1905s # gsize n; 1905s # guint signal_id; 1905s # GValue return_value = G_VALUE_INIT; 1905s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1905s # g_assert (info != NULL); 1905s # num_params = g_variant_n_children (parameters); 1905s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1905s # n = 0; 1905s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1905s # g_value_set_object (¶mv[n++], skeleton); 1905s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1905s # g_value_set_object (¶mv[n++], invocation); 1905s # if (info->pass_fdlist) 1905s # { 1905s # #ifdef G_OS_UNIX 1905s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1905s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1905s # #else 1905s # g_assert_not_reached (); 1905s # #endif 1905s # } 1905s # g_variant_iter_init (&iter, parameters); 1905s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1905s # { 1905s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1905s # if (arg_info->use_gvariant) 1905s # { 1905s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1905s # g_value_set_variant (¶mv[n], child); 1905s # n++; 1905s # } 1905s # else 1905s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1905s # g_variant_unref (child); 1905s # } 1905s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1905s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1905s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1905s # if (!g_value_get_boolean (&return_value)) 1905s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1905s # g_value_unset (&return_value); 1905s # for (n = 0; n < num_params + num_extra; n++) 1905s # g_value_unset (¶mv[n]); 1905s # g_free (paramv); 1905s # } 1905s # 1905s # static GVariant * 1905s # _org_project_other_callable_iface_skeleton_handle_get_property ( 1905s # GDBusConnection *connection G_GNUC_UNUSED, 1905s # const gchar *sender G_GNUC_UNUSED, 1905s # const gchar *object_path G_GNUC_UNUSED, 1905s # const gchar *interface_name G_GNUC_UNUSED, 1905s # const gchar *property_name, 1905s # GError **error, 1905s # gpointer user_data) 1905s # { 1905s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1905s # GValue value = G_VALUE_INIT; 1905s # GParamSpec *pspec; 1905s # _ExtendedGDBusPropertyInfo *info; 1905s # GVariant *ret; 1905s # ret = NULL; 1905s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1905s # g_assert (info != NULL); 1905s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1905s # if (pspec == NULL) 1905s # { 1905s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1905s # } 1905s # else 1905s # { 1905s # g_value_init (&value, pspec->value_type); 1905s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1905s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1905s # g_value_unset (&value); 1905s # } 1905s # return ret; 1905s # } 1905s # 1905s # static gboolean 1905s # _org_project_other_callable_iface_skeleton_handle_set_property ( 1905s # GDBusConnection *connection G_GNUC_UNUSED, 1905s # const gchar *sender G_GNUC_UNUSED, 1905s # const gchar *object_path G_GNUC_UNUSED, 1905s # const gchar *interface_name G_GNUC_UNUSED, 1905s # const gchar *property_name, 1905s # GVariant *variant, 1905s # GError **error, 1905s # gpointer user_data) 1905s # { 1905s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1905s # GValue value = G_VALUE_INIT; 1905s # GParamSpec *pspec; 1905s # _ExtendedGDBusPropertyInfo *info; 1905s # gboolean ret; 1905s # ret = FALSE; 1905s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1905s # g_assert (info != NULL); 1905s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1905s # if (pspec == NULL) 1905s # { 1905s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1905s # } 1905s # else 1905s # { 1905s # if (info->use_gvariant) 1905s # g_value_set_variant (&value, variant); 1905s # else 1905s # g_dbus_gvariant_to_gvalue (variant, &value); 1905s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1905s # g_value_unset (&value); 1905s # ret = TRUE; 1905s # } 1905s # return ret; 1905s # } 1905s # 1905s # static const GDBusInterfaceVTable _org_project_other_callable_iface_skeleton_vtable = 1905s # { 1905s # _org_project_other_callable_iface_skeleton_handle_method_call, 1905s # _org_project_other_callable_iface_skeleton_handle_get_property, 1905s # _org_project_other_callable_iface_skeleton_handle_set_property, 1905s # {NULL} 1905s # }; 1905s # 1905s # static GDBusInterfaceInfo * 1905s # org_project_other_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1905s # { 1905s # return org_project_other_callable_iface_interface_info (); 1905s # } 1905s # 1905s # static GDBusInterfaceVTable * 1905s # org_project_other_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1905s # { 1905s # return (GDBusInterfaceVTable *) &_org_project_other_callable_iface_skeleton_vtable; 1905s # } 1905s # 1905s # static GVariant * 1905s # org_project_other_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1905s # { 1905s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (_skeleton); 1905s # 1905s # GVariantBuilder builder; 1905s # guint n; 1905s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1905s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1905s # #else 1905s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1905s # #endif 1905s # if (_org_project_other_callable_iface_interface_info.parent_struct.properties == NULL) 1905s # goto out; 1905s # for (n = 0; _org_project_other_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1905s # { 1905s # GDBusPropertyInfo *info = _org_project_other_callable_iface_interface_info.parent_struct.properties[n]; 1905s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1905s # { 1905s # GVariant *value; 1905s # value = _org_project_other_callable_iface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherCallableIface", info->name, NULL, skeleton); 1905s # if (value != NULL) 1905s # { 1905s # g_variant_take_ref (value); 1905s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1905s # g_variant_unref (value); 1905s # } 1905s # } 1905s # } 1905s # out: 1905s # return g_variant_builder_end (&builder); 1905s # } 1905s # 1905s # static void 1905s # org_project_other_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1905s # { 1905s # } 1905s # 1905s # static void org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1905s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1905s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1905s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceSkeleton) 1905s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1905s # 1905s # #else 1905s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1905s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1905s # 1905s # #endif 1905s # static void 1905s # org_project_other_callable_iface_skeleton_finalize (GObject *object) 1905s # { 1905s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (object); 1905s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1905s # if (skeleton->priv->changed_properties_idle_source != NULL) 1905s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1905s # g_main_context_unref (skeleton->priv->context); 1905s # g_mutex_clear (&skeleton->priv->lock); 1905s # G_OBJECT_CLASS (org_project_other_callable_iface_skeleton_parent_class)->finalize (object); 1905s # } 1905s # 1905s # static void 1905s # org_project_other_callable_iface_skeleton_init (OrgProjectOtherCallableIfaceSkeleton *skeleton) 1905s # { 1905s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1905s # skeleton->priv = org_project_other_callable_iface_skeleton_get_instance_private (skeleton); 1905s # #else 1905s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, OrgProjectOtherCallableIfaceSkeletonPrivate); 1905s # #endif 1905s # 1905s # g_mutex_init (&skeleton->priv->lock); 1905s # skeleton->priv->context = g_main_context_ref_thread_default (); 1905s # } 1905s # 1905s # static void 1905s # org_project_other_callable_iface_skeleton_class_init (OrgProjectOtherCallableIfaceSkeletonClass *klass) 1905s # { 1905s # GObjectClass *gobject_class; 1905s # GDBusInterfaceSkeletonClass *skeleton_class; 1905s # 1905s # gobject_class = G_OBJECT_CLASS (klass); 1905s # gobject_class->finalize = org_project_other_callable_iface_skeleton_finalize; 1905s # 1905s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1905s # skeleton_class->get_info = org_project_other_callable_iface_skeleton_dbus_interface_get_info; 1905s # skeleton_class->get_properties = org_project_other_callable_iface_skeleton_dbus_interface_get_properties; 1905s # skeleton_class->flush = org_project_other_callable_iface_skeleton_dbus_interface_flush; 1905s # skeleton_class->get_vtable = org_project_other_callable_iface_skeleton_dbus_interface_get_vtable; 1905s # 1905s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1905s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceSkeletonPrivate)); 1905s # #endif 1905s # } 1905s # 1905s # static void 1905s # org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1905s # { 1905s # } 1905s # 1905s # /** 1905s # * org_project_other_callable_iface_skeleton_new: 1905s # * 1905s # * Creates a skeleton object for the D-Bus interface org.project.OtherCallableIface. 1905s # * 1905s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceSkeleton): The skeleton object. 1905s # */ 1905s # OrgProjectOtherCallableIface * 1905s # org_project_other_callable_iface_skeleton_new (void) 1905s # { 1905s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, NULL)); 1905s # } 1905s # Error: 1906s ok 10 __main__.TestCodegen.test_generate_methods_marshaller_single_typed_in_args 1906s # gdbus-codegen: /usr/bin/gdbus-codegen 1906s # tmpdir: /tmp/tmpgxf70__r 1906s # /tmp/tmpgxf70__r/tmpg2f3l4rt.xml: 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgxf70__r/tmpg2f3l4rt.xml', '--output', '-', '--body'] 1906s # Return code: 0 1906s # Output: 1906s # /* 1906s # * This file is generated by gdbus-codegen, do not modify it. 1906s # * 1906s # * The license of this code is the same as for the D-Bus interface description 1906s # * it was derived from. Note that it links to GLib, so must comply with the 1906s # * LGPL linking clauses. 1906s # */ 1906s # 1906s # #ifdef HAVE_CONFIG_H 1906s # # include "config.h" 1906s # #endif 1906s # 1906s # #include 1906s # #ifdef G_OS_UNIX 1906s # # include 1906s # #endif 1906s # 1906s # #ifdef G_ENABLE_DEBUG 1906s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1906s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1906s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1906s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1906s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1906s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1906s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1906s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1906s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1906s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1906s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1906s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1906s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1906s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1906s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1906s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1906s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1906s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1906s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1906s # #else /* !G_ENABLE_DEBUG */ 1906s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1906s # * Do not access GValues directly in your code. Instead, use the 1906s # * g_value_get_*() functions 1906s # */ 1906s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1906s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1906s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1906s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1906s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1906s # #endif /* !G_ENABLE_DEBUG */ 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusArgInfo parent_struct; 1906s # gboolean use_gvariant; 1906s # } _ExtendedGDBusArgInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusMethodInfo parent_struct; 1906s # const gchar *signal_name; 1906s # gboolean pass_fdlist; 1906s # } _ExtendedGDBusMethodInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusSignalInfo parent_struct; 1906s # const gchar *signal_name; 1906s # } _ExtendedGDBusSignalInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusPropertyInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # guint use_gvariant : 1; 1906s # guint emits_changed_signal : 1; 1906s # } _ExtendedGDBusPropertyInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusInterfaceInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # } _ExtendedGDBusInterfaceInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # const _ExtendedGDBusPropertyInfo *info; 1906s # guint prop_id; 1906s # GValue orig_value; /* the value before the change */ 1906s # } ChangedProperty; 1906s # 1906s # static void 1906s # _changed_property_free (ChangedProperty *data) 1906s # { 1906s # g_value_unset (&data->orig_value); 1906s # g_free (data); 1906s # } 1906s # 1906s # static gboolean 1906s # _g_strv_equal0 (gchar **a, gchar **b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # guint n; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # if (g_strv_length (a) != g_strv_length (b)) 1906s # goto out; 1906s # for (n = 0; a[n] != NULL; n++) 1906s # if (g_strcmp0 (a[n], b[n]) != 0) 1906s # goto out; 1906s # ret = TRUE; 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _g_variant_equal0 (GVariant *a, GVariant *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # ret = g_variant_equal (a, b); 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # G_GNUC_UNUSED static gboolean 1906s # _g_value_equal (const GValue *a, const GValue *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1906s # switch (G_VALUE_TYPE (a)) 1906s # { 1906s # case G_TYPE_BOOLEAN: 1906s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1906s # break; 1906s # case G_TYPE_UCHAR: 1906s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1906s # break; 1906s # case G_TYPE_INT: 1906s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1906s # break; 1906s # case G_TYPE_UINT: 1906s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1906s # break; 1906s # case G_TYPE_INT64: 1906s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1906s # break; 1906s # case G_TYPE_UINT64: 1906s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1906s # break; 1906s # case G_TYPE_DOUBLE: 1906s # { 1906s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1906s # gdouble da = g_value_get_double (a); 1906s # gdouble db = g_value_get_double (b); 1906s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1906s # } 1906s # break; 1906s # case G_TYPE_STRING: 1906s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1906s # break; 1906s # case G_TYPE_VARIANT: 1906s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1906s # break; 1906s # default: 1906s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1906s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1906s # else 1906s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1906s # break; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static void 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint G_GNUC_UNUSED, 1906s # void *marshal_data) 1906s # { 1906s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBooleanFunc) 1906s # (void *data1, 1906s # GDBusMethodInvocation *arg_method_invocation, 1906s # gboolean arg_arg_b, 1906s # void *data2); 1906s # _GDbusCodegenMarshalBoolean_ObjectBooleanFunc callback; 1906s # GCClosure *cc = (GCClosure*) closure; 1906s # void *data1, *data2; 1906s # gboolean v_return; 1906s # 1906s # g_return_if_fail (return_value != NULL); 1906s # g_return_if_fail (n_param_values == 3); 1906s # 1906s # if (G_CCLOSURE_SWAP_DATA (closure)) 1906s # { 1906s # data1 = closure->data; 1906s # data2 = g_value_peek_pointer (param_values + 0); 1906s # } 1906s # else 1906s # { 1906s # data1 = g_value_peek_pointer (param_values + 0); 1906s # data2 = closure->data; 1906s # } 1906s # 1906s # callback = (_GDbusCodegenMarshalBoolean_ObjectBooleanFunc) 1906s # (marshal_data ? marshal_data : cc->callback); 1906s # 1906s # v_return = 1906s # callback (data1, 1906s # g_marshal_value_peek_object (param_values + 1), 1906s # g_marshal_value_peek_boolean (param_values + 2), 1906s # data2); 1906s # 1906s # g_value_set_boolean (return_value, v_return); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ 1906s # * Code for interface org.project.UsefulInterface 1906s # * ------------------------------------------------------------------------ 1906s # */ 1906s # 1906s # /** 1906s # * SECTION:OrgProjectUsefulInterface 1906s # * @title: OrgProjectUsefulInterface 1906s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1906s # * 1906s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1906s # */ 1906s # 1906s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1906s # 1906s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_arg_b = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "arg_b", 1906s # (gchar *) "b", 1906s # NULL 1906s # }, 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_arg_b.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_b = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "SingleArgMethodB", 1906s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_pointers, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "handle-single-arg-method-b", 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_b.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "org.project.UsefulInterface", 1906s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1906s # NULL, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "org-project-useful-interface", 1906s # }; 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_interface_info: 1906s # * 1906s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1906s # * 1906s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1906s # */ 1906s # GDBusInterfaceInfo * 1906s # org_project_useful_interface_interface_info (void) 1906s # { 1906s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_override_properties: 1906s # * @klass: The class structure for a #GObject derived class. 1906s # * @property_id_begin: The property id to assign to the first overridden property. 1906s # * 1906s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1906s # * The properties are overridden in the order they are defined. 1906s # * 1906s # * Returns: The last property id. 1906s # */ 1906s # guint 1906s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1906s # { 1906s # return property_id_begin - 1; 1906s # } 1906s # 1906s # 1906s # inline static void 1906s # org_project_useful_interface_method_marshal_single_arg_method_b ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint, 1906s # void *marshal_data) 1906s # { 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN (closure, 1906s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1906s # } 1906s # 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterface: 1906s # * 1906s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceIface: 1906s # * @parent_iface: The parent interface. 1906s # * @handle_single_arg_method_b: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-b signal. 1906s # * 1906s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1906s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1906s # 1906s # static void 1906s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1906s # { 1906s # /* GObject signals for incoming D-Bus method calls: */ 1906s # /** 1906s # * OrgProjectUsefulInterface::handle-single-arg-method-b: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: A #GDBusMethodInvocation. 1906s # * @arg_arg_b: Argument passed by remote caller. 1906s # * 1906s # * Signal emitted when a remote caller is invoking the SingleArgMethodB() D-Bus method. 1906s # * 1906s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_b() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1906s # * 1906s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1906s # */ 1906s # g_signal_new ("handle-single-arg-method-b", 1906s # G_TYPE_FROM_INTERFACE (iface), 1906s # G_SIGNAL_RUN_LAST, 1906s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_b), 1906s # g_signal_accumulator_true_handled, 1906s # NULL, 1906s # org_project_useful_interface_method_marshal_single_arg_method_b, 1906s # G_TYPE_BOOLEAN, 1906s # 2, 1906s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_BOOLEAN); 1906s # 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_b: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_b: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously invokes the SingleArgMethodB() D-Bus method on @proxy. 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_call_single_arg_method_b_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_b_sync() for the synchronous, blocking version of this method. 1906s # */ 1906s # void 1906s # org_project_useful_interface_call_single_arg_method_b ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # gboolean arg_arg_b, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodB", 1906s # g_variant_new ("(b)", 1906s # arg_arg_b), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # callback, 1906s # user_data); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_b_finish: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_b(). 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_b(). 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_b_finish ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_b_sync: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_b: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Synchronously invokes the SingleArgMethodB() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_b() for the asynchronous version of this method. 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_b_sync ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # gboolean arg_arg_b, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodB", 1906s # g_variant_new ("(b)", 1906s # arg_arg_b), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_complete_single_arg_method_b: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1906s # * 1906s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodB() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1906s # * 1906s # * This method will free @invocation, you cannot use it afterwards. 1906s # */ 1906s # void 1906s # org_project_useful_interface_complete_single_arg_method_b ( 1906s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1906s # GDBusMethodInvocation *invocation) 1906s # { 1906s # g_dbus_method_invocation_return_value (invocation, 1906s # g_variant_new ("()")); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxy: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxyClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceProxyPrivate 1906s # { 1906s # GData *qdata; 1906s # }; 1906s # 1906s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_proxy_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1906s # g_datalist_clear (&proxy->priv->qdata); 1906s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # const GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1906s # const gchar *sender_name G_GNUC_UNUSED, 1906s # const gchar *signal_name, 1906s # GVariant *parameters) 1906s # { 1906s # _ExtendedGDBusSignalInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # gsize n; 1906s # guint signal_id; 1906s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1906s # if (info == NULL) 1906s # return; 1906s # num_params = g_variant_n_children (parameters); 1906s # paramv = g_new0 (GValue, num_params + 1); 1906s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[0], proxy); 1906s # g_variant_iter_init (&iter, parameters); 1906s # n = 1; 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_signal_emitv (paramv, signal_id, 0, NULL); 1906s # for (n = 0; n < num_params + 1; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1906s # GVariant *changed_properties, 1906s # const gchar *const *invalidated_properties) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1906s # guint n; 1906s # const gchar *key; 1906s # GVariantIter *iter; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # g_variant_get (changed_properties, "a{sv}", &iter); 1906s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1906s # g_datalist_remove_data (&proxy->priv->qdata, key); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # g_variant_iter_free (iter); 1906s # for (n = 0; invalidated_properties[n] != NULL; n++) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1906s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1906s # #else 1906s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1906s # #endif 1906s # 1906s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusProxyClass *proxy_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1906s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1906s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1906s # 1906s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1906s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1906s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_sync: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_sync ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new_for_bus ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_sync: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_sync ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeleton: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeletonClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1906s # { 1906s # GValue *properties; 1906s # GList *changed_properties; 1906s # GSource *changed_properties_idle_source; 1906s # GMainContext *context; 1906s # GMutex lock; 1906s # }; 1906s # 1906s # static void 1906s # _org_project_useful_interface_skeleton_handle_method_call ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name, 1906s # const gchar *method_name, 1906s # GVariant *parameters, 1906s # GDBusMethodInvocation *invocation, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # _ExtendedGDBusMethodInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # guint num_extra; 1906s # gsize n; 1906s # guint signal_id; 1906s # GValue return_value = G_VALUE_INIT; 1906s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1906s # g_assert (info != NULL); 1906s # num_params = g_variant_n_children (parameters); 1906s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1906s # n = 0; 1906s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[n++], skeleton); 1906s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1906s # g_value_set_object (¶mv[n++], invocation); 1906s # if (info->pass_fdlist) 1906s # { 1906s # #ifdef G_OS_UNIX 1906s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1906s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1906s # #else 1906s # g_assert_not_reached (); 1906s # #endif 1906s # } 1906s # g_variant_iter_init (&iter, parameters); 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1906s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1906s # if (!g_value_get_boolean (&return_value)) 1906s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1906s # g_value_unset (&return_value); 1906s # for (n = 0; n < num_params + num_extra; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static GVariant * 1906s # _org_project_useful_interface_skeleton_handle_get_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # GVariant *ret; 1906s # ret = NULL; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # g_value_init (&value, pspec->value_type); 1906s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1906s # g_value_unset (&value); 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _org_project_useful_interface_skeleton_handle_set_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GVariant *variant, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # gboolean ret; 1906s # ret = FALSE; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # if (info->use_gvariant) 1906s # g_value_set_variant (&value, variant); 1906s # else 1906s # g_dbus_gvariant_to_gvalue (variant, &value); 1906s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # g_value_unset (&value); 1906s # ret = TRUE; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1906s # { 1906s # _org_project_useful_interface_skeleton_handle_method_call, 1906s # _org_project_useful_interface_skeleton_handle_get_property, 1906s # _org_project_useful_interface_skeleton_handle_set_property, 1906s # {NULL} 1906s # }; 1906s # 1906s # static GDBusInterfaceInfo * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return org_project_useful_interface_interface_info (); 1906s # } 1906s # 1906s # static GDBusInterfaceVTable * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1906s # } 1906s # 1906s # static GVariant * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1906s # 1906s # GVariantBuilder builder; 1906s # guint n; 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1906s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #else 1906s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #endif 1906s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1906s # goto out; 1906s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1906s # { 1906s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1906s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1906s # { 1906s # GVariant *value; 1906s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1906s # if (value != NULL) 1906s # { 1906s # g_variant_take_ref (value); 1906s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1906s # g_variant_unref (value); 1906s # } 1906s # } 1906s # } 1906s # out: 1906s # return g_variant_builder_end (&builder); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_skeleton_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1906s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1906s # if (skeleton->priv->changed_properties_idle_source != NULL) 1906s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1906s # g_main_context_unref (skeleton->priv->context); 1906s # g_mutex_clear (&skeleton->priv->lock); 1906s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1906s # #else 1906s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1906s # #endif 1906s # 1906s # g_mutex_init (&skeleton->priv->lock); 1906s # skeleton->priv->context = g_main_context_ref_thread_default (); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusInterfaceSkeletonClass *skeleton_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1906s # 1906s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1906s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1906s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1906s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1906s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_skeleton_new: 1906s # * 1906s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_skeleton_new (void) 1906s # { 1906s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1906s # } 1906s # Error: 1906s # 1906s # /tmp/tmpgxf70__r/tmp81y7w1af.xml: 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgxf70__r/tmp81y7w1af.xml', '--output', '-', '--body'] 1906s # Return code: 0 1906s # Output: 1906s # /* 1906s # * This file is generated by gdbus-codegen, do not modify it. 1906s # * 1906s # * The license of this code is the same as for the D-Bus interface description 1906s # * it was derived from. Note that it links to GLib, so must comply with the 1906s # * LGPL linking clauses. 1906s # */ 1906s # 1906s # #ifdef HAVE_CONFIG_H 1906s # # include "config.h" 1906s # #endif 1906s # 1906s # #include 1906s # #ifdef G_OS_UNIX 1906s # # include 1906s # #endif 1906s # 1906s # #ifdef G_ENABLE_DEBUG 1906s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1906s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1906s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1906s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1906s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1906s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1906s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1906s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1906s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1906s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1906s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1906s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1906s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1906s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1906s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1906s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1906s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1906s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1906s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1906s # #else /* !G_ENABLE_DEBUG */ 1906s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1906s # * Do not access GValues directly in your code. Instead, use the 1906s # * g_value_get_*() functions 1906s # */ 1906s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1906s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1906s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1906s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1906s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1906s # #endif /* !G_ENABLE_DEBUG */ 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusArgInfo parent_struct; 1906s # gboolean use_gvariant; 1906s # } _ExtendedGDBusArgInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusMethodInfo parent_struct; 1906s # const gchar *signal_name; 1906s # gboolean pass_fdlist; 1906s # } _ExtendedGDBusMethodInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusSignalInfo parent_struct; 1906s # const gchar *signal_name; 1906s # } _ExtendedGDBusSignalInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusPropertyInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # guint use_gvariant : 1; 1906s # guint emits_changed_signal : 1; 1906s # } _ExtendedGDBusPropertyInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusInterfaceInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # } _ExtendedGDBusInterfaceInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # const _ExtendedGDBusPropertyInfo *info; 1906s # guint prop_id; 1906s # GValue orig_value; /* the value before the change */ 1906s # } ChangedProperty; 1906s # 1906s # static void 1906s # _changed_property_free (ChangedProperty *data) 1906s # { 1906s # g_value_unset (&data->orig_value); 1906s # g_free (data); 1906s # } 1906s # 1906s # static gboolean 1906s # _g_strv_equal0 (gchar **a, gchar **b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # guint n; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # if (g_strv_length (a) != g_strv_length (b)) 1906s # goto out; 1906s # for (n = 0; a[n] != NULL; n++) 1906s # if (g_strcmp0 (a[n], b[n]) != 0) 1906s # goto out; 1906s # ret = TRUE; 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _g_variant_equal0 (GVariant *a, GVariant *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # ret = g_variant_equal (a, b); 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # G_GNUC_UNUSED static gboolean 1906s # _g_value_equal (const GValue *a, const GValue *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1906s # switch (G_VALUE_TYPE (a)) 1906s # { 1906s # case G_TYPE_BOOLEAN: 1906s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1906s # break; 1906s # case G_TYPE_UCHAR: 1906s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1906s # break; 1906s # case G_TYPE_INT: 1906s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1906s # break; 1906s # case G_TYPE_UINT: 1906s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1906s # break; 1906s # case G_TYPE_INT64: 1906s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1906s # break; 1906s # case G_TYPE_UINT64: 1906s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1906s # break; 1906s # case G_TYPE_DOUBLE: 1906s # { 1906s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1906s # gdouble da = g_value_get_double (a); 1906s # gdouble db = g_value_get_double (b); 1906s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1906s # } 1906s # break; 1906s # case G_TYPE_STRING: 1906s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1906s # break; 1906s # case G_TYPE_VARIANT: 1906s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1906s # break; 1906s # default: 1906s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1906s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1906s # else 1906s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1906s # break; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static void 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UCHAR ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint G_GNUC_UNUSED, 1906s # void *marshal_data) 1906s # { 1906s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUcharFunc) 1906s # (void *data1, 1906s # GDBusMethodInvocation *arg_method_invocation, 1906s # guchar arg_arg_y, 1906s # void *data2); 1906s # _GDbusCodegenMarshalBoolean_ObjectUcharFunc callback; 1906s # GCClosure *cc = (GCClosure*) closure; 1906s # void *data1, *data2; 1906s # gboolean v_return; 1906s # 1906s # g_return_if_fail (return_value != NULL); 1906s # g_return_if_fail (n_param_values == 3); 1906s # 1906s # if (G_CCLOSURE_SWAP_DATA (closure)) 1906s # { 1906s # data1 = closure->data; 1906s # data2 = g_value_peek_pointer (param_values + 0); 1906s # } 1906s # else 1906s # { 1906s # data1 = g_value_peek_pointer (param_values + 0); 1906s # data2 = closure->data; 1906s # } 1906s # 1906s # callback = (_GDbusCodegenMarshalBoolean_ObjectUcharFunc) 1906s # (marshal_data ? marshal_data : cc->callback); 1906s # 1906s # v_return = 1906s # callback (data1, 1906s # g_marshal_value_peek_object (param_values + 1), 1906s # g_marshal_value_peek_uchar (param_values + 2), 1906s # data2); 1906s # 1906s # g_value_set_boolean (return_value, v_return); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ 1906s # * Code for interface org.project.UsefulInterface 1906s # * ------------------------------------------------------------------------ 1906s # */ 1906s # 1906s # /** 1906s # * SECTION:OrgProjectUsefulInterface 1906s # * @title: OrgProjectUsefulInterface 1906s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1906s # * 1906s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1906s # */ 1906s # 1906s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1906s # 1906s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_arg_y = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "arg_y", 1906s # (gchar *) "y", 1906s # NULL 1906s # }, 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_arg_y.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_y = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "SingleArgMethodY", 1906s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_pointers, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "handle-single-arg-method-y", 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_y.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "org.project.UsefulInterface", 1906s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1906s # NULL, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "org-project-useful-interface", 1906s # }; 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_interface_info: 1906s # * 1906s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1906s # * 1906s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1906s # */ 1906s # GDBusInterfaceInfo * 1906s # org_project_useful_interface_interface_info (void) 1906s # { 1906s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_override_properties: 1906s # * @klass: The class structure for a #GObject derived class. 1906s # * @property_id_begin: The property id to assign to the first overridden property. 1906s # * 1906s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1906s # * The properties are overridden in the order they are defined. 1906s # * 1906s # * Returns: The last property id. 1906s # */ 1906s # guint 1906s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1906s # { 1906s # return property_id_begin - 1; 1906s # } 1906s # 1906s # 1906s # inline static void 1906s # org_project_useful_interface_method_marshal_single_arg_method_y ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint, 1906s # void *marshal_data) 1906s # { 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UCHAR (closure, 1906s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1906s # } 1906s # 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterface: 1906s # * 1906s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceIface: 1906s # * @parent_iface: The parent interface. 1906s # * @handle_single_arg_method_y: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-y signal. 1906s # * 1906s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1906s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1906s # 1906s # static void 1906s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1906s # { 1906s # /* GObject signals for incoming D-Bus method calls: */ 1906s # /** 1906s # * OrgProjectUsefulInterface::handle-single-arg-method-y: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: A #GDBusMethodInvocation. 1906s # * @arg_arg_y: Argument passed by remote caller. 1906s # * 1906s # * Signal emitted when a remote caller is invoking the SingleArgMethodY() D-Bus method. 1906s # * 1906s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_y() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1906s # * 1906s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1906s # */ 1906s # g_signal_new ("handle-single-arg-method-y", 1906s # G_TYPE_FROM_INTERFACE (iface), 1906s # G_SIGNAL_RUN_LAST, 1906s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_y), 1906s # g_signal_accumulator_true_handled, 1906s # NULL, 1906s # org_project_useful_interface_method_marshal_single_arg_method_y, 1906s # G_TYPE_BOOLEAN, 1906s # 2, 1906s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UCHAR); 1906s # 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_y: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_y: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously invokes the SingleArgMethodY() D-Bus method on @proxy. 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_call_single_arg_method_y_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_y_sync() for the synchronous, blocking version of this method. 1906s # */ 1906s # void 1906s # org_project_useful_interface_call_single_arg_method_y ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # guchar arg_arg_y, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodY", 1906s # g_variant_new ("(y)", 1906s # arg_arg_y), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # callback, 1906s # user_data); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_y_finish: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_y(). 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_y(). 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_y_finish ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_y_sync: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_y: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Synchronously invokes the SingleArgMethodY() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_y() for the asynchronous version of this method. 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_y_sync ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # guchar arg_arg_y, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodY", 1906s # g_variant_new ("(y)", 1906s # arg_arg_y), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_complete_single_arg_method_y: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1906s # * 1906s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodY() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1906s # * 1906s # * This method will free @invocation, you cannot use it afterwards. 1906s # */ 1906s # void 1906s # org_project_useful_interface_complete_single_arg_method_y ( 1906s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1906s # GDBusMethodInvocation *invocation) 1906s # { 1906s # g_dbus_method_invocation_return_value (invocation, 1906s # g_variant_new ("()")); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxy: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxyClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceProxyPrivate 1906s # { 1906s # GData *qdata; 1906s # }; 1906s # 1906s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_proxy_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1906s # g_datalist_clear (&proxy->priv->qdata); 1906s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # const GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1906s # const gchar *sender_name G_GNUC_UNUSED, 1906s # const gchar *signal_name, 1906s # GVariant *parameters) 1906s # { 1906s # _ExtendedGDBusSignalInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # gsize n; 1906s # guint signal_id; 1906s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1906s # if (info == NULL) 1906s # return; 1906s # num_params = g_variant_n_children (parameters); 1906s # paramv = g_new0 (GValue, num_params + 1); 1906s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[0], proxy); 1906s # g_variant_iter_init (&iter, parameters); 1906s # n = 1; 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_signal_emitv (paramv, signal_id, 0, NULL); 1906s # for (n = 0; n < num_params + 1; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1906s # GVariant *changed_properties, 1906s # const gchar *const *invalidated_properties) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1906s # guint n; 1906s # const gchar *key; 1906s # GVariantIter *iter; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # g_variant_get (changed_properties, "a{sv}", &iter); 1906s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1906s # g_datalist_remove_data (&proxy->priv->qdata, key); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # g_variant_iter_free (iter); 1906s # for (n = 0; invalidated_properties[n] != NULL; n++) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1906s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1906s # #else 1906s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1906s # #endif 1906s # 1906s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusProxyClass *proxy_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1906s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1906s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1906s # 1906s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1906s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1906s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_sync: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_sync ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new_for_bus ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_sync: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_sync ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeleton: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeletonClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1906s # { 1906s # GValue *properties; 1906s # GList *changed_properties; 1906s # GSource *changed_properties_idle_source; 1906s # GMainContext *context; 1906s # GMutex lock; 1906s # }; 1906s # 1906s # static void 1906s # _org_project_useful_interface_skeleton_handle_method_call ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name, 1906s # const gchar *method_name, 1906s # GVariant *parameters, 1906s # GDBusMethodInvocation *invocation, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # _ExtendedGDBusMethodInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # guint num_extra; 1906s # gsize n; 1906s # guint signal_id; 1906s # GValue return_value = G_VALUE_INIT; 1906s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1906s # g_assert (info != NULL); 1906s # num_params = g_variant_n_children (parameters); 1906s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1906s # n = 0; 1906s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[n++], skeleton); 1906s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1906s # g_value_set_object (¶mv[n++], invocation); 1906s # if (info->pass_fdlist) 1906s # { 1906s # #ifdef G_OS_UNIX 1906s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1906s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1906s # #else 1906s # g_assert_not_reached (); 1906s # #endif 1906s # } 1906s # g_variant_iter_init (&iter, parameters); 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1906s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1906s # if (!g_value_get_boolean (&return_value)) 1906s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1906s # g_value_unset (&return_value); 1906s # for (n = 0; n < num_params + num_extra; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static GVariant * 1906s # _org_project_useful_interface_skeleton_handle_get_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # GVariant *ret; 1906s # ret = NULL; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # g_value_init (&value, pspec->value_type); 1906s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1906s # g_value_unset (&value); 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _org_project_useful_interface_skeleton_handle_set_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GVariant *variant, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # gboolean ret; 1906s # ret = FALSE; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # if (info->use_gvariant) 1906s # g_value_set_variant (&value, variant); 1906s # else 1906s # g_dbus_gvariant_to_gvalue (variant, &value); 1906s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # g_value_unset (&value); 1906s # ret = TRUE; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1906s # { 1906s # _org_project_useful_interface_skeleton_handle_method_call, 1906s # _org_project_useful_interface_skeleton_handle_get_property, 1906s # _org_project_useful_interface_skeleton_handle_set_property, 1906s # {NULL} 1906s # }; 1906s # 1906s # static GDBusInterfaceInfo * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return org_project_useful_interface_interface_info (); 1906s # } 1906s # 1906s # static GDBusInterfaceVTable * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1906s # } 1906s # 1906s # static GVariant * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1906s # 1906s # GVariantBuilder builder; 1906s # guint n; 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1906s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #else 1906s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #endif 1906s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1906s # goto out; 1906s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1906s # { 1906s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1906s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1906s # { 1906s # GVariant *value; 1906s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1906s # if (value != NULL) 1906s # { 1906s # g_variant_take_ref (value); 1906s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1906s # g_variant_unref (value); 1906s # } 1906s # } 1906s # } 1906s # out: 1906s # return g_variant_builder_end (&builder); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_skeleton_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1906s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1906s # if (skeleton->priv->changed_properties_idle_source != NULL) 1906s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1906s # g_main_context_unref (skeleton->priv->context); 1906s # g_mutex_clear (&skeleton->priv->lock); 1906s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1906s # #else 1906s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1906s # #endif 1906s # 1906s # g_mutex_init (&skeleton->priv->lock); 1906s # skeleton->priv->context = g_main_context_ref_thread_default (); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusInterfaceSkeletonClass *skeleton_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1906s # 1906s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1906s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1906s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1906s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1906s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_skeleton_new: 1906s # * 1906s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_skeleton_new (void) 1906s # { 1906s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1906s # } 1906s # Error: 1906s # 1906s # /tmp/tmpgxf70__r/tmpt1uk5jch.xml: 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgxf70__r/tmpt1uk5jch.xml', '--output', '-', '--body'] 1906s # Return code: 0 1906s # Output: 1906s # /* 1906s # * This file is generated by gdbus-codegen, do not modify it. 1906s # * 1906s # * The license of this code is the same as for the D-Bus interface description 1906s # * it was derived from. Note that it links to GLib, so must comply with the 1906s # * LGPL linking clauses. 1906s # */ 1906s # 1906s # #ifdef HAVE_CONFIG_H 1906s # # include "config.h" 1906s # #endif 1906s # 1906s # #include 1906s # #ifdef G_OS_UNIX 1906s # # include 1906s # #endif 1906s # 1906s # #ifdef G_ENABLE_DEBUG 1906s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1906s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1906s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1906s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1906s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1906s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1906s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1906s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1906s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1906s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1906s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1906s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1906s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1906s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1906s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1906s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1906s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1906s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1906s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1906s # #else /* !G_ENABLE_DEBUG */ 1906s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1906s # * Do not access GValues directly in your code. Instead, use the 1906s # * g_value_get_*() functions 1906s # */ 1906s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1906s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1906s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1906s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1906s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1906s # #endif /* !G_ENABLE_DEBUG */ 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusArgInfo parent_struct; 1906s # gboolean use_gvariant; 1906s # } _ExtendedGDBusArgInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusMethodInfo parent_struct; 1906s # const gchar *signal_name; 1906s # gboolean pass_fdlist; 1906s # } _ExtendedGDBusMethodInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusSignalInfo parent_struct; 1906s # const gchar *signal_name; 1906s # } _ExtendedGDBusSignalInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusPropertyInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # guint use_gvariant : 1; 1906s # guint emits_changed_signal : 1; 1906s # } _ExtendedGDBusPropertyInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusInterfaceInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # } _ExtendedGDBusInterfaceInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # const _ExtendedGDBusPropertyInfo *info; 1906s # guint prop_id; 1906s # GValue orig_value; /* the value before the change */ 1906s # } ChangedProperty; 1906s # 1906s # static void 1906s # _changed_property_free (ChangedProperty *data) 1906s # { 1906s # g_value_unset (&data->orig_value); 1906s # g_free (data); 1906s # } 1906s # 1906s # static gboolean 1906s # _g_strv_equal0 (gchar **a, gchar **b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # guint n; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # if (g_strv_length (a) != g_strv_length (b)) 1906s # goto out; 1906s # for (n = 0; a[n] != NULL; n++) 1906s # if (g_strcmp0 (a[n], b[n]) != 0) 1906s # goto out; 1906s # ret = TRUE; 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _g_variant_equal0 (GVariant *a, GVariant *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # ret = g_variant_equal (a, b); 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # G_GNUC_UNUSED static gboolean 1906s # _g_value_equal (const GValue *a, const GValue *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1906s # switch (G_VALUE_TYPE (a)) 1906s # { 1906s # case G_TYPE_BOOLEAN: 1906s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1906s # break; 1906s # case G_TYPE_UCHAR: 1906s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1906s # break; 1906s # case G_TYPE_INT: 1906s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1906s # break; 1906s # case G_TYPE_UINT: 1906s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1906s # break; 1906s # case G_TYPE_INT64: 1906s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1906s # break; 1906s # case G_TYPE_UINT64: 1906s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1906s # break; 1906s # case G_TYPE_DOUBLE: 1906s # { 1906s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1906s # gdouble da = g_value_get_double (a); 1906s # gdouble db = g_value_get_double (b); 1906s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1906s # } 1906s # break; 1906s # case G_TYPE_STRING: 1906s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1906s # break; 1906s # case G_TYPE_VARIANT: 1906s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1906s # break; 1906s # default: 1906s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1906s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1906s # else 1906s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1906s # break; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static void 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint G_GNUC_UNUSED, 1906s # void *marshal_data) 1906s # { 1906s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1906s # (void *data1, 1906s # GDBusMethodInvocation *arg_method_invocation, 1906s # gint16 arg_arg_n, 1906s # void *data2); 1906s # _GDbusCodegenMarshalBoolean_ObjectIntFunc callback; 1906s # GCClosure *cc = (GCClosure*) closure; 1906s # void *data1, *data2; 1906s # gboolean v_return; 1906s # 1906s # g_return_if_fail (return_value != NULL); 1906s # g_return_if_fail (n_param_values == 3); 1906s # 1906s # if (G_CCLOSURE_SWAP_DATA (closure)) 1906s # { 1906s # data1 = closure->data; 1906s # data2 = g_value_peek_pointer (param_values + 0); 1906s # } 1906s # else 1906s # { 1906s # data1 = g_value_peek_pointer (param_values + 0); 1906s # data2 = closure->data; 1906s # } 1906s # 1906s # callback = (_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1906s # (marshal_data ? marshal_data : cc->callback); 1906s # 1906s # v_return = 1906s # callback (data1, 1906s # g_marshal_value_peek_object (param_values + 1), 1906s # g_marshal_value_peek_int (param_values + 2), 1906s # data2); 1906s # 1906s # g_value_set_boolean (return_value, v_return); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ 1906s # * Code for interface org.project.UsefulInterface 1906s # * ------------------------------------------------------------------------ 1906s # */ 1906s # 1906s # /** 1906s # * SECTION:OrgProjectUsefulInterface 1906s # * @title: OrgProjectUsefulInterface 1906s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1906s # * 1906s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1906s # */ 1906s # 1906s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1906s # 1906s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_arg_n = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "arg_n", 1906s # (gchar *) "n", 1906s # NULL 1906s # }, 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_arg_n.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_n = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "SingleArgMethodN", 1906s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_pointers, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "handle-single-arg-method-n", 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_n.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "org.project.UsefulInterface", 1906s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1906s # NULL, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "org-project-useful-interface", 1906s # }; 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_interface_info: 1906s # * 1906s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1906s # * 1906s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1906s # */ 1906s # GDBusInterfaceInfo * 1906s # org_project_useful_interface_interface_info (void) 1906s # { 1906s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_override_properties: 1906s # * @klass: The class structure for a #GObject derived class. 1906s # * @property_id_begin: The property id to assign to the first overridden property. 1906s # * 1906s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1906s # * The properties are overridden in the order they are defined. 1906s # * 1906s # * Returns: The last property id. 1906s # */ 1906s # guint 1906s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1906s # { 1906s # return property_id_begin - 1; 1906s # } 1906s # 1906s # 1906s # inline static void 1906s # org_project_useful_interface_method_marshal_single_arg_method_n ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint, 1906s # void *marshal_data) 1906s # { 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT (closure, 1906s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1906s # } 1906s # 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterface: 1906s # * 1906s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceIface: 1906s # * @parent_iface: The parent interface. 1906s # * @handle_single_arg_method_n: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-n signal. 1906s # * 1906s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1906s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1906s # 1906s # static void 1906s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1906s # { 1906s # /* GObject signals for incoming D-Bus method calls: */ 1906s # /** 1906s # * OrgProjectUsefulInterface::handle-single-arg-method-n: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: A #GDBusMethodInvocation. 1906s # * @arg_arg_n: Argument passed by remote caller. 1906s # * 1906s # * Signal emitted when a remote caller is invoking the SingleArgMethodN() D-Bus method. 1906s # * 1906s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_n() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1906s # * 1906s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1906s # */ 1906s # g_signal_new ("handle-single-arg-method-n", 1906s # G_TYPE_FROM_INTERFACE (iface), 1906s # G_SIGNAL_RUN_LAST, 1906s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_n), 1906s # g_signal_accumulator_true_handled, 1906s # NULL, 1906s # org_project_useful_interface_method_marshal_single_arg_method_n, 1906s # G_TYPE_BOOLEAN, 1906s # 2, 1906s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT); 1906s # 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_n: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_n: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously invokes the SingleArgMethodN() D-Bus method on @proxy. 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_call_single_arg_method_n_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_n_sync() for the synchronous, blocking version of this method. 1906s # */ 1906s # void 1906s # org_project_useful_interface_call_single_arg_method_n ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # gint16 arg_arg_n, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodN", 1906s # g_variant_new ("(n)", 1906s # arg_arg_n), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # callback, 1906s # user_data); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_n_finish: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_n(). 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_n(). 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_n_finish ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_n_sync: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_n: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Synchronously invokes the SingleArgMethodN() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_n() for the asynchronous version of this method. 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_n_sync ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # gint16 arg_arg_n, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodN", 1906s # g_variant_new ("(n)", 1906s # arg_arg_n), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_complete_single_arg_method_n: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1906s # * 1906s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodN() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1906s # * 1906s # * This method will free @invocation, you cannot use it afterwards. 1906s # */ 1906s # void 1906s # org_project_useful_interface_complete_single_arg_method_n ( 1906s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1906s # GDBusMethodInvocation *invocation) 1906s # { 1906s # g_dbus_method_invocation_return_value (invocation, 1906s # g_variant_new ("()")); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxy: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxyClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceProxyPrivate 1906s # { 1906s # GData *qdata; 1906s # }; 1906s # 1906s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_proxy_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1906s # g_datalist_clear (&proxy->priv->qdata); 1906s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # const GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1906s # const gchar *sender_name G_GNUC_UNUSED, 1906s # const gchar *signal_name, 1906s # GVariant *parameters) 1906s # { 1906s # _ExtendedGDBusSignalInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # gsize n; 1906s # guint signal_id; 1906s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1906s # if (info == NULL) 1906s # return; 1906s # num_params = g_variant_n_children (parameters); 1906s # paramv = g_new0 (GValue, num_params + 1); 1906s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[0], proxy); 1906s # g_variant_iter_init (&iter, parameters); 1906s # n = 1; 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_signal_emitv (paramv, signal_id, 0, NULL); 1906s # for (n = 0; n < num_params + 1; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1906s # GVariant *changed_properties, 1906s # const gchar *const *invalidated_properties) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1906s # guint n; 1906s # const gchar *key; 1906s # GVariantIter *iter; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # g_variant_get (changed_properties, "a{sv}", &iter); 1906s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1906s # g_datalist_remove_data (&proxy->priv->qdata, key); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # g_variant_iter_free (iter); 1906s # for (n = 0; invalidated_properties[n] != NULL; n++) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1906s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1906s # #else 1906s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1906s # #endif 1906s # 1906s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusProxyClass *proxy_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1906s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1906s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1906s # 1906s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1906s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1906s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_sync: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_sync ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new_for_bus ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_sync: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_sync ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeleton: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeletonClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1906s # { 1906s # GValue *properties; 1906s # GList *changed_properties; 1906s # GSource *changed_properties_idle_source; 1906s # GMainContext *context; 1906s # GMutex lock; 1906s # }; 1906s # 1906s # static void 1906s # _org_project_useful_interface_skeleton_handle_method_call ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name, 1906s # const gchar *method_name, 1906s # GVariant *parameters, 1906s # GDBusMethodInvocation *invocation, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # _ExtendedGDBusMethodInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # guint num_extra; 1906s # gsize n; 1906s # guint signal_id; 1906s # GValue return_value = G_VALUE_INIT; 1906s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1906s # g_assert (info != NULL); 1906s # num_params = g_variant_n_children (parameters); 1906s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1906s # n = 0; 1906s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[n++], skeleton); 1906s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1906s # g_value_set_object (¶mv[n++], invocation); 1906s # if (info->pass_fdlist) 1906s # { 1906s # #ifdef G_OS_UNIX 1906s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1906s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1906s # #else 1906s # g_assert_not_reached (); 1906s # #endif 1906s # } 1906s # g_variant_iter_init (&iter, parameters); 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1906s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1906s # if (!g_value_get_boolean (&return_value)) 1906s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1906s # g_value_unset (&return_value); 1906s # for (n = 0; n < num_params + num_extra; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static GVariant * 1906s # _org_project_useful_interface_skeleton_handle_get_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # GVariant *ret; 1906s # ret = NULL; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # g_value_init (&value, pspec->value_type); 1906s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1906s # g_value_unset (&value); 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _org_project_useful_interface_skeleton_handle_set_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GVariant *variant, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # gboolean ret; 1906s # ret = FALSE; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # if (info->use_gvariant) 1906s # g_value_set_variant (&value, variant); 1906s # else 1906s # g_dbus_gvariant_to_gvalue (variant, &value); 1906s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # g_value_unset (&value); 1906s # ret = TRUE; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1906s # { 1906s # _org_project_useful_interface_skeleton_handle_method_call, 1906s # _org_project_useful_interface_skeleton_handle_get_property, 1906s # _org_project_useful_interface_skeleton_handle_set_property, 1906s # {NULL} 1906s # }; 1906s # 1906s # static GDBusInterfaceInfo * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return org_project_useful_interface_interface_info (); 1906s # } 1906s # 1906s # static GDBusInterfaceVTable * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1906s # } 1906s # 1906s # static GVariant * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1906s # 1906s # GVariantBuilder builder; 1906s # guint n; 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1906s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #else 1906s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #endif 1906s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1906s # goto out; 1906s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1906s # { 1906s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1906s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1906s # { 1906s # GVariant *value; 1906s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1906s # if (value != NULL) 1906s # { 1906s # g_variant_take_ref (value); 1906s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1906s # g_variant_unref (value); 1906s # } 1906s # } 1906s # } 1906s # out: 1906s # return g_variant_builder_end (&builder); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_skeleton_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1906s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1906s # if (skeleton->priv->changed_properties_idle_source != NULL) 1906s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1906s # g_main_context_unref (skeleton->priv->context); 1906s # g_mutex_clear (&skeleton->priv->lock); 1906s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1906s # #else 1906s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1906s # #endif 1906s # 1906s # g_mutex_init (&skeleton->priv->lock); 1906s # skeleton->priv->context = g_main_context_ref_thread_default (); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusInterfaceSkeletonClass *skeleton_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1906s # 1906s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1906s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1906s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1906s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1906s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_skeleton_new: 1906s # * 1906s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_skeleton_new (void) 1906s # { 1906s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1906s # } 1906s # Error: 1906s # 1906s # /tmp/tmpgxf70__r/tmp7tow3ooq.xml: 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgxf70__r/tmp7tow3ooq.xml', '--output', '-', '--body'] 1906s # Return code: 0 1906s # Output: 1906s # /* 1906s # * This file is generated by gdbus-codegen, do not modify it. 1906s # * 1906s # * The license of this code is the same as for the D-Bus interface description 1906s # * it was derived from. Note that it links to GLib, so must comply with the 1906s # * LGPL linking clauses. 1906s # */ 1906s # 1906s # #ifdef HAVE_CONFIG_H 1906s # # include "config.h" 1906s # #endif 1906s # 1906s # #include 1906s # #ifdef G_OS_UNIX 1906s # # include 1906s # #endif 1906s # 1906s # #ifdef G_ENABLE_DEBUG 1906s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1906s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1906s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1906s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1906s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1906s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1906s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1906s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1906s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1906s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1906s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1906s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1906s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1906s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1906s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1906s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1906s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1906s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1906s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1906s # #else /* !G_ENABLE_DEBUG */ 1906s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1906s # * Do not access GValues directly in your code. Instead, use the 1906s # * g_value_get_*() functions 1906s # */ 1906s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1906s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1906s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1906s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1906s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1906s # #endif /* !G_ENABLE_DEBUG */ 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusArgInfo parent_struct; 1906s # gboolean use_gvariant; 1906s # } _ExtendedGDBusArgInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusMethodInfo parent_struct; 1906s # const gchar *signal_name; 1906s # gboolean pass_fdlist; 1906s # } _ExtendedGDBusMethodInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusSignalInfo parent_struct; 1906s # const gchar *signal_name; 1906s # } _ExtendedGDBusSignalInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusPropertyInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # guint use_gvariant : 1; 1906s # guint emits_changed_signal : 1; 1906s # } _ExtendedGDBusPropertyInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusInterfaceInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # } _ExtendedGDBusInterfaceInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # const _ExtendedGDBusPropertyInfo *info; 1906s # guint prop_id; 1906s # GValue orig_value; /* the value before the change */ 1906s # } ChangedProperty; 1906s # 1906s # static void 1906s # _changed_property_free (ChangedProperty *data) 1906s # { 1906s # g_value_unset (&data->orig_value); 1906s # g_free (data); 1906s # } 1906s # 1906s # static gboolean 1906s # _g_strv_equal0 (gchar **a, gchar **b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # guint n; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # if (g_strv_length (a) != g_strv_length (b)) 1906s # goto out; 1906s # for (n = 0; a[n] != NULL; n++) 1906s # if (g_strcmp0 (a[n], b[n]) != 0) 1906s # goto out; 1906s # ret = TRUE; 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _g_variant_equal0 (GVariant *a, GVariant *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # ret = g_variant_equal (a, b); 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # G_GNUC_UNUSED static gboolean 1906s # _g_value_equal (const GValue *a, const GValue *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1906s # switch (G_VALUE_TYPE (a)) 1906s # { 1906s # case G_TYPE_BOOLEAN: 1906s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1906s # break; 1906s # case G_TYPE_UCHAR: 1906s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1906s # break; 1906s # case G_TYPE_INT: 1906s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1906s # break; 1906s # case G_TYPE_UINT: 1906s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1906s # break; 1906s # case G_TYPE_INT64: 1906s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1906s # break; 1906s # case G_TYPE_UINT64: 1906s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1906s # break; 1906s # case G_TYPE_DOUBLE: 1906s # { 1906s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1906s # gdouble da = g_value_get_double (a); 1906s # gdouble db = g_value_get_double (b); 1906s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1906s # } 1906s # break; 1906s # case G_TYPE_STRING: 1906s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1906s # break; 1906s # case G_TYPE_VARIANT: 1906s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1906s # break; 1906s # default: 1906s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1906s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1906s # else 1906s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1906s # break; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static void 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint G_GNUC_UNUSED, 1906s # void *marshal_data) 1906s # { 1906s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1906s # (void *data1, 1906s # GDBusMethodInvocation *arg_method_invocation, 1906s # guint16 arg_arg_q, 1906s # void *data2); 1906s # _GDbusCodegenMarshalBoolean_ObjectUintFunc callback; 1906s # GCClosure *cc = (GCClosure*) closure; 1906s # void *data1, *data2; 1906s # gboolean v_return; 1906s # 1906s # g_return_if_fail (return_value != NULL); 1906s # g_return_if_fail (n_param_values == 3); 1906s # 1906s # if (G_CCLOSURE_SWAP_DATA (closure)) 1906s # { 1906s # data1 = closure->data; 1906s # data2 = g_value_peek_pointer (param_values + 0); 1906s # } 1906s # else 1906s # { 1906s # data1 = g_value_peek_pointer (param_values + 0); 1906s # data2 = closure->data; 1906s # } 1906s # 1906s # callback = (_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1906s # (marshal_data ? marshal_data : cc->callback); 1906s # 1906s # v_return = 1906s # callback (data1, 1906s # g_marshal_value_peek_object (param_values + 1), 1906s # g_marshal_value_peek_uint (param_values + 2), 1906s # data2); 1906s # 1906s # g_value_set_boolean (return_value, v_return); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ 1906s # * Code for interface org.project.UsefulInterface 1906s # * ------------------------------------------------------------------------ 1906s # */ 1906s # 1906s # /** 1906s # * SECTION:OrgProjectUsefulInterface 1906s # * @title: OrgProjectUsefulInterface 1906s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1906s # * 1906s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1906s # */ 1906s # 1906s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1906s # 1906s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_arg_q = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "arg_q", 1906s # (gchar *) "q", 1906s # NULL 1906s # }, 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_arg_q.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_q = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "SingleArgMethodQ", 1906s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_pointers, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "handle-single-arg-method-q", 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_q.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "org.project.UsefulInterface", 1906s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1906s # NULL, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "org-project-useful-interface", 1906s # }; 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_interface_info: 1906s # * 1906s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1906s # * 1906s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1906s # */ 1906s # GDBusInterfaceInfo * 1906s # org_project_useful_interface_interface_info (void) 1906s # { 1906s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_override_properties: 1906s # * @klass: The class structure for a #GObject derived class. 1906s # * @property_id_begin: The property id to assign to the first overridden property. 1906s # * 1906s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1906s # * The properties are overridden in the order they are defined. 1906s # * 1906s # * Returns: The last property id. 1906s # */ 1906s # guint 1906s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1906s # { 1906s # return property_id_begin - 1; 1906s # } 1906s # 1906s # 1906s # inline static void 1906s # org_project_useful_interface_method_marshal_single_arg_method_q ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint, 1906s # void *marshal_data) 1906s # { 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT (closure, 1906s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1906s # } 1906s # 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterface: 1906s # * 1906s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceIface: 1906s # * @parent_iface: The parent interface. 1906s # * @handle_single_arg_method_q: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-q signal. 1906s # * 1906s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1906s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1906s # 1906s # static void 1906s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1906s # { 1906s # /* GObject signals for incoming D-Bus method calls: */ 1906s # /** 1906s # * OrgProjectUsefulInterface::handle-single-arg-method-q: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: A #GDBusMethodInvocation. 1906s # * @arg_arg_q: Argument passed by remote caller. 1906s # * 1906s # * Signal emitted when a remote caller is invoking the SingleArgMethodQ() D-Bus method. 1906s # * 1906s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_q() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1906s # * 1906s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1906s # */ 1906s # g_signal_new ("handle-single-arg-method-q", 1906s # G_TYPE_FROM_INTERFACE (iface), 1906s # G_SIGNAL_RUN_LAST, 1906s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_q), 1906s # g_signal_accumulator_true_handled, 1906s # NULL, 1906s # org_project_useful_interface_method_marshal_single_arg_method_q, 1906s # G_TYPE_BOOLEAN, 1906s # 2, 1906s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT); 1906s # 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_q: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_q: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_call_single_arg_method_q_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_q_sync() for the synchronous, blocking version of this method. 1906s # */ 1906s # void 1906s # org_project_useful_interface_call_single_arg_method_q ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # guint16 arg_arg_q, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodQ", 1906s # g_variant_new ("(q)", 1906s # arg_arg_q), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # callback, 1906s # user_data); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_q_finish: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_q(). 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_q(). 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_q_finish ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_q_sync: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_q: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Synchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_q() for the asynchronous version of this method. 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_q_sync ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # guint16 arg_arg_q, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodQ", 1906s # g_variant_new ("(q)", 1906s # arg_arg_q), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_complete_single_arg_method_q: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1906s # * 1906s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodQ() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1906s # * 1906s # * This method will free @invocation, you cannot use it afterwards. 1906s # */ 1906s # void 1906s # org_project_useful_interface_complete_single_arg_method_q ( 1906s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1906s # GDBusMethodInvocation *invocation) 1906s # { 1906s # g_dbus_method_invocation_return_value (invocation, 1906s # g_variant_new ("()")); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxy: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxyClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceProxyPrivate 1906s # { 1906s # GData *qdata; 1906s # }; 1906s # 1906s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_proxy_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1906s # g_datalist_clear (&proxy->priv->qdata); 1906s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # const GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1906s # const gchar *sender_name G_GNUC_UNUSED, 1906s # const gchar *signal_name, 1906s # GVariant *parameters) 1906s # { 1906s # _ExtendedGDBusSignalInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # gsize n; 1906s # guint signal_id; 1906s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1906s # if (info == NULL) 1906s # return; 1906s # num_params = g_variant_n_children (parameters); 1906s # paramv = g_new0 (GValue, num_params + 1); 1906s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[0], proxy); 1906s # g_variant_iter_init (&iter, parameters); 1906s # n = 1; 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_signal_emitv (paramv, signal_id, 0, NULL); 1906s # for (n = 0; n < num_params + 1; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1906s # GVariant *changed_properties, 1906s # const gchar *const *invalidated_properties) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1906s # guint n; 1906s # const gchar *key; 1906s # GVariantIter *iter; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # g_variant_get (changed_properties, "a{sv}", &iter); 1906s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1906s # g_datalist_remove_data (&proxy->priv->qdata, key); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # g_variant_iter_free (iter); 1906s # for (n = 0; invalidated_properties[n] != NULL; n++) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1906s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1906s # #else 1906s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1906s # #endif 1906s # 1906s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusProxyClass *proxy_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1906s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1906s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1906s # 1906s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1906s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1906s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_sync: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_sync ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new_for_bus ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_sync: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_sync ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeleton: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeletonClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1906s # { 1906s # GValue *properties; 1906s # GList *changed_properties; 1906s # GSource *changed_properties_idle_source; 1906s # GMainContext *context; 1906s # GMutex lock; 1906s # }; 1906s # 1906s # static void 1906s # _org_project_useful_interface_skeleton_handle_method_call ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name, 1906s # const gchar *method_name, 1906s # GVariant *parameters, 1906s # GDBusMethodInvocation *invocation, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # _ExtendedGDBusMethodInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # guint num_extra; 1906s # gsize n; 1906s # guint signal_id; 1906s # GValue return_value = G_VALUE_INIT; 1906s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1906s # g_assert (info != NULL); 1906s # num_params = g_variant_n_children (parameters); 1906s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1906s # n = 0; 1906s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[n++], skeleton); 1906s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1906s # g_value_set_object (¶mv[n++], invocation); 1906s # if (info->pass_fdlist) 1906s # { 1906s # #ifdef G_OS_UNIX 1906s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1906s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1906s # #else 1906s # g_assert_not_reached (); 1906s # #endif 1906s # } 1906s # g_variant_iter_init (&iter, parameters); 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1906s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1906s # if (!g_value_get_boolean (&return_value)) 1906s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1906s # g_value_unset (&return_value); 1906s # for (n = 0; n < num_params + num_extra; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static GVariant * 1906s # _org_project_useful_interface_skeleton_handle_get_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # GVariant *ret; 1906s # ret = NULL; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # g_value_init (&value, pspec->value_type); 1906s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1906s # g_value_unset (&value); 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _org_project_useful_interface_skeleton_handle_set_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GVariant *variant, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # gboolean ret; 1906s # ret = FALSE; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # if (info->use_gvariant) 1906s # g_value_set_variant (&value, variant); 1906s # else 1906s # g_dbus_gvariant_to_gvalue (variant, &value); 1906s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # g_value_unset (&value); 1906s # ret = TRUE; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1906s # { 1906s # _org_project_useful_interface_skeleton_handle_method_call, 1906s # _org_project_useful_interface_skeleton_handle_get_property, 1906s # _org_project_useful_interface_skeleton_handle_set_property, 1906s # {NULL} 1906s # }; 1906s # 1906s # static GDBusInterfaceInfo * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return org_project_useful_interface_interface_info (); 1906s # } 1906s # 1906s # static GDBusInterfaceVTable * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1906s # } 1906s # 1906s # static GVariant * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1906s # 1906s # GVariantBuilder builder; 1906s # guint n; 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1906s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #else 1906s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #endif 1906s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1906s # goto out; 1906s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1906s # { 1906s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1906s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1906s # { 1906s # GVariant *value; 1906s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1906s # if (value != NULL) 1906s # { 1906s # g_variant_take_ref (value); 1906s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1906s # g_variant_unref (value); 1906s # } 1906s # } 1906s # } 1906s # out: 1906s # return g_variant_builder_end (&builder); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_skeleton_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1906s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1906s # if (skeleton->priv->changed_properties_idle_source != NULL) 1906s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1906s # g_main_context_unref (skeleton->priv->context); 1906s # g_mutex_clear (&skeleton->priv->lock); 1906s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1906s # #else 1906s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1906s # #endif 1906s # 1906s # g_mutex_init (&skeleton->priv->lock); 1906s # skeleton->priv->context = g_main_context_ref_thread_default (); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusInterfaceSkeletonClass *skeleton_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1906s # 1906s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1906s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1906s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1906s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1906s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_skeleton_new: 1906s # * 1906s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_skeleton_new (void) 1906s # { 1906s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1906s # } 1906s # Error: 1906s # 1906s # /tmp/tmpgxf70__r/tmp_vn_alu8.xml: 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgxf70__r/tmp_vn_alu8.xml', '--output', '-', '--body'] 1906s # Return code: 0 1906s # Output: 1906s # /* 1906s # * This file is generated by gdbus-codegen, do not modify it. 1906s # * 1906s # * The license of this code is the same as for the D-Bus interface description 1906s # * it was derived from. Note that it links to GLib, so must comply with the 1906s # * LGPL linking clauses. 1906s # */ 1906s # 1906s # #ifdef HAVE_CONFIG_H 1906s # # include "config.h" 1906s # #endif 1906s # 1906s # #include 1906s # #ifdef G_OS_UNIX 1906s # # include 1906s # #endif 1906s # 1906s # #ifdef G_ENABLE_DEBUG 1906s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1906s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1906s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1906s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1906s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1906s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1906s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1906s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1906s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1906s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1906s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1906s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1906s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1906s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1906s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1906s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1906s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1906s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1906s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1906s # #else /* !G_ENABLE_DEBUG */ 1906s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1906s # * Do not access GValues directly in your code. Instead, use the 1906s # * g_value_get_*() functions 1906s # */ 1906s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1906s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1906s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1906s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1906s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1906s # #endif /* !G_ENABLE_DEBUG */ 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusArgInfo parent_struct; 1906s # gboolean use_gvariant; 1906s # } _ExtendedGDBusArgInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusMethodInfo parent_struct; 1906s # const gchar *signal_name; 1906s # gboolean pass_fdlist; 1906s # } _ExtendedGDBusMethodInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusSignalInfo parent_struct; 1906s # const gchar *signal_name; 1906s # } _ExtendedGDBusSignalInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusPropertyInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # guint use_gvariant : 1; 1906s # guint emits_changed_signal : 1; 1906s # } _ExtendedGDBusPropertyInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusInterfaceInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # } _ExtendedGDBusInterfaceInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # const _ExtendedGDBusPropertyInfo *info; 1906s # guint prop_id; 1906s # GValue orig_value; /* the value before the change */ 1906s # } ChangedProperty; 1906s # 1906s # static void 1906s # _changed_property_free (ChangedProperty *data) 1906s # { 1906s # g_value_unset (&data->orig_value); 1906s # g_free (data); 1906s # } 1906s # 1906s # static gboolean 1906s # _g_strv_equal0 (gchar **a, gchar **b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # guint n; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # if (g_strv_length (a) != g_strv_length (b)) 1906s # goto out; 1906s # for (n = 0; a[n] != NULL; n++) 1906s # if (g_strcmp0 (a[n], b[n]) != 0) 1906s # goto out; 1906s # ret = TRUE; 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _g_variant_equal0 (GVariant *a, GVariant *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # ret = g_variant_equal (a, b); 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # G_GNUC_UNUSED static gboolean 1906s # _g_value_equal (const GValue *a, const GValue *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1906s # switch (G_VALUE_TYPE (a)) 1906s # { 1906s # case G_TYPE_BOOLEAN: 1906s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1906s # break; 1906s # case G_TYPE_UCHAR: 1906s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1906s # break; 1906s # case G_TYPE_INT: 1906s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1906s # break; 1906s # case G_TYPE_UINT: 1906s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1906s # break; 1906s # case G_TYPE_INT64: 1906s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1906s # break; 1906s # case G_TYPE_UINT64: 1906s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1906s # break; 1906s # case G_TYPE_DOUBLE: 1906s # { 1906s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1906s # gdouble da = g_value_get_double (a); 1906s # gdouble db = g_value_get_double (b); 1906s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1906s # } 1906s # break; 1906s # case G_TYPE_STRING: 1906s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1906s # break; 1906s # case G_TYPE_VARIANT: 1906s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1906s # break; 1906s # default: 1906s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1906s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1906s # else 1906s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1906s # break; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static void 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint G_GNUC_UNUSED, 1906s # void *marshal_data) 1906s # { 1906s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1906s # (void *data1, 1906s # GDBusMethodInvocation *arg_method_invocation, 1906s # gint arg_arg_i, 1906s # void *data2); 1906s # _GDbusCodegenMarshalBoolean_ObjectIntFunc callback; 1906s # GCClosure *cc = (GCClosure*) closure; 1906s # void *data1, *data2; 1906s # gboolean v_return; 1906s # 1906s # g_return_if_fail (return_value != NULL); 1906s # g_return_if_fail (n_param_values == 3); 1906s # 1906s # if (G_CCLOSURE_SWAP_DATA (closure)) 1906s # { 1906s # data1 = closure->data; 1906s # data2 = g_value_peek_pointer (param_values + 0); 1906s # } 1906s # else 1906s # { 1906s # data1 = g_value_peek_pointer (param_values + 0); 1906s # data2 = closure->data; 1906s # } 1906s # 1906s # callback = (_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1906s # (marshal_data ? marshal_data : cc->callback); 1906s # 1906s # v_return = 1906s # callback (data1, 1906s # g_marshal_value_peek_object (param_values + 1), 1906s # g_marshal_value_peek_int (param_values + 2), 1906s # data2); 1906s # 1906s # g_value_set_boolean (return_value, v_return); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ 1906s # * Code for interface org.project.UsefulInterface 1906s # * ------------------------------------------------------------------------ 1906s # */ 1906s # 1906s # /** 1906s # * SECTION:OrgProjectUsefulInterface 1906s # * @title: OrgProjectUsefulInterface 1906s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1906s # * 1906s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1906s # */ 1906s # 1906s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1906s # 1906s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_arg_i = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "arg_i", 1906s # (gchar *) "i", 1906s # NULL 1906s # }, 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_arg_i.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_i = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "SingleArgMethodI", 1906s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_pointers, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "handle-single-arg-method-i", 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_i.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "org.project.UsefulInterface", 1906s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1906s # NULL, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "org-project-useful-interface", 1906s # }; 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_interface_info: 1906s # * 1906s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1906s # * 1906s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1906s # */ 1906s # GDBusInterfaceInfo * 1906s # org_project_useful_interface_interface_info (void) 1906s # { 1906s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_override_properties: 1906s # * @klass: The class structure for a #GObject derived class. 1906s # * @property_id_begin: The property id to assign to the first overridden property. 1906s # * 1906s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1906s # * The properties are overridden in the order they are defined. 1906s # * 1906s # * Returns: The last property id. 1906s # */ 1906s # guint 1906s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1906s # { 1906s # return property_id_begin - 1; 1906s # } 1906s # 1906s # 1906s # inline static void 1906s # org_project_useful_interface_method_marshal_single_arg_method_i ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint, 1906s # void *marshal_data) 1906s # { 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT (closure, 1906s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1906s # } 1906s # 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterface: 1906s # * 1906s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceIface: 1906s # * @parent_iface: The parent interface. 1906s # * @handle_single_arg_method_i: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-i signal. 1906s # * 1906s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1906s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1906s # 1906s # static void 1906s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1906s # { 1906s # /* GObject signals for incoming D-Bus method calls: */ 1906s # /** 1906s # * OrgProjectUsefulInterface::handle-single-arg-method-i: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: A #GDBusMethodInvocation. 1906s # * @arg_arg_i: Argument passed by remote caller. 1906s # * 1906s # * Signal emitted when a remote caller is invoking the SingleArgMethodI() D-Bus method. 1906s # * 1906s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_i() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1906s # * 1906s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1906s # */ 1906s # g_signal_new ("handle-single-arg-method-i", 1906s # G_TYPE_FROM_INTERFACE (iface), 1906s # G_SIGNAL_RUN_LAST, 1906s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_i), 1906s # g_signal_accumulator_true_handled, 1906s # NULL, 1906s # org_project_useful_interface_method_marshal_single_arg_method_i, 1906s # G_TYPE_BOOLEAN, 1906s # 2, 1906s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT); 1906s # 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_i: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_i: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously invokes the SingleArgMethodI() D-Bus method on @proxy. 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_call_single_arg_method_i_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_i_sync() for the synchronous, blocking version of this method. 1906s # */ 1906s # void 1906s # org_project_useful_interface_call_single_arg_method_i ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # gint arg_arg_i, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodI", 1906s # g_variant_new ("(i)", 1906s # arg_arg_i), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # callback, 1906s # user_data); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_i_finish: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_i(). 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_i(). 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_i_finish ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_i_sync: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_i: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Synchronously invokes the SingleArgMethodI() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_i() for the asynchronous version of this method. 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_i_sync ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # gint arg_arg_i, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodI", 1906s # g_variant_new ("(i)", 1906s # arg_arg_i), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_complete_single_arg_method_i: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1906s # * 1906s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodI() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1906s # * 1906s # * This method will free @invocation, you cannot use it afterwards. 1906s # */ 1906s # void 1906s # org_project_useful_interface_complete_single_arg_method_i ( 1906s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1906s # GDBusMethodInvocation *invocation) 1906s # { 1906s # g_dbus_method_invocation_return_value (invocation, 1906s # g_variant_new ("()")); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxy: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxyClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceProxyPrivate 1906s # { 1906s # GData *qdata; 1906s # }; 1906s # 1906s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_proxy_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1906s # g_datalist_clear (&proxy->priv->qdata); 1906s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # const GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1906s # const gchar *sender_name G_GNUC_UNUSED, 1906s # const gchar *signal_name, 1906s # GVariant *parameters) 1906s # { 1906s # _ExtendedGDBusSignalInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # gsize n; 1906s # guint signal_id; 1906s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1906s # if (info == NULL) 1906s # return; 1906s # num_params = g_variant_n_children (parameters); 1906s # paramv = g_new0 (GValue, num_params + 1); 1906s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[0], proxy); 1906s # g_variant_iter_init (&iter, parameters); 1906s # n = 1; 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_signal_emitv (paramv, signal_id, 0, NULL); 1906s # for (n = 0; n < num_params + 1; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1906s # GVariant *changed_properties, 1906s # const gchar *const *invalidated_properties) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1906s # guint n; 1906s # const gchar *key; 1906s # GVariantIter *iter; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # g_variant_get (changed_properties, "a{sv}", &iter); 1906s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1906s # g_datalist_remove_data (&proxy->priv->qdata, key); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # g_variant_iter_free (iter); 1906s # for (n = 0; invalidated_properties[n] != NULL; n++) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1906s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1906s # #else 1906s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1906s # #endif 1906s # 1906s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusProxyClass *proxy_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1906s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1906s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1906s # 1906s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1906s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1906s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_sync: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_sync ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new_for_bus ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_sync: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_sync ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeleton: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeletonClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1906s # { 1906s # GValue *properties; 1906s # GList *changed_properties; 1906s # GSource *changed_properties_idle_source; 1906s # GMainContext *context; 1906s # GMutex lock; 1906s # }; 1906s # 1906s # static void 1906s # _org_project_useful_interface_skeleton_handle_method_call ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name, 1906s # const gchar *method_name, 1906s # GVariant *parameters, 1906s # GDBusMethodInvocation *invocation, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # _ExtendedGDBusMethodInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # guint num_extra; 1906s # gsize n; 1906s # guint signal_id; 1906s # GValue return_value = G_VALUE_INIT; 1906s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1906s # g_assert (info != NULL); 1906s # num_params = g_variant_n_children (parameters); 1906s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1906s # n = 0; 1906s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[n++], skeleton); 1906s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1906s # g_value_set_object (¶mv[n++], invocation); 1906s # if (info->pass_fdlist) 1906s # { 1906s # #ifdef G_OS_UNIX 1906s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1906s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1906s # #else 1906s # g_assert_not_reached (); 1906s # #endif 1906s # } 1906s # g_variant_iter_init (&iter, parameters); 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1906s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1906s # if (!g_value_get_boolean (&return_value)) 1906s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1906s # g_value_unset (&return_value); 1906s # for (n = 0; n < num_params + num_extra; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static GVariant * 1906s # _org_project_useful_interface_skeleton_handle_get_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # GVariant *ret; 1906s # ret = NULL; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # g_value_init (&value, pspec->value_type); 1906s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1906s # g_value_unset (&value); 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _org_project_useful_interface_skeleton_handle_set_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GVariant *variant, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # gboolean ret; 1906s # ret = FALSE; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # if (info->use_gvariant) 1906s # g_value_set_variant (&value, variant); 1906s # else 1906s # g_dbus_gvariant_to_gvalue (variant, &value); 1906s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # g_value_unset (&value); 1906s # ret = TRUE; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1906s # { 1906s # _org_project_useful_interface_skeleton_handle_method_call, 1906s # _org_project_useful_interface_skeleton_handle_get_property, 1906s # _org_project_useful_interface_skeleton_handle_set_property, 1906s # {NULL} 1906s # }; 1906s # 1906s # static GDBusInterfaceInfo * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return org_project_useful_interface_interface_info (); 1906s # } 1906s # 1906s # static GDBusInterfaceVTable * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1906s # } 1906s # 1906s # static GVariant * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1906s # 1906s # GVariantBuilder builder; 1906s # guint n; 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1906s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #else 1906s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #endif 1906s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1906s # goto out; 1906s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1906s # { 1906s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1906s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1906s # { 1906s # GVariant *value; 1906s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1906s # if (value != NULL) 1906s # { 1906s # g_variant_take_ref (value); 1906s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1906s # g_variant_unref (value); 1906s # } 1906s # } 1906s # } 1906s # out: 1906s # return g_variant_builder_end (&builder); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_skeleton_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1906s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1906s # if (skeleton->priv->changed_properties_idle_source != NULL) 1906s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1906s # g_main_context_unref (skeleton->priv->context); 1906s # g_mutex_clear (&skeleton->priv->lock); 1906s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1906s # #else 1906s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1906s # #endif 1906s # 1906s # g_mutex_init (&skeleton->priv->lock); 1906s # skeleton->priv->context = g_main_context_ref_thread_default (); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusInterfaceSkeletonClass *skeleton_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1906s # 1906s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1906s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1906s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1906s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1906s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_skeleton_new: 1906s # * 1906s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_skeleton_new (void) 1906s # { 1906s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1906s # } 1906s # Error: 1906s # 1906s # /tmp/tmpgxf70__r/tmp6mi4ikyx.xml: 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgxf70__r/tmp6mi4ikyx.xml', '--output', '-', '--body'] 1906s # Return code: 0 1906s # Output: 1906s # /* 1906s # * This file is generated by gdbus-codegen, do not modify it. 1906s # * 1906s # * The license of this code is the same as for the D-Bus interface description 1906s # * it was derived from. Note that it links to GLib, so must comply with the 1906s # * LGPL linking clauses. 1906s # */ 1906s # 1906s # #ifdef HAVE_CONFIG_H 1906s # # include "config.h" 1906s # #endif 1906s # 1906s # #include 1906s # #ifdef G_OS_UNIX 1906s # # include 1906s # #endif 1906s # 1906s # #ifdef G_ENABLE_DEBUG 1906s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1906s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1906s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1906s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1906s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1906s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1906s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1906s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1906s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1906s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1906s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1906s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1906s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1906s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1906s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1906s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1906s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1906s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1906s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1906s # #else /* !G_ENABLE_DEBUG */ 1906s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1906s # * Do not access GValues directly in your code. Instead, use the 1906s # * g_value_get_*() functions 1906s # */ 1906s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1906s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1906s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1906s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1906s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1906s # #endif /* !G_ENABLE_DEBUG */ 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusArgInfo parent_struct; 1906s # gboolean use_gvariant; 1906s # } _ExtendedGDBusArgInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusMethodInfo parent_struct; 1906s # const gchar *signal_name; 1906s # gboolean pass_fdlist; 1906s # } _ExtendedGDBusMethodInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusSignalInfo parent_struct; 1906s # const gchar *signal_name; 1906s # } _ExtendedGDBusSignalInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusPropertyInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # guint use_gvariant : 1; 1906s # guint emits_changed_signal : 1; 1906s # } _ExtendedGDBusPropertyInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusInterfaceInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # } _ExtendedGDBusInterfaceInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # const _ExtendedGDBusPropertyInfo *info; 1906s # guint prop_id; 1906s # GValue orig_value; /* the value before the change */ 1906s # } ChangedProperty; 1906s # 1906s # static void 1906s # _changed_property_free (ChangedProperty *data) 1906s # { 1906s # g_value_unset (&data->orig_value); 1906s # g_free (data); 1906s # } 1906s # 1906s # static gboolean 1906s # _g_strv_equal0 (gchar **a, gchar **b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # guint n; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # if (g_strv_length (a) != g_strv_length (b)) 1906s # goto out; 1906s # for (n = 0; a[n] != NULL; n++) 1906s # if (g_strcmp0 (a[n], b[n]) != 0) 1906s # goto out; 1906s # ret = TRUE; 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _g_variant_equal0 (GVariant *a, GVariant *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # ret = g_variant_equal (a, b); 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # G_GNUC_UNUSED static gboolean 1906s # _g_value_equal (const GValue *a, const GValue *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1906s # switch (G_VALUE_TYPE (a)) 1906s # { 1906s # case G_TYPE_BOOLEAN: 1906s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1906s # break; 1906s # case G_TYPE_UCHAR: 1906s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1906s # break; 1906s # case G_TYPE_INT: 1906s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1906s # break; 1906s # case G_TYPE_UINT: 1906s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1906s # break; 1906s # case G_TYPE_INT64: 1906s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1906s # break; 1906s # case G_TYPE_UINT64: 1906s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1906s # break; 1906s # case G_TYPE_DOUBLE: 1906s # { 1906s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1906s # gdouble da = g_value_get_double (a); 1906s # gdouble db = g_value_get_double (b); 1906s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1906s # } 1906s # break; 1906s # case G_TYPE_STRING: 1906s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1906s # break; 1906s # case G_TYPE_VARIANT: 1906s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1906s # break; 1906s # default: 1906s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1906s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1906s # else 1906s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1906s # break; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static void 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint G_GNUC_UNUSED, 1906s # void *marshal_data) 1906s # { 1906s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1906s # (void *data1, 1906s # GDBusMethodInvocation *arg_method_invocation, 1906s # guint arg_arg_u, 1906s # void *data2); 1906s # _GDbusCodegenMarshalBoolean_ObjectUintFunc callback; 1906s # GCClosure *cc = (GCClosure*) closure; 1906s # void *data1, *data2; 1906s # gboolean v_return; 1906s # 1906s # g_return_if_fail (return_value != NULL); 1906s # g_return_if_fail (n_param_values == 3); 1906s # 1906s # if (G_CCLOSURE_SWAP_DATA (closure)) 1906s # { 1906s # data1 = closure->data; 1906s # data2 = g_value_peek_pointer (param_values + 0); 1906s # } 1906s # else 1906s # { 1906s # data1 = g_value_peek_pointer (param_values + 0); 1906s # data2 = closure->data; 1906s # } 1906s # 1906s # callback = (_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1906s # (marshal_data ? marshal_data : cc->callback); 1906s # 1906s # v_return = 1906s # callback (data1, 1906s # g_marshal_value_peek_object (param_values + 1), 1906s # g_marshal_value_peek_uint (param_values + 2), 1906s # data2); 1906s # 1906s # g_value_set_boolean (return_value, v_return); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ 1906s # * Code for interface org.project.UsefulInterface 1906s # * ------------------------------------------------------------------------ 1906s # */ 1906s # 1906s # /** 1906s # * SECTION:OrgProjectUsefulInterface 1906s # * @title: OrgProjectUsefulInterface 1906s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1906s # * 1906s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1906s # */ 1906s # 1906s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1906s # 1906s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_arg_u = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "arg_u", 1906s # (gchar *) "u", 1906s # NULL 1906s # }, 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_arg_u.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_u = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "SingleArgMethodU", 1906s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_pointers, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "handle-single-arg-method-u", 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_u.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "org.project.UsefulInterface", 1906s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1906s # NULL, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "org-project-useful-interface", 1906s # }; 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_interface_info: 1906s # * 1906s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1906s # * 1906s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1906s # */ 1906s # GDBusInterfaceInfo * 1906s # org_project_useful_interface_interface_info (void) 1906s # { 1906s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_override_properties: 1906s # * @klass: The class structure for a #GObject derived class. 1906s # * @property_id_begin: The property id to assign to the first overridden property. 1906s # * 1906s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1906s # * The properties are overridden in the order they are defined. 1906s # * 1906s # * Returns: The last property id. 1906s # */ 1906s # guint 1906s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1906s # { 1906s # return property_id_begin - 1; 1906s # } 1906s # 1906s # 1906s # inline static void 1906s # org_project_useful_interface_method_marshal_single_arg_method_u ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint, 1906s # void *marshal_data) 1906s # { 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT (closure, 1906s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1906s # } 1906s # 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterface: 1906s # * 1906s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceIface: 1906s # * @parent_iface: The parent interface. 1906s # * @handle_single_arg_method_u: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-u signal. 1906s # * 1906s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1906s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1906s # 1906s # static void 1906s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1906s # { 1906s # /* GObject signals for incoming D-Bus method calls: */ 1906s # /** 1906s # * OrgProjectUsefulInterface::handle-single-arg-method-u: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: A #GDBusMethodInvocation. 1906s # * @arg_arg_u: Argument passed by remote caller. 1906s # * 1906s # * Signal emitted when a remote caller is invoking the SingleArgMethodU() D-Bus method. 1906s # * 1906s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_u() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1906s # * 1906s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1906s # */ 1906s # g_signal_new ("handle-single-arg-method-u", 1906s # G_TYPE_FROM_INTERFACE (iface), 1906s # G_SIGNAL_RUN_LAST, 1906s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_u), 1906s # g_signal_accumulator_true_handled, 1906s # NULL, 1906s # org_project_useful_interface_method_marshal_single_arg_method_u, 1906s # G_TYPE_BOOLEAN, 1906s # 2, 1906s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT); 1906s # 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_u: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_u: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously invokes the SingleArgMethodU() D-Bus method on @proxy. 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_call_single_arg_method_u_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_u_sync() for the synchronous, blocking version of this method. 1906s # */ 1906s # void 1906s # org_project_useful_interface_call_single_arg_method_u ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # guint arg_arg_u, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodU", 1906s # g_variant_new ("(u)", 1906s # arg_arg_u), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # callback, 1906s # user_data); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_u_finish: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_u(). 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_u(). 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_u_finish ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_u_sync: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_u: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Synchronously invokes the SingleArgMethodU() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_u() for the asynchronous version of this method. 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_u_sync ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # guint arg_arg_u, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodU", 1906s # g_variant_new ("(u)", 1906s # arg_arg_u), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_complete_single_arg_method_u: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1906s # * 1906s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodU() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1906s # * 1906s # * This method will free @invocation, you cannot use it afterwards. 1906s # */ 1906s # void 1906s # org_project_useful_interface_complete_single_arg_method_u ( 1906s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1906s # GDBusMethodInvocation *invocation) 1906s # { 1906s # g_dbus_method_invocation_return_value (invocation, 1906s # g_variant_new ("()")); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxy: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxyClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceProxyPrivate 1906s # { 1906s # GData *qdata; 1906s # }; 1906s # 1906s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_proxy_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1906s # g_datalist_clear (&proxy->priv->qdata); 1906s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # const GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1906s # const gchar *sender_name G_GNUC_UNUSED, 1906s # const gchar *signal_name, 1906s # GVariant *parameters) 1906s # { 1906s # _ExtendedGDBusSignalInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # gsize n; 1906s # guint signal_id; 1906s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1906s # if (info == NULL) 1906s # return; 1906s # num_params = g_variant_n_children (parameters); 1906s # paramv = g_new0 (GValue, num_params + 1); 1906s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[0], proxy); 1906s # g_variant_iter_init (&iter, parameters); 1906s # n = 1; 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_signal_emitv (paramv, signal_id, 0, NULL); 1906s # for (n = 0; n < num_params + 1; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1906s # GVariant *changed_properties, 1906s # const gchar *const *invalidated_properties) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1906s # guint n; 1906s # const gchar *key; 1906s # GVariantIter *iter; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # g_variant_get (changed_properties, "a{sv}", &iter); 1906s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1906s # g_datalist_remove_data (&proxy->priv->qdata, key); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # g_variant_iter_free (iter); 1906s # for (n = 0; invalidated_properties[n] != NULL; n++) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1906s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1906s # #else 1906s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1906s # #endif 1906s # 1906s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusProxyClass *proxy_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1906s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1906s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1906s # 1906s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1906s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1906s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_sync: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_sync ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new_for_bus ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_sync: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_sync ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeleton: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeletonClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1906s # { 1906s # GValue *properties; 1906s # GList *changed_properties; 1906s # GSource *changed_properties_idle_source; 1906s # GMainContext *context; 1906s # GMutex lock; 1906s # }; 1906s # 1906s # static void 1906s # _org_project_useful_interface_skeleton_handle_method_call ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name, 1906s # const gchar *method_name, 1906s # GVariant *parameters, 1906s # GDBusMethodInvocation *invocation, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # _ExtendedGDBusMethodInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # guint num_extra; 1906s # gsize n; 1906s # guint signal_id; 1906s # GValue return_value = G_VALUE_INIT; 1906s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1906s # g_assert (info != NULL); 1906s # num_params = g_variant_n_children (parameters); 1906s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1906s # n = 0; 1906s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[n++], skeleton); 1906s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1906s # g_value_set_object (¶mv[n++], invocation); 1906s # if (info->pass_fdlist) 1906s # { 1906s # #ifdef G_OS_UNIX 1906s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1906s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1906s # #else 1906s # g_assert_not_reached (); 1906s # #endif 1906s # } 1906s # g_variant_iter_init (&iter, parameters); 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1906s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1906s # if (!g_value_get_boolean (&return_value)) 1906s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1906s # g_value_unset (&return_value); 1906s # for (n = 0; n < num_params + num_extra; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static GVariant * 1906s # _org_project_useful_interface_skeleton_handle_get_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # GVariant *ret; 1906s # ret = NULL; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # g_value_init (&value, pspec->value_type); 1906s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1906s # g_value_unset (&value); 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _org_project_useful_interface_skeleton_handle_set_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GVariant *variant, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # gboolean ret; 1906s # ret = FALSE; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # if (info->use_gvariant) 1906s # g_value_set_variant (&value, variant); 1906s # else 1906s # g_dbus_gvariant_to_gvalue (variant, &value); 1906s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # g_value_unset (&value); 1906s # ret = TRUE; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1906s # { 1906s # _org_project_useful_interface_skeleton_handle_method_call, 1906s # _org_project_useful_interface_skeleton_handle_get_property, 1906s # _org_project_useful_interface_skeleton_handle_set_property, 1906s # {NULL} 1906s # }; 1906s # 1906s # static GDBusInterfaceInfo * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return org_project_useful_interface_interface_info (); 1906s # } 1906s # 1906s # static GDBusInterfaceVTable * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1906s # } 1906s # 1906s # static GVariant * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1906s # 1906s # GVariantBuilder builder; 1906s # guint n; 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1906s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #else 1906s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #endif 1906s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1906s # goto out; 1906s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1906s # { 1906s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1906s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1906s # { 1906s # GVariant *value; 1906s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1906s # if (value != NULL) 1906s # { 1906s # g_variant_take_ref (value); 1906s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1906s # g_variant_unref (value); 1906s # } 1906s # } 1906s # } 1906s # out: 1906s # return g_variant_builder_end (&builder); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_skeleton_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1906s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1906s # if (skeleton->priv->changed_properties_idle_source != NULL) 1906s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1906s # g_main_context_unref (skeleton->priv->context); 1906s # g_mutex_clear (&skeleton->priv->lock); 1906s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1906s # #else 1906s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1906s # #endif 1906s # 1906s # g_mutex_init (&skeleton->priv->lock); 1906s # skeleton->priv->context = g_main_context_ref_thread_default (); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusInterfaceSkeletonClass *skeleton_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1906s # 1906s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1906s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1906s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1906s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1906s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_skeleton_new: 1906s # * 1906s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_skeleton_new (void) 1906s # { 1906s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1906s # } 1906s # Error: 1906s # 1906s # /tmp/tmpgxf70__r/tmpees5aabu.xml: 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgxf70__r/tmpees5aabu.xml', '--output', '-', '--body'] 1906s # Return code: 0 1906s # Output: 1906s # /* 1906s # * This file is generated by gdbus-codegen, do not modify it. 1906s # * 1906s # * The license of this code is the same as for the D-Bus interface description 1906s # * it was derived from. Note that it links to GLib, so must comply with the 1906s # * LGPL linking clauses. 1906s # */ 1906s # 1906s # #ifdef HAVE_CONFIG_H 1906s # # include "config.h" 1906s # #endif 1906s # 1906s # #include 1906s # #ifdef G_OS_UNIX 1906s # # include 1906s # #endif 1906s # 1906s # #ifdef G_ENABLE_DEBUG 1906s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1906s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1906s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1906s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1906s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1906s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1906s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1906s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1906s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1906s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1906s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1906s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1906s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1906s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1906s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1906s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1906s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1906s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1906s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1906s # #else /* !G_ENABLE_DEBUG */ 1906s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1906s # * Do not access GValues directly in your code. Instead, use the 1906s # * g_value_get_*() functions 1906s # */ 1906s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1906s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1906s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1906s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1906s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1906s # #endif /* !G_ENABLE_DEBUG */ 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusArgInfo parent_struct; 1906s # gboolean use_gvariant; 1906s # } _ExtendedGDBusArgInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusMethodInfo parent_struct; 1906s # const gchar *signal_name; 1906s # gboolean pass_fdlist; 1906s # } _ExtendedGDBusMethodInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusSignalInfo parent_struct; 1906s # const gchar *signal_name; 1906s # } _ExtendedGDBusSignalInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusPropertyInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # guint use_gvariant : 1; 1906s # guint emits_changed_signal : 1; 1906s # } _ExtendedGDBusPropertyInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusInterfaceInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # } _ExtendedGDBusInterfaceInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # const _ExtendedGDBusPropertyInfo *info; 1906s # guint prop_id; 1906s # GValue orig_value; /* the value before the change */ 1906s # } ChangedProperty; 1906s # 1906s # static void 1906s # _changed_property_free (ChangedProperty *data) 1906s # { 1906s # g_value_unset (&data->orig_value); 1906s # g_free (data); 1906s # } 1906s # 1906s # static gboolean 1906s # _g_strv_equal0 (gchar **a, gchar **b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # guint n; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # if (g_strv_length (a) != g_strv_length (b)) 1906s # goto out; 1906s # for (n = 0; a[n] != NULL; n++) 1906s # if (g_strcmp0 (a[n], b[n]) != 0) 1906s # goto out; 1906s # ret = TRUE; 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _g_variant_equal0 (GVariant *a, GVariant *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # ret = g_variant_equal (a, b); 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # G_GNUC_UNUSED static gboolean 1906s # _g_value_equal (const GValue *a, const GValue *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1906s # switch (G_VALUE_TYPE (a)) 1906s # { 1906s # case G_TYPE_BOOLEAN: 1906s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1906s # break; 1906s # case G_TYPE_UCHAR: 1906s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1906s # break; 1906s # case G_TYPE_INT: 1906s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1906s # break; 1906s # case G_TYPE_UINT: 1906s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1906s # break; 1906s # case G_TYPE_INT64: 1906s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1906s # break; 1906s # case G_TYPE_UINT64: 1906s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1906s # break; 1906s # case G_TYPE_DOUBLE: 1906s # { 1906s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1906s # gdouble da = g_value_get_double (a); 1906s # gdouble db = g_value_get_double (b); 1906s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1906s # } 1906s # break; 1906s # case G_TYPE_STRING: 1906s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1906s # break; 1906s # case G_TYPE_VARIANT: 1906s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1906s # break; 1906s # default: 1906s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1906s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1906s # else 1906s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1906s # break; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static void 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT64 ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint G_GNUC_UNUSED, 1906s # void *marshal_data) 1906s # { 1906s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectInt64Func) 1906s # (void *data1, 1906s # GDBusMethodInvocation *arg_method_invocation, 1906s # gint64 arg_arg_x, 1906s # void *data2); 1906s # _GDbusCodegenMarshalBoolean_ObjectInt64Func callback; 1906s # GCClosure *cc = (GCClosure*) closure; 1906s # void *data1, *data2; 1906s # gboolean v_return; 1906s # 1906s # g_return_if_fail (return_value != NULL); 1906s # g_return_if_fail (n_param_values == 3); 1906s # 1906s # if (G_CCLOSURE_SWAP_DATA (closure)) 1906s # { 1906s # data1 = closure->data; 1906s # data2 = g_value_peek_pointer (param_values + 0); 1906s # } 1906s # else 1906s # { 1906s # data1 = g_value_peek_pointer (param_values + 0); 1906s # data2 = closure->data; 1906s # } 1906s # 1906s # callback = (_GDbusCodegenMarshalBoolean_ObjectInt64Func) 1906s # (marshal_data ? marshal_data : cc->callback); 1906s # 1906s # v_return = 1906s # callback (data1, 1906s # g_marshal_value_peek_object (param_values + 1), 1906s # g_marshal_value_peek_int64 (param_values + 2), 1906s # data2); 1906s # 1906s # g_value_set_boolean (return_value, v_return); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ 1906s # * Code for interface org.project.UsefulInterface 1906s # * ------------------------------------------------------------------------ 1906s # */ 1906s # 1906s # /** 1906s # * SECTION:OrgProjectUsefulInterface 1906s # * @title: OrgProjectUsefulInterface 1906s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1906s # * 1906s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1906s # */ 1906s # 1906s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1906s # 1906s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_arg_x = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "arg_x", 1906s # (gchar *) "x", 1906s # NULL 1906s # }, 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_arg_x.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_x = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "SingleArgMethodX", 1906s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_pointers, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "handle-single-arg-method-x", 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_x.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "org.project.UsefulInterface", 1906s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1906s # NULL, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "org-project-useful-interface", 1906s # }; 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_interface_info: 1906s # * 1906s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1906s # * 1906s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1906s # */ 1906s # GDBusInterfaceInfo * 1906s # org_project_useful_interface_interface_info (void) 1906s # { 1906s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_override_properties: 1906s # * @klass: The class structure for a #GObject derived class. 1906s # * @property_id_begin: The property id to assign to the first overridden property. 1906s # * 1906s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1906s # * The properties are overridden in the order they are defined. 1906s # * 1906s # * Returns: The last property id. 1906s # */ 1906s # guint 1906s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1906s # { 1906s # return property_id_begin - 1; 1906s # } 1906s # 1906s # 1906s # inline static void 1906s # org_project_useful_interface_method_marshal_single_arg_method_x ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint, 1906s # void *marshal_data) 1906s # { 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT64 (closure, 1906s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1906s # } 1906s # 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterface: 1906s # * 1906s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceIface: 1906s # * @parent_iface: The parent interface. 1906s # * @handle_single_arg_method_x: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-x signal. 1906s # * 1906s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1906s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1906s # 1906s # static void 1906s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1906s # { 1906s # /* GObject signals for incoming D-Bus method calls: */ 1906s # /** 1906s # * OrgProjectUsefulInterface::handle-single-arg-method-x: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: A #GDBusMethodInvocation. 1906s # * @arg_arg_x: Argument passed by remote caller. 1906s # * 1906s # * Signal emitted when a remote caller is invoking the SingleArgMethodX() D-Bus method. 1906s # * 1906s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_x() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1906s # * 1906s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1906s # */ 1906s # g_signal_new ("handle-single-arg-method-x", 1906s # G_TYPE_FROM_INTERFACE (iface), 1906s # G_SIGNAL_RUN_LAST, 1906s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_x), 1906s # g_signal_accumulator_true_handled, 1906s # NULL, 1906s # org_project_useful_interface_method_marshal_single_arg_method_x, 1906s # G_TYPE_BOOLEAN, 1906s # 2, 1906s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT64); 1906s # 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_x: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_x: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously invokes the SingleArgMethodX() D-Bus method on @proxy. 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_call_single_arg_method_x_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_x_sync() for the synchronous, blocking version of this method. 1906s # */ 1906s # void 1906s # org_project_useful_interface_call_single_arg_method_x ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # gint64 arg_arg_x, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodX", 1906s # g_variant_new ("(x)", 1906s # arg_arg_x), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # callback, 1906s # user_data); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_x_finish: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_x(). 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_x(). 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_x_finish ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_x_sync: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_x: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Synchronously invokes the SingleArgMethodX() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_x() for the asynchronous version of this method. 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_x_sync ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # gint64 arg_arg_x, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodX", 1906s # g_variant_new ("(x)", 1906s # arg_arg_x), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_complete_single_arg_method_x: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1906s # * 1906s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodX() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1906s # * 1906s # * This method will free @invocation, you cannot use it afterwards. 1906s # */ 1906s # void 1906s # org_project_useful_interface_complete_single_arg_method_x ( 1906s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1906s # GDBusMethodInvocation *invocation) 1906s # { 1906s # g_dbus_method_invocation_return_value (invocation, 1906s # g_variant_new ("()")); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxy: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxyClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceProxyPrivate 1906s # { 1906s # GData *qdata; 1906s # }; 1906s # 1906s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_proxy_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1906s # g_datalist_clear (&proxy->priv->qdata); 1906s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # const GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1906s # const gchar *sender_name G_GNUC_UNUSED, 1906s # const gchar *signal_name, 1906s # GVariant *parameters) 1906s # { 1906s # _ExtendedGDBusSignalInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # gsize n; 1906s # guint signal_id; 1906s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1906s # if (info == NULL) 1906s # return; 1906s # num_params = g_variant_n_children (parameters); 1906s # paramv = g_new0 (GValue, num_params + 1); 1906s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[0], proxy); 1906s # g_variant_iter_init (&iter, parameters); 1906s # n = 1; 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_signal_emitv (paramv, signal_id, 0, NULL); 1906s # for (n = 0; n < num_params + 1; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1906s # GVariant *changed_properties, 1906s # const gchar *const *invalidated_properties) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1906s # guint n; 1906s # const gchar *key; 1906s # GVariantIter *iter; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # g_variant_get (changed_properties, "a{sv}", &iter); 1906s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1906s # g_datalist_remove_data (&proxy->priv->qdata, key); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # g_variant_iter_free (iter); 1906s # for (n = 0; invalidated_properties[n] != NULL; n++) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1906s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1906s # #else 1906s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1906s # #endif 1906s # 1906s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusProxyClass *proxy_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1906s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1906s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1906s # 1906s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1906s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1906s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_sync: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_sync ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new_for_bus ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_sync: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_sync ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeleton: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeletonClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1906s # { 1906s # GValue *properties; 1906s # GList *changed_properties; 1906s # GSource *changed_properties_idle_source; 1906s # GMainContext *context; 1906s # GMutex lock; 1906s # }; 1906s # 1906s # static void 1906s # _org_project_useful_interface_skeleton_handle_method_call ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name, 1906s # const gchar *method_name, 1906s # GVariant *parameters, 1906s # GDBusMethodInvocation *invocation, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # _ExtendedGDBusMethodInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # guint num_extra; 1906s # gsize n; 1906s # guint signal_id; 1906s # GValue return_value = G_VALUE_INIT; 1906s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1906s # g_assert (info != NULL); 1906s # num_params = g_variant_n_children (parameters); 1906s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1906s # n = 0; 1906s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[n++], skeleton); 1906s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1906s # g_value_set_object (¶mv[n++], invocation); 1906s # if (info->pass_fdlist) 1906s # { 1906s # #ifdef G_OS_UNIX 1906s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1906s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1906s # #else 1906s # g_assert_not_reached (); 1906s # #endif 1906s # } 1906s # g_variant_iter_init (&iter, parameters); 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1906s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1906s # if (!g_value_get_boolean (&return_value)) 1906s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1906s # g_value_unset (&return_value); 1906s # for (n = 0; n < num_params + num_extra; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static GVariant * 1906s # _org_project_useful_interface_skeleton_handle_get_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # GVariant *ret; 1906s # ret = NULL; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # g_value_init (&value, pspec->value_type); 1906s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1906s # g_value_unset (&value); 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _org_project_useful_interface_skeleton_handle_set_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GVariant *variant, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # gboolean ret; 1906s # ret = FALSE; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # if (info->use_gvariant) 1906s # g_value_set_variant (&value, variant); 1906s # else 1906s # g_dbus_gvariant_to_gvalue (variant, &value); 1906s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # g_value_unset (&value); 1906s # ret = TRUE; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1906s # { 1906s # _org_project_useful_interface_skeleton_handle_method_call, 1906s # _org_project_useful_interface_skeleton_handle_get_property, 1906s # _org_project_useful_interface_skeleton_handle_set_property, 1906s # {NULL} 1906s # }; 1906s # 1906s # static GDBusInterfaceInfo * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return org_project_useful_interface_interface_info (); 1906s # } 1906s # 1906s # static GDBusInterfaceVTable * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1906s # } 1906s # 1906s # static GVariant * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1906s # 1906s # GVariantBuilder builder; 1906s # guint n; 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1906s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #else 1906s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #endif 1906s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1906s # goto out; 1906s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1906s # { 1906s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1906s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1906s # { 1906s # GVariant *value; 1906s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1906s # if (value != NULL) 1906s # { 1906s # g_variant_take_ref (value); 1906s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1906s # g_variant_unref (value); 1906s # } 1906s # } 1906s # } 1906s # out: 1906s # return g_variant_builder_end (&builder); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_skeleton_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1906s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1906s # if (skeleton->priv->changed_properties_idle_source != NULL) 1906s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1906s # g_main_context_unref (skeleton->priv->context); 1906s # g_mutex_clear (&skeleton->priv->lock); 1906s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1906s # #else 1906s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1906s # #endif 1906s # 1906s # g_mutex_init (&skeleton->priv->lock); 1906s # skeleton->priv->context = g_main_context_ref_thread_default (); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusInterfaceSkeletonClass *skeleton_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1906s # 1906s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1906s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1906s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1906s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1906s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_skeleton_new: 1906s # * 1906s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_skeleton_new (void) 1906s # { 1906s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1906s # } 1906s # Error: 1906s # 1906s # /tmp/tmpgxf70__r/tmp8188z8vl.xml: 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgxf70__r/tmp8188z8vl.xml', '--output', '-', '--body'] 1906s # Return code: 0 1906s # Output: 1906s # /* 1906s # * This file is generated by gdbus-codegen, do not modify it. 1906s # * 1906s # * The license of this code is the same as for the D-Bus interface description 1906s # * it was derived from. Note that it links to GLib, so must comply with the 1906s # * LGPL linking clauses. 1906s # */ 1906s # 1906s # #ifdef HAVE_CONFIG_H 1906s # # include "config.h" 1906s # #endif 1906s # 1906s # #include 1906s # #ifdef G_OS_UNIX 1906s # # include 1906s # #endif 1906s # 1906s # #ifdef G_ENABLE_DEBUG 1906s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1906s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1906s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1906s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1906s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1906s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1906s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1906s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1906s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1906s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1906s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1906s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1906s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1906s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1906s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1906s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1906s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1906s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1906s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1906s # #else /* !G_ENABLE_DEBUG */ 1906s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1906s # * Do not access GValues directly in your code. Instead, use the 1906s # * g_value_get_*() functions 1906s # */ 1906s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1906s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1906s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1906s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1906s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1906s # #endif /* !G_ENABLE_DEBUG */ 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusArgInfo parent_struct; 1906s # gboolean use_gvariant; 1906s # } _ExtendedGDBusArgInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusMethodInfo parent_struct; 1906s # const gchar *signal_name; 1906s # gboolean pass_fdlist; 1906s # } _ExtendedGDBusMethodInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusSignalInfo parent_struct; 1906s # const gchar *signal_name; 1906s # } _ExtendedGDBusSignalInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusPropertyInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # guint use_gvariant : 1; 1906s # guint emits_changed_signal : 1; 1906s # } _ExtendedGDBusPropertyInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusInterfaceInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # } _ExtendedGDBusInterfaceInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # const _ExtendedGDBusPropertyInfo *info; 1906s # guint prop_id; 1906s # GValue orig_value; /* the value before the change */ 1906s # } ChangedProperty; 1906s # 1906s # static void 1906s # _changed_property_free (ChangedProperty *data) 1906s # { 1906s # g_value_unset (&data->orig_value); 1906s # g_free (data); 1906s # } 1906s # 1906s # static gboolean 1906s # _g_strv_equal0 (gchar **a, gchar **b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # guint n; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # if (g_strv_length (a) != g_strv_length (b)) 1906s # goto out; 1906s # for (n = 0; a[n] != NULL; n++) 1906s # if (g_strcmp0 (a[n], b[n]) != 0) 1906s # goto out; 1906s # ret = TRUE; 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _g_variant_equal0 (GVariant *a, GVariant *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # ret = g_variant_equal (a, b); 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # G_GNUC_UNUSED static gboolean 1906s # _g_value_equal (const GValue *a, const GValue *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1906s # switch (G_VALUE_TYPE (a)) 1906s # { 1906s # case G_TYPE_BOOLEAN: 1906s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1906s # break; 1906s # case G_TYPE_UCHAR: 1906s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1906s # break; 1906s # case G_TYPE_INT: 1906s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1906s # break; 1906s # case G_TYPE_UINT: 1906s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1906s # break; 1906s # case G_TYPE_INT64: 1906s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1906s # break; 1906s # case G_TYPE_UINT64: 1906s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1906s # break; 1906s # case G_TYPE_DOUBLE: 1906s # { 1906s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1906s # gdouble da = g_value_get_double (a); 1906s # gdouble db = g_value_get_double (b); 1906s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1906s # } 1906s # break; 1906s # case G_TYPE_STRING: 1906s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1906s # break; 1906s # case G_TYPE_VARIANT: 1906s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1906s # break; 1906s # default: 1906s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1906s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1906s # else 1906s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1906s # break; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static void 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT64 ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint G_GNUC_UNUSED, 1906s # void *marshal_data) 1906s # { 1906s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUint64Func) 1906s # (void *data1, 1906s # GDBusMethodInvocation *arg_method_invocation, 1906s # guint64 arg_arg_t, 1906s # void *data2); 1906s # _GDbusCodegenMarshalBoolean_ObjectUint64Func callback; 1906s # GCClosure *cc = (GCClosure*) closure; 1906s # void *data1, *data2; 1906s # gboolean v_return; 1906s # 1906s # g_return_if_fail (return_value != NULL); 1906s # g_return_if_fail (n_param_values == 3); 1906s # 1906s # if (G_CCLOSURE_SWAP_DATA (closure)) 1906s # { 1906s # data1 = closure->data; 1906s # data2 = g_value_peek_pointer (param_values + 0); 1906s # } 1906s # else 1906s # { 1906s # data1 = g_value_peek_pointer (param_values + 0); 1906s # data2 = closure->data; 1906s # } 1906s # 1906s # callback = (_GDbusCodegenMarshalBoolean_ObjectUint64Func) 1906s # (marshal_data ? marshal_data : cc->callback); 1906s # 1906s # v_return = 1906s # callback (data1, 1906s # g_marshal_value_peek_object (param_values + 1), 1906s # g_marshal_value_peek_uint64 (param_values + 2), 1906s # data2); 1906s # 1906s # g_value_set_boolean (return_value, v_return); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ 1906s # * Code for interface org.project.UsefulInterface 1906s # * ------------------------------------------------------------------------ 1906s # */ 1906s # 1906s # /** 1906s # * SECTION:OrgProjectUsefulInterface 1906s # * @title: OrgProjectUsefulInterface 1906s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1906s # * 1906s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1906s # */ 1906s # 1906s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1906s # 1906s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_arg_t = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "arg_t", 1906s # (gchar *) "t", 1906s # NULL 1906s # }, 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_arg_t.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_t = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "SingleArgMethodT", 1906s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_pointers, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "handle-single-arg-method-t", 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_t.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "org.project.UsefulInterface", 1906s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1906s # NULL, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "org-project-useful-interface", 1906s # }; 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_interface_info: 1906s # * 1906s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1906s # * 1906s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1906s # */ 1906s # GDBusInterfaceInfo * 1906s # org_project_useful_interface_interface_info (void) 1906s # { 1906s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_override_properties: 1906s # * @klass: The class structure for a #GObject derived class. 1906s # * @property_id_begin: The property id to assign to the first overridden property. 1906s # * 1906s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1906s # * The properties are overridden in the order they are defined. 1906s # * 1906s # * Returns: The last property id. 1906s # */ 1906s # guint 1906s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1906s # { 1906s # return property_id_begin - 1; 1906s # } 1906s # 1906s # 1906s # inline static void 1906s # org_project_useful_interface_method_marshal_single_arg_method_t ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint, 1906s # void *marshal_data) 1906s # { 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT64 (closure, 1906s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1906s # } 1906s # 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterface: 1906s # * 1906s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceIface: 1906s # * @parent_iface: The parent interface. 1906s # * @handle_single_arg_method_t: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-t signal. 1906s # * 1906s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1906s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1906s # 1906s # static void 1906s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1906s # { 1906s # /* GObject signals for incoming D-Bus method calls: */ 1906s # /** 1906s # * OrgProjectUsefulInterface::handle-single-arg-method-t: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: A #GDBusMethodInvocation. 1906s # * @arg_arg_t: Argument passed by remote caller. 1906s # * 1906s # * Signal emitted when a remote caller is invoking the SingleArgMethodT() D-Bus method. 1906s # * 1906s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_t() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1906s # * 1906s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1906s # */ 1906s # g_signal_new ("handle-single-arg-method-t", 1906s # G_TYPE_FROM_INTERFACE (iface), 1906s # G_SIGNAL_RUN_LAST, 1906s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_t), 1906s # g_signal_accumulator_true_handled, 1906s # NULL, 1906s # org_project_useful_interface_method_marshal_single_arg_method_t, 1906s # G_TYPE_BOOLEAN, 1906s # 2, 1906s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT64); 1906s # 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_t: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_t: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously invokes the SingleArgMethodT() D-Bus method on @proxy. 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_call_single_arg_method_t_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_t_sync() for the synchronous, blocking version of this method. 1906s # */ 1906s # void 1906s # org_project_useful_interface_call_single_arg_method_t ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # guint64 arg_arg_t, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodT", 1906s # g_variant_new ("(t)", 1906s # arg_arg_t), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # callback, 1906s # user_data); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_t_finish: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_t(). 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_t(). 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_t_finish ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_t_sync: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_t: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Synchronously invokes the SingleArgMethodT() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_t() for the asynchronous version of this method. 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_t_sync ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # guint64 arg_arg_t, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodT", 1906s # g_variant_new ("(t)", 1906s # arg_arg_t), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_complete_single_arg_method_t: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1906s # * 1906s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodT() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1906s # * 1906s # * This method will free @invocation, you cannot use it afterwards. 1906s # */ 1906s # void 1906s # org_project_useful_interface_complete_single_arg_method_t ( 1906s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1906s # GDBusMethodInvocation *invocation) 1906s # { 1906s # g_dbus_method_invocation_return_value (invocation, 1906s # g_variant_new ("()")); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxy: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxyClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceProxyPrivate 1906s # { 1906s # GData *qdata; 1906s # }; 1906s # 1906s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_proxy_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1906s # g_datalist_clear (&proxy->priv->qdata); 1906s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # const GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1906s # const gchar *sender_name G_GNUC_UNUSED, 1906s # const gchar *signal_name, 1906s # GVariant *parameters) 1906s # { 1906s # _ExtendedGDBusSignalInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # gsize n; 1906s # guint signal_id; 1906s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1906s # if (info == NULL) 1906s # return; 1906s # num_params = g_variant_n_children (parameters); 1906s # paramv = g_new0 (GValue, num_params + 1); 1906s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[0], proxy); 1906s # g_variant_iter_init (&iter, parameters); 1906s # n = 1; 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_signal_emitv (paramv, signal_id, 0, NULL); 1906s # for (n = 0; n < num_params + 1; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1906s # GVariant *changed_properties, 1906s # const gchar *const *invalidated_properties) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1906s # guint n; 1906s # const gchar *key; 1906s # GVariantIter *iter; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # g_variant_get (changed_properties, "a{sv}", &iter); 1906s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1906s # g_datalist_remove_data (&proxy->priv->qdata, key); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # g_variant_iter_free (iter); 1906s # for (n = 0; invalidated_properties[n] != NULL; n++) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1906s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1906s # #else 1906s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1906s # #endif 1906s # 1906s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusProxyClass *proxy_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1906s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1906s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1906s # 1906s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1906s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1906s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_sync: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_sync ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new_for_bus ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_sync: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_sync ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeleton: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeletonClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1906s # { 1906s # GValue *properties; 1906s # GList *changed_properties; 1906s # GSource *changed_properties_idle_source; 1906s # GMainContext *context; 1906s # GMutex lock; 1906s # }; 1906s # 1906s # static void 1906s # _org_project_useful_interface_skeleton_handle_method_call ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name, 1906s # const gchar *method_name, 1906s # GVariant *parameters, 1906s # GDBusMethodInvocation *invocation, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # _ExtendedGDBusMethodInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # guint num_extra; 1906s # gsize n; 1906s # guint signal_id; 1906s # GValue return_value = G_VALUE_INIT; 1906s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1906s # g_assert (info != NULL); 1906s # num_params = g_variant_n_children (parameters); 1906s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1906s # n = 0; 1906s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[n++], skeleton); 1906s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1906s # g_value_set_object (¶mv[n++], invocation); 1906s # if (info->pass_fdlist) 1906s # { 1906s # #ifdef G_OS_UNIX 1906s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1906s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1906s # #else 1906s # g_assert_not_reached (); 1906s # #endif 1906s # } 1906s # g_variant_iter_init (&iter, parameters); 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1906s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1906s # if (!g_value_get_boolean (&return_value)) 1906s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1906s # g_value_unset (&return_value); 1906s # for (n = 0; n < num_params + num_extra; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static GVariant * 1906s # _org_project_useful_interface_skeleton_handle_get_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # GVariant *ret; 1906s # ret = NULL; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # g_value_init (&value, pspec->value_type); 1906s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1906s # g_value_unset (&value); 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _org_project_useful_interface_skeleton_handle_set_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GVariant *variant, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # gboolean ret; 1906s # ret = FALSE; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # if (info->use_gvariant) 1906s # g_value_set_variant (&value, variant); 1906s # else 1906s # g_dbus_gvariant_to_gvalue (variant, &value); 1906s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # g_value_unset (&value); 1906s # ret = TRUE; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1906s # { 1906s # _org_project_useful_interface_skeleton_handle_method_call, 1906s # _org_project_useful_interface_skeleton_handle_get_property, 1906s # _org_project_useful_interface_skeleton_handle_set_property, 1906s # {NULL} 1906s # }; 1906s # 1906s # static GDBusInterfaceInfo * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return org_project_useful_interface_interface_info (); 1906s # } 1906s # 1906s # static GDBusInterfaceVTable * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1906s # } 1906s # 1906s # static GVariant * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1906s # 1906s # GVariantBuilder builder; 1906s # guint n; 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1906s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #else 1906s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #endif 1906s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1906s # goto out; 1906s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1906s # { 1906s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1906s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1906s # { 1906s # GVariant *value; 1906s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1906s # if (value != NULL) 1906s # { 1906s # g_variant_take_ref (value); 1906s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1906s # g_variant_unref (value); 1906s # } 1906s # } 1906s # } 1906s # out: 1906s # return g_variant_builder_end (&builder); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_skeleton_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1906s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1906s # if (skeleton->priv->changed_properties_idle_source != NULL) 1906s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1906s # g_main_context_unref (skeleton->priv->context); 1906s # g_mutex_clear (&skeleton->priv->lock); 1906s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1906s # #else 1906s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1906s # #endif 1906s # 1906s # g_mutex_init (&skeleton->priv->lock); 1906s # skeleton->priv->context = g_main_context_ref_thread_default (); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusInterfaceSkeletonClass *skeleton_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1906s # 1906s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1906s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1906s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1906s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1906s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_skeleton_new: 1906s # * 1906s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_skeleton_new (void) 1906s # { 1906s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1906s # } 1906s # Error: 1906s # 1906s # /tmp/tmpgxf70__r/tmptkd_x0ta.xml: 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgxf70__r/tmptkd_x0ta.xml', '--output', '-', '--body'] 1906s # Return code: 0 1906s # Output: 1906s # /* 1906s # * This file is generated by gdbus-codegen, do not modify it. 1906s # * 1906s # * The license of this code is the same as for the D-Bus interface description 1906s # * it was derived from. Note that it links to GLib, so must comply with the 1906s # * LGPL linking clauses. 1906s # */ 1906s # 1906s # #ifdef HAVE_CONFIG_H 1906s # # include "config.h" 1906s # #endif 1906s # 1906s # #include 1906s # #ifdef G_OS_UNIX 1906s # # include 1906s # #endif 1906s # 1906s # #ifdef G_ENABLE_DEBUG 1906s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1906s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1906s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1906s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1906s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1906s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1906s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1906s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1906s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1906s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1906s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1906s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1906s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1906s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1906s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1906s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1906s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1906s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1906s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1906s # #else /* !G_ENABLE_DEBUG */ 1906s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1906s # * Do not access GValues directly in your code. Instead, use the 1906s # * g_value_get_*() functions 1906s # */ 1906s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1906s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1906s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1906s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1906s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1906s # #endif /* !G_ENABLE_DEBUG */ 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusArgInfo parent_struct; 1906s # gboolean use_gvariant; 1906s # } _ExtendedGDBusArgInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusMethodInfo parent_struct; 1906s # const gchar *signal_name; 1906s # gboolean pass_fdlist; 1906s # } _ExtendedGDBusMethodInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusSignalInfo parent_struct; 1906s # const gchar *signal_name; 1906s # } _ExtendedGDBusSignalInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusPropertyInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # guint use_gvariant : 1; 1906s # guint emits_changed_signal : 1; 1906s # } _ExtendedGDBusPropertyInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusInterfaceInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # } _ExtendedGDBusInterfaceInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # const _ExtendedGDBusPropertyInfo *info; 1906s # guint prop_id; 1906s # GValue orig_value; /* the value before the change */ 1906s # } ChangedProperty; 1906s # 1906s # static void 1906s # _changed_property_free (ChangedProperty *data) 1906s # { 1906s # g_value_unset (&data->orig_value); 1906s # g_free (data); 1906s # } 1906s # 1906s # static gboolean 1906s # _g_strv_equal0 (gchar **a, gchar **b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # guint n; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # if (g_strv_length (a) != g_strv_length (b)) 1906s # goto out; 1906s # for (n = 0; a[n] != NULL; n++) 1906s # if (g_strcmp0 (a[n], b[n]) != 0) 1906s # goto out; 1906s # ret = TRUE; 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _g_variant_equal0 (GVariant *a, GVariant *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # ret = g_variant_equal (a, b); 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # G_GNUC_UNUSED static gboolean 1906s # _g_value_equal (const GValue *a, const GValue *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1906s # switch (G_VALUE_TYPE (a)) 1906s # { 1906s # case G_TYPE_BOOLEAN: 1906s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1906s # break; 1906s # case G_TYPE_UCHAR: 1906s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1906s # break; 1906s # case G_TYPE_INT: 1906s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1906s # break; 1906s # case G_TYPE_UINT: 1906s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1906s # break; 1906s # case G_TYPE_INT64: 1906s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1906s # break; 1906s # case G_TYPE_UINT64: 1906s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1906s # break; 1906s # case G_TYPE_DOUBLE: 1906s # { 1906s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1906s # gdouble da = g_value_get_double (a); 1906s # gdouble db = g_value_get_double (b); 1906s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1906s # } 1906s # break; 1906s # case G_TYPE_STRING: 1906s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1906s # break; 1906s # case G_TYPE_VARIANT: 1906s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1906s # break; 1906s # default: 1906s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1906s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1906s # else 1906s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1906s # break; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static void 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_DOUBLE ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint G_GNUC_UNUSED, 1906s # void *marshal_data) 1906s # { 1906s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectDoubleFunc) 1906s # (void *data1, 1906s # GDBusMethodInvocation *arg_method_invocation, 1906s # gdouble arg_arg_d, 1906s # void *data2); 1906s # _GDbusCodegenMarshalBoolean_ObjectDoubleFunc callback; 1906s # GCClosure *cc = (GCClosure*) closure; 1906s # void *data1, *data2; 1906s # gboolean v_return; 1906s # 1906s # g_return_if_fail (return_value != NULL); 1906s # g_return_if_fail (n_param_values == 3); 1906s # 1906s # if (G_CCLOSURE_SWAP_DATA (closure)) 1906s # { 1906s # data1 = closure->data; 1906s # data2 = g_value_peek_pointer (param_values + 0); 1906s # } 1906s # else 1906s # { 1906s # data1 = g_value_peek_pointer (param_values + 0); 1906s # data2 = closure->data; 1906s # } 1906s # 1906s # callback = (_GDbusCodegenMarshalBoolean_ObjectDoubleFunc) 1906s # (marshal_data ? marshal_data : cc->callback); 1906s # 1906s # v_return = 1906s # callback (data1, 1906s # g_marshal_value_peek_object (param_values + 1), 1906s # g_marshal_value_peek_double (param_values + 2), 1906s # data2); 1906s # 1906s # g_value_set_boolean (return_value, v_return); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ 1906s # * Code for interface org.project.UsefulInterface 1906s # * ------------------------------------------------------------------------ 1906s # */ 1906s # 1906s # /** 1906s # * SECTION:OrgProjectUsefulInterface 1906s # * @title: OrgProjectUsefulInterface 1906s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1906s # * 1906s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1906s # */ 1906s # 1906s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1906s # 1906s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_arg_d = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "arg_d", 1906s # (gchar *) "d", 1906s # NULL 1906s # }, 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_arg_d.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_d = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "SingleArgMethodD", 1906s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_pointers, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "handle-single-arg-method-d", 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_d.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "org.project.UsefulInterface", 1906s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1906s # NULL, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "org-project-useful-interface", 1906s # }; 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_interface_info: 1906s # * 1906s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1906s # * 1906s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1906s # */ 1906s # GDBusInterfaceInfo * 1906s # org_project_useful_interface_interface_info (void) 1906s # { 1906s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_override_properties: 1906s # * @klass: The class structure for a #GObject derived class. 1906s # * @property_id_begin: The property id to assign to the first overridden property. 1906s # * 1906s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1906s # * The properties are overridden in the order they are defined. 1906s # * 1906s # * Returns: The last property id. 1906s # */ 1906s # guint 1906s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1906s # { 1906s # return property_id_begin - 1; 1906s # } 1906s # 1906s # 1906s # inline static void 1906s # org_project_useful_interface_method_marshal_single_arg_method_d ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint, 1906s # void *marshal_data) 1906s # { 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_DOUBLE (closure, 1906s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1906s # } 1906s # 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterface: 1906s # * 1906s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceIface: 1906s # * @parent_iface: The parent interface. 1906s # * @handle_single_arg_method_d: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-d signal. 1906s # * 1906s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1906s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1906s # 1906s # static void 1906s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1906s # { 1906s # /* GObject signals for incoming D-Bus method calls: */ 1906s # /** 1906s # * OrgProjectUsefulInterface::handle-single-arg-method-d: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: A #GDBusMethodInvocation. 1906s # * @arg_arg_d: Argument passed by remote caller. 1906s # * 1906s # * Signal emitted when a remote caller is invoking the SingleArgMethodD() D-Bus method. 1906s # * 1906s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_d() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1906s # * 1906s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1906s # */ 1906s # g_signal_new ("handle-single-arg-method-d", 1906s # G_TYPE_FROM_INTERFACE (iface), 1906s # G_SIGNAL_RUN_LAST, 1906s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_d), 1906s # g_signal_accumulator_true_handled, 1906s # NULL, 1906s # org_project_useful_interface_method_marshal_single_arg_method_d, 1906s # G_TYPE_BOOLEAN, 1906s # 2, 1906s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_DOUBLE); 1906s # 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_d: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_d: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously invokes the SingleArgMethodD() D-Bus method on @proxy. 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_call_single_arg_method_d_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_d_sync() for the synchronous, blocking version of this method. 1906s # */ 1906s # void 1906s # org_project_useful_interface_call_single_arg_method_d ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # gdouble arg_arg_d, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodD", 1906s # g_variant_new ("(d)", 1906s # arg_arg_d), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # callback, 1906s # user_data); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_d_finish: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_d(). 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_d(). 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_d_finish ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_d_sync: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_d: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Synchronously invokes the SingleArgMethodD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_d() for the asynchronous version of this method. 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_d_sync ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # gdouble arg_arg_d, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodD", 1906s # g_variant_new ("(d)", 1906s # arg_arg_d), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_complete_single_arg_method_d: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1906s # * 1906s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodD() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1906s # * 1906s # * This method will free @invocation, you cannot use it afterwards. 1906s # */ 1906s # void 1906s # org_project_useful_interface_complete_single_arg_method_d ( 1906s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1906s # GDBusMethodInvocation *invocation) 1906s # { 1906s # g_dbus_method_invocation_return_value (invocation, 1906s # g_variant_new ("()")); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxy: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxyClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceProxyPrivate 1906s # { 1906s # GData *qdata; 1906s # }; 1906s # 1906s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_proxy_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1906s # g_datalist_clear (&proxy->priv->qdata); 1906s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # const GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1906s # const gchar *sender_name G_GNUC_UNUSED, 1906s # const gchar *signal_name, 1906s # GVariant *parameters) 1906s # { 1906s # _ExtendedGDBusSignalInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # gsize n; 1906s # guint signal_id; 1906s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1906s # if (info == NULL) 1906s # return; 1906s # num_params = g_variant_n_children (parameters); 1906s # paramv = g_new0 (GValue, num_params + 1); 1906s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[0], proxy); 1906s # g_variant_iter_init (&iter, parameters); 1906s # n = 1; 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_signal_emitv (paramv, signal_id, 0, NULL); 1906s # for (n = 0; n < num_params + 1; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1906s # GVariant *changed_properties, 1906s # const gchar *const *invalidated_properties) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1906s # guint n; 1906s # const gchar *key; 1906s # GVariantIter *iter; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # g_variant_get (changed_properties, "a{sv}", &iter); 1906s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1906s # g_datalist_remove_data (&proxy->priv->qdata, key); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # g_variant_iter_free (iter); 1906s # for (n = 0; invalidated_properties[n] != NULL; n++) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1906s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1906s # #else 1906s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1906s # #endif 1906s # 1906s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusProxyClass *proxy_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1906s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1906s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1906s # 1906s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1906s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1906s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_sync: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_sync ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new_for_bus ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_sync: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_sync ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeleton: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeletonClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1906s # { 1906s # GValue *properties; 1906s # GList *changed_properties; 1906s # GSource *changed_properties_idle_source; 1906s # GMainContext *context; 1906s # GMutex lock; 1906s # }; 1906s # 1906s # static void 1906s # _org_project_useful_interface_skeleton_handle_method_call ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name, 1906s # const gchar *method_name, 1906s # GVariant *parameters, 1906s # GDBusMethodInvocation *invocation, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # _ExtendedGDBusMethodInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # guint num_extra; 1906s # gsize n; 1906s # guint signal_id; 1906s # GValue return_value = G_VALUE_INIT; 1906s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1906s # g_assert (info != NULL); 1906s # num_params = g_variant_n_children (parameters); 1906s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1906s # n = 0; 1906s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[n++], skeleton); 1906s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1906s # g_value_set_object (¶mv[n++], invocation); 1906s # if (info->pass_fdlist) 1906s # { 1906s # #ifdef G_OS_UNIX 1906s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1906s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1906s # #else 1906s # g_assert_not_reached (); 1906s # #endif 1906s # } 1906s # g_variant_iter_init (&iter, parameters); 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1906s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1906s # if (!g_value_get_boolean (&return_value)) 1906s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1906s # g_value_unset (&return_value); 1906s # for (n = 0; n < num_params + num_extra; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static GVariant * 1906s # _org_project_useful_interface_skeleton_handle_get_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # GVariant *ret; 1906s # ret = NULL; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # g_value_init (&value, pspec->value_type); 1906s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1906s # g_value_unset (&value); 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _org_project_useful_interface_skeleton_handle_set_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GVariant *variant, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # gboolean ret; 1906s # ret = FALSE; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # if (info->use_gvariant) 1906s # g_value_set_variant (&value, variant); 1906s # else 1906s # g_dbus_gvariant_to_gvalue (variant, &value); 1906s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # g_value_unset (&value); 1906s # ret = TRUE; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1906s # { 1906s # _org_project_useful_interface_skeleton_handle_method_call, 1906s # _org_project_useful_interface_skeleton_handle_get_property, 1906s # _org_project_useful_interface_skeleton_handle_set_property, 1906s # {NULL} 1906s # }; 1906s # 1906s # static GDBusInterfaceInfo * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return org_project_useful_interface_interface_info (); 1906s # } 1906s # 1906s # static GDBusInterfaceVTable * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1906s # } 1906s # 1906s # static GVariant * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1906s # 1906s # GVariantBuilder builder; 1906s # guint n; 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1906s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #else 1906s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #endif 1906s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1906s # goto out; 1906s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1906s # { 1906s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1906s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1906s # { 1906s # GVariant *value; 1906s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1906s # if (value != NULL) 1906s # { 1906s # g_variant_take_ref (value); 1906s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1906s # g_variant_unref (value); 1906s # } 1906s # } 1906s # } 1906s # out: 1906s # return g_variant_builder_end (&builder); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_skeleton_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1906s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1906s # if (skeleton->priv->changed_properties_idle_source != NULL) 1906s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1906s # g_main_context_unref (skeleton->priv->context); 1906s # g_mutex_clear (&skeleton->priv->lock); 1906s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1906s # #else 1906s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1906s # #endif 1906s # 1906s # g_mutex_init (&skeleton->priv->lock); 1906s # skeleton->priv->context = g_main_context_ref_thread_default (); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusInterfaceSkeletonClass *skeleton_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1906s # 1906s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1906s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1906s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1906s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1906s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_skeleton_new: 1906s # * 1906s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_skeleton_new (void) 1906s # { 1906s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1906s # } 1906s # Error: 1906s # 1906s # /tmp/tmpgxf70__r/tmpikypkx16.xml: 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgxf70__r/tmpikypkx16.xml', '--output', '-', '--body'] 1906s # Return code: 0 1906s # Output: 1906s # /* 1906s # * This file is generated by gdbus-codegen, do not modify it. 1906s # * 1906s # * The license of this code is the same as for the D-Bus interface description 1906s # * it was derived from. Note that it links to GLib, so must comply with the 1906s # * LGPL linking clauses. 1906s # */ 1906s # 1906s # #ifdef HAVE_CONFIG_H 1906s # # include "config.h" 1906s # #endif 1906s # 1906s # #include 1906s # #ifdef G_OS_UNIX 1906s # # include 1906s # #endif 1906s # 1906s # #ifdef G_ENABLE_DEBUG 1906s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1906s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1906s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1906s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1906s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1906s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1906s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1906s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1906s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1906s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1906s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1906s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1906s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1906s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1906s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1906s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1906s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1906s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1906s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1906s # #else /* !G_ENABLE_DEBUG */ 1906s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1906s # * Do not access GValues directly in your code. Instead, use the 1906s # * g_value_get_*() functions 1906s # */ 1906s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1906s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1906s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1906s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1906s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1906s # #endif /* !G_ENABLE_DEBUG */ 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusArgInfo parent_struct; 1906s # gboolean use_gvariant; 1906s # } _ExtendedGDBusArgInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusMethodInfo parent_struct; 1906s # const gchar *signal_name; 1906s # gboolean pass_fdlist; 1906s # } _ExtendedGDBusMethodInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusSignalInfo parent_struct; 1906s # const gchar *signal_name; 1906s # } _ExtendedGDBusSignalInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusPropertyInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # guint use_gvariant : 1; 1906s # guint emits_changed_signal : 1; 1906s # } _ExtendedGDBusPropertyInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusInterfaceInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # } _ExtendedGDBusInterfaceInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # const _ExtendedGDBusPropertyInfo *info; 1906s # guint prop_id; 1906s # GValue orig_value; /* the value before the change */ 1906s # } ChangedProperty; 1906s # 1906s # static void 1906s # _changed_property_free (ChangedProperty *data) 1906s # { 1906s # g_value_unset (&data->orig_value); 1906s # g_free (data); 1906s # } 1906s # 1906s # static gboolean 1906s # _g_strv_equal0 (gchar **a, gchar **b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # guint n; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # if (g_strv_length (a) != g_strv_length (b)) 1906s # goto out; 1906s # for (n = 0; a[n] != NULL; n++) 1906s # if (g_strcmp0 (a[n], b[n]) != 0) 1906s # goto out; 1906s # ret = TRUE; 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _g_variant_equal0 (GVariant *a, GVariant *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # ret = g_variant_equal (a, b); 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # G_GNUC_UNUSED static gboolean 1906s # _g_value_equal (const GValue *a, const GValue *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1906s # switch (G_VALUE_TYPE (a)) 1906s # { 1906s # case G_TYPE_BOOLEAN: 1906s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1906s # break; 1906s # case G_TYPE_UCHAR: 1906s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1906s # break; 1906s # case G_TYPE_INT: 1906s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1906s # break; 1906s # case G_TYPE_UINT: 1906s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1906s # break; 1906s # case G_TYPE_INT64: 1906s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1906s # break; 1906s # case G_TYPE_UINT64: 1906s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1906s # break; 1906s # case G_TYPE_DOUBLE: 1906s # { 1906s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1906s # gdouble da = g_value_get_double (a); 1906s # gdouble db = g_value_get_double (b); 1906s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1906s # } 1906s # break; 1906s # case G_TYPE_STRING: 1906s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1906s # break; 1906s # case G_TYPE_VARIANT: 1906s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1906s # break; 1906s # default: 1906s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1906s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1906s # else 1906s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1906s # break; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static void 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint G_GNUC_UNUSED, 1906s # void *marshal_data) 1906s # { 1906s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1906s # (void *data1, 1906s # GDBusMethodInvocation *arg_method_invocation, 1906s # const gchar *arg_arg_s, 1906s # void *data2); 1906s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1906s # GCClosure *cc = (GCClosure*) closure; 1906s # void *data1, *data2; 1906s # gboolean v_return; 1906s # 1906s # g_return_if_fail (return_value != NULL); 1906s # g_return_if_fail (n_param_values == 3); 1906s # 1906s # if (G_CCLOSURE_SWAP_DATA (closure)) 1906s # { 1906s # data1 = closure->data; 1906s # data2 = g_value_peek_pointer (param_values + 0); 1906s # } 1906s # else 1906s # { 1906s # data1 = g_value_peek_pointer (param_values + 0); 1906s # data2 = closure->data; 1906s # } 1906s # 1906s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1906s # (marshal_data ? marshal_data : cc->callback); 1906s # 1906s # v_return = 1906s # callback (data1, 1906s # g_marshal_value_peek_object (param_values + 1), 1906s # g_marshal_value_peek_string (param_values + 2), 1906s # data2); 1906s # 1906s # g_value_set_boolean (return_value, v_return); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ 1906s # * Code for interface org.project.UsefulInterface 1906s # * ------------------------------------------------------------------------ 1906s # */ 1906s # 1906s # /** 1906s # * SECTION:OrgProjectUsefulInterface 1906s # * @title: OrgProjectUsefulInterface 1906s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1906s # * 1906s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1906s # */ 1906s # 1906s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1906s # 1906s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_arg_s = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "arg_s", 1906s # (gchar *) "s", 1906s # NULL 1906s # }, 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_arg_s.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_s = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "SingleArgMethodS", 1906s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_pointers, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "handle-single-arg-method-s", 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_s.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "org.project.UsefulInterface", 1906s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1906s # NULL, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "org-project-useful-interface", 1906s # }; 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_interface_info: 1906s # * 1906s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1906s # * 1906s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1906s # */ 1906s # GDBusInterfaceInfo * 1906s # org_project_useful_interface_interface_info (void) 1906s # { 1906s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_override_properties: 1906s # * @klass: The class structure for a #GObject derived class. 1906s # * @property_id_begin: The property id to assign to the first overridden property. 1906s # * 1906s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1906s # * The properties are overridden in the order they are defined. 1906s # * 1906s # * Returns: The last property id. 1906s # */ 1906s # guint 1906s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1906s # { 1906s # return property_id_begin - 1; 1906s # } 1906s # 1906s # 1906s # inline static void 1906s # org_project_useful_interface_method_marshal_single_arg_method_s ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint, 1906s # void *marshal_data) 1906s # { 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1906s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1906s # } 1906s # 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterface: 1906s # * 1906s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceIface: 1906s # * @parent_iface: The parent interface. 1906s # * @handle_single_arg_method_s: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-s signal. 1906s # * 1906s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1906s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1906s # 1906s # static void 1906s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1906s # { 1906s # /* GObject signals for incoming D-Bus method calls: */ 1906s # /** 1906s # * OrgProjectUsefulInterface::handle-single-arg-method-s: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: A #GDBusMethodInvocation. 1906s # * @arg_arg_s: Argument passed by remote caller. 1906s # * 1906s # * Signal emitted when a remote caller is invoking the SingleArgMethodS() D-Bus method. 1906s # * 1906s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_s() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1906s # * 1906s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1906s # */ 1906s # g_signal_new ("handle-single-arg-method-s", 1906s # G_TYPE_FROM_INTERFACE (iface), 1906s # G_SIGNAL_RUN_LAST, 1906s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_s), 1906s # g_signal_accumulator_true_handled, 1906s # NULL, 1906s # org_project_useful_interface_method_marshal_single_arg_method_s, 1906s # G_TYPE_BOOLEAN, 1906s # 2, 1906s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1906s # 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_s: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_s: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously invokes the SingleArgMethodS() D-Bus method on @proxy. 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_call_single_arg_method_s_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_s_sync() for the synchronous, blocking version of this method. 1906s # */ 1906s # void 1906s # org_project_useful_interface_call_single_arg_method_s ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # const gchar *arg_arg_s, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodS", 1906s # g_variant_new ("(s)", 1906s # arg_arg_s), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # callback, 1906s # user_data); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_s_finish: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_s(). 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_s(). 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_s_finish ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_s_sync: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_s: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Synchronously invokes the SingleArgMethodS() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_s() for the asynchronous version of this method. 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_s_sync ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # const gchar *arg_arg_s, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodS", 1906s # g_variant_new ("(s)", 1906s # arg_arg_s), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_complete_single_arg_method_s: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1906s # * 1906s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodS() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1906s # * 1906s # * This method will free @invocation, you cannot use it afterwards. 1906s # */ 1906s # void 1906s # org_project_useful_interface_complete_single_arg_method_s ( 1906s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1906s # GDBusMethodInvocation *invocation) 1906s # { 1906s # g_dbus_method_invocation_return_value (invocation, 1906s # g_variant_new ("()")); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxy: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxyClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceProxyPrivate 1906s # { 1906s # GData *qdata; 1906s # }; 1906s # 1906s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_proxy_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1906s # g_datalist_clear (&proxy->priv->qdata); 1906s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # const GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1906s # const gchar *sender_name G_GNUC_UNUSED, 1906s # const gchar *signal_name, 1906s # GVariant *parameters) 1906s # { 1906s # _ExtendedGDBusSignalInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # gsize n; 1906s # guint signal_id; 1906s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1906s # if (info == NULL) 1906s # return; 1906s # num_params = g_variant_n_children (parameters); 1906s # paramv = g_new0 (GValue, num_params + 1); 1906s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[0], proxy); 1906s # g_variant_iter_init (&iter, parameters); 1906s # n = 1; 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_signal_emitv (paramv, signal_id, 0, NULL); 1906s # for (n = 0; n < num_params + 1; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1906s # GVariant *changed_properties, 1906s # const gchar *const *invalidated_properties) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1906s # guint n; 1906s # const gchar *key; 1906s # GVariantIter *iter; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # g_variant_get (changed_properties, "a{sv}", &iter); 1906s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1906s # g_datalist_remove_data (&proxy->priv->qdata, key); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # g_variant_iter_free (iter); 1906s # for (n = 0; invalidated_properties[n] != NULL; n++) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1906s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1906s # #else 1906s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1906s # #endif 1906s # 1906s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusProxyClass *proxy_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1906s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1906s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1906s # 1906s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1906s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1906s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_sync: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_sync ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new_for_bus ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_sync: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_sync ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeleton: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeletonClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1906s # { 1906s # GValue *properties; 1906s # GList *changed_properties; 1906s # GSource *changed_properties_idle_source; 1906s # GMainContext *context; 1906s # GMutex lock; 1906s # }; 1906s # 1906s # static void 1906s # _org_project_useful_interface_skeleton_handle_method_call ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name, 1906s # const gchar *method_name, 1906s # GVariant *parameters, 1906s # GDBusMethodInvocation *invocation, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # _ExtendedGDBusMethodInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # guint num_extra; 1906s # gsize n; 1906s # guint signal_id; 1906s # GValue return_value = G_VALUE_INIT; 1906s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1906s # g_assert (info != NULL); 1906s # num_params = g_variant_n_children (parameters); 1906s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1906s # n = 0; 1906s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[n++], skeleton); 1906s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1906s # g_value_set_object (¶mv[n++], invocation); 1906s # if (info->pass_fdlist) 1906s # { 1906s # #ifdef G_OS_UNIX 1906s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1906s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1906s # #else 1906s # g_assert_not_reached (); 1906s # #endif 1906s # } 1906s # g_variant_iter_init (&iter, parameters); 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1906s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1906s # if (!g_value_get_boolean (&return_value)) 1906s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1906s # g_value_unset (&return_value); 1906s # for (n = 0; n < num_params + num_extra; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static GVariant * 1906s # _org_project_useful_interface_skeleton_handle_get_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # GVariant *ret; 1906s # ret = NULL; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # g_value_init (&value, pspec->value_type); 1906s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1906s # g_value_unset (&value); 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _org_project_useful_interface_skeleton_handle_set_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GVariant *variant, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # gboolean ret; 1906s # ret = FALSE; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # if (info->use_gvariant) 1906s # g_value_set_variant (&value, variant); 1906s # else 1906s # g_dbus_gvariant_to_gvalue (variant, &value); 1906s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # g_value_unset (&value); 1906s # ret = TRUE; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1906s # { 1906s # _org_project_useful_interface_skeleton_handle_method_call, 1906s # _org_project_useful_interface_skeleton_handle_get_property, 1906s # _org_project_useful_interface_skeleton_handle_set_property, 1906s # {NULL} 1906s # }; 1906s # 1906s # static GDBusInterfaceInfo * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return org_project_useful_interface_interface_info (); 1906s # } 1906s # 1906s # static GDBusInterfaceVTable * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1906s # } 1906s # 1906s # static GVariant * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1906s # 1906s # GVariantBuilder builder; 1906s # guint n; 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1906s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #else 1906s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #endif 1906s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1906s # goto out; 1906s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1906s # { 1906s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1906s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1906s # { 1906s # GVariant *value; 1906s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1906s # if (value != NULL) 1906s # { 1906s # g_variant_take_ref (value); 1906s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1906s # g_variant_unref (value); 1906s # } 1906s # } 1906s # } 1906s # out: 1906s # return g_variant_builder_end (&builder); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_skeleton_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1906s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1906s # if (skeleton->priv->changed_properties_idle_source != NULL) 1906s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1906s # g_main_context_unref (skeleton->priv->context); 1906s # g_mutex_clear (&skeleton->priv->lock); 1906s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1906s # #else 1906s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1906s # #endif 1906s # 1906s # g_mutex_init (&skeleton->priv->lock); 1906s # skeleton->priv->context = g_main_context_ref_thread_default (); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusInterfaceSkeletonClass *skeleton_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1906s # 1906s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1906s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1906s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1906s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1906s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_skeleton_new: 1906s # * 1906s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_skeleton_new (void) 1906s # { 1906s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1906s # } 1906s # Error: 1906s # 1906s # /tmp/tmpgxf70__r/tmp01h7n257.xml: 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgxf70__r/tmp01h7n257.xml', '--output', '-', '--body'] 1906s # Return code: 0 1906s # Output: 1906s # /* 1906s # * This file is generated by gdbus-codegen, do not modify it. 1906s # * 1906s # * The license of this code is the same as for the D-Bus interface description 1906s # * it was derived from. Note that it links to GLib, so must comply with the 1906s # * LGPL linking clauses. 1906s # */ 1906s # 1906s # #ifdef HAVE_CONFIG_H 1906s # # include "config.h" 1906s # #endif 1906s # 1906s # #include 1906s # #ifdef G_OS_UNIX 1906s # # include 1906s # #endif 1906s # 1906s # #ifdef G_ENABLE_DEBUG 1906s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1906s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1906s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1906s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1906s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1906s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1906s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1906s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1906s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1906s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1906s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1906s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1906s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1906s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1906s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1906s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1906s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1906s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1906s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1906s # #else /* !G_ENABLE_DEBUG */ 1906s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1906s # * Do not access GValues directly in your code. Instead, use the 1906s # * g_value_get_*() functions 1906s # */ 1906s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1906s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1906s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1906s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1906s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1906s # #endif /* !G_ENABLE_DEBUG */ 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusArgInfo parent_struct; 1906s # gboolean use_gvariant; 1906s # } _ExtendedGDBusArgInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusMethodInfo parent_struct; 1906s # const gchar *signal_name; 1906s # gboolean pass_fdlist; 1906s # } _ExtendedGDBusMethodInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusSignalInfo parent_struct; 1906s # const gchar *signal_name; 1906s # } _ExtendedGDBusSignalInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusPropertyInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # guint use_gvariant : 1; 1906s # guint emits_changed_signal : 1; 1906s # } _ExtendedGDBusPropertyInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusInterfaceInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # } _ExtendedGDBusInterfaceInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # const _ExtendedGDBusPropertyInfo *info; 1906s # guint prop_id; 1906s # GValue orig_value; /* the value before the change */ 1906s # } ChangedProperty; 1906s # 1906s # static void 1906s # _changed_property_free (ChangedProperty *data) 1906s # { 1906s # g_value_unset (&data->orig_value); 1906s # g_free (data); 1906s # } 1906s # 1906s # static gboolean 1906s # _g_strv_equal0 (gchar **a, gchar **b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # guint n; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # if (g_strv_length (a) != g_strv_length (b)) 1906s # goto out; 1906s # for (n = 0; a[n] != NULL; n++) 1906s # if (g_strcmp0 (a[n], b[n]) != 0) 1906s # goto out; 1906s # ret = TRUE; 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _g_variant_equal0 (GVariant *a, GVariant *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # ret = g_variant_equal (a, b); 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # G_GNUC_UNUSED static gboolean 1906s # _g_value_equal (const GValue *a, const GValue *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1906s # switch (G_VALUE_TYPE (a)) 1906s # { 1906s # case G_TYPE_BOOLEAN: 1906s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1906s # break; 1906s # case G_TYPE_UCHAR: 1906s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1906s # break; 1906s # case G_TYPE_INT: 1906s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1906s # break; 1906s # case G_TYPE_UINT: 1906s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1906s # break; 1906s # case G_TYPE_INT64: 1906s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1906s # break; 1906s # case G_TYPE_UINT64: 1906s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1906s # break; 1906s # case G_TYPE_DOUBLE: 1906s # { 1906s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1906s # gdouble da = g_value_get_double (a); 1906s # gdouble db = g_value_get_double (b); 1906s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1906s # } 1906s # break; 1906s # case G_TYPE_STRING: 1906s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1906s # break; 1906s # case G_TYPE_VARIANT: 1906s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1906s # break; 1906s # default: 1906s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1906s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1906s # else 1906s # g_critical ("_g_value_equal() does not handle ty# Executing: glib/codegen.py.test 1906s pe %s", g_type_name (G_VALUE_TYPE (a))); 1906s # break; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static void 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint G_GNUC_UNUSED, 1906s # void *marshal_data) 1906s # { 1906s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1906s # (void *data1, 1906s # GDBusMethodInvocation *arg_method_invocation, 1906s # const gchar *arg_arg_o, 1906s # void *data2); 1906s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1906s # GCClosure *cc = (GCClosure*) closure; 1906s # void *data1, *data2; 1906s # gboolean v_return; 1906s # 1906s # g_return_if_fail (return_value != NULL); 1906s # g_return_if_fail (n_param_values == 3); 1906s # 1906s # if (G_CCLOSURE_SWAP_DATA (closure)) 1906s # { 1906s # data1 = closure->data; 1906s # data2 = g_value_peek_pointer (param_values + 0); 1906s # } 1906s # else 1906s # { 1906s # data1 = g_value_peek_pointer (param_values + 0); 1906s # data2 = closure->data; 1906s # } 1906s # 1906s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1906s # (marshal_data ? marshal_data : cc->callback); 1906s # 1906s # v_return = 1906s # callback (data1, 1906s # g_marshal_value_peek_object (param_values + 1), 1906s # g_marshal_value_peek_string (param_values + 2), 1906s # data2); 1906s # 1906s # g_value_set_boolean (return_value, v_return); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ 1906s # * Code for interface org.project.UsefulInterface 1906s # * ------------------------------------------------------------------------ 1906s # */ 1906s # 1906s # /** 1906s # * SECTION:OrgProjectUsefulInterface 1906s # * @title: OrgProjectUsefulInterface 1906s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1906s # * 1906s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1906s # */ 1906s # 1906s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1906s # 1906s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_arg_o = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "arg_o", 1906s # (gchar *) "o", 1906s # NULL 1906s # }, 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_arg_o.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_o = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "SingleArgMethodO", 1906s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_pointers, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "handle-single-arg-method-o", 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_o.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "org.project.UsefulInterface", 1906s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1906s # NULL, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "org-project-useful-interface", 1906s # }; 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_interface_info: 1906s # * 1906s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1906s # * 1906s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1906s # */ 1906s # GDBusInterfaceInfo * 1906s # org_project_useful_interface_interface_info (void) 1906s # { 1906s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_override_properties: 1906s # * @klass: The class structure for a #GObject derived class. 1906s # * @property_id_begin: The property id to assign to the first overridden property. 1906s # * 1906s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1906s # * The properties are overridden in the order they are defined. 1906s # * 1906s # * Returns: The last property id. 1906s # */ 1906s # guint 1906s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1906s # { 1906s # return property_id_begin - 1; 1906s # } 1906s # 1906s # 1906s # inline static void 1906s # org_project_useful_interface_method_marshal_single_arg_method_o ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint, 1906s # void *marshal_data) 1906s # { 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1906s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1906s # } 1906s # 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterface: 1906s # * 1906s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceIface: 1906s # * @parent_iface: The parent interface. 1906s # * @handle_single_arg_method_o: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-o signal. 1906s # * 1906s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1906s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1906s # 1906s # static void 1906s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1906s # { 1906s # /* GObject signals for incoming D-Bus method calls: */ 1906s # /** 1906s # * OrgProjectUsefulInterface::handle-single-arg-method-o: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: A #GDBusMethodInvocation. 1906s # * @arg_arg_o: Argument passed by remote caller. 1906s # * 1906s # * Signal emitted when a remote caller is invoking the SingleArgMethodO() D-Bus method. 1906s # * 1906s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_o() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1906s # * 1906s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1906s # */ 1906s # g_signal_new ("handle-single-arg-method-o", 1906s # G_TYPE_FROM_INTERFACE (iface), 1906s # G_SIGNAL_RUN_LAST, 1906s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_o), 1906s # g_signal_accumulator_true_handled, 1906s # NULL, 1906s # org_project_useful_interface_method_marshal_single_arg_method_o, 1906s # G_TYPE_BOOLEAN, 1906s # 2, 1906s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1906s # 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_o: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_o: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously invokes the SingleArgMethodO() D-Bus method on @proxy. 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_call_single_arg_method_o_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_o_sync() for the synchronous, blocking version of this method. 1906s # */ 1906s # void 1906s # org_project_useful_interface_call_single_arg_method_o ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # const gchar *arg_arg_o, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodO", 1906s # g_variant_new ("(o)", 1906s # arg_arg_o), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # callback, 1906s # user_data); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_o_finish: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_o(). 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_o(). 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_o_finish ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_o_sync: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_o: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Synchronously invokes the SingleArgMethodO() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_o() for the asynchronous version of this method. 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_o_sync ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # const gchar *arg_arg_o, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodO", 1906s # g_variant_new ("(o)", 1906s # arg_arg_o), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_complete_single_arg_method_o: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1906s # * 1906s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodO() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1906s # * 1906s # * This method will free @invocation, you cannot use it afterwards. 1906s # */ 1906s # void 1906s # org_project_useful_interface_complete_single_arg_method_o ( 1906s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1906s # GDBusMethodInvocation *invocation) 1906s # { 1906s # g_dbus_method_invocation_return_value (invocation, 1906s # g_variant_new ("()")); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxy: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxyClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceProxyPrivate 1906s # { 1906s # GData *qdata; 1906s # }; 1906s # 1906s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_proxy_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1906s # g_datalist_clear (&proxy->priv->qdata); 1906s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # const GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1906s # const gchar *sender_name G_GNUC_UNUSED, 1906s # const gchar *signal_name, 1906s # GVariant *parameters) 1906s # { 1906s # _ExtendedGDBusSignalInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # gsize n; 1906s # guint signal_id; 1906s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1906s # if (info == NULL) 1906s # return; 1906s # num_params = g_variant_n_children (parameters); 1906s # paramv = g_new0 (GValue, num_params + 1); 1906s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[0], proxy); 1906s # g_variant_iter_init (&iter, parameters); 1906s # n = 1; 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_signal_emitv (paramv, signal_id, 0, NULL); 1906s # for (n = 0; n < num_params + 1; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1906s # GVariant *changed_properties, 1906s # const gchar *const *invalidated_properties) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1906s # guint n; 1906s # const gchar *key; 1906s # GVariantIter *iter; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # g_variant_get (changed_properties, "a{sv}", &iter); 1906s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1906s # g_datalist_remove_data (&proxy->priv->qdata, key); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # g_variant_iter_free (iter); 1906s # for (n = 0; invalidated_properties[n] != NULL; n++) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1906s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1906s # #else 1906s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1906s # #endif 1906s # 1906s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusProxyClass *proxy_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1906s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1906s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1906s # 1906s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1906s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1906s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_sync: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_sync ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new_for_bus ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_sync: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_sync ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeleton: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeletonClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1906s # { 1906s # GValue *properties; 1906s # GList *changed_properties; 1906s # GSource *changed_properties_idle_source; 1906s # GMainContext *context; 1906s # GMutex lock; 1906s # }; 1906s # 1906s # static void 1906s # _org_project_useful_interface_skeleton_handle_method_call ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name, 1906s # const gchar *method_name, 1906s # GVariant *parameters, 1906s # GDBusMethodInvocation *invocation, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # _ExtendedGDBusMethodInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # guint num_extra; 1906s # gsize n; 1906s # guint signal_id; 1906s # GValue return_value = G_VALUE_INIT; 1906s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1906s # g_assert (info != NULL); 1906s # num_params = g_variant_n_children (parameters); 1906s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1906s # n = 0; 1906s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[n++], skeleton); 1906s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1906s # g_value_set_object (¶mv[n++], invocation); 1906s # if (info->pass_fdlist) 1906s # { 1906s # #ifdef G_OS_UNIX 1906s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1906s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1906s # #else 1906s # g_assert_not_reached (); 1906s # #endif 1906s # } 1906s # g_variant_iter_init (&iter, parameters); 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1906s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1906s # if (!g_value_get_boolean (&return_value)) 1906s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1906s # g_value_unset (&return_value); 1906s # for (n = 0; n < num_params + num_extra; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static GVariant * 1906s # _org_project_useful_interface_skeleton_handle_get_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # GVariant *ret; 1906s # ret = NULL; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # g_value_init (&value, pspec->value_type); 1906s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1906s # g_value_unset (&value); 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _org_project_useful_interface_skeleton_handle_set_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GVariant *variant, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # gboolean ret; 1906s # ret = FALSE; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # if (info->use_gvariant) 1906s # g_value_set_variant (&value, variant); 1906s # else 1906s # g_dbus_gvariant_to_gvalue (variant, &value); 1906s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # g_value_unset (&value); 1906s # ret = TRUE; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1906s # { 1906s # _org_project_useful_interface_skeleton_handle_method_call, 1906s # _org_project_useful_interface_skeleton_handle_get_property, 1906s # _org_project_useful_interface_skeleton_handle_set_property, 1906s # {NULL} 1906s # }; 1906s # 1906s # static GDBusInterfaceInfo * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return org_project_useful_interface_interface_info (); 1906s # } 1906s # 1906s # static GDBusInterfaceVTable * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1906s # } 1906s # 1906s # static GVariant * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1906s # 1906s # GVariantBuilder builder; 1906s # guint n; 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1906s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #else 1906s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #endif 1906s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1906s # goto out; 1906s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1906s # { 1906s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1906s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1906s # { 1906s # GVariant *value; 1906s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1906s # if (value != NULL) 1906s # { 1906s # g_variant_take_ref (value); 1906s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1906s # g_variant_unref (value); 1906s # } 1906s # } 1906s # } 1906s # out: 1906s # return g_variant_builder_end (&builder); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_skeleton_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1906s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1906s # if (skeleton->priv->changed_properties_idle_source != NULL) 1906s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1906s # g_main_context_unref (skeleton->priv->context); 1906s # g_mutex_clear (&skeleton->priv->lock); 1906s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1906s # #else 1906s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1906s # #endif 1906s # 1906s # g_mutex_init (&skeleton->priv->lock); 1906s # skeleton->priv->context = g_main_context_ref_thread_default (); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusInterfaceSkeletonClass *skeleton_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1906s # 1906s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1906s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1906s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1906s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1906s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_skeleton_new: 1906s # * 1906s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_skeleton_new (void) 1906s # { 1906s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1906s # } 1906s # Error: 1906s # 1906s # /tmp/tmpgxf70__r/tmptlviasw5.xml: 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgxf70__r/tmptlviasw5.xml', '--output', '-', '--body'] 1906s # Return code: 0 1906s # Output: 1906s # /* 1906s # * This file is generated by gdbus-codegen, do not modify it. 1906s # * 1906s # * The license of this code is the same as for the D-Bus interface description 1906s # * it was derived from. Note that it links to GLib, so must comply with the 1906s # * LGPL linking clauses. 1906s # */ 1906s # 1906s # #ifdef HAVE_CONFIG_H 1906s # # include "config.h" 1906s # #endif 1906s # 1906s # #include 1906s # #ifdef G_OS_UNIX 1906s # # include 1906s # #endif 1906s # 1906s # #ifdef G_ENABLE_DEBUG 1906s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1906s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1906s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1906s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1906s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1906s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1906s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1906s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1906s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1906s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1906s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1906s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1906s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1906s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1906s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1906s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1906s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1906s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1906s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1906s # #else /* !G_ENABLE_DEBUG */ 1906s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1906s # * Do not access GValues directly in your code. Instead, use the 1906s # * g_value_get_*() functions 1906s # */ 1906s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1906s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1906s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1906s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1906s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1906s # #endif /* !G_ENABLE_DEBUG */ 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusArgInfo parent_struct; 1906s # gboolean use_gvariant; 1906s # } _ExtendedGDBusArgInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusMethodInfo parent_struct; 1906s # const gchar *signal_name; 1906s # gboolean pass_fdlist; 1906s # } _ExtendedGDBusMethodInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusSignalInfo parent_struct; 1906s # const gchar *signal_name; 1906s # } _ExtendedGDBusSignalInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusPropertyInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # guint use_gvariant : 1; 1906s # guint emits_changed_signal : 1; 1906s # } _ExtendedGDBusPropertyInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusInterfaceInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # } _ExtendedGDBusInterfaceInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # const _ExtendedGDBusPropertyInfo *info; 1906s # guint prop_id; 1906s # GValue orig_value; /* the value before the change */ 1906s # } ChangedProperty; 1906s # 1906s # static void 1906s # _changed_property_free (ChangedProperty *data) 1906s # { 1906s # g_value_unset (&data->orig_value); 1906s # g_free (data); 1906s # } 1906s # 1906s # static gboolean 1906s # _g_strv_equal0 (gchar **a, gchar **b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # guint n; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # if (g_strv_length (a) != g_strv_length (b)) 1906s # goto out; 1906s # for (n = 0; a[n] != NULL; n++) 1906s # if (g_strcmp0 (a[n], b[n]) != 0) 1906s # goto out; 1906s # ret = TRUE; 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _g_variant_equal0 (GVariant *a, GVariant *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # ret = g_variant_equal (a, b); 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # G_GNUC_UNUSED static gboolean 1906s # _g_value_equal (const GValue *a, const GValue *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1906s # switch (G_VALUE_TYPE (a)) 1906s # { 1906s # case G_TYPE_BOOLEAN: 1906s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1906s # break; 1906s # case G_TYPE_UCHAR: 1906s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1906s # break; 1906s # case G_TYPE_INT: 1906s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1906s # break; 1906s # case G_TYPE_UINT: 1906s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1906s # break; 1906s # case G_TYPE_INT64: 1906s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1906s # break; 1906s # case G_TYPE_UINT64: 1906s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1906s # break; 1906s # case G_TYPE_DOUBLE: 1906s # { 1906s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1906s # gdouble da = g_value_get_double (a); 1906s # gdouble db = g_value_get_double (b); 1906s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1906s # } 1906s # break; 1906s # case G_TYPE_STRING: 1906s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1906s # break; 1906s # case G_TYPE_VARIANT: 1906s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1906s # break; 1906s # default: 1906s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1906s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1906s # else 1906s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1906s # break; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static void 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint G_GNUC_UNUSED, 1906s # void *marshal_data) 1906s # { 1906s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1906s # (void *data1, 1906s # GDBusMethodInvocation *arg_method_invocation, 1906s # const gchar *arg_arg_g, 1906s # void *data2); 1906s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1906s # GCClosure *cc = (GCClosure*) closure; 1906s # void *data1, *data2; 1906s # gboolean v_return; 1906s # 1906s # g_return_if_fail (return_value != NULL); 1906s # g_return_if_fail (n_param_values == 3); 1906s # 1906s # if (G_CCLOSURE_SWAP_DATA (closure)) 1906s # { 1906s # data1 = closure->data; 1906s # data2 = g_value_peek_pointer (param_values + 0); 1906s # } 1906s # else 1906s # { 1906s # data1 = g_value_peek_pointer (param_values + 0); 1906s # data2 = closure->data; 1906s # } 1906s # 1906s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1906s # (marshal_data ? marshal_data : cc->callback); 1906s # 1906s # v_return = 1906s # callback (data1, 1906s # g_marshal_value_peek_object (param_values + 1), 1906s # g_marshal_value_peek_string (param_values + 2), 1906s # data2); 1906s # 1906s # g_value_set_boolean (return_value, v_return); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ 1906s # * Code for interface org.project.UsefulInterface 1906s # * ------------------------------------------------------------------------ 1906s # */ 1906s # 1906s # /** 1906s # * SECTION:OrgProjectUsefulInterface 1906s # * @title: OrgProjectUsefulInterface 1906s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1906s # * 1906s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1906s # */ 1906s # 1906s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1906s # 1906s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_arg_g = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "arg_g", 1906s # (gchar *) "g", 1906s # NULL 1906s # }, 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_arg_g.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_g = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "SingleArgMethodG", 1906s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_pointers, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "handle-single-arg-method-g", 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_g.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "org.project.UsefulInterface", 1906s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1906s # NULL, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "org-project-useful-interface", 1906s # }; 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_interface_info: 1906s # * 1906s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1906s # * 1906s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1906s # */ 1906s # GDBusInterfaceInfo * 1906s # org_project_useful_interface_interface_info (void) 1906s # { 1906s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_override_properties: 1906s # * @klass: The class structure for a #GObject derived class. 1906s # * @property_id_begin: The property id to assign to the first overridden property. 1906s # * 1906s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1906s # * The properties are overridden in the order they are defined. 1906s # * 1906s # * Returns: The last property id. 1906s # */ 1906s # guint 1906s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1906s # { 1906s # return property_id_begin - 1; 1906s # } 1906s # 1906s # 1906s # inline static void 1906s # org_project_useful_interface_method_marshal_single_arg_method_g ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint, 1906s # void *marshal_data) 1906s # { 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1906s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1906s # } 1906s # 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterface: 1906s # * 1906s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceIface: 1906s # * @parent_iface: The parent interface. 1906s # * @handle_single_arg_method_g: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-g signal. 1906s # * 1906s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1906s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1906s # 1906s # static void 1906s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1906s # { 1906s # /* GObject signals for incoming D-Bus method calls: */ 1906s # /** 1906s # * OrgProjectUsefulInterface::handle-single-arg-method-g: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: A #GDBusMethodInvocation. 1906s # * @arg_arg_g: Argument passed by remote caller. 1906s # * 1906s # * Signal emitted when a remote caller is invoking the SingleArgMethodG() D-Bus method. 1906s # * 1906s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_g() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1906s # * 1906s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1906s # */ 1906s # g_signal_new ("handle-single-arg-method-g", 1906s # G_TYPE_FROM_INTERFACE (iface), 1906s # G_SIGNAL_RUN_LAST, 1906s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_g), 1906s # g_signal_accumulator_true_handled, 1906s # NULL, 1906s # org_project_useful_interface_method_marshal_single_arg_method_g, 1906s # G_TYPE_BOOLEAN, 1906s # 2, 1906s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1906s # 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_g: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_g: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously invokes the SingleArgMethodG() D-Bus method on @proxy. 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_call_single_arg_method_g_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_g_sync() for the synchronous, blocking version of this method. 1906s # */ 1906s # void 1906s # org_project_useful_interface_call_single_arg_method_g ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # const gchar *arg_arg_g, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodG", 1906s # g_variant_new ("(g)", 1906s # arg_arg_g), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # callback, 1906s # user_data); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_g_finish: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_g(). 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_g(). 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_g_finish ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_g_sync: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_g: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Synchronously invokes the SingleArgMethodG() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_g() for the asynchronous version of this method. 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_g_sync ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # const gchar *arg_arg_g, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodG", 1906s # g_variant_new ("(g)", 1906s # arg_arg_g), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_complete_single_arg_method_g: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1906s # * 1906s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodG() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1906s # * 1906s # * This method will free @invocation, you cannot use it afterwards. 1906s # */ 1906s # void 1906s # org_project_useful_interface_complete_single_arg_method_g ( 1906s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1906s # GDBusMethodInvocation *invocation) 1906s # { 1906s # g_dbus_method_invocation_return_value (invocation, 1906s # g_variant_new ("()")); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxy: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxyClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceProxyPrivate 1906s # { 1906s # GData *qdata; 1906s # }; 1906s # 1906s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_proxy_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1906s # g_datalist_clear (&proxy->priv->qdata); 1906s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # const GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1906s # const gchar *sender_name G_GNUC_UNUSED, 1906s # const gchar *signal_name, 1906s # GVariant *parameters) 1906s # { 1906s # _ExtendedGDBusSignalInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # gsize n; 1906s # guint signal_id; 1906s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1906s # if (info == NULL) 1906s # return; 1906s # num_params = g_variant_n_children (parameters); 1906s # paramv = g_new0 (GValue, num_params + 1); 1906s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[0], proxy); 1906s # g_variant_iter_init (&iter, parameters); 1906s # n = 1; 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_signal_emitv (paramv, signal_id, 0, NULL); 1906s # for (n = 0; n < num_params + 1; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1906s # GVariant *changed_properties, 1906s # const gchar *const *invalidated_properties) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1906s # guint n; 1906s # const gchar *key; 1906s # GVariantIter *iter; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # g_variant_get (changed_properties, "a{sv}", &iter); 1906s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1906s # g_datalist_remove_data (&proxy->priv->qdata, key); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # g_variant_iter_free (iter); 1906s # for (n = 0; invalidated_properties[n] != NULL; n++) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1906s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1906s # #else 1906s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1906s # #endif 1906s # 1906s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusProxyClass *proxy_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1906s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1906s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1906s # 1906s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1906s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1906s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_sync: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_sync ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new_for_bus ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_sync: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_sync ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeleton: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeletonClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1906s # { 1906s # GValue *properties; 1906s # GList *changed_properties; 1906s # GSource *changed_properties_idle_source; 1906s # GMainContext *context; 1906s # GMutex lock; 1906s # }; 1906s # 1906s # static void 1906s # _org_project_useful_interface_skeleton_handle_method_call ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name, 1906s # const gchar *method_name, 1906s # GVariant *parameters, 1906s # GDBusMethodInvocation *invocation, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # _ExtendedGDBusMethodInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # guint num_extra; 1906s # gsize n; 1906s # guint signal_id; 1906s # GValue return_value = G_VALUE_INIT; 1906s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1906s # g_assert (info != NULL); 1906s # num_params = g_variant_n_children (parameters); 1906s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1906s # n = 0; 1906s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[n++], skeleton); 1906s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1906s # g_value_set_object (¶mv[n++], invocation); 1906s # if (info->pass_fdlist) 1906s # { 1906s # #ifdef G_OS_UNIX 1906s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1906s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1906s # #else 1906s # g_assert_not_reached (); 1906s # #endif 1906s # } 1906s # g_variant_iter_init (&iter, parameters); 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1906s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1906s # if (!g_value_get_boolean (&return_value)) 1906s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1906s # g_value_unset (&return_value); 1906s # for (n = 0; n < num_params + num_extra; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static GVariant * 1906s # _org_project_useful_interface_skeleton_handle_get_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # GVariant *ret; 1906s # ret = NULL; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # g_value_init (&value, pspec->value_type); 1906s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1906s # g_value_unset (&value); 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _org_project_useful_interface_skeleton_handle_set_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GVariant *variant, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # gboolean ret; 1906s # ret = FALSE; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # if (info->use_gvariant) 1906s # g_value_set_variant (&value, variant); 1906s # else 1906s # g_dbus_gvariant_to_gvalue (variant, &value); 1906s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # g_value_unset (&value); 1906s # ret = TRUE; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1906s # { 1906s # _org_project_useful_interface_skeleton_handle_method_call, 1906s # _org_project_useful_interface_skeleton_handle_get_property, 1906s # _org_project_useful_interface_skeleton_handle_set_property, 1906s # {NULL} 1906s # }; 1906s # 1906s # static GDBusInterfaceInfo * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return org_project_useful_interface_interface_info (); 1906s # } 1906s # 1906s # static GDBusInterfaceVTable * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1906s # } 1906s # 1906s # static GVariant * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1906s # 1906s # GVariantBuilder builder; 1906s # guint n; 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1906s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #else 1906s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #endif 1906s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1906s # goto out; 1906s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1906s # { 1906s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1906s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1906s # { 1906s # GVariant *value; 1906s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1906s # if (value != NULL) 1906s # { 1906s # g_variant_take_ref (value); 1906s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1906s # g_variant_unref (value); 1906s # } 1906s # } 1906s # } 1906s # out: 1906s # return g_variant_builder_end (&builder); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_skeleton_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1906s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1906s # if (skeleton->priv->changed_properties_idle_source != NULL) 1906s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1906s # g_main_context_unref (skeleton->priv->context); 1906s # g_mutex_clear (&skeleton->priv->lock); 1906s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1906s # #else 1906s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1906s # #endif 1906s # 1906s # g_mutex_init (&skeleton->priv->lock); 1906s # skeleton->priv->context = g_main_context_ref_thread_default (); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusInterfaceSkeletonClass *skeleton_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1906s # 1906s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1906s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1906s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1906s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1906s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_skeleton_new: 1906s # * 1906s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_skeleton_new (void) 1906s # { 1906s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1906s # } 1906s # Error: 1906s # 1906s # /tmp/tmpgxf70__r/tmp018n4617.xml: 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgxf70__r/tmp018n4617.xml', '--output', '-', '--body'] 1906s # Return code: 0 1906s # Output: 1906s # /* 1906s # * This file is generated by gdbus-codegen, do not modify it. 1906s # * 1906s # * The license of this code is the same as for the D-Bus interface description 1906s # * it was derived from. Note that it links to GLib, so must comply with the 1906s # * LGPL linking clauses. 1906s # */ 1906s # 1906s # #ifdef HAVE_CONFIG_H 1906s # # include "config.h" 1906s # #endif 1906s # 1906s # #include 1906s # #ifdef G_OS_UNIX 1906s # # include 1906s # #endif 1906s # 1906s # #ifdef G_ENABLE_DEBUG 1906s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1906s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1906s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1906s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1906s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1906s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1906s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1906s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1906s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1906s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1906s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1906s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1906s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1906s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1906s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1906s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1906s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1906s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1906s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1906s # #else /* !G_ENABLE_DEBUG */ 1906s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1906s # * Do not access GValues directly in your code. Instead, use the 1906s # * g_value_get_*() functions 1906s # */ 1906s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1906s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1906s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1906s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1906s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1906s # #endif /* !G_ENABLE_DEBUG */ 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusArgInfo parent_struct; 1906s # gboolean use_gvariant; 1906s # } _ExtendedGDBusArgInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusMethodInfo parent_struct; 1906s # const gchar *signal_name; 1906s # gboolean pass_fdlist; 1906s # } _ExtendedGDBusMethodInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusSignalInfo parent_struct; 1906s # const gchar *signal_name; 1906s # } _ExtendedGDBusSignalInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusPropertyInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # guint use_gvariant : 1; 1906s # guint emits_changed_signal : 1; 1906s # } _ExtendedGDBusPropertyInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusInterfaceInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # } _ExtendedGDBusInterfaceInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # const _ExtendedGDBusPropertyInfo *info; 1906s # guint prop_id; 1906s # GValue orig_value; /* the value before the change */ 1906s # } ChangedProperty; 1906s # 1906s # static void 1906s # _changed_property_free (ChangedProperty *data) 1906s # { 1906s # g_value_unset (&data->orig_value); 1906s # g_free (data); 1906s # } 1906s # 1906s # static gboolean 1906s # _g_strv_equal0 (gchar **a, gchar **b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # guint n; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # if (g_strv_length (a) != g_strv_length (b)) 1906s # goto out; 1906s # for (n = 0; a[n] != NULL; n++) 1906s # if (g_strcmp0 (a[n], b[n]) != 0) 1906s # goto out; 1906s # ret = TRUE; 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _g_variant_equal0 (GVariant *a, GVariant *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # ret = g_variant_equal (a, b); 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # G_GNUC_UNUSED static gboolean 1906s # _g_value_equal (const GValue *a, const GValue *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1906s # switch (G_VALUE_TYPE (a)) 1906s # { 1906s # case G_TYPE_BOOLEAN: 1906s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1906s # break; 1906s # case G_TYPE_UCHAR: 1906s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1906s # break; 1906s # case G_TYPE_INT: 1906s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1906s # break; 1906s # case G_TYPE_UINT: 1906s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1906s # break; 1906s # case G_TYPE_INT64: 1906s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1906s # break; 1906s # case G_TYPE_UINT64: 1906s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1906s # break; 1906s # case G_TYPE_DOUBLE: 1906s # { 1906s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1906s # gdouble da = g_value_get_double (a); 1906s # gdouble db = g_value_get_double (b); 1906s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1906s # } 1906s # break; 1906s # case G_TYPE_STRING: 1906s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1906s # break; 1906s # case G_TYPE_VARIANT: 1906s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1906s # break; 1906s # default: 1906s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1906s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1906s # else 1906s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1906s # break; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static void 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint G_GNUC_UNUSED, 1906s # void *marshal_data) 1906s # { 1906s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1906s # (void *data1, 1906s # GDBusMethodInvocation *arg_method_invocation, 1906s # GVariant *arg_arg_h, 1906s # void *data2); 1906s # _GDbusCodegenMarshalBoolean_ObjectVariantFunc callback; 1906s # GCClosure *cc = (GCClosure*) closure; 1906s # void *data1, *data2; 1906s # gboolean v_return; 1906s # 1906s # g_return_if_fail (return_value != NULL); 1906s # g_return_if_fail (n_param_values == 3); 1906s # 1906s # if (G_CCLOSURE_SWAP_DATA (closure)) 1906s # { 1906s # data1 = closure->data; 1906s # data2 = g_value_peek_pointer (param_values + 0); 1906s # } 1906s # else 1906s # { 1906s # data1 = g_value_peek_pointer (param_values + 0); 1906s # data2 = closure->data; 1906s # } 1906s # 1906s # callback = (_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1906s # (marshal_data ? marshal_data : cc->callback); 1906s # 1906s # v_return = 1906s # callback (data1, 1906s # g_marshal_value_peek_object (param_values + 1), 1906s # g_marshal_value_peek_variant (param_values + 2), 1906s # data2); 1906s # 1906s # g_value_set_boolean (return_value, v_return); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ 1906s # * Code for interface org.project.UsefulInterface 1906s # * ------------------------------------------------------------------------ 1906s # */ 1906s # 1906s # /** 1906s # * SECTION:OrgProjectUsefulInterface 1906s # * @title: OrgProjectUsefulInterface 1906s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1906s # * 1906s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1906s # */ 1906s # 1906s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1906s # 1906s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_arg_h = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "arg_h", 1906s # (gchar *) "h", 1906s # NULL 1906s # }, 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_arg_h.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_h = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "SingleArgMethodH", 1906s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_pointers, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "handle-single-arg-method-h", 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_h.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "org.project.UsefulInterface", 1906s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1906s # NULL, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "org-project-useful-interface", 1906s # }; 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_interface_info: 1906s # * 1906s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1906s # * 1906s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1906s # */ 1906s # GDBusInterfaceInfo * 1906s # org_project_useful_interface_interface_info (void) 1906s # { 1906s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_override_properties: 1906s # * @klass: The class structure for a #GObject derived class. 1906s # * @property_id_begin: The property id to assign to the first overridden property. 1906s # * 1906s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1906s # * The properties are overridden in the order they are defined. 1906s # * 1906s # * Returns: The last property id. 1906s # */ 1906s # guint 1906s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1906s # { 1906s # return property_id_begin - 1; 1906s # } 1906s # 1906s # 1906s # inline static void 1906s # org_project_useful_interface_method_marshal_single_arg_method_h ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint, 1906s # void *marshal_data) 1906s # { 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT (closure, 1906s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1906s # } 1906s # 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterface: 1906s # * 1906s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceIface: 1906s # * @parent_iface: The parent interface. 1906s # * @handle_single_arg_method_h: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-h signal. 1906s # * 1906s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1906s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1906s # 1906s # static void 1906s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1906s # { 1906s # /* GObject signals for incoming D-Bus method calls: */ 1906s # /** 1906s # * OrgProjectUsefulInterface::handle-single-arg-method-h: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: A #GDBusMethodInvocation. 1906s # * @arg_arg_h: Argument passed by remote caller. 1906s # * 1906s # * Signal emitted when a remote caller is invoking the SingleArgMethodH() D-Bus method. 1906s # * 1906s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_h() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1906s # * 1906s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1906s # */ 1906s # g_signal_new ("handle-single-arg-method-h", 1906s # G_TYPE_FROM_INTERFACE (iface), 1906s # G_SIGNAL_RUN_LAST, 1906s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_h), 1906s # g_signal_accumulator_true_handled, 1906s # NULL, 1906s # org_project_useful_interface_method_marshal_single_arg_method_h, 1906s # G_TYPE_BOOLEAN, 1906s # 2, 1906s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT); 1906s # 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_h: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_h: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously invokes the SingleArgMethodH() D-Bus method on @proxy. 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_call_single_arg_method_h_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_h_sync() for the synchronous, blocking version of this method. 1906s # */ 1906s # void 1906s # org_project_useful_interface_call_single_arg_method_h ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # GVariant *arg_arg_h, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodH", 1906s # g_variant_new ("(@h)", 1906s # arg_arg_h), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # callback, 1906s # user_data); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_h_finish: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_h(). 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_h(). 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_h_finish ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_h_sync: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_h: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Synchronously invokes the SingleArgMethodH() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_h() for the asynchronous version of this method. 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_h_sync ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # GVariant *arg_arg_h, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodH", 1906s # g_variant_new ("(@h)", 1906s # arg_arg_h), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_complete_single_arg_method_h: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1906s # * 1906s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodH() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1906s # * 1906s # * This method will free @invocation, you cannot use it afterwards. 1906s # */ 1906s # void 1906s # org_project_useful_interface_complete_single_arg_method_h ( 1906s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1906s # GDBusMethodInvocation *invocation) 1906s # { 1906s # g_dbus_method_invocation_return_value (invocation, 1906s # g_variant_new ("()")); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxy: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxyClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceProxyPrivate 1906s # { 1906s # GData *qdata; 1906s # }; 1906s # 1906s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_proxy_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1906s # g_datalist_clear (&proxy->priv->qdata); 1906s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # const GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1906s # const gchar *sender_name G_GNUC_UNUSED, 1906s # const gchar *signal_name, 1906s # GVariant *parameters) 1906s # { 1906s # _ExtendedGDBusSignalInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # gsize n; 1906s # guint signal_id; 1906s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1906s # if (info == NULL) 1906s # return; 1906s # num_params = g_variant_n_children (parameters); 1906s # paramv = g_new0 (GValue, num_params + 1); 1906s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[0], proxy); 1906s # g_variant_iter_init (&iter, parameters); 1906s # n = 1; 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_signal_emitv (paramv, signal_id, 0, NULL); 1906s # for (n = 0; n < num_params + 1; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1906s # GVariant *changed_properties, 1906s # const gchar *const *invalidated_properties) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1906s # guint n; 1906s # const gchar *key; 1906s # GVariantIter *iter; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # g_variant_get (changed_properties, "a{sv}", &iter); 1906s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1906s # g_datalist_remove_data (&proxy->priv->qdata, key); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # g_variant_iter_free (iter); 1906s # for (n = 0; invalidated_properties[n] != NULL; n++) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1906s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1906s # #else 1906s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1906s # #endif 1906s # 1906s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusProxyClass *proxy_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1906s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1906s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1906s # 1906s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1906s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1906s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_sync: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_sync ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new_for_bus ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_sync: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_sync ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeleton: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeletonClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1906s # { 1906s # GValue *properties; 1906s # GList *changed_properties; 1906s # GSource *changed_properties_idle_source; 1906s # GMainContext *context; 1906s # GMutex lock; 1906s # }; 1906s # 1906s # static void 1906s # _org_project_useful_interface_skeleton_handle_method_call ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name, 1906s # const gchar *method_name, 1906s # GVariant *parameters, 1906s # GDBusMethodInvocation *invocation, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # _ExtendedGDBusMethodInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # guint num_extra; 1906s # gsize n; 1906s # guint signal_id; 1906s # GValue return_value = G_VALUE_INIT; 1906s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1906s # g_assert (info != NULL); 1906s # num_params = g_variant_n_children (parameters); 1906s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1906s # n = 0; 1906s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[n++], skeleton); 1906s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1906s # g_value_set_object (¶mv[n++], invocation); 1906s # if (info->pass_fdlist) 1906s # { 1906s # #ifdef G_OS_UNIX 1906s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1906s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1906s # #else 1906s # g_assert_not_reached (); 1906s # #endif 1906s # } 1906s # g_variant_iter_init (&iter, parameters); 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1906s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1906s # if (!g_value_get_boolean (&return_value)) 1906s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1906s # g_value_unset (&return_value); 1906s # for (n = 0; n < num_params + num_extra; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static GVariant * 1906s # _org_project_useful_interface_skeleton_handle_get_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # GVariant *ret; 1906s # ret = NULL; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # g_value_init (&value, pspec->value_type); 1906s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1906s # g_value_unset (&value); 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _org_project_useful_interface_skeleton_handle_set_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GVariant *variant, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # gboolean ret; 1906s # ret = FALSE; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # if (info->use_gvariant) 1906s # g_value_set_variant (&value, variant); 1906s # else 1906s # g_dbus_gvariant_to_gvalue (variant, &value); 1906s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # g_value_unset (&value); 1906s # ret = TRUE; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1906s # { 1906s # _org_project_useful_interface_skeleton_handle_method_call, 1906s # _org_project_useful_interface_skeleton_handle_get_property, 1906s # _org_project_useful_interface_skeleton_handle_set_property, 1906s # {NULL} 1906s # }; 1906s # 1906s # static GDBusInterfaceInfo * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return org_project_useful_interface_interface_info (); 1906s # } 1906s # 1906s # static GDBusInterfaceVTable * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1906s # } 1906s # 1906s # static GVariant * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1906s # 1906s # GVariantBuilder builder; 1906s # guint n; 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1906s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #else 1906s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #endif 1906s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1906s # goto out; 1906s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1906s # { 1906s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1906s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1906s # { 1906s # GVariant *value; 1906s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1906s # if (value != NULL) 1906s # { 1906s # g_variant_take_ref (value); 1906s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1906s # g_variant_unref (value); 1906s # } 1906s # } 1906s # } 1906s # out: 1906s # return g_variant_builder_end (&builder); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_skeleton_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1906s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1906s # if (skeleton->priv->changed_properties_idle_source != NULL) 1906s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1906s # g_main_context_unref (skeleton->priv->context); 1906s # g_mutex_clear (&skeleton->priv->lock); 1906s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1906s # #else 1906s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1906s # #endif 1906s # 1906s # g_mutex_init (&skeleton->priv->lock); 1906s # skeleton->priv->context = g_main_context_ref_thread_default (); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusInterfaceSkeletonClass *skeleton_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1906s # 1906s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1906s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1906s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1906s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1906s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_skeleton_new: 1906s # * 1906s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_skeleton_new (void) 1906s # { 1906s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1906s # } 1906s # Error: 1906s # 1906s # /tmp/tmpgxf70__r/tmpzcbwnfsr.xml: 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgxf70__r/tmpzcbwnfsr.xml', '--output', '-', '--body'] 1906s # Return code: 0 1906s # Output: 1906s # /* 1906s # * This file is generated by gdbus-codegen, do not modify it. 1906s # * 1906s # * The license of this code is the same as for the D-Bus interface description 1906s # * it was derived from. Note that it links to GLib, so must comply with the 1906s # * LGPL linking clauses. 1906s # */ 1906s # 1906s # #ifdef HAVE_CONFIG_H 1906s # # include "config.h" 1906s # #endif 1906s # 1906s # #include 1906s # #ifdef G_OS_UNIX 1906s # # include 1906s # #endif 1906s # 1906s # #ifdef G_ENABLE_DEBUG 1906s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1906s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1906s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1906s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1906s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1906s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1906s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1906s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1906s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1906s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1906s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1906s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1906s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1906s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1906s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1906s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1906s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1906s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1906s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1906s # #else /* !G_ENABLE_DEBUG */ 1906s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1906s # * Do not access GValues directly in your code. Instead, use the 1906s # * g_value_get_*() functions 1906s # */ 1906s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1906s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1906s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1906s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1906s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1906s # #endif /* !G_ENABLE_DEBUG */ 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusArgInfo parent_struct; 1906s # gboolean use_gvariant; 1906s # } _ExtendedGDBusArgInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusMethodInfo parent_struct; 1906s # const gchar *signal_name; 1906s # gboolean pass_fdlist; 1906s # } _ExtendedGDBusMethodInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusSignalInfo parent_struct; 1906s # const gchar *signal_name; 1906s # } _ExtendedGDBusSignalInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusPropertyInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # guint use_gvariant : 1; 1906s # guint emits_changed_signal : 1; 1906s # } _ExtendedGDBusPropertyInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusInterfaceInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # } _ExtendedGDBusInterfaceInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # const _ExtendedGDBusPropertyInfo *info; 1906s # guint prop_id; 1906s # GValue orig_value; /* the value before the change */ 1906s # } ChangedProperty; 1906s # 1906s # static void 1906s # _changed_property_free (ChangedProperty *data) 1906s # { 1906s # g_value_unset (&data->orig_value); 1906s # g_free (data); 1906s # } 1906s # 1906s # static gboolean 1906s # _g_strv_equal0 (gchar **a, gchar **b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # guint n; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # if (g_strv_length (a) != g_strv_length (b)) 1906s # goto out; 1906s # for (n = 0; a[n] != NULL; n++) 1906s # if (g_strcmp0 (a[n], b[n]) != 0) 1906s # goto out; 1906s # ret = TRUE; 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _g_variant_equal0 (GVariant *a, GVariant *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # ret = g_variant_equal (a, b); 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # G_GNUC_UNUSED static gboolean 1906s # _g_value_equal (const GValue *a, const GValue *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1906s # switch (G_VALUE_TYPE (a)) 1906s # { 1906s # case G_TYPE_BOOLEAN: 1906s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1906s # break; 1906s # case G_TYPE_UCHAR: 1906s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1906s # break; 1906s # case G_TYPE_INT: 1906s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1906s # break; 1906s # case G_TYPE_UINT: 1906s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1906s # break; 1906s # case G_TYPE_INT64: 1906s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1906s # break; 1906s # case G_TYPE_UINT64: 1906s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1906s # break; 1906s # case G_TYPE_DOUBLE: 1906s # { 1906s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1906s # gdouble da = g_value_get_double (a); 1906s # gdouble db = g_value_get_double (b); 1906s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1906s # } 1906s # break; 1906s # case G_TYPE_STRING: 1906s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1906s # break; 1906s # case G_TYPE_VARIANT: 1906s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1906s # break; 1906s # default: 1906s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1906s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1906s # else 1906s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1906s # break; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static void 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint G_GNUC_UNUSED, 1906s # void *marshal_data) 1906s # { 1906s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1906s # (void *data1, 1906s # GDBusMethodInvocation *arg_method_invocation, 1906s # const gchar *arg_arg_ay, 1906s # void *data2); 1906s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1906s # GCClosure *cc = (GCClosure*) closure; 1906s # void *data1, *data2; 1906s # gboolean v_return; 1906s # 1906s # g_return_if_fail (return_value != NULL); 1906s # g_return_if_fail (n_param_values == 3); 1906s # 1906s # if (G_CCLOSURE_SWAP_DATA (closure)) 1906s # { 1906s # data1 = closure->data; 1906s # data2 = g_value_peek_pointer (param_values + 0); 1906s # } 1906s # else 1906s # { 1906s # data1 = g_value_peek_pointer (param_values + 0); 1906s # data2 = closure->data; 1906s # } 1906s # 1906s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1906s # (marshal_data ? marshal_data : cc->callback); 1906s # 1906s # v_return = 1906s # callback (data1, 1906s # g_marshal_value_peek_object (param_values + 1), 1906s # g_marshal_value_peek_string (param_values + 2), 1906s # data2); 1906s # 1906s # g_value_set_boolean (return_value, v_return); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ 1906s # * Code for interface org.project.UsefulInterface 1906s # * ------------------------------------------------------------------------ 1906s # */ 1906s # 1906s # /** 1906s # * SECTION:OrgProjectUsefulInterface 1906s # * @title: OrgProjectUsefulInterface 1906s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1906s # * 1906s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1906s # */ 1906s # 1906s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1906s # 1906s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_arg_ay = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "arg_ay", 1906s # (gchar *) "ay", 1906s # NULL 1906s # }, 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_arg_ay.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ay = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "SingleArgMethodAy", 1906s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_pointers, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "handle-single-arg-method-ay", 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_ay.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "org.project.UsefulInterface", 1906s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1906s # NULL, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "org-project-useful-interface", 1906s # }; 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_interface_info: 1906s # * 1906s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1906s # * 1906s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1906s # */ 1906s # GDBusInterfaceInfo * 1906s # org_project_useful_interface_interface_info (void) 1906s # { 1906s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_override_properties: 1906s # * @klass: The class structure for a #GObject derived class. 1906s # * @property_id_begin: The property id to assign to the first overridden property. 1906s # * 1906s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1906s # * The properties are overridden in the order they are defined. 1906s # * 1906s # * Returns: The last property id. 1906s # */ 1906s # guint 1906s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1906s # { 1906s # return property_id_begin - 1; 1906s # } 1906s # 1906s # 1906s # inline static void 1906s # org_project_useful_interface_method_marshal_single_arg_method_ay ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint, 1906s # void *marshal_data) 1906s # { 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1906s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1906s # } 1906s # 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterface: 1906s # * 1906s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceIface: 1906s # * @parent_iface: The parent interface. 1906s # * @handle_single_arg_method_ay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ay signal. 1906s # * 1906s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1906s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1906s # 1906s # static void 1906s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1906s # { 1906s # /* GObject signals for incoming D-Bus method calls: */ 1906s # /** 1906s # * OrgProjectUsefulInterface::handle-single-arg-method-ay: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: A #GDBusMethodInvocation. 1906s # * @arg_arg_ay: Argument passed by remote caller. 1906s # * 1906s # * Signal emitted when a remote caller is invoking the SingleArgMethodAy() D-Bus method. 1906s # * 1906s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_ay() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1906s # * 1906s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1906s # */ 1906s # g_signal_new ("handle-single-arg-method-ay", 1906s # G_TYPE_FROM_INTERFACE (iface), 1906s # G_SIGNAL_RUN_LAST, 1906s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ay), 1906s # g_signal_accumulator_true_handled, 1906s # NULL, 1906s # org_project_useful_interface_method_marshal_single_arg_method_ay, 1906s # G_TYPE_BOOLEAN, 1906s # 2, 1906s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1906s # 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_ay: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_ay: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_call_single_arg_method_ay_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_ay_sync() for the synchronous, blocking version of this method. 1906s # */ 1906s # void 1906s # org_project_useful_interface_call_single_arg_method_ay ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # const gchar *arg_arg_ay, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodAy", 1906s # g_variant_new ("(^ay)", 1906s # arg_arg_ay), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # callback, 1906s # user_data); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_ay_finish: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ay(). 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ay(). 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_ay_finish ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_ay_sync: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_ay: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Synchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_ay() for the asynchronous version of this method. 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_ay_sync ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # const gchar *arg_arg_ay, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodAy", 1906s # g_variant_new ("(^ay)", 1906s # arg_arg_ay), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_complete_single_arg_method_ay: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1906s # * 1906s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodAy() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1906s # * 1906s # * This method will free @invocation, you cannot use it afterwards. 1906s # */ 1906s # void 1906s # org_project_useful_interface_complete_single_arg_method_ay ( 1906s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1906s # GDBusMethodInvocation *invocation) 1906s # { 1906s # g_dbus_method_invocation_return_value (invocation, 1906s # g_variant_new ("()")); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxy: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxyClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceProxyPrivate 1906s # { 1906s # GData *qdata; 1906s # }; 1906s # 1906s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_proxy_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1906s # g_datalist_clear (&proxy->priv->qdata); 1906s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # const GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1906s # const gchar *sender_name G_GNUC_UNUSED, 1906s # const gchar *signal_name, 1906s # GVariant *parameters) 1906s # { 1906s # _ExtendedGDBusSignalInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # gsize n; 1906s # guint signal_id; 1906s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1906s # if (info == NULL) 1906s # return; 1906s # num_params = g_variant_n_children (parameters); 1906s # paramv = g_new0 (GValue, num_params + 1); 1906s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[0], proxy); 1906s # g_variant_iter_init (&iter, parameters); 1906s # n = 1; 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_signal_emitv (paramv, signal_id, 0, NULL); 1906s # for (n = 0; n < num_params + 1; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1906s # GVariant *changed_properties, 1906s # const gchar *const *invalidated_properties) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1906s # guint n; 1906s # const gchar *key; 1906s # GVariantIter *iter; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # g_variant_get (changed_properties, "a{sv}", &iter); 1906s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1906s # g_datalist_remove_data (&proxy->priv->qdata, key); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # g_variant_iter_free (iter); 1906s # for (n = 0; invalidated_properties[n] != NULL; n++) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1906s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1906s # #else 1906s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1906s # #endif 1906s # 1906s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusProxyClass *proxy_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1906s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1906s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1906s # 1906s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1906s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1906s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_sync: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_sync ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new_for_bus ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_sync: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_sync ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeleton: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeletonClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1906s # { 1906s # GValue *properties; 1906s # GList *changed_properties; 1906s # GSource *changed_properties_idle_source; 1906s # GMainContext *context; 1906s # GMutex lock; 1906s # }; 1906s # 1906s # static void 1906s # _org_project_useful_interface_skeleton_handle_method_call ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name, 1906s # const gchar *method_name, 1906s # GVariant *parameters, 1906s # GDBusMethodInvocation *invocation, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # _ExtendedGDBusMethodInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # guint num_extra; 1906s # gsize n; 1906s # guint signal_id; 1906s # GValue return_value = G_VALUE_INIT; 1906s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1906s # g_assert (info != NULL); 1906s # num_params = g_variant_n_children (parameters); 1906s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1906s # n = 0; 1906s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[n++], skeleton); 1906s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1906s # g_value_set_object (¶mv[n++], invocation); 1906s # if (info->pass_fdlist) 1906s # { 1906s # #ifdef G_OS_UNIX 1906s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1906s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1906s # #else 1906s # g_assert_not_reached (); 1906s # #endif 1906s # } 1906s # g_variant_iter_init (&iter, parameters); 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1906s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1906s # if (!g_value_get_boolean (&return_value)) 1906s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1906s # g_value_unset (&return_value); 1906s # for (n = 0; n < num_params + num_extra; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static GVariant * 1906s # _org_project_useful_interface_skeleton_handle_get_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # GVariant *ret; 1906s # ret = NULL; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # g_value_init (&value, pspec->value_type); 1906s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1906s # g_value_unset (&value); 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _org_project_useful_interface_skeleton_handle_set_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GVariant *variant, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # gboolean ret; 1906s # ret = FALSE; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # if (info->use_gvariant) 1906s # g_value_set_variant (&value, variant); 1906s # else 1906s # g_dbus_gvariant_to_gvalue (variant, &value); 1906s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # g_value_unset (&value); 1906s # ret = TRUE; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1906s # { 1906s # _org_project_useful_interface_skeleton_handle_method_call, 1906s # _org_project_useful_interface_skeleton_handle_get_property, 1906s # _org_project_useful_interface_skeleton_handle_set_property, 1906s # {NULL} 1906s # }; 1906s # 1906s # static GDBusInterfaceInfo * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return org_project_useful_interface_interface_info (); 1906s # } 1906s # 1906s # static GDBusInterfaceVTable * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1906s # } 1906s # 1906s # static GVariant * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1906s # 1906s # GVariantBuilder builder; 1906s # guint n; 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1906s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #else 1906s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #endif 1906s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1906s # goto out; 1906s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1906s # { 1906s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1906s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1906s # { 1906s # GVariant *value; 1906s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1906s # if (value != NULL) 1906s # { 1906s # g_variant_take_ref (value); 1906s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1906s # g_variant_unref (value); 1906s # } 1906s # } 1906s # } 1906s # out: 1906s # return g_variant_builder_end (&builder); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_skeleton_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1906s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1906s # if (skeleton->priv->changed_properties_idle_source != NULL) 1906s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1906s # g_main_context_unref (skeleton->priv->context); 1906s # g_mutex_clear (&skeleton->priv->lock); 1906s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1906s # #else 1906s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1906s # #endif 1906s # 1906s # g_mutex_init (&skeleton->priv->lock); 1906s # skeleton->priv->context = g_main_context_ref_thread_default (); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusInterfaceSkeletonClass *skeleton_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1906s # 1906s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1906s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1906s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1906s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1906s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_skeleton_new: 1906s # * 1906s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_skeleton_new (void) 1906s # { 1906s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1906s # } 1906s # Error: 1906s # 1906s # /tmp/tmpgxf70__r/tmppgmphois.xml: 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgxf70__r/tmppgmphois.xml', '--output', '-', '--body'] 1906s # Return code: 0 1906s # Output: 1906s # /* 1906s # * This file is generated by gdbus-codegen, do not modify it. 1906s # * 1906s # * The license of this code is the same as for the D-Bus interface description 1906s # * it was derived from. Note that it links to GLib, so must comply with the 1906s # * LGPL linking clauses. 1906s # */ 1906s # 1906s # #ifdef HAVE_CONFIG_H 1906s # # include "config.h" 1906s # #endif 1906s # 1906s # #include 1906s # #ifdef G_OS_UNIX 1906s # # include 1906s # #endif 1906s # 1906s # #ifdef G_ENABLE_DEBUG 1906s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1906s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1906s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1906s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1906s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1906s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1906s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1906s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1906s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1906s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1906s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1906s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1906s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1906s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1906s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1906s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1906s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1906s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1906s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1906s # #else /* !G_ENABLE_DEBUG */ 1906s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1906s # * Do not access GValues directly in your code. Instead, use the 1906s # * g_value_get_*() functions 1906s # */ 1906s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1906s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1906s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1906s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1906s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1906s # #endif /* !G_ENABLE_DEBUG */ 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusArgInfo parent_struct; 1906s # gboolean use_gvariant; 1906s # } _ExtendedGDBusArgInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusMethodInfo parent_struct; 1906s # const gchar *signal_name; 1906s # gboolean pass_fdlist; 1906s # } _ExtendedGDBusMethodInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusSignalInfo parent_struct; 1906s # const gchar *signal_name; 1906s # } _ExtendedGDBusSignalInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusPropertyInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # guint use_gvariant : 1; 1906s # guint emits_changed_signal : 1; 1906s # } _ExtendedGDBusPropertyInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusInterfaceInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # } _ExtendedGDBusInterfaceInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # const _ExtendedGDBusPropertyInfo *info; 1906s # guint prop_id; 1906s # GValue orig_value; /* the value before the change */ 1906s # } ChangedProperty; 1906s # 1906s # static void 1906s # _changed_property_free (ChangedProperty *data) 1906s # { 1906s # g_value_unset (&data->orig_value); 1906s # g_free (data); 1906s # } 1906s # 1906s # static gboolean 1906s # _g_strv_equal0 (gchar **a, gchar **b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # guint n; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # if (g_strv_length (a) != g_strv_length (b)) 1906s # goto out; 1906s # for (n = 0; a[n] != NULL; n++) 1906s # if (g_strcmp0 (a[n], b[n]) != 0) 1906s # goto out; 1906s # ret = TRUE; 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _g_variant_equal0 (GVariant *a, GVariant *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # ret = g_variant_equal (a, b); 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # G_GNUC_UNUSED static gboolean 1906s # _g_value_equal (const GValue *a, const GValue *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1906s # switch (G_VALUE_TYPE (a)) 1906s # { 1906s # case G_TYPE_BOOLEAN: 1906s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1906s # break; 1906s # case G_TYPE_UCHAR: 1906s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1906s # break; 1906s # case G_TYPE_INT: 1906s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1906s # break; 1906s # case G_TYPE_UINT: 1906s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1906s # break; 1906s # case G_TYPE_INT64: 1906s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1906s # break; 1906s # case G_TYPE_UINT64: 1906s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1906s # break; 1906s # case G_TYPE_DOUBLE: 1906s # { 1906s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1906s # gdouble da = g_value_get_double (a); 1906s # gdouble db = g_value_get_double (b); 1906s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1906s # } 1906s # break; 1906s # case G_TYPE_STRING: 1906s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1906s # break; 1906s # case G_TYPE_VARIANT: 1906s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1906s # break; 1906s # default: 1906s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1906s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1906s # else 1906s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1906s # break; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static void 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint G_GNUC_UNUSED, 1906s # void *marshal_data) 1906s # { 1906s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1906s # (void *data1, 1906s # GDBusMethodInvocation *arg_method_invocation, 1906s # const gchar *const *arg_arg_as, 1906s # void *data2); 1906s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 1906s # GCClosure *cc = (GCClosure*) closure; 1906s # void *data1, *data2; 1906s # gboolean v_return; 1906s # 1906s # g_return_if_fail (return_value != NULL); 1906s # g_return_if_fail (n_param_values == 3); 1906s # 1906s # if (G_CCLOSURE_SWAP_DATA (closure)) 1906s # { 1906s # data1 = closure->data; 1906s # data2 = g_value_peek_pointer (param_values + 0); 1906s # } 1906s # else 1906s # { 1906s # data1 = g_value_peek_pointer (param_values + 0); 1906s # data2 = closure->data; 1906s # } 1906s # 1906s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1906s # (marshal_data ? marshal_data : cc->callback); 1906s # 1906s # v_return = 1906s # callback (data1, 1906s # g_marshal_value_peek_object (param_values + 1), 1906s # g_marshal_value_peek_boxed (param_values + 2), 1906s # data2); 1906s # 1906s # g_value_set_boolean (return_value, v_return); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ 1906s # * Code for interface org.project.UsefulInterface 1906s # * ------------------------------------------------------------------------ 1906s # */ 1906s # 1906s # /** 1906s # * SECTION:OrgProjectUsefulInterface 1906s # * @title: OrgProjectUsefulInterface 1906s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1906s # * 1906s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1906s # */ 1906s # 1906s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1906s # 1906s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_arg_as = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "arg_as", 1906s # (gchar *) "as", 1906s # NULL 1906s # }, 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_arg_as.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_as = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "SingleArgMethodAs", 1906s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_pointers, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "handle-single-arg-method-as", 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_as.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "org.project.UsefulInterface", 1906s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1906s # NULL, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "org-project-useful-interface", 1906s # }; 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_interface_info: 1906s # * 1906s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1906s # * 1906s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1906s # */ 1906s # GDBusInterfaceInfo * 1906s # org_project_useful_interface_interface_info (void) 1906s # { 1906s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_override_properties: 1906s # * @klass: The class structure for a #GObject derived class. 1906s # * @property_id_begin: The property id to assign to the first overridden property. 1906s # * 1906s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1906s # * The properties are overridden in the order they are defined. 1906s # * 1906s # * Returns: The last property id. 1906s # */ 1906s # guint 1906s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1906s # { 1906s # return property_id_begin - 1; 1906s # } 1906s # 1906s # 1906s # inline static void 1906s # org_project_useful_interface_method_marshal_single_arg_method_as ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint, 1906s # void *marshal_data) 1906s # { 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 1906s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1906s # } 1906s # 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterface: 1906s # * 1906s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceIface: 1906s # * @parent_iface: The parent interface. 1906s # * @handle_single_arg_method_as: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-as signal. 1906s # * 1906s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1906s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1906s # 1906s # static void 1906s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1906s # { 1906s # /* GObject signals for incoming D-Bus method calls: */ 1906s # /** 1906s # * OrgProjectUsefulInterface::handle-single-arg-method-as: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: A #GDBusMethodInvocation. 1906s # * @arg_arg_as: Argument passed by remote caller. 1906s # * 1906s # * Signal emitted when a remote caller is invoking the SingleArgMethodAs() D-Bus method. 1906s # * 1906s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_as() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1906s # * 1906s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1906s # */ 1906s # g_signal_new ("handle-single-arg-method-as", 1906s # G_TYPE_FROM_INTERFACE (iface), 1906s # G_SIGNAL_RUN_LAST, 1906s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_as), 1906s # g_signal_accumulator_true_handled, 1906s # NULL, 1906s # org_project_useful_interface_method_marshal_single_arg_method_as, 1906s # G_TYPE_BOOLEAN, 1906s # 2, 1906s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 1906s # 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_as: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_as: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_call_single_arg_method_as_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_as_sync() for the synchronous, blocking version of this method. 1906s # */ 1906s # void 1906s # org_project_useful_interface_call_single_arg_method_as ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # const gchar *const *arg_arg_as, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodAs", 1906s # g_variant_new ("(^as)", 1906s # arg_arg_as), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # callback, 1906s # user_data); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_as_finish: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_as(). 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_as(). 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_as_finish ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_as_sync: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_as: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Synchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_as() for the asynchronous version of this method. 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_as_sync ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # const gchar *const *arg_arg_as, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodAs", 1906s # g_variant_new ("(^as)", 1906s # arg_arg_as), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_complete_single_arg_method_as: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1906s # * 1906s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodAs() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1906s # * 1906s # * This method will free @invocation, you cannot use it afterwards. 1906s # */ 1906s # void 1906s # org_project_useful_interface_complete_single_arg_method_as ( 1906s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1906s # GDBusMethodInvocation *invocation) 1906s # { 1906s # g_dbus_method_invocation_return_value (invocation, 1906s # g_variant_new ("()")); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxy: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxyClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceProxyPrivate 1906s # { 1906s # GData *qdata; 1906s # }; 1906s # 1906s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_proxy_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1906s # g_datalist_clear (&proxy->priv->qdata); 1906s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # const GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1906s # const gchar *sender_name G_GNUC_UNUSED, 1906s # const gchar *signal_name, 1906s # GVariant *parameters) 1906s # { 1906s # _ExtendedGDBusSignalInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # gsize n; 1906s # guint signal_id; 1906s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1906s # if (info == NULL) 1906s # return; 1906s # num_params = g_variant_n_children (parameters); 1906s # paramv = g_new0 (GValue, num_params + 1); 1906s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[0], proxy); 1906s # g_variant_iter_init (&iter, parameters); 1906s # n = 1; 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_signal_emitv (paramv, signal_id, 0, NULL); 1906s # for (n = 0; n < num_params + 1; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1906s # GVariant *changed_properties, 1906s # const gchar *const *invalidated_properties) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1906s # guint n; 1906s # const gchar *key; 1906s # GVariantIter *iter; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # g_variant_get (changed_properties, "a{sv}", &iter); 1906s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1906s # g_datalist_remove_data (&proxy->priv->qdata, key); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # g_variant_iter_free (iter); 1906s # for (n = 0; invalidated_properties[n] != NULL; n++) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1906s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1906s # #else 1906s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1906s # #endif 1906s # 1906s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusProxyClass *proxy_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1906s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1906s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1906s # 1906s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1906s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1906s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_sync: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_sync ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new_for_bus ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_sync: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_sync ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeleton: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeletonClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1906s # { 1906s # GValue *properties; 1906s # GList *changed_properties; 1906s # GSource *changed_properties_idle_source; 1906s # GMainContext *context; 1906s # GMutex lock; 1906s # }; 1906s # 1906s # static void 1906s # _org_project_useful_interface_skeleton_handle_method_call ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name, 1906s # const gchar *method_name, 1906s # GVariant *parameters, 1906s # GDBusMethodInvocation *invocation, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # _ExtendedGDBusMethodInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # guint num_extra; 1906s # gsize n; 1906s # guint signal_id; 1906s # GValue return_value = G_VALUE_INIT; 1906s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1906s # g_assert (info != NULL); 1906s # num_params = g_variant_n_children (parameters); 1906s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1906s # n = 0; 1906s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[n++], skeleton); 1906s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1906s # g_value_set_object (¶mv[n++], invocation); 1906s # if (info->pass_fdlist) 1906s # { 1906s # #ifdef G_OS_UNIX 1906s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1906s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1906s # #else 1906s # g_assert_not_reached (); 1906s # #endif 1906s # } 1906s # g_variant_iter_init (&iter, parameters); 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1906s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1906s # if (!g_value_get_boolean (&return_value)) 1906s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1906s # g_value_unset (&return_value); 1906s # for (n = 0; n < num_params + num_extra; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static GVariant * 1906s # _org_project_useful_interface_skeleton_handle_get_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # GVariant *ret; 1906s # ret = NULL; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # g_value_init (&value, pspec->value_type); 1906s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1906s # g_value_unset (&value); 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _org_project_useful_interface_skeleton_handle_set_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GVariant *variant, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # gboolean ret; 1906s # ret = FALSE; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # if (info->use_gvariant) 1906s # g_value_set_variant (&value, variant); 1906s # else 1906s # g_dbus_gvariant_to_gvalue (variant, &value); 1906s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # g_value_unset (&value); 1906s # ret = TRUE; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1906s # { 1906s # _org_project_useful_interface_skeleton_handle_method_call, 1906s # _org_project_useful_interface_skeleton_handle_get_property, 1906s # _org_project_useful_interface_skeleton_handle_set_property, 1906s # {NULL} 1906s # }; 1906s # 1906s # static GDBusInterfaceInfo * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return org_project_useful_interface_interface_info (); 1906s # } 1906s # 1906s # static GDBusInterfaceVTable * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1906s # } 1906s # 1906s # static GVariant * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1906s # 1906s # GVariantBuilder builder; 1906s # guint n; 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1906s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #else 1906s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #endif 1906s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1906s # goto out; 1906s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1906s # { 1906s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1906s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1906s # { 1906s # GVariant *value; 1906s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1906s # if (value != NULL) 1906s # { 1906s # g_variant_take_ref (value); 1906s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1906s # g_variant_unref (value); 1906s # } 1906s # } 1906s # } 1906s # out: 1906s # return g_variant_builder_end (&builder); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_skeleton_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1906s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1906s # if (skeleton->priv->changed_properties_idle_source != NULL) 1906s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1906s # g_main_context_unref (skeleton->priv->context); 1906s # g_mutex_clear (&skeleton->priv->lock); 1906s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1906s # #else 1906s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1906s # #endif 1906s # 1906s # g_mutex_init (&skeleton->priv->lock); 1906s # skeleton->priv->context = g_main_context_ref_thread_default (); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusInterfaceSkeletonClass *skeleton_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1906s # 1906s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1906s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1906s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1906s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1906s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_skeleton_new: 1906s # * 1906s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_skeleton_new (void) 1906s # { 1906s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1906s # } 1906s # Error: 1906s # 1906s # /tmp/tmpgxf70__r/tmpa6fxu4sb.xml: 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgxf70__r/tmpa6fxu4sb.xml', '--output', '-', '--body'] 1906s # Return code: 0 1906s # Output: 1906s # /* 1906s # * This file is generated by gdbus-codegen, do not modify it. 1906s # * 1906s # * The license of this code is the same as for the D-Bus interface description 1906s # * it was derived from. Note that it links to GLib, so must comply with the 1906s # * LGPL linking clauses. 1906s # */ 1906s # 1906s # #ifdef HAVE_CONFIG_H 1906s # # include "config.h" 1906s # #endif 1906s # 1906s # #include 1906s # #ifdef G_OS_UNIX 1906s # # include 1906s # #endif 1906s # 1906s # #ifdef G_ENABLE_DEBUG 1906s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1906s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1906s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1906s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1906s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1906s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1906s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1906s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1906s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1906s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1906s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1906s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1906s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1906s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1906s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1906s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1906s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1906s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1906s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1906s # #else /* !G_ENABLE_DEBUG */ 1906s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1906s # * Do not access GValues directly in your code. Instead, use the 1906s # * g_value_get_*() functions 1906s # */ 1906s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1906s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1906s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1906s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1906s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1906s # #endif /* !G_ENABLE_DEBUG */ 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusArgInfo parent_struct; 1906s # gboolean use_gvariant; 1906s # } _ExtendedGDBusArgInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusMethodInfo parent_struct; 1906s # const gchar *signal_name; 1906s # gboolean pass_fdlist; 1906s # } _ExtendedGDBusMethodInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusSignalInfo parent_struct; 1906s # const gchar *signal_name; 1906s # } _ExtendedGDBusSignalInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusPropertyInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # guint use_gvariant : 1; 1906s # guint emits_changed_signal : 1; 1906s # } _ExtendedGDBusPropertyInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusInterfaceInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # } _ExtendedGDBusInterfaceInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # const _ExtendedGDBusPropertyInfo *info; 1906s # guint prop_id; 1906s # GValue orig_value; /* the value before the change */ 1906s # } ChangedProperty; 1906s # 1906s # static void 1906s # _changed_property_free (ChangedProperty *data) 1906s # { 1906s # g_value_unset (&data->orig_value); 1906s # g_free (data); 1906s # } 1906s # 1906s # static gboolean 1906s # _g_strv_equal0 (gchar **a, gchar **b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # guint n; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # if (g_strv_length (a) != g_strv_length (b)) 1906s # goto out; 1906s # for (n = 0; a[n] != NULL; n++) 1906s # if (g_strcmp0 (a[n], b[n]) != 0) 1906s # goto out; 1906s # ret = TRUE; 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _g_variant_equal0 (GVariant *a, GVariant *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # ret = g_variant_equal (a, b); 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # G_GNUC_UNUSED static gboolean 1906s # _g_value_equal (const GValue *a, const GValue *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1906s # switch (G_VALUE_TYPE (a)) 1906s # { 1906s # case G_TYPE_BOOLEAN: 1906s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1906s # break; 1906s # case G_TYPE_UCHAR: 1906s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1906s # break; 1906s # case G_TYPE_INT: 1906s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1906s # break; 1906s # case G_TYPE_UINT: 1906s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1906s # break; 1906s # case G_TYPE_INT64: 1906s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1906s # break; 1906s # case G_TYPE_UINT64: 1906s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1906s # break; 1906s # case G_TYPE_DOUBLE: 1906s # { 1906s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1906s # gdouble da = g_value_get_double (a); 1906s # gdouble db = g_value_get_double (b); 1906s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1906s # } 1906s # break; 1906s # case G_TYPE_STRING: 1906s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1906s # break; 1906s # case G_TYPE_VARIANT: 1906s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1906s # break; 1906s # default: 1906s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1906s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1906s # else 1906s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1906s # break; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static void 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint G_GNUC_UNUSED, 1906s # void *marshal_data) 1906s # { 1906s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1906s # (void *data1, 1906s # GDBusMethodInvocation *arg_method_invocation, 1906s # const gchar *const *arg_arg_ao, 1906s # void *data2); 1906s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 1906s # GCClosure *cc = (GCClosure*) closure; 1906s # void *data1, *data2; 1906s # gboolean v_return; 1906s # 1906s # g_return_if_fail (return_value != NULL); 1906s # g_return_if_fail (n_param_values == 3); 1906s # 1906s # if (G_CCLOSURE_SWAP_DATA (closure)) 1906s # { 1906s # data1 = closure->data; 1906s # data2 = g_value_peek_pointer (param_values + 0); 1906s # } 1906s # else 1906s # { 1906s # data1 = g_value_peek_pointer (param_values + 0); 1906s # data2 = closure->data; 1906s # } 1906s # 1906s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1906s # (marshal_data ? marshal_data : cc->callback); 1906s # 1906s # v_return = 1906s # callback (data1, 1906s # g_marshal_value_peek_object (param_values + 1), 1906s # g_marshal_value_peek_boxed (param_values + 2), 1906s # data2); 1906s # 1906s # g_value_set_boolean (return_value, v_return); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ 1906s # * Code for interface org.project.UsefulInterface 1906s # * ------------------------------------------------------------------------ 1906s # */ 1906s # 1906s # /** 1906s # * SECTION:OrgProjectUsefulInterface 1906s # * @title: OrgProjectUsefulInterface 1906s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1906s # * 1906s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1906s # */ 1906s # 1906s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1906s # 1906s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_arg_ao = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "arg_ao", 1906s # (gchar *) "ao", 1906s # NULL 1906s # }, 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_arg_ao.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ao = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "SingleArgMethodAo", 1906s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_pointers, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "handle-single-arg-method-ao", 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_ao.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "org.project.UsefulInterface", 1906s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1906s # NULL, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "org-project-useful-interface", 1906s # }; 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_interface_info: 1906s # * 1906s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1906s # * 1906s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1906s # */ 1906s # GDBusInterfaceInfo * 1906s # org_project_useful_interface_interface_info (void) 1906s # { 1906s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_override_properties: 1906s # * @klass: The class structure for a #GObject derived class. 1906s # * @property_id_begin: The property id to assign to the first overridden property. 1906s # * 1906s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1906s # * The properties are overridden in the order they are defined. 1906s # * 1906s # * Returns: The last property id. 1906s # */ 1906s # guint 1906s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1906s # { 1906s # return property_id_begin - 1; 1906s # } 1906s # 1906s # 1906s # inline static void 1906s # org_project_useful_interface_method_marshal_single_arg_method_ao ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint, 1906s # void *marshal_data) 1906s # { 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 1906s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1906s # } 1906s # 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterface: 1906s # * 1906s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceIface: 1906s # * @parent_iface: The parent interface. 1906s # * @handle_single_arg_method_ao: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ao signal. 1906s # * 1906s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1906s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1906s # 1906s # static void 1906s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1906s # { 1906s # /* GObject signals for incoming D-Bus method calls: */ 1906s # /** 1906s # * OrgProjectUsefulInterface::handle-single-arg-method-ao: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: A #GDBusMethodInvocation. 1906s # * @arg_arg_ao: Argument passed by remote caller. 1906s # * 1906s # * Signal emitted when a remote caller is invoking the SingleArgMethodAo() D-Bus method. 1906s # * 1906s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_ao() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1906s # * 1906s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1906s # */ 1906s # g_signal_new ("handle-single-arg-method-ao", 1906s # G_TYPE_FROM_INTERFACE (iface), 1906s # G_SIGNAL_RUN_LAST, 1906s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ao), 1906s # g_signal_accumulator_true_handled, 1906s # NULL, 1906s # org_project_useful_interface_method_marshal_single_arg_method_ao, 1906s # G_TYPE_BOOLEAN, 1906s # 2, 1906s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 1906s # 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_ao: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_ao: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_call_single_arg_method_ao_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_ao_sync() for the synchronous, blocking version of this method. 1906s # */ 1906s # void 1906s # org_project_useful_interface_call_single_arg_method_ao ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # const gchar *const *arg_arg_ao, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodAo", 1906s # g_variant_new ("(^ao)", 1906s # arg_arg_ao), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # callback, 1906s # user_data); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_ao_finish: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ao(). 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ao(). 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_ao_finish ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_ao_sync: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_ao: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Synchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_ao() for the asynchronous version of this method. 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_ao_sync ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # const gchar *const *arg_arg_ao, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodAo", 1906s # g_variant_new ("(^ao)", 1906s # arg_arg_ao), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_complete_single_arg_method_ao: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1906s # * 1906s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodAo() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1906s # * 1906s # * This method will free @invocation, you cannot use it afterwards. 1906s # */ 1906s # void 1906s # org_project_useful_interface_complete_single_arg_method_ao ( 1906s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1906s # GDBusMethodInvocation *invocation) 1906s # { 1906s # g_dbus_method_invocation_return_value (invocation, 1906s # g_variant_new ("()")); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxy: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxyClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceProxyPrivate 1906s # { 1906s # GData *qdata; 1906s # }; 1906s # 1906s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_proxy_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1906s # g_datalist_clear (&proxy->priv->qdata); 1906s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # const GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1906s # const gchar *sender_name G_GNUC_UNUSED, 1906s # const gchar *signal_name, 1906s # GVariant *parameters) 1906s # { 1906s # _ExtendedGDBusSignalInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # gsize n; 1906s # guint signal_id; 1906s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1906s # if (info == NULL) 1906s # return; 1906s # num_params = g_variant_n_children (parameters); 1906s # paramv = g_new0 (GValue, num_params + 1); 1906s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[0], proxy); 1906s # g_variant_iter_init (&iter, parameters); 1906s # n = 1; 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_signal_emitv (paramv, signal_id, 0, NULL); 1906s # for (n = 0; n < num_params + 1; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1906s # GVariant *changed_properties, 1906s # const gchar *const *invalidated_properties) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1906s # guint n; 1906s # const gchar *key; 1906s # GVariantIter *iter; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # g_variant_get (changed_properties, "a{sv}", &iter); 1906s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1906s # g_datalist_remove_data (&proxy->priv->qdata, key); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # g_variant_iter_free (iter); 1906s # for (n = 0; invalidated_properties[n] != NULL; n++) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1906s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1906s # #else 1906s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1906s # #endif 1906s # 1906s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusProxyClass *proxy_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1906s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1906s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1906s # 1906s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1906s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1906s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_sync: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_sync ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new_for_bus ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_sync: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_sync ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeleton: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeletonClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1906s # { 1906s # GValue *properties; 1906s # GList *changed_properties; 1906s # GSource *changed_properties_idle_source; 1906s # GMainContext *context; 1906s # GMutex lock; 1906s # }; 1906s # 1906s # static void 1906s # _org_project_useful_interface_skeleton_handle_method_call ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name, 1906s # const gchar *method_name, 1906s # GVariant *parameters, 1906s # GDBusMethodInvocation *invocation, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # _ExtendedGDBusMethodInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # guint num_extra; 1906s # gsize n; 1906s # guint signal_id; 1906s # GValue return_value = G_VALUE_INIT; 1906s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1906s # g_assert (info != NULL); 1906s # num_params = g_variant_n_children (parameters); 1906s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1906s # n = 0; 1906s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[n++], skeleton); 1906s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1906s # g_value_set_object (¶mv[n++], invocation); 1906s # if (info->pass_fdlist) 1906s # { 1906s # #ifdef G_OS_UNIX 1906s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1906s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1906s # #else 1906s # g_assert_not_reached (); 1906s # #endif 1906s # } 1906s # g_variant_iter_init (&iter, parameters); 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1906s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1906s # if (!g_value_get_boolean (&return_value)) 1906s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1906s # g_value_unset (&return_value); 1906s # for (n = 0; n < num_params + num_extra; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static GVariant * 1906s # _org_project_useful_interface_skeleton_handle_get_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # GVariant *ret; 1906s # ret = NULL; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # g_value_init (&value, pspec->value_type); 1906s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1906s # g_value_unset (&value); 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _org_project_useful_interface_skeleton_handle_set_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GVariant *variant, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # gboolean ret; 1906s # ret = FALSE; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # if (info->use_gvariant) 1906s # g_value_set_variant (&value, variant); 1906s # else 1906s # g_dbus_gvariant_to_gvalue (variant, &value); 1906s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # g_value_unset (&value); 1906s # ret = TRUE; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1906s # { 1906s # _org_project_useful_interface_skeleton_handle_method_call, 1906s # _org_project_useful_interface_skeleton_handle_get_property, 1906s # _org_project_useful_interface_skeleton_handle_set_property, 1906s # {NULL} 1906s # }; 1906s # 1906s # static GDBusInterfaceInfo * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return org_project_useful_interface_interface_info (); 1906s # } 1906s # 1906s # static GDBusInterfaceVTable * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1906s # } 1906s # 1906s # static GVariant * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1906s # 1906s # GVariantBuilder builder; 1906s # guint n; 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1906s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #else 1906s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #endif 1906s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1906s # goto out; 1906s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1906s # { 1906s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1906s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1906s # { 1906s # GVariant *value; 1906s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1906s # if (value != NULL) 1906s # { 1906s # g_variant_take_ref (value); 1906s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1906s # g_variant_unref (value); 1906s # } 1906s # } 1906s # } 1906s # out: 1906s # return g_variant_builder_end (&builder); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_skeleton_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1906s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1906s # if (skeleton->priv->changed_properties_idle_source != NULL) 1906s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1906s # g_main_context_unref (skeleton->priv->context); 1906s # g_mutex_clear (&skeleton->priv->lock); 1906s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1906s # #else 1906s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1906s # #endif 1906s # 1906s # g_mutex_init (&skeleton->priv->lock); 1906s # skeleton->priv->context = g_main_context_ref_thread_default (); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusInterfaceSkeletonClass *skeleton_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1906s # 1906s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1906s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1906s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1906s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1906s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_skeleton_new: 1906s # * 1906s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_skeleton_new (void) 1906s # { 1906s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1906s # } 1906s # Error: 1906s # 1906s # /tmp/tmpgxf70__r/tmpanqhrhj1.xml: 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgxf70__r/tmpanqhrhj1.xml', '--output', '-', '--body'] 1906s # Return code: 0 1906s # Output: 1906s # /* 1906s # * This file is generated by gdbus-codegen, do not modify it. 1906s # * 1906s # * The license of this code is the same as for the D-Bus interface description 1906s # * it was derived from. Note that it links to GLib, so must comply with the 1906s # * LGPL linking clauses. 1906s # */ 1906s # 1906s # #ifdef HAVE_CONFIG_H 1906s # # include "config.h" 1906s # #endif 1906s # 1906s # #include 1906s # #ifdef G_OS_UNIX 1906s # # include 1906s # #endif 1906s # 1906s # #ifdef G_ENABLE_DEBUG 1906s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1906s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1906s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1906s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1906s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1906s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1906s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1906s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1906s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1906s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1906s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1906s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1906s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1906s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1906s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1906s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1906s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1906s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1906s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1906s # #else /* !G_ENABLE_DEBUG */ 1906s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1906s # * Do not access GValues directly in your code. Instead, use the 1906s # * g_value_get_*() functions 1906s # */ 1906s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1906s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1906s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1906s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1906s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1906s # #endif /* !G_ENABLE_DEBUG */ 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusArgInfo parent_struct; 1906s # gboolean use_gvariant; 1906s # } _ExtendedGDBusArgInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusMethodInfo parent_struct; 1906s # const gchar *signal_name; 1906s # gboolean pass_fdlist; 1906s # } _ExtendedGDBusMethodInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusSignalInfo parent_struct; 1906s # const gchar *signal_name; 1906s # } _ExtendedGDBusSignalInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusPropertyInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # guint use_gvariant : 1; 1906s # guint emits_changed_signal : 1; 1906s # } _ExtendedGDBusPropertyInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusInterfaceInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # } _ExtendedGDBusInterfaceInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # const _ExtendedGDBusPropertyInfo *info; 1906s # guint prop_id; 1906s # GValue orig_value; /* the value before the change */ 1906s # } ChangedProperty; 1906s # 1906s # static void 1906s # _changed_property_free (ChangedProperty *data) 1906s # { 1906s # g_value_unset (&data->orig_value); 1906s # g_free (data); 1906s # } 1906s # 1906s # static gboolean 1906s # _g_strv_equal0 (gchar **a, gchar **b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # guint n; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # if (g_strv_length (a) != g_strv_length (b)) 1906s # goto out; 1906s # for (n = 0; a[n] != NULL; n++) 1906s # if (g_strcmp0 (a[n], b[n]) != 0) 1906s # goto out; 1906s # ret = TRUE; 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _g_variant_equal0 (GVariant *a, GVariant *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # ret = g_variant_equal (a, b); 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # G_GNUC_UNUSED static gboolean 1906s # _g_value_equal (const GValue *a, const GValue *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1906s # switch (G_VALUE_TYPE (a)) 1906s # { 1906s # case G_TYPE_BOOLEAN: 1906s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1906s # break; 1906s # case G_TYPE_UCHAR: 1906s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1906s # break; 1906s # case G_TYPE_INT: 1906s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1906s # break; 1906s # case G_TYPE_UINT: 1906s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1906s # break; 1906s # case G_TYPE_INT64: 1906s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1906s # break; 1906s # case G_TYPE_UINT64: 1906s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1906s # break; 1906s # case G_TYPE_DOUBLE: 1906s # { 1906s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1906s # gdouble da = g_value_get_double (a); 1906s # gdouble db = g_value_get_double (b); 1906s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1906s # } 1906s # break; 1906s # case G_TYPE_STRING: 1906s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1906s # break; 1906s # case G_TYPE_VARIANT: 1906s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1906s # break; 1906s # default: 1906s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1906s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1906s # else 1906s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1906s # break; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static void 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint G_GNUC_UNUSED, 1906s # void *marshal_data) 1906s # { 1906s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1906s # (void *data1, 1906s # GDBusMethodInvocation *arg_method_invocation, 1906s # const gchar *const *arg_arg_aay, 1906s # void *data2); 1906s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 1906s # GCClosure *cc = (GCClosure*) closure; 1906s # void *data1, *data2; 1906s # gboolean v_return; 1906s # 1906s # g_return_if_fail (return_value != NULL); 1906s # g_return_if_fail (n_param_values == 3); 1906s # 1906s # if (G_CCLOSURE_SWAP_DATA (closure)) 1906s # { 1906s # data1 = closure->data; 1906s # data2 = g_value_peek_pointer (param_values + 0); 1906s # } 1906s # else 1906s # { 1906s # data1 = g_value_peek_pointer (param_values + 0); 1906s # data2 = closure->data; 1906s # } 1906s # 1906s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1906s # (marshal_data ? marshal_data : cc->callback); 1906s # 1906s # v_return = 1906s # callback (data1, 1906s # g_marshal_value_peek_object (param_values + 1), 1906s # g_marshal_value_peek_boxed (param_values + 2), 1906s # data2); 1906s # 1906s # g_value_set_boolean (return_value, v_return); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ 1906s # * Code for interface org.project.UsefulInterface 1906s # * ------------------------------------------------------------------------ 1906s # */ 1906s # 1906s # /** 1906s # * SECTION:OrgProjectUsefulInterface 1906s # * @title: OrgProjectUsefulInterface 1906s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1906s # * 1906s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1906s # */ 1906s # 1906s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1906s # 1906s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_arg_aay = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "arg_aay", 1906s # (gchar *) "aay", 1906s # NULL 1906s # }, 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_arg_aay.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_aay = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "SingleArgMethodAay", 1906s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_pointers, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "handle-single-arg-method-aay", 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_aay.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "org.project.UsefulInterface", 1906s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1906s # NULL, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "org-project-useful-interface", 1906s # }; 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_interface_info: 1906s # * 1906s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1906s # * 1906s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1906s # */ 1906s # GDBusInterfaceInfo * 1906s # org_project_useful_interface_interface_info (void) 1906s # { 1906s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_override_properties: 1906s # * @klass: The class structure for a #GObject derived class. 1906s # * @property_id_begin: The property id to assign to the first overridden property. 1906s # * 1906s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1906s # * The properties are overridden in the order they are defined. 1906s # * 1906s # * Returns: The last property id. 1906s # */ 1906s # guint 1906s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1906s # { 1906s # return property_id_begin - 1; 1906s # } 1906s # 1906s # 1906s # inline static void 1906s # org_project_useful_interface_method_marshal_single_arg_method_aay ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint, 1906s # void *marshal_data) 1906s # { 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 1906s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1906s # } 1906s # 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterface: 1906s # * 1906s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceIface: 1906s # * @parent_iface: The parent interface. 1906s # * @handle_single_arg_method_aay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-aay signal. 1906s # * 1906s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1906s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1906s # 1906s # static void 1906s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1906s # { 1906s # /* GObject signals for incoming D-Bus method calls: */ 1906s # /** 1906s # * OrgProjectUsefulInterface::handle-single-arg-method-aay: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: A #GDBusMethodInvocation. 1906s # * @arg_arg_aay: Argument passed by remote caller. 1906s # * 1906s # * Signal emitted when a remote caller is invoking the SingleArgMethodAay() D-Bus method. 1906s # * 1906s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_aay() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1906s # * 1906s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1906s # */ 1906s # g_signal_new ("handle-single-arg-method-aay", 1906s # G_TYPE_FROM_INTERFACE (iface), 1906s # G_SIGNAL_RUN_LAST, 1906s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_aay), 1906s # g_signal_accumulator_true_handled, 1906s # NULL, 1906s # org_project_useful_interface_method_marshal_single_arg_method_aay, 1906s # G_TYPE_BOOLEAN, 1906s # 2, 1906s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 1906s # 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_aay: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_aay: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_call_single_arg_method_aay_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_aay_sync() for the synchronous, blocking version of this method. 1906s # */ 1906s # void 1906s # org_project_useful_interface_call_single_arg_method_aay ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # const gchar *const *arg_arg_aay, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodAay", 1906s # g_variant_new ("(^aay)", 1906s # arg_arg_aay), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # callback, 1906s # user_data); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_aay_finish: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_aay(). 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_aay(). 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_aay_finish ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_aay_sync: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_aay: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Synchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_aay() for the asynchronous version of this method. 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_aay_sync ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # const gchar *const *arg_arg_aay, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodAay", 1906s # g_variant_new ("(^aay)", 1906s # arg_arg_aay), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_complete_single_arg_method_aay: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1906s # * 1906s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodAay() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1906s # * 1906s # * This method will free @invocation, you cannot use it afterwards. 1906s # */ 1906s # void 1906s # org_project_useful_interface_complete_single_arg_method_aay ( 1906s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1906s # GDBusMethodInvocation *invocation) 1906s # { 1906s # g_dbus_method_invocation_return_value (invocation, 1906s # g_variant_new ("()")); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxy: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxyClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceProxyPrivate 1906s # { 1906s # GData *qdata; 1906s # }; 1906s # 1906s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_proxy_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1906s # g_datalist_clear (&proxy->priv->qdata); 1906s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # const GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1906s # const gchar *sender_name G_GNUC_UNUSED, 1906s # const gchar *signal_name, 1906s # GVariant *parameters) 1906s # { 1906s # _ExtendedGDBusSignalInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # gsize n; 1906s # guint signal_id; 1906s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1906s # if (info == NULL) 1906s # return; 1906s # num_params = g_variant_n_children (parameters); 1906s # paramv = g_new0 (GValue, num_params + 1); 1906s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[0], proxy); 1906s # g_variant_iter_init (&iter, parameters); 1906s # n = 1; 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_signal_emitv (paramv, signal_id, 0, NULL); 1906s # for (n = 0; n < num_params + 1; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1906s # GVariant *changed_properties, 1906s # const gchar *const *invalidated_properties) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1906s # guint n; 1906s # const gchar *key; 1906s # GVariantIter *iter; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # g_variant_get (changed_properties, "a{sv}", &iter); 1906s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1906s # g_datalist_remove_data (&proxy->priv->qdata, key); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # g_variant_iter_free (iter); 1906s # for (n = 0; invalidated_properties[n] != NULL; n++) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1906s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1906s # #else 1906s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1906s # #endif 1906s # 1906s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusProxyClass *proxy_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1906s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1906s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1906s # 1906s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1906s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1906s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_sync: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_sync ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new_for_bus ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus_sync: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_for_bus_sync ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeleton: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceSkeletonClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1906s # { 1906s # GValue *properties; 1906s # GList *changed_properties; 1906s # GSource *changed_properties_idle_source; 1906s # GMainContext *context; 1906s # GMutex lock; 1906s # }; 1906s # 1906s # static void 1906s # _org_project_useful_interface_skeleton_handle_method_call ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name, 1906s # const gchar *method_name, 1906s # GVariant *parameters, 1906s # GDBusMethodInvocation *invocation, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # _ExtendedGDBusMethodInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # guint num_extra; 1906s # gsize n; 1906s # guint signal_id; 1906s # GValue return_value = G_VALUE_INIT; 1906s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1906s # g_assert (info != NULL); 1906s # num_params = g_variant_n_children (parameters); 1906s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1906s # n = 0; 1906s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[n++], skeleton); 1906s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1906s # g_value_set_object (¶mv[n++], invocation); 1906s # if (info->pass_fdlist) 1906s # { 1906s # #ifdef G_OS_UNIX 1906s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1906s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1906s # #else 1906s # g_assert_not_reached (); 1906s # #endif 1906s # } 1906s # g_variant_iter_init (&iter, parameters); 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1906s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1906s # if (!g_value_get_boolean (&return_value)) 1906s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1906s # g_value_unset (&return_value); 1906s # for (n = 0; n < num_params + num_extra; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static GVariant * 1906s # _org_project_useful_interface_skeleton_handle_get_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # GVariant *ret; 1906s # ret = NULL; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # g_value_init (&value, pspec->value_type); 1906s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1906s # g_value_unset (&value); 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _org_project_useful_interface_skeleton_handle_set_property ( 1906s # GDBusConnection *connection G_GNUC_UNUSED, 1906s # const gchar *sender G_GNUC_UNUSED, 1906s # const gchar *object_path G_GNUC_UNUSED, 1906s # const gchar *interface_name G_GNUC_UNUSED, 1906s # const gchar *property_name, 1906s # GVariant *variant, 1906s # GError **error, 1906s # gpointer user_data) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1906s # GValue value = G_VALUE_INIT; 1906s # GParamSpec *pspec; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # gboolean ret; 1906s # ret = FALSE; 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1906s # g_assert (info != NULL); 1906s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1906s # if (pspec == NULL) 1906s # { 1906s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1906s # } 1906s # else 1906s # { 1906s # if (info->use_gvariant) 1906s # g_value_set_variant (&value, variant); 1906s # else 1906s # g_dbus_gvariant_to_gvalue (variant, &value); 1906s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1906s # g_value_unset (&value); 1906s # ret = TRUE; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1906s # { 1906s # _org_project_useful_interface_skeleton_handle_method_call, 1906s # _org_project_useful_interface_skeleton_handle_get_property, 1906s # _org_project_useful_interface_skeleton_handle_set_property, 1906s # {NULL} 1906s # }; 1906s # 1906s # static GDBusInterfaceInfo * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return org_project_useful_interface_interface_info (); 1906s # } 1906s # 1906s # static GDBusInterfaceVTable * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1906s # { 1906s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1906s # } 1906s # 1906s # static GVariant * 1906s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1906s # 1906s # GVariantBuilder builder; 1906s # guint n; 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1906s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #else 1906s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1906s # #endif 1906s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1906s # goto out; 1906s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1906s # { 1906s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1906s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1906s # { 1906s # GVariant *value; 1906s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1906s # if (value != NULL) 1906s # { 1906s # g_variant_take_ref (value); 1906s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1906s # g_variant_unref (value); 1906s # } 1906s # } 1906s # } 1906s # out: 1906s # return g_variant_builder_end (&builder); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_skeleton_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1906s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1906s # if (skeleton->priv->changed_properties_idle_source != NULL) 1906s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1906s # g_main_context_unref (skeleton->priv->context); 1906s # g_mutex_clear (&skeleton->priv->lock); 1906s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1906s # #else 1906s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1906s # #endif 1906s # 1906s # g_mutex_init (&skeleton->priv->lock); 1906s # skeleton->priv->context = g_main_context_ref_thread_default (); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusInterfaceSkeletonClass *skeleton_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1906s # 1906s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1906s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1906s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1906s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1906s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_skeleton_new: 1906s # * 1906s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_skeleton_new (void) 1906s # { 1906s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1906s # } 1906s # Error: 1906s # 1906s # /tmp/tmpgxf70__r/tmp216wst3o.xml: 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # 1906s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgxf70__r/tmp216wst3o.xml', '--output', '-', '--body'] 1906s # Return code: 0 1906s # Output: 1906s # /* 1906s # * This file is generated by gdbus-codegen, do not modify it. 1906s # * 1906s # * The license of this code is the same as for the D-Bus interface description 1906s # * it was derived from. Note that it links to GLib, so must comply with the 1906s # * LGPL linking clauses. 1906s # */ 1906s # 1906s # #ifdef HAVE_CONFIG_H 1906s # # include "config.h" 1906s # #endif 1906s # 1906s # #include 1906s # #ifdef G_OS_UNIX 1906s # # include 1906s # #endif 1906s # 1906s # #ifdef G_ENABLE_DEBUG 1906s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1906s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1906s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1906s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1906s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1906s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1906s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1906s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1906s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1906s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1906s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1906s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1906s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1906s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1906s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1906s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1906s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1906s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1906s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1906s # #else /* !G_ENABLE_DEBUG */ 1906s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1906s # * Do not access GValues directly in your code. Instead, use the 1906s # * g_value_get_*() functions 1906s # */ 1906s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1906s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1906s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1906s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1906s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1906s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1906s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1906s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1906s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1906s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1906s # #endif /* !G_ENABLE_DEBUG */ 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusArgInfo parent_struct; 1906s # gboolean use_gvariant; 1906s # } _ExtendedGDBusArgInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusMethodInfo parent_struct; 1906s # const gchar *signal_name; 1906s # gboolean pass_fdlist; 1906s # } _ExtendedGDBusMethodInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusSignalInfo parent_struct; 1906s # const gchar *signal_name; 1906s # } _ExtendedGDBusSignalInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusPropertyInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # guint use_gvariant : 1; 1906s # guint emits_changed_signal : 1; 1906s # } _ExtendedGDBusPropertyInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # GDBusInterfaceInfo parent_struct; 1906s # const gchar *hyphen_name; 1906s # } _ExtendedGDBusInterfaceInfo; 1906s # 1906s # typedef struct 1906s # { 1906s # const _ExtendedGDBusPropertyInfo *info; 1906s # guint prop_id; 1906s # GValue orig_value; /* the value before the change */ 1906s # } ChangedProperty; 1906s # 1906s # static void 1906s # _changed_property_free (ChangedProperty *data) 1906s # { 1906s # g_value_unset (&data->orig_value); 1906s # g_free (data); 1906s # } 1906s # 1906s # static gboolean 1906s # _g_strv_equal0 (gchar **a, gchar **b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # guint n; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # if (g_strv_length (a) != g_strv_length (b)) 1906s # goto out; 1906s # for (n = 0; a[n] != NULL; n++) 1906s # if (g_strcmp0 (a[n], b[n]) != 0) 1906s # goto out; 1906s # ret = TRUE; 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # static gboolean 1906s # _g_variant_equal0 (GVariant *a, GVariant *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # if (a == NULL && b == NULL) 1906s # { 1906s # ret = TRUE; 1906s # goto out; 1906s # } 1906s # if (a == NULL || b == NULL) 1906s # goto out; 1906s # ret = g_variant_equal (a, b); 1906s # out: 1906s # return ret; 1906s # } 1906s # 1906s # G_GNUC_UNUSED static gboolean 1906s # _g_value_equal (const GValue *a, const GValue *b) 1906s # { 1906s # gboolean ret = FALSE; 1906s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1906s # switch (G_VALUE_TYPE (a)) 1906s # { 1906s # case G_TYPE_BOOLEAN: 1906s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1906s # break; 1906s # case G_TYPE_UCHAR: 1906s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1906s # break; 1906s # case G_TYPE_INT: 1906s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1906s # break; 1906s # case G_TYPE_UINT: 1906s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1906s # break; 1906s # case G_TYPE_INT64: 1906s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1906s # break; 1906s # case G_TYPE_UINT64: 1906s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1906s # break; 1906s # case G_TYPE_DOUBLE: 1906s # { 1906s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1906s # gdouble da = g_value_get_double (a); 1906s # gdouble db = g_value_get_double (b); 1906s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1906s # } 1906s # break; 1906s # case G_TYPE_STRING: 1906s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1906s # break; 1906s # case G_TYPE_VARIANT: 1906s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1906s # break; 1906s # default: 1906s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1906s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1906s # else 1906s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1906s # break; 1906s # } 1906s # return ret; 1906s # } 1906s # 1906s # static void 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint G_GNUC_UNUSED, 1906s # void *marshal_data) 1906s # { 1906s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1906s # (void *data1, 1906s # GDBusMethodInvocation *arg_method_invocation, 1906s # GVariant *arg_arg_asv, 1906s # void *data2); 1906s # _GDbusCodegenMarshalBoolean_ObjectVariantFunc callback; 1906s # GCClosure *cc = (GCClosure*) closure; 1906s # void *data1, *data2; 1906s # gboolean v_return; 1906s # 1906s # g_return_if_fail (return_value != NULL); 1906s # g_return_if_fail (n_param_values == 3); 1906s # 1906s # if (G_CCLOSURE_SWAP_DATA (closure)) 1906s # { 1906s # data1 = closure->data; 1906s # data2 = g_value_peek_pointer (param_values + 0); 1906s # } 1906s # else 1906s # { 1906s # data1 = g_value_peek_pointer (param_values + 0); 1906s # data2 = closure->data; 1906s # } 1906s # 1906s # callback = (_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1906s # (marshal_data ? marshal_data : cc->callback); 1906s # 1906s # v_return = 1906s # callback (data1, 1906s # g_marshal_value_peek_object (param_values + 1), 1906s # g_marshal_value_peek_variant (param_values + 2), 1906s # data2); 1906s # 1906s # g_value_set_boolean (return_value, v_return); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ 1906s # * Code for interface org.project.UsefulInterface 1906s # * ------------------------------------------------------------------------ 1906s # */ 1906s # 1906s # /** 1906s # * SECTION:OrgProjectUsefulInterface 1906s # * @title: OrgProjectUsefulInterface 1906s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1906s # * 1906s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1906s # */ 1906s # 1906s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1906s # 1906s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_arg_asv = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "arg_asv", 1906s # (gchar *) "a{sv}", 1906s # NULL 1906s # }, 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_arg_asv.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_asv = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "SingleArgMethodAsv", 1906s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_pointers, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "handle-single-arg-method-asv", 1906s # FALSE 1906s # }; 1906s # 1906s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1906s # { 1906s # &_org_project_useful_interface_method_info_single_arg_method_asv.parent_struct, 1906s # NULL 1906s # }; 1906s # 1906s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1906s # { 1906s # { 1906s # -1, 1906s # (gchar *) "org.project.UsefulInterface", 1906s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1906s # NULL, 1906s # NULL, 1906s # NULL 1906s # }, 1906s # "org-project-useful-interface", 1906s # }; 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_interface_info: 1906s # * 1906s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1906s # * 1906s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1906s # */ 1906s # GDBusInterfaceInfo * 1906s # org_project_useful_interface_interface_info (void) 1906s # { 1906s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_override_properties: 1906s # * @klass: The class structure for a #GObject derived class. 1906s # * @property_id_begin: The property id to assign to the first overridden property. 1906s # * 1906s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1906s # * The properties are overridden in the order they are defined. 1906s # * 1906s # * Returns: The last property id. 1906s # */ 1906s # guint 1906s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1906s # { 1906s # return property_id_begin - 1; 1906s # } 1906s # 1906s # 1906s # inline static void 1906s # org_project_useful_interface_method_marshal_single_arg_method_asv ( 1906s # GClosure *closure, 1906s # GValue *return_value, 1906s # unsigned int n_param_values, 1906s # const GValue *param_values, 1906s # void *invocation_hint, 1906s # void *marshal_data) 1906s # { 1906s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT (closure, 1906s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1906s # } 1906s # 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterface: 1906s # * 1906s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceIface: 1906s # * @parent_iface: The parent interface. 1906s # * @handle_single_arg_method_asv: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-asv signal. 1906s # * 1906s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1906s # */ 1906s # 1906s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1906s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1906s # 1906s # static void 1906s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1906s # { 1906s # /* GObject signals for incoming D-Bus method calls: */ 1906s # /** 1906s # * OrgProjectUsefulInterface::handle-single-arg-method-asv: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: A #GDBusMethodInvocation. 1906s # * @arg_arg_asv: Argument passed by remote caller. 1906s # * 1906s # * Signal emitted when a remote caller is invoking the SingleArgMethodAsv() D-Bus method. 1906s # * 1906s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_asv() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1906s # * 1906s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1906s # */ 1906s # g_signal_new ("handle-single-arg-method-asv", 1906s # G_TYPE_FROM_INTERFACE (iface), 1906s # G_SIGNAL_RUN_LAST, 1906s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_asv), 1906s # g_signal_accumulator_true_handled, 1906s # NULL, 1906s # org_project_useful_interface_method_marshal_single_arg_method_asv, 1906s # G_TYPE_BOOLEAN, 1906s # 2, 1906s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT); 1906s # 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_asv: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_asv: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_call_single_arg_method_asv_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_asv_sync() for the synchronous, blocking version of this method. 1906s # */ 1906s # void 1906s # org_project_useful_interface_call_single_arg_method_asv ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # GVariant *arg_arg_asv, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodAsv", 1906s # g_variant_new ("(@a{sv})", 1906s # arg_arg_asv), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # callback, 1906s # user_data); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_asv_finish: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_asv(). 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_asv(). 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_asv_finish ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_call_single_arg_method_asv_sync: 1906s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1906s # * @arg_arg_asv: Argument to pass with the method invocation. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL. 1906s # * 1906s # * Synchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_call_single_arg_method_asv() for the asynchronous version of this method. 1906s # * 1906s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1906s # */ 1906s # gboolean 1906s # org_project_useful_interface_call_single_arg_method_asv_sync ( 1906s # OrgProjectUsefulInterface *proxy, 1906s # GVariant *arg_arg_asv, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GVariant *_ret; 1906s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1906s # "SingleArgMethodAsv", 1906s # g_variant_new ("(@a{sv})", 1906s # arg_arg_asv), 1906s # G_DBUS_CALL_FLAGS_NONE, 1906s # -1, 1906s # cancellable, 1906s # error); 1906s # if (_ret == NULL) 1906s # goto _out; 1906s # g_variant_get (_ret, 1906s # "()"); 1906s # g_variant_unref (_ret); 1906s # _out: 1906s # return _ret != NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_complete_single_arg_method_asv: 1906s # * @object: A #OrgProjectUsefulInterface. 1906s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1906s # * 1906s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodAsv() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1906s # * 1906s # * This method will free @invocation, you cannot use it afterwards. 1906s # */ 1906s # void 1906s # org_project_useful_interface_complete_single_arg_method_asv ( 1906s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1906s # GDBusMethodInvocation *invocation) 1906s # { 1906s # g_dbus_method_invocation_return_value (invocation, 1906s # g_variant_new ("()")); 1906s # } 1906s # 1906s # /* ------------------------------------------------------------------------ */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxy: 1906s # * 1906s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1906s # */ 1906s # 1906s # /** 1906s # * OrgProjectUsefulInterfaceProxyClass: 1906s # * @parent_class: The parent class. 1906s # * 1906s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1906s # */ 1906s # 1906s # struct _OrgProjectUsefulInterfaceProxyPrivate 1906s # { 1906s # GData *qdata; 1906s # }; 1906s # 1906s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #else 1906s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1906s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1906s # 1906s # #endif 1906s # static void 1906s # org_project_useful_interface_proxy_finalize (GObject *object) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1906s # g_datalist_clear (&proxy->priv->qdata); 1906s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1906s # guint prop_id G_GNUC_UNUSED, 1906s # const GValue *value G_GNUC_UNUSED, 1906s # GParamSpec *pspec G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1906s # const gchar *sender_name G_GNUC_UNUSED, 1906s # const gchar *signal_name, 1906s # GVariant *parameters) 1906s # { 1906s # _ExtendedGDBusSignalInfo *info; 1906s # GVariantIter iter; 1906s # GVariant *child; 1906s # GValue *paramv; 1906s # gsize num_params; 1906s # gsize n; 1906s # guint signal_id; 1906s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1906s # if (info == NULL) 1906s # return; 1906s # num_params = g_variant_n_children (parameters); 1906s # paramv = g_new0 (GValue, num_params + 1); 1906s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_value_set_object (¶mv[0], proxy); 1906s # g_variant_iter_init (&iter, parameters); 1906s # n = 1; 1906s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1906s # { 1906s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1906s # if (arg_info->use_gvariant) 1906s # { 1906s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1906s # g_value_set_variant (¶mv[n], child); 1906s # n++; 1906s # } 1906s # else 1906s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1906s # g_variant_unref (child); 1906s # } 1906s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1906s # g_signal_emitv (paramv, signal_id, 0, NULL); 1906s # for (n = 0; n < num_params + 1; n++) 1906s # g_value_unset (¶mv[n]); 1906s # g_free (paramv); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1906s # GVariant *changed_properties, 1906s # const gchar *const *invalidated_properties) 1906s # { 1906s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1906s # guint n; 1906s # const gchar *key; 1906s # GVariantIter *iter; 1906s # _ExtendedGDBusPropertyInfo *info; 1906s # g_variant_get (changed_properties, "a{sv}", &iter); 1906s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1906s # g_datalist_remove_data (&proxy->priv->qdata, key); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # g_variant_iter_free (iter); 1906s # for (n = 0; invalidated_properties[n] != NULL; n++) 1906s # { 1906s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1906s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1906s # if (info != NULL) 1906s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1906s # } 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1906s # { 1906s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1906s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1906s # #else 1906s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1906s # #endif 1906s # 1906s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1906s # { 1906s # GObjectClass *gobject_class; 1906s # GDBusProxyClass *proxy_class; 1906s # 1906s # gobject_class = G_OBJECT_CLASS (klass); 1906s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1906s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1906s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1906s # 1906s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1906s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1906s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1906s # 1906s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1906s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1906s # #endif 1906s # } 1906s # 1906s # static void 1906s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1906s # { 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_finish: 1906s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_finish ( 1906s # GAsyncResult *res, 1906s # GError **error) 1906s # { 1906s # GObject *ret; 1906s # GObject *source_object; 1906s # source_object = g_async_result_get_source_object (res); 1906s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1906s # g_object_unref (source_object); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_sync: 1906s # * @connection: A #GDBusConnection. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @error: Return location for error or %NULL 1906s # * 1906s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1906s # * 1906s # * The calling thread is blocked until a reply is received. 1906s # * 1906s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1906s # * 1906s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1906s # */ 1906s # OrgProjectUsefulInterface * 1906s # org_project_useful_interface_proxy_new_sync ( 1906s # GDBusConnection *connection, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GError **error) 1906s # { 1906s # GInitable *ret; 1906s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1906s # if (ret != NULL) 1906s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1906s # else 1906s # return NULL; 1906s # } 1906s # 1906s # 1906s # /** 1906s # * org_project_useful_interface_proxy_new_for_bus: 1906s # * @bus_type: A #GBusType. 1906s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1906s # * @name: A bus name (well-known or unique). 1906s # * @object_path: An object path. 1906s # * @cancellable: (nullable): A #GCancellable or %NULL. 1906s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1906s # * @user_data: User data to pass to @callback. 1906s # * 1906s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1906s # * 1906s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1906s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1906s # * 1906s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1906s # */ 1906s # void 1906s # org_project_useful_interface_proxy_new_for_bus ( 1906s # GBusType bus_type, 1906s # GDBusProxyFlags flags, 1906s # const gchar *name, 1906s # const gchar *object_path, 1906s # GCancellable *cancellable, 1906s # GAsyncReadyCallback callback, 1906s # gpointer user_data) 1906s # { 1906s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_proxy_new_for_bus_finish: 1907s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1907s # * @error: Return location for error or %NULL 1907s # * 1907s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1907s # * 1907s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1907s # */ 1907s # OrgProjectUsefulInterface * 1907s # org_project_useful_interface_proxy_new_for_bus_finish ( 1907s # GAsyncResult *res, 1907s # GError **error) 1907s # { 1907s # GObject *ret; 1907s # GObject *source_object; 1907s # source_object = g_async_result_get_source_object (res); 1907s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1907s # g_object_unref (source_object); 1907s # if (ret != NULL) 1907s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1907s # else 1907s # return NULL; 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_proxy_new_for_bus_sync: 1907s # * @bus_type: A #GBusType. 1907s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1907s # * @name: A bus name (well-known or unique). 1907s # * @object_path: An object path. 1907s # * @cancellable: (nullable): A #GCancellable or %NULL. 1907s # * @error: Return location for error or %NULL 1907s # * 1907s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1907s # * 1907s # * The calling thread is blocked until a reply is received. 1907s # * 1907s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1907s # * 1907s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1907s # */ 1907s # OrgProjectUsefulInterface * 1907s # org_project_useful_interface_proxy_new_for_bus_sync ( 1907s # GBusType bus_type, 1907s # GDBusProxyFlags flags, 1907s # const gchar *name, 1907s # const gchar *object_path, 1907s # GCancellable *cancellable, 1907s # GError **error) 1907s # { 1907s # GInitable *ret; 1907s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1907s # if (ret != NULL) 1907s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1907s # else 1907s # return NULL; 1907s # } 1907s # 1907s # 1907s # /* ------------------------------------------------------------------------ */ 1907s # 1907s # /** 1907s # * OrgProjectUsefulInterfaceSkeleton: 1907s # * 1907s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1907s # */ 1907s # 1907s # /** 1907s # * OrgProjectUsefulInterfaceSkeletonClass: 1907s # * @parent_class: The parent class. 1907s # * 1907s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1907s # */ 1907s # 1907s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1907s # { 1907s # GValue *properties; 1907s # GList *changed_properties; 1907s # GSource *changed_properties_idle_source; 1907s # GMainContext *context; 1907s # GMutex lock; 1907s # }; 1907s # 1907s # static void 1907s # _org_project_useful_interface_skeleton_handle_method_call ( 1907s # GDBusConnection *connection G_GNUC_UNUSED, 1907s # const gchar *sender G_GNUC_UNUSED, 1907s # const gchar *object_path G_GNUC_UNUSED, 1907s # const gchar *interface_name, 1907s # const gchar *method_name, 1907s # GVariant *parameters, 1907s # GDBusMethodInvocation *invocation, 1907s # gpointer user_data) 1907s # { 1907s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1907s # _ExtendedGDBusMethodInfo *info; 1907s # GVariantIter iter; 1907s # GVariant *child; 1907s # GValue *paramv; 1907s # gsize num_params; 1907s # guint num_extra; 1907s # gsize n; 1907s # guint signal_id; 1907s # GValue return_value = G_VALUE_INIT; 1907s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1907s # g_assert (info != NULL); 1907s # num_params = g_variant_n_children (parameters); 1907s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1907s # n = 0; 1907s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1907s # g_value_set_object (¶mv[n++], skeleton); 1907s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1907s # g_value_set_object (¶mv[n++], invocation); 1907s # if (info->pass_fdlist) 1907s # { 1907s # #ifdef G_OS_UNIX 1907s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1907s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1907s # #else 1907s # g_assert_not_reached (); 1907s # #endif 1907s # } 1907s # g_variant_iter_init (&iter, parameters); 1907s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1907s # { 1907s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1907s # if (arg_info->use_gvariant) 1907s # { 1907s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1907s # g_value_set_variant (¶mv[n], child); 1907s # n++; 1907s # } 1907s # else 1907s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1907s # g_variant_unref (child); 1907s # } 1907s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1907s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1907s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1907s # if (!g_value_get_boolean (&return_value)) 1907s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1907s # g_value_unset (&return_value); 1907s # for (n = 0; n < num_params + num_extra; n++) 1907s # g_value_unset (¶mv[n]); 1907s # g_free (paramv); 1907s # } 1907s # 1907s # static GVariant * 1907s # _org_project_useful_interface_skeleton_handle_get_property ( 1907s # GDBusConnection *connection G_GNUC_UNUSED, 1907s # const gchar *sender G_GNUC_UNUSED, 1907s # const gchar *object_path G_GNUC_UNUSED, 1907s # const gchar *interface_name G_GNUC_UNUSED, 1907s # const gchar *property_name, 1907s # GError **error, 1907s # gpointer user_data) 1907s # { 1907s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1907s # GValue value = G_VALUE_INIT; 1907s # GParamSpec *pspec; 1907s # _ExtendedGDBusPropertyInfo *info; 1907s # GVariant *ret; 1907s # ret = NULL; 1907s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1907s # g_assert (info != NULL); 1907s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1907s # if (pspec == NULL) 1907s # { 1907s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1907s # } 1907s # else 1907s # { 1907s # g_value_init (&value, pspec->value_type); 1907s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1907s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1907s # g_value_unset (&value); 1907s # } 1907s # return ret; 1907s # } 1907s # 1907s # static gboolean 1907s # _org_project_useful_interface_skeleton_handle_set_property ( 1907s # GDBusConnection *connection G_GNUC_UNUSED, 1907s # const gchar *sender G_GNUC_UNUSED, 1907s # const gchar *object_path G_GNUC_UNUSED, 1907s # const gchar *interface_name G_GNUC_UNUSED, 1907s # const gchar *property_name, 1907s # GVariant *variant, 1907s # GError **error, 1907s # gpointer user_data) 1907s # { 1907s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1907s # GValue value = G_VALUE_INIT; 1907s # GParamSpec *pspec; 1907s # _ExtendedGDBusPropertyInfo *info; 1907s # gboolean ret; 1907s # ret = FALSE; 1907s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1907s # g_assert (info != NULL); 1907s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1907s # if (pspec == NULL) 1907s # { 1907s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1907s # } 1907s # else 1907s # { 1907s # if (info->use_gvariant) 1907s # g_value_set_variant (&value, variant); 1907s # else 1907s # g_dbus_gvariant_to_gvalue (variant, &value); 1907s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1907s # g_value_unset (&value); 1907s # ret = TRUE; 1907s # } 1907s # return ret; 1907s # } 1907s # 1907s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1907s # { 1907s # _org_project_useful_interface_skeleton_handle_method_call, 1907s # _org_project_useful_interface_skeleton_handle_get_property, 1907s # _org_project_useful_interface_skeleton_handle_set_property, 1907s # {NULL} 1907s # }; 1907s # 1907s # static GDBusInterfaceInfo * 1907s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1907s # { 1907s # return org_project_useful_interface_interface_info (); 1907s # } 1907s # 1907s # static GDBusInterfaceVTable * 1907s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1907s # { 1907s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1907s # } 1907s # 1907s # static GVariant * 1907s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1907s # { 1907s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1907s # 1907s # GVariantBuilder builder; 1907s # guint n; 1907s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1907s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1907s # #else 1907s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1907s # #endif 1907s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1907s # goto out; 1907s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1907s # { 1907s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1907s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1907s # { 1907s # GVariant *value; 1907s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1907s # if (value != NULL) 1907s # { 1907s # g_variant_take_ref (value); 1907s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1907s # g_variant_unref (value); 1907s # } 1907s # } 1907s # } 1907s # out: 1907s # return g_variant_builder_end (&builder); 1907s # } 1907s # 1907s # static void 1907s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1907s # { 1907s # } 1907s # 1907s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1907s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1907s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1907s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1907s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1907s # 1907s # #else 1907s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1907s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1907s # 1907s # #endif 1907s # static void 1907s # org_project_useful_interface_skeleton_finalize (GObject *object) 1907s # { 1907s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1907s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1907s # if (skeleton->priv->changed_properties_idle_source != NULL) 1907s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1907s # g_main_context_unref (skeleton->priv->context); 1907s # g_mutex_clear (&skeleton->priv->lock); 1907s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1907s # } 1907s # 1907s # static void 1907s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1907s # { 1907s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1907s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1907s # #else 1907s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1907s # #endif 1907s # 1907s # g_mutex_init (&skeleton->priv->lock); 1907s # skeleton->priv->context = g_main_context_ref_thread_default (); 1907s # } 1907s # 1907s # static void 1907s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1907s # { 1907s # GObjectClass *gobject_class; 1907s # GDBusInterfaceSkeletonClass *skeleton_class; 1907s # 1907s # gobject_class = G_OBJECT_CLASS (klass); 1907s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1907s # 1907s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1907s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1907s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1907s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1907s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1907s # 1907s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1907s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1907s # #endif 1907s # } 1907s # 1907s # static void 1907s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1907s # { 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_skeleton_new: 1907s # * 1907s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1907s # * 1907s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1907s # */ 1907s # OrgProjectUsefulInterface * 1907s # org_project_useful_interface_skeleton_new (void) 1907s # { 1907s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1907s # } 1907s # Error: 1907s ok 11 __main__.TestCodegen.test_generate_methods_marshaller_single_typed_out_args 1907s # gdbus-codegen: /usr/bin/gdbus-codegen 1907s # tmpdir: /tmp/tmpei14pw7z 1907s # /tmp/tmpei14pw7z/tmp00a339jh.xml: 1907s # 1907s # 1907s # 1907s # 1907s # 1907s # 1907s # 1907s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpei14pw7z/tmp00a339jh.xml', '--output', '-', '--body'] 1907s # Return code: 0 1907s # Output: 1907s # /* 1907s # * This file is generated by gdbus-codegen, do not modify it. 1907s # * 1907s # * The license of this code is the same as for the D-Bus interface description 1907s # * it was derived from. Note that it links to GLib, so must comply with the 1907s # * LGPL linking clauses. 1907s # */ 1907s # 1907s # #ifdef HAVE_CONFIG_H 1907s # # include "config.h" 1907s # #endif 1907s # 1907s # #include 1907s # #ifdef G_OS_UNIX 1907s # # include 1907s # #endif 1907s # 1907s # #ifdef G_ENABLE_DEBUG 1907s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1907s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1907s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1907s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1907s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1907s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1907s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1907s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1907s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1907s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1907s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1907s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1907s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1907s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1907s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1907s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1907s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1907s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1907s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1907s # #else /* !G_ENABLE_DEBUG */ 1907s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1907s # * Do not access GValues directly in your code. Instead, use the 1907s # * g_value_get_*() functions 1907s # */ 1907s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1907s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1907s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1907s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1907s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1907s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1907s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1907s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1907s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1907s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1907s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1907s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1907s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1907s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1907s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1907s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1907s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1907s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1907s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1907s # #endif /* !G_ENABLE_DEBUG */ 1907s # 1907s # typedef struct 1907s # { 1907s # GDBusArgInfo parent_struct; 1907s # gboolean use_gvariant; 1907s # } _ExtendedGDBusArgInfo; 1907s # 1907s # typedef struct 1907s # { 1907s # GDBusMethodInfo parent_struct; 1907s # const gchar *signal_name; 1907s # gboolean pass_fdlist; 1907s # } _ExtendedGDBusMethodInfo; 1907s # 1907s # typedef struct 1907s # { 1907s # GDBusSignalInfo parent_struct; 1907s # const gchar *signal_name; 1907s # } _ExtendedGDBusSignalInfo; 1907s # 1907s # typedef struct 1907s # { 1907s # GDBusPropertyInfo parent_struct; 1907s # const gchar *hyphen_name; 1907s # guint use_gvariant : 1; 1907s # guint emits_changed_signal : 1; 1907s # } _ExtendedGDBusPropertyInfo; 1907s # 1907s # typedef struct 1907s # { 1907s # GDBusInterfaceInfo parent_struct; 1907s # const gchar *hyphen_name; 1907s # } _ExtendedGDBusInterfaceInfo; 1907s # 1907s # typedef struct 1907s # { 1907s # const _ExtendedGDBusPropertyInfo *info; 1907s # guint prop_id; 1907s # GValue orig_value; /* the value before the change */ 1907s # } ChangedProperty; 1907s # 1907s # static void 1907s # _changed_property_free (ChangedProperty *data) 1907s # { 1907s # g_value_unset (&data->orig_value); 1907s # g_free (data); 1907s # } 1907s # 1907s # static gboolean 1907s # _g_strv_equal0 (gchar **a, gchar **b) 1907s # { 1907s # gboolean ret = FALSE; 1907s # guint n; 1907s # if (a == NULL && b == NULL) 1907s # { 1907s # ret = TRUE; 1907s # goto out; 1907s # } 1907s # if (a == NULL || b == NULL) 1907s # goto out; 1907s # if (g_strv_length (a) != g_strv_length (b)) 1907s # goto out; 1907s # for (n = 0; a[n] != NULL; n++) 1907s # if (g_strcmp0 (a[n], b[n]) != 0) 1907s # goto out; 1907s # ret = TRUE; 1907s # out: 1907s # return ret; 1907s # } 1907s # 1907s # static gboolean 1907s # _g_variant_equal0 (GVariant *a, GVariant *b) 1907s # { 1907s # gboolean ret = FALSE; 1907s # if (a == NULL && b == NULL) 1907s # { 1907s # ret = TRUE; 1907s # goto out; 1907s # } 1907s # if (a == NULL || b == NULL) 1907s # goto out; 1907s # ret = g_variant_equal (a, b); 1907s # out: 1907s # return ret; 1907s # } 1907s # 1907s # G_GNUC_UNUSED static gboolean 1907s # _g_value_equal (const GValue *a, const GValue *b) 1907s # { 1907s # gboolean ret = FALSE; 1907s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1907s # switch (G_VALUE_TYPE (a)) 1907s # { 1907s # case G_TYPE_BOOLEAN: 1907s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1907s # break; 1907s # case G_TYPE_UCHAR: 1907s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1907s # break; 1907s # case G_TYPE_INT: 1907s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1907s # break; 1907s # case G_TYPE_UINT: 1907s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1907s # break; 1907s # case G_TYPE_INT64: 1907s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1907s # break; 1907s # case G_TYPE_UINT64: 1907s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1907s # break; 1907s # case G_TYPE_DOUBLE: 1907s # { 1907s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1907s # gdouble da = g_value_get_double (a); 1907s # gdouble db = g_value_get_double (b); 1907s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1907s # } 1907s # break; 1907s # case G_TYPE_STRING: 1907s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1907s # break; 1907s # case G_TYPE_VARIANT: 1907s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1907s # break; 1907s # default: 1907s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1907s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1907s # else 1907s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1907s # break; 1907s # } 1907s # return ret; 1907s # } 1907s # 1907s # static void 1907s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1907s # GClosure *closure, 1907s # GValue *return_value, 1907s # unsigned int n_param_values, 1907s # const GValue *param_values, 1907s # void *invocation_hint G_GNUC_UNUSED, 1907s # void *marshal_data) 1907s # { 1907s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1907s # (void *data1, 1907s # GDBusMethodInvocation *arg_method_invocation, 1907s # void *data2); 1907s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1907s # GCClosure *cc = (GCClosure*) closure; 1907s # void *data1, *data2; 1907s # gboolean v_return; 1907s # 1907s # g_return_if_fail (return_value != NULL); 1907s # g_return_if_fail (n_param_values == 2); 1907s # 1907s # if (G_CCLOSURE_SWAP_DATA (closure)) 1907s # { 1907s # data1 = closure->data; 1907s # data2 = g_value_peek_pointer (param_values + 0); 1907s # } 1907s # else 1907s # { 1907s # data1 = g_value_peek_pointer (param_values + 0); 1907s # data2 = closure->data; 1907s # } 1907s # 1907s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1907s # (marshal_data ? marshal_data : cc->callback); 1907s # 1907s # v_return = 1907s # callback (data1, 1907s # g_marshal_value_peek_object (param_values + 1), 1907s # data2); 1907s # 1907s # g_value_set_boolean (return_value, v_return); 1907s # } 1907s # 1907s # /* ------------------------------------------------------------------------ 1907s # * Code for interface org.project.UsefulInterface 1907s # * ------------------------------------------------------------------------ 1907s # */ 1907s # 1907s # /** 1907s # * SECTION:OrgProjectUsefulInterface 1907s # * @title: OrgProjectUsefulInterface 1907s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1907s # * 1907s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1907s # */ 1907s # 1907s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1907s # 1907s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_arg_b = 1907s # { 1907s # { 1907s # -1, 1907s # (gchar *) "arg_b", 1907s # (gchar *) "b", 1907s # NULL 1907s # }, 1907s # FALSE 1907s # }; 1907s # 1907s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_pointers[] = 1907s # { 1907s # &_org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_arg_b.parent_struct, 1907s # NULL 1907s # }; 1907s # 1907s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_b = 1907s # { 1907s # { 1907s # -1, 1907s # (gchar *) "SingleArgMethodB", 1907s # NULL, 1907s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_pointers, 1907s # NULL 1907s # }, 1907s # "handle-single-arg-method-b", 1907s # FALSE 1907s # }; 1907s # 1907s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1907s # { 1907s # &_org_project_useful_interface_method_info_single_arg_method_b.parent_struct, 1907s # NULL 1907s # }; 1907s # 1907s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1907s # { 1907s # { 1907s # -1, 1907s # (gchar *) "org.project.UsefulInterface", 1907s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1907s # NULL, 1907s # NULL, 1907s # NULL 1907s # }, 1907s # "org-project-useful-interface", 1907s # }; 1907s # 1907s # 1907s # /** 1907s # * org_project_useful_interface_interface_info: 1907s # * 1907s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1907s # * 1907s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1907s # */ 1907s # GDBusInterfaceInfo * 1907s # org_project_useful_interface_interface_info (void) 1907s # { 1907s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_override_properties: 1907s # * @klass: The class structure for a #GObject derived class. 1907s # * @property_id_begin: The property id to assign to the first overridden property. 1907s # * 1907s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1907s # * The properties are overridden in the order they are defined. 1907s # * 1907s # * Returns: The last property id. 1907s # */ 1907s # guint 1907s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1907s # { 1907s # return property_id_begin - 1; 1907s # } 1907s # 1907s # 1907s # inline static void 1907s # org_project_useful_interface_method_marshal_single_arg_method_b ( 1907s # GClosure *closure, 1907s # GValue *return_value, 1907s # unsigned int n_param_values, 1907s # const GValue *param_values, 1907s # void *invocation_hint, 1907s # void *marshal_data) 1907s # { 1907s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1907s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1907s # } 1907s # 1907s # 1907s # /** 1907s # * OrgProjectUsefulInterface: 1907s # * 1907s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1907s # */ 1907s # 1907s # /** 1907s # * OrgProjectUsefulInterfaceIface: 1907s # * @parent_iface: The parent interface. 1907s # * @handle_single_arg_method_b: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-b signal. 1907s # * 1907s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1907s # */ 1907s # 1907s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1907s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1907s # 1907s # static void 1907s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1907s # { 1907s # /* GObject signals for incoming D-Bus method calls: */ 1907s # /** 1907s # * OrgProjectUsefulInterface::handle-single-arg-method-b: 1907s # * @object: A #OrgProjectUsefulInterface. 1907s # * @invocation: A #GDBusMethodInvocation. 1907s # * 1907s # * Signal emitted when a remote caller is invoking the SingleArgMethodB() D-Bus method. 1907s # * 1907s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_b() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1907s # * 1907s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1907s # */ 1907s # g_signal_new ("handle-single-arg-method-b", 1907s # G_TYPE_FROM_INTERFACE (iface), 1907s # G_SIGNAL_RUN_LAST, 1907s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_b), 1907s # g_signal_accumulator_true_handled, 1907s # NULL, 1907s # org_project_useful_interface_method_marshal_single_arg_method_b, 1907s # G_TYPE_BOOLEAN, 1907s # 1, 1907s # G_TYPE_DBUS_METHOD_INVOCATION); 1907s # 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_call_single_arg_method_b: 1907s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1907s # * @cancellable: (nullable): A #GCancellable or %NULL. 1907s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1907s # * @user_data: User data to pass to @callback. 1907s # * 1907s # * Asynchronously invokes the SingleArgMethodB() D-Bus method on @proxy. 1907s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1907s # * You can then call org_project_useful_interface_call_single_arg_method_b_finish() to get the result of the operation. 1907s # * 1907s # * See org_project_useful_interface_call_single_arg_method_b_sync() for the synchronous, blocking version of this method. 1907s # */ 1907s # void 1907s # org_project_useful_interface_call_single_arg_method_b ( 1907s # OrgProjectUsefulInterface *proxy, 1907s # GCancellable *cancellable, 1907s # GAsyncReadyCallback callback, 1907s # gpointer user_data) 1907s # { 1907s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1907s # "SingleArgMethodB", 1907s # g_variant_new ("()"), 1907s # G_DBUS_CALL_FLAGS_NONE, 1907s # -1, 1907s # cancellable, 1907s # callback, 1907s # user_data); 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_call_single_arg_method_b_finish: 1907s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1907s # * @out_arg_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1907s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_b(). 1907s # * @error: Return location for error or %NULL. 1907s # * 1907s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_b(). 1907s # * 1907s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1907s # */ 1907s # gboolean 1907s # org_project_useful_interface_call_single_arg_method_b_finish ( 1907s # OrgProjectUsefulInterface *proxy, 1907s # gboolean *out_arg_b, 1907s # GAsyncResult *res, 1907s # GError **error) 1907s # { 1907s # GVariant *_ret; 1907s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1907s # if (_ret == NULL) 1907s # goto _out; 1907s # g_variant_get (_ret, 1907s # "(b)", 1907s # out_arg_b); 1907s # g_variant_unref (_ret); 1907s # _out: 1907s # return _ret != NULL; 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_call_single_arg_method_b_sync: 1907s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1907s # * @out_arg_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1907s # * @cancellable: (nullable): A #GCancellable or %NULL. 1907s # * @error: Return location for error or %NULL. 1907s # * 1907s # * Synchronously invokes the SingleArgMethodB() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1907s # * 1907s # * See org_project_useful_interface_call_single_arg_method_b() for the asynchronous version of this method. 1907s # * 1907s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1907s # */ 1907s # gboolean 1907s # org_project_useful_interface_call_single_arg_method_b_sync ( 1907s # OrgProjectUsefulInterface *proxy, 1907s # gboolean *out_arg_b, 1907s # GCancellable *cancellable, 1907s # GError **error) 1907s # { 1907s # GVariant *_ret; 1907s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1907s # "SingleArgMethodB", 1907s # g_variant_new ("()"), 1907s # G_DBUS_CALL_FLAGS_NONE, 1907s # -1, 1907s # cancellable, 1907s # error); 1907s # if (_ret == NULL) 1907s # goto _out; 1907s # g_variant_get (_ret, 1907s # "(b)", 1907s # out_arg_b); 1907s # g_variant_unref (_ret); 1907s # _out: 1907s # return _ret != NULL; 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_complete_single_arg_method_b: 1907s # * @object: A #OrgProjectUsefulInterface. 1907s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1907s # * @arg_b: Parameter to return. 1907s # * 1907s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodB() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1907s # * 1907s # * This method will free @invocation, you cannot use it afterwards. 1907s # */ 1907s # void 1907s # org_project_useful_interface_complete_single_arg_method_b ( 1907s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1907s # GDBusMethodInvocation *invocation, 1907s # gboolean arg_b) 1907s # { 1907s # g_dbus_method_invocation_return_value (invocation, 1907s # g_variant_new ("(b)", 1907s # arg_b)); 1907s # } 1907s # 1907s # /* ------------------------------------------------------------------------ */ 1907s # 1907s # /** 1907s # * OrgProjectUsefulInterfaceProxy: 1907s # * 1907s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1907s # */ 1907s # 1907s # /** 1907s # * OrgProjectUsefulInterfaceProxyClass: 1907s # * @parent_class: The parent class. 1907s # * 1907s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1907s # */ 1907s # 1907s # struct _OrgProjectUsefulInterfaceProxyPrivate 1907s # { 1907s # GData *qdata; 1907s # }; 1907s # 1907s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1907s # 1907s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1907s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1907s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1907s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1907s # 1907s # #else 1907s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1907s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1907s # 1907s # #endif 1907s # static void 1907s # org_project_useful_interface_proxy_finalize (GObject *object) 1907s # { 1907s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1907s # g_datalist_clear (&proxy->priv->qdata); 1907s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1907s # } 1907s # 1907s # static void 1907s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1907s # guint prop_id G_GNUC_UNUSED, 1907s # GValue *value G_GNUC_UNUSED, 1907s # GParamSpec *pspec G_GNUC_UNUSED) 1907s # { 1907s # } 1907s # 1907s # static void 1907s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1907s # guint prop_id G_GNUC_UNUSED, 1907s # const GValue *value G_GNUC_UNUSED, 1907s # GParamSpec *pspec G_GNUC_UNUSED) 1907s # { 1907s # } 1907s # 1907s # static void 1907s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1907s # const gchar *sender_name G_GNUC_UNUSED, 1907s # const gchar *signal_name, 1907s # GVariant *parameters) 1907s # { 1907s # _ExtendedGDBusSignalInfo *info; 1907s # GVariantIter iter; 1907s # GVariant *child; 1907s # GValue *paramv; 1907s # gsize num_params; 1907s # gsize n; 1907s # guint signal_id; 1907s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1907s # if (info == NULL) 1907s # return; 1907s # num_params = g_variant_n_children (parameters); 1907s # paramv = g_new0 (GValue, num_params + 1); 1907s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1907s # g_value_set_object (¶mv[0], proxy); 1907s # g_variant_iter_init (&iter, parameters); 1907s # n = 1; 1907s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1907s # { 1907s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1907s # if (arg_info->use_gvariant) 1907s # { 1907s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1907s # g_value_set_variant (¶mv[n], child); 1907s # n++; 1907s # } 1907s # else 1907s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1907s # g_variant_unref (child); 1907s # } 1907s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1907s # g_signal_emitv (paramv, signal_id, 0, NULL); 1907s # for (n = 0; n < num_params + 1; n++) 1907s # g_value_unset (¶mv[n]); 1907s # g_free (paramv); 1907s # } 1907s # 1907s # static void 1907s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1907s # GVariant *changed_properties, 1907s # const gchar *const *invalidated_properties) 1907s # { 1907s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1907s # guint n; 1907s # const gchar *key; 1907s # GVariantIter *iter; 1907s # _ExtendedGDBusPropertyInfo *info; 1907s # g_variant_get (changed_properties, "a{sv}", &iter); 1907s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1907s # { 1907s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1907s # g_datalist_remove_data (&proxy->priv->qdata, key); 1907s # if (info != NULL) 1907s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1907s # } 1907s # g_variant_iter_free (iter); 1907s # for (n = 0; invalidated_properties[n] != NULL; n++) 1907s # { 1907s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1907s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1907s # if (info != NULL) 1907s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1907s # } 1907s # } 1907s # 1907s # static void 1907s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1907s # { 1907s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1907s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1907s # #else 1907s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1907s # #endif 1907s # 1907s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1907s # } 1907s # 1907s # static void 1907s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1907s # { 1907s # GObjectClass *gobject_class; 1907s # GDBusProxyClass *proxy_class; 1907s # 1907s # gobject_class = G_OBJECT_CLASS (klass); 1907s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1907s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1907s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1907s # 1907s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1907s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1907s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1907s # 1907s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1907s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1907s # #endif 1907s # } 1907s # 1907s # static void 1907s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1907s # { 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_proxy_new: 1907s # * @connection: A #GDBusConnection. 1907s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1907s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1907s # * @object_path: An object path. 1907s # * @cancellable: (nullable): A #GCancellable or %NULL. 1907s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1907s # * @user_data: User data to pass to @callback. 1907s # * 1907s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1907s # * 1907s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1907s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1907s # * 1907s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1907s # */ 1907s # void 1907s # org_project_useful_interface_proxy_new ( 1907s # GDBusConnection *connection, 1907s # GDBusProxyFlags flags, 1907s # const gchar *name, 1907s # const gchar *object_path, 1907s # GCancellable *cancellable, 1907s # GAsyncReadyCallback callback, 1907s # gpointer user_data) 1907s # { 1907s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_proxy_new_finish: 1907s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1907s # * @error: Return location for error or %NULL 1907s # * 1907s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1907s # * 1907s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1907s # */ 1907s # OrgProjectUsefulInterface * 1907s # org_project_useful_interface_proxy_new_finish ( 1907s # GAsyncResult *res, 1907s # GError **error) 1907s # { 1907s # GObject *ret; 1907s # GObject *source_object; 1907s # source_object = g_async_result_get_source_object (res); 1907s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1907s # g_object_unref (source_object); 1907s # if (ret != NULL) 1907s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1907s # else 1907s # return NULL; 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_proxy_new_sync: 1907s # * @connection: A #GDBusConnection. 1907s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1907s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1907s # * @object_path: An object path. 1907s # * @cancellable: (nullable): A #GCancellable or %NULL. 1907s # * @error: Return location for error or %NULL 1907s # * 1907s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1907s # * 1907s # * The calling thread is blocked until a reply is received. 1907s # * 1907s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1907s # * 1907s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1907s # */ 1907s # OrgProjectUsefulInterface * 1907s # org_project_useful_interface_proxy_new_sync ( 1907s # GDBusConnection *connection, 1907s # GDBusProxyFlags flags, 1907s # const gchar *name, 1907s # const gchar *object_path, 1907s # GCancellable *cancellable, 1907s # GError **error) 1907s # { 1907s # GInitable *ret; 1907s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1907s # if (ret != NULL) 1907s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1907s # else 1907s # return NULL; 1907s # } 1907s # 1907s # 1907s # /** 1907s # * org_project_useful_interface_proxy_new_for_bus: 1907s # * @bus_type: A #GBusType. 1907s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1907s # * @name: A bus name (well-known or unique). 1907s # * @object_path: An object path. 1907s # * @cancellable: (nullable): A #GCancellable or %NULL. 1907s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1907s # * @user_data: User data to pass to @callback. 1907s # * 1907s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1907s # * 1907s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1907s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1907s # * 1907s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1907s # */ 1907s # void 1907s # org_project_useful_interface_proxy_new_for_bus ( 1907s # GBusType bus_type, 1907s # GDBusProxyFlags flags, 1907s # const gchar *name, 1907s # const gchar *object_path, 1907s # GCancellable *cancellable, 1907s # GAsyncReadyCallback callback, 1907s # gpointer user_data) 1907s # { 1907s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_proxy_new_for_bus_finish: 1907s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1907s # * @error: Return location for error or %NULL 1907s # * 1907s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1907s # * 1907s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1907s # */ 1907s # OrgProjectUsefulInterface * 1907s # org_project_useful_interface_proxy_new_for_bus_finish ( 1907s # GAsyncResult *res, 1907s # GError **error) 1907s # { 1907s # GObject *ret; 1907s # GObject *source_object; 1907s # source_object = g_async_result_get_source_object (res); 1907s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1907s # g_object_unref (source_object); 1907s # if (ret != NULL) 1907s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1907s # else 1907s # return NULL; 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_proxy_new_for_bus_sync: 1907s # * @bus_type: A #GBusType. 1907s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1907s # * @name: A bus name (well-known or unique). 1907s # * @object_path: An object path. 1907s # * @cancellable: (nullable): A #GCancellable or %NULL. 1907s # * @error: Return location for error or %NULL 1907s # * 1907s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1907s # * 1907s # * The calling thread is blocked until a reply is received. 1907s # * 1907s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1907s # * 1907s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1907s # */ 1907s # OrgProjectUsefulInterface * 1907s # org_project_useful_interface_proxy_new_for_bus_sync ( 1907s # GBusType bus_type, 1907s # GDBusProxyFlags flags, 1907s # const gchar *name, 1907s # const gchar *object_path, 1907s # GCancellable *cancellable, 1907s # GError **error) 1907s # { 1907s # GInitable *ret; 1907s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1907s # if (ret != NULL) 1907s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1907s # else 1907s # return NULL; 1907s # } 1907s # 1907s # 1907s # /* ------------------------------------------------------------------------ */ 1907s # 1907s # /** 1907s # * OrgProjectUsefulInterfaceSkeleton: 1907s # * 1907s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1907s # */ 1907s # 1907s # /** 1907s # * OrgProjectUsefulInterfaceSkeletonClass: 1907s # * @parent_class: The parent class. 1907s # * 1907s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1907s # */ 1907s # 1907s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1907s # { 1907s # GValue *properties; 1907s # GList *changed_properties; 1907s # GSource *changed_properties_idle_source; 1907s # GMainContext *context; 1907s # GMutex lock; 1907s # }; 1907s # 1907s # static void 1907s # _org_project_useful_interface_skeleton_handle_method_call ( 1907s # GDBusConnection *connection G_GNUC_UNUSED, 1907s # const gchar *sender G_GNUC_UNUSED, 1907s # const gchar *object_path G_GNUC_UNUSED, 1907s # const gchar *interface_name, 1907s # const gchar *method_name, 1907s # GVariant *parameters, 1907s # GDBusMethodInvocation *invocation, 1907s # gpointer user_data) 1907s # { 1907s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1907s # _ExtendedGDBusMethodInfo *info; 1907s # GVariantIter iter; 1907s # GVariant *child; 1907s # GValue *paramv; 1907s # gsize num_params; 1907s # guint num_extra; 1907s # gsize n; 1907s # guint signal_id; 1907s # GValue return_value = G_VALUE_INIT; 1907s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1907s # g_assert (info != NULL); 1907s # num_params = g_variant_n_children (parameters); 1907s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1907s # n = 0; 1907s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1907s # g_value_set_object (¶mv[n++], skeleton); 1907s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1907s # g_value_set_object (¶mv[n++], invocation); 1907s # if (info->pass_fdlist) 1907s # { 1907s # #ifdef G_OS_UNIX 1907s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1907s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1907s # #else 1907s # g_assert_not_reached (); 1907s # #endif 1907s # } 1907s # g_variant_iter_init (&iter, parameters); 1907s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1907s # { 1907s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1907s # if (arg_info->use_gvariant) 1907s # { 1907s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1907s # g_value_set_variant (¶mv[n], child); 1907s # n++; 1907s # } 1907s # else 1907s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1907s # g_variant_unref (child); 1907s # } 1907s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1907s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1907s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1907s # if (!g_value_get_boolean (&return_value)) 1907s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1907s # g_value_unset (&return_value); 1907s # for (n = 0; n < num_params + num_extra; n++) 1907s # g_value_unset (¶mv[n]); 1907s # g_free (paramv); 1907s # } 1907s # 1907s # static GVariant * 1907s # _org_project_useful_interface_skeleton_handle_get_property ( 1907s # GDBusConnection *connection G_GNUC_UNUSED, 1907s # const gchar *sender G_GNUC_UNUSED, 1907s # const gchar *object_path G_GNUC_UNUSED, 1907s # const gchar *interface_name G_GNUC_UNUSED, 1907s # const gchar *property_name, 1907s # GError **error, 1907s # gpointer user_data) 1907s # { 1907s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1907s # GValue value = G_VALUE_INIT; 1907s # GParamSpec *pspec; 1907s # _ExtendedGDBusPropertyInfo *info; 1907s # GVariant *ret; 1907s # ret = NULL; 1907s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1907s # g_assert (info != NULL); 1907s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1907s # if (pspec == NULL) 1907s # { 1907s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1907s # } 1907s # else 1907s # { 1907s # g_value_init (&value, pspec->value_type); 1907s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1907s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1907s # g_value_unset (&value); 1907s # } 1907s # return ret; 1907s # } 1907s # 1907s # static gboolean 1907s # _org_project_useful_interface_skeleton_handle_set_property ( 1907s # GDBusConnection *connection G_GNUC_UNUSED, 1907s # const gchar *sender G_GNUC_UNUSED, 1907s # const gchar *object_path G_GNUC_UNUSED, 1907s # const gchar *interface_name G_GNUC_UNUSED, 1907s # const gchar *property_name, 1907s # GVariant *variant, 1907s # GError **error, 1907s # gpointer user_data) 1907s # { 1907s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1907s # GValue value = G_VALUE_INIT; 1907s # GParamSpec *pspec; 1907s # _ExtendedGDBusPropertyInfo *info; 1907s # gboolean ret; 1907s # ret = FALSE; 1907s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1907s # g_assert (info != NULL); 1907s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1907s # if (pspec == NULL) 1907s # { 1907s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1907s # } 1907s # else 1907s # { 1907s # if (info->use_gvariant) 1907s # g_value_set_variant (&value, variant); 1907s # else 1907s # g_dbus_gvariant_to_gvalue (variant, &value); 1907s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1907s # g_value_unset (&value); 1907s # ret = TRUE; 1907s # } 1907s # return ret; 1907s # } 1907s # 1907s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1907s # { 1907s # _org_project_useful_interface_skeleton_handle_method_call, 1907s # _org_project_useful_interface_skeleton_handle_get_property, 1907s # _org_project_useful_interface_skeleton_handle_set_property, 1907s # {NULL} 1907s # }; 1907s # 1907s # static GDBusInterfaceInfo * 1907s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1907s # { 1907s # return org_project_useful_interface_interface_info (); 1907s # } 1907s # 1907s # static GDBusInterfaceVTable * 1907s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1907s # { 1907s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1907s # } 1907s # 1907s # static GVariant * 1907s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1907s # { 1907s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1907s # 1907s # GVariantBuilder builder; 1907s # guint n; 1907s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1907s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1907s # #else 1907s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1907s # #endif 1907s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1907s # goto out; 1907s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1907s # { 1907s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1907s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1907s # { 1907s # GVariant *value; 1907s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1907s # if (value != NULL) 1907s # { 1907s # g_variant_take_ref (value); 1907s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1907s # g_variant_unref (value); 1907s # } 1907s # } 1907s # } 1907s # out: 1907s # return g_variant_builder_end (&builder); 1907s # } 1907s # 1907s # static void 1907s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1907s # { 1907s # } 1907s # 1907s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1907s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1907s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1907s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1907s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1907s # 1907s # #else 1907s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1907s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1907s # 1907s # #endif 1907s # static void 1907s # org_project_useful_interface_skeleton_finalize (GObject *object) 1907s # { 1907s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1907s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1907s # if (skeleton->priv->changed_properties_idle_source != NULL) 1907s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1907s # g_main_context_unref (skeleton->priv->context); 1907s # g_mutex_clear (&skeleton->priv->lock); 1907s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1907s # } 1907s # 1907s # static void 1907s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1907s # { 1907s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1907s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1907s # #else 1907s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1907s # #endif 1907s # 1907s # g_mutex_init (&skeleton->priv->lock); 1907s # skeleton->priv->context = g_main_context_ref_thread_default (); 1907s # } 1907s # 1907s # static void 1907s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1907s # { 1907s # GObjectClass *gobject_class; 1907s # GDBusInterfaceSkeletonClass *skeleton_class; 1907s # 1907s # gobject_class = G_OBJECT_CLASS (klass); 1907s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1907s # 1907s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1907s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1907s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1907s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1907s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1907s # 1907s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1907s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1907s # #endif 1907s # } 1907s # 1907s # static void 1907s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1907s # { 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_skeleton_new: 1907s # * 1907s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1907s # * 1907s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1907s # */ 1907s # OrgProjectUsefulInterface * 1907s # org_project_useful_interface_skeleton_new (void) 1907s # { 1907s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1907s # } 1907s # Error: 1907s # 1907s # /tmp/tmpei14pw7z/tmpd7oeek5g.xml: 1907s # 1907s # 1907s # 1907s # 1907s # 1907s # 1907s # 1907s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpei14pw7z/tmpd7oeek5g.xml', '--output', '-', '--body'] 1907s # Return code: 0 1907s # Output: 1907s # /* 1907s # * This file is generated by gdbus-codegen, do not modify it. 1907s # * 1907s # * The license of this code is the same as for the D-Bus interface description 1907s # * it was derived from. Note that it links to GLib, so must comply with the 1907s # * LGPL linking clauses. 1907s # */ 1907s # 1907s # #ifdef HAVE_CONFIG_H 1907s # # include "config.h" 1907s # #endif 1907s # 1907s # #include 1907s # #ifdef G_OS_UNIX 1907s # # include 1907s # #endif 1907s # 1907s # #ifdef G_ENABLE_DEBUG 1907s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1907s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1907s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1907s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1907s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1907s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1907s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1907s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1907s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1907s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1907s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1907s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1907s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1907s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1907s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1907s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1907s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1907s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1907s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1907s # #else /* !G_ENABLE_DEBUG */ 1907s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1907s # * Do not access GValues directly in your code. Instead, use the 1907s # * g_value_get_*() functions 1907s # */ 1907s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1907s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1907s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1907s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1907s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1907s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1907s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1907s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1907s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1907s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1907s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1907s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1907s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1907s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1907s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1907s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1907s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1907s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1907s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1907s # #endif /* !G_ENABLE_DEBUG */ 1907s # 1907s # typedef struct 1907s # { 1907s # GDBusArgInfo parent_struct; 1907s # gboolean use_gvariant; 1907s # } _ExtendedGDBusArgInfo; 1907s # 1907s # typedef struct 1907s # { 1907s # GDBusMethodInfo parent_struct; 1907s # const gchar *signal_name; 1907s # gboolean pass_fdlist; 1907s # } _ExtendedGDBusMethodInfo; 1907s # 1907s # typedef struct 1907s # { 1907s # GDBusSignalInfo parent_struct; 1907s # const gchar *signal_name; 1907s # } _ExtendedGDBusSignalInfo; 1907s # 1907s # typedef struct 1907s # { 1907s # GDBusPropertyInfo parent_struct; 1907s # const gchar *hyphen_name; 1907s # guint use_gvariant : 1; 1907s # guint emits_changed_signal : 1; 1907s # } _ExtendedGDBusPropertyInfo; 1907s # 1907s # typedef struct 1907s # { 1907s # GDBusInterfaceInfo parent_struct; 1907s # const gchar *hyphen_name; 1907s # } _ExtendedGDBusInterfaceInfo; 1907s # 1907s # typedef struct 1907s # { 1907s # const _ExtendedGDBusPropertyInfo *info; 1907s # guint prop_id; 1907s # GValue orig_value; /* the value before the change */ 1907s # } ChangedProperty; 1907s # 1907s # static void 1907s # _changed_property_free (ChangedProperty *data) 1907s # { 1907s # g_value_unset (&data->orig_value); 1907s # g_free (data); 1907s # } 1907s # 1907s # static gboolean 1907s # _g_strv_equal0 (gchar **a, gchar **b) 1907s # { 1907s # gboolean ret = FALSE; 1907s # guint n; 1907s # if (a == NULL && b == NULL) 1907s # { 1907s # ret = TRUE; 1907s # goto out; 1907s # } 1907s # if (a == NULL || b == NULL) 1907s # goto out; 1907s # if (g_strv_length (a) != g_strv_length (b)) 1907s # goto out; 1907s # for (n = 0; a[n] != NULL; n++) 1907s # if (g_strcmp0 (a[n], b[n]) != 0) 1907s # goto out; 1907s # ret = TRUE; 1907s # out: 1907s # return ret; 1907s # } 1907s # 1907s # static gboolean 1907s # _g_variant_equal0 (GVariant *a, GVariant *b) 1907s # { 1907s # gboolean ret = FALSE; 1907s # if (a == NULL && b == NULL) 1907s # { 1907s # ret = TRUE; 1907s # goto out; 1907s # } 1907s # if (a == NULL || b == NULL) 1907s # goto out; 1907s # ret = g_variant_equal (a, b); 1907s # out: 1907s # return ret; 1907s # } 1907s # 1907s # G_GNUC_UNUSED static gboolean 1907s # _g_value_equal (const GValue *a, const GValue *b) 1907s # { 1907s # gboolean ret = FALSE; 1907s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1907s # switch (G_VALUE_TYPE (a)) 1907s # { 1907s # case G_TYPE_BOOLEAN: 1907s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1907s # break; 1907s # case G_TYPE_UCHAR: 1907s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1907s # break; 1907s # case G_TYPE_INT: 1907s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1907s # break; 1907s # case G_TYPE_UINT: 1907s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1907s # break; 1907s # case G_TYPE_INT64: 1907s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1907s # break; 1907s # case G_TYPE_UINT64: 1907s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1907s # break; 1907s # case G_TYPE_DOUBLE: 1907s # { 1907s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1907s # gdouble da = g_value_get_double (a); 1907s # gdouble db = g_value_get_double (b); 1907s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1907s # } 1907s # break; 1907s # case G_TYPE_STRING: 1907s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1907s # break; 1907s # case G_TYPE_VARIANT: 1907s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1907s # break; 1907s # default: 1907s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1907s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1907s # else 1907s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1907s # break; 1907s # } 1907s # return ret; 1907s # } 1907s # 1907s # static void 1907s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1907s # GClosure *closure, 1907s # GValue *return_value, 1907s # unsigned int n_param_values, 1907s # const GValue *param_values, 1907s # void *invocation_hint G_GNUC_UNUSED, 1907s # void *marshal_data) 1907s # { 1907s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1907s # (void *data1, 1907s # GDBusMethodInvocation *arg_method_invocation, 1907s # void *data2); 1907s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1907s # GCClosure *cc = (GCClosure*) closure; 1907s # void *data1, *data2; 1907s # gboolean v_return; 1907s # 1907s # g_return_if_fail (return_value != NULL); 1907s # g_return_if_fail (n_param_values == 2); 1907s # 1907s # if (G_CCLOSURE_SWAP_DATA (closure)) 1907s # { 1907s # data1 = closure->data; 1907s # data2 = g_value_peek_pointer (param_values + 0); 1907s # } 1907s # else 1907s # { 1907s # data1 = g_value_peek_pointer (param_values + 0); 1907s # data2 = closure->data; 1907s # } 1907s # 1907s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1907s # (marshal_data ? marshal_data : cc->callback); 1907s # 1907s # v_return = 1907s # callback (data1, 1907s # g_marshal_value_peek_object (param_values + 1), 1907s # data2); 1907s # 1907s # g_value_set_boolean (return_value, v_return); 1907s # } 1907s # 1907s # /* ------------------------------------------------------------------------ 1907s # * Code for interface org.project.UsefulInterface 1907s # * ------------------------------------------------------------------------ 1907s # */ 1907s # 1907s # /** 1907s # * SECTION:OrgProjectUsefulInterface 1907s # * @title: OrgProjectUsefulInterface 1907s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1907s # * 1907s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1907s # */ 1907s # 1907s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1907s # 1907s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_arg_y = 1907s # { 1907s # { 1907s # -1, 1907s # (gchar *) "arg_y", 1907s # (gchar *) "y", 1907s # NULL 1907s # }, 1907s # FALSE 1907s # }; 1907s # 1907s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_pointers[] = 1907s # { 1907s # &_org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_arg_y.parent_struct, 1907s # NULL 1907s # }; 1907s # 1907s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_y = 1907s # { 1907s # { 1907s # -1, 1907s # (gchar *) "SingleArgMethodY", 1907s # NULL, 1907s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_pointers, 1907s # NULL 1907s # }, 1907s # "handle-single-arg-method-y", 1907s # FALSE 1907s # }; 1907s # 1907s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1907s # { 1907s # &_org_project_useful_interface_method_info_single_arg_method_y.parent_struct, 1907s # NULL 1907s # }; 1907s # 1907s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1907s # { 1907s # { 1907s # -1, 1907s # (gchar *) "org.project.UsefulInterface", 1907s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1907s # NULL, 1907s # NULL, 1907s # NULL 1907s # }, 1907s # "org-project-useful-interface", 1907s # }; 1907s # 1907s # 1907s # /** 1907s # * org_project_useful_interface_interface_info: 1907s # * 1907s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1907s # * 1907s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1907s # */ 1907s # GDBusInterfaceInfo * 1907s # org_project_useful_interface_interface_info (void) 1907s # { 1907s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_override_properties: 1907s # * @klass: The class structure for a #GObject derived class. 1907s # * @property_id_begin: The property id to assign to the first overridden property. 1907s # * 1907s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1907s # * The properties are overridden in the order they are defined. 1907s # * 1907s # * Returns: The last property id. 1907s # */ 1907s # guint 1907s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1907s # { 1907s # return property_id_begin - 1; 1907s # } 1907s # 1907s # 1907s # inline static void 1907s # org_project_useful_interface_method_marshal_single_arg_method_y ( 1907s # GClosure *closure, 1907s # GValue *return_value, 1907s # unsigned int n_param_values, 1907s # const GValue *param_values, 1907s # void *invocation_hint, 1907s # void *marshal_data) 1907s # { 1907s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1907s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1907s # } 1907s # 1907s # 1907s # /** 1907s # * OrgProjectUsefulInterface: 1907s # * 1907s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1907s # */ 1907s # 1907s # /** 1907s # * OrgProjectUsefulInterfaceIface: 1907s # * @parent_iface: The parent interface. 1907s # * @handle_single_arg_method_y: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-y signal. 1907s # * 1907s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1907s # */ 1907s # 1907s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1907s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1907s # 1907s # static void 1907s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1907s # { 1907s # /* GObject signals for incoming D-Bus method calls: */ 1907s # /** 1907s # * OrgProjectUsefulInterface::handle-single-arg-method-y: 1907s # * @object: A #OrgProjectUsefulInterface. 1907s # * @invocation: A #GDBusMethodInvocation. 1907s # * 1907s # * Signal emitted when a remote caller is invoking the SingleArgMethodY() D-Bus method. 1907s # * 1907s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_y() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1907s # * 1907s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1907s # */ 1907s # g_signal_new ("handle-single-arg-method-y", 1907s # G_TYPE_FROM_INTERFACE (iface), 1907s # G_SIGNAL_RUN_LAST, 1907s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_y), 1907s # g_signal_accumulator_true_handled, 1907s # NULL, 1907s # org_project_useful_interface_method_marshal_single_arg_method_y, 1907s # G_TYPE_BOOLEAN, 1907s # 1, 1907s # G_TYPE_DBUS_METHOD_INVOCATION); 1907s # 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_call_single_arg_method_y: 1907s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1907s # * @cancellable: (nullable): A #GCancellable or %NULL. 1907s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1907s # * @user_data: User data to pass to @callback. 1907s # * 1907s # * Asynchronously invokes the SingleArgMethodY() D-Bus method on @proxy. 1907s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1907s # * You can then call org_project_useful_interface_call_single_arg_method_y_finish() to get the result of the operation. 1907s # * 1907s # * See org_project_useful_interface_call_single_arg_method_y_sync() for the synchronous, blocking version of this method. 1907s # */ 1907s # void 1907s # org_project_useful_interface_call_single_arg_method_y ( 1907s # OrgProjectUsefulInterface *proxy, 1907s # GCancellable *cancellable, 1907s # GAsyncReadyCallback callback, 1907s # gpointer user_data) 1907s # { 1907s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1907s # "SingleArgMethodY", 1907s # g_variant_new ("()"), 1907s # G_DBUS_CALL_FLAGS_NONE, 1907s # -1, 1907s # cancellable, 1907s # callback, 1907s # user_data); 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_call_single_arg_method_y_finish: 1907s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1907s # * @out_arg_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1907s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_y(). 1907s # * @error: Return location for error or %NULL. 1907s # * 1907s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_y(). 1907s # * 1907s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1907s # */ 1907s # gboolean 1907s # org_project_useful_interface_call_single_arg_method_y_finish ( 1907s # OrgProjectUsefulInterface *proxy, 1907s # guchar *out_arg_y, 1907s # GAsyncResult *res, 1907s # GError **error) 1907s # { 1907s # GVariant *_ret; 1907s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1907s # if (_ret == NULL) 1907s # goto _out; 1907s # g_variant_get (_ret, 1907s # "(y)", 1907s # out_arg_y); 1907s # g_variant_unref (_ret); 1907s # _out: 1907s # return _ret != NULL; 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_call_single_arg_method_y_sync: 1907s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1907s # * @out_arg_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1907s # * @cancellable: (nullable): A #GCancellable or %NULL. 1907s # * @error: Return location for error or %NULL. 1907s # * 1907s # * Synchronously invokes the SingleArgMethodY() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1907s # * 1907s # * See org_project_useful_interface_call_single_arg_method_y() for the asynchronous version of this method. 1907s # * 1907s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1907s # */ 1907s # gboolean 1907s # org_project_useful_interface_call_single_arg_method_y_sync ( 1907s # OrgProjectUsefulInterface *proxy, 1907s # guchar *out_arg_y, 1907s # GCancellable *cancellable, 1907s # GError **error) 1907s # { 1907s # GVariant *_ret; 1907s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1907s # "SingleArgMethodY", 1907s # g_variant_new ("()"), 1907s # G_DBUS_CALL_FLAGS_NONE, 1907s # -1, 1907s # cancellable, 1907s # error); 1907s # if (_ret == NULL) 1907s # goto _out; 1907s # g_variant_get (_ret, 1907s # "(y)", 1907s # out_arg_y); 1907s # g_variant_unref (_ret); 1907s # _out: 1907s # return _ret != NULL; 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_complete_single_arg_method_y: 1907s # * @object: A #OrgProjectUsefulInterface. 1907s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1907s # * @arg_y: Parameter to return. 1907s # * 1907s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodY() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1907s # * 1907s # * This method will free @invocation, you cannot use it afterwards. 1907s # */ 1907s # void 1907s # org_project_useful_interface_complete_single_arg_method_y ( 1907s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1907s # GDBusMethodInvocation *invocation, 1907s # guchar arg_y) 1907s # { 1907s # g_dbus_method_invocation_return_value (invocation, 1907s # g_variant_new ("(y)", 1907s # arg_y)); 1907s # } 1907s # 1907s # /* ------------------------------------------------------------------------ */ 1907s # 1907s # /** 1907s # * OrgProjectUsefulInterfaceProxy: 1907s # * 1907s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1907s # */ 1907s # 1907s # /** 1907s # * OrgProjectUsefulInterfaceProxyClass: 1907s # * @parent_class: The parent class. 1907s # * 1907s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1907s # */ 1907s # 1907s # struct _OrgProjectUsefulInterfaceProxyPrivate 1907s # { 1907s # GData *qdata; 1907s # }; 1907s # 1907s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1907s # 1907s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1907s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1907s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1907s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1907s # 1907s # #else 1907s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1907s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1907s # 1907s # #endif 1907s # static void 1907s # org_project_useful_interface_proxy_finalize (GObject *object) 1907s # { 1907s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1907s # g_datalist_clear (&proxy->priv->qdata); 1907s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1907s # } 1907s # 1907s # static void 1907s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1907s # guint prop_id G_GNUC_UNUSED, 1907s # GValue *value G_GNUC_UNUSED, 1907s # GParamSpec *pspec G_GNUC_UNUSED) 1907s # { 1907s # } 1907s # 1907s # static void 1907s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1907s # guint prop_id G_GNUC_UNUSED, 1907s # const GValue *value G_GNUC_UNUSED, 1907s # GParamSpec *pspec G_GNUC_UNUSED) 1907s # { 1907s # } 1907s # 1907s # static void 1907s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1907s # const gchar *sender_name G_GNUC_UNUSED, 1907s # const gchar *signal_name, 1907s # GVariant *parameters) 1907s # { 1907s # _ExtendedGDBusSignalInfo *info; 1907s # GVariantIter iter; 1907s # GVariant *child; 1907s # GValue *paramv; 1907s # gsize num_params; 1907s # gsize n; 1907s # guint signal_id; 1907s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1907s # if (info == NULL) 1907s # return; 1907s # num_params = g_variant_n_children (parameters); 1907s # paramv = g_new0 (GValue, num_params + 1); 1907s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1907s # g_value_set_object (¶mv[0], proxy); 1907s # g_variant_iter_init (&iter, parameters); 1907s # n = 1; 1907s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1907s # { 1907s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1907s # if (arg_info->use_gvariant) 1907s # { 1907s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1907s # g_value_set_variant (¶mv[n], child); 1907s # n++; 1907s # } 1907s # else 1907s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1907s # g_variant_unref (child); 1907s # } 1907s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1907s # g_signal_emitv (paramv, signal_id, 0, NULL); 1907s # for (n = 0; n < num_params + 1; n++) 1907s # g_value_unset (¶mv[n]); 1907s # g_free (paramv); 1907s # } 1907s # 1907s # static void 1907s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1907s # GVariant *changed_properties, 1907s # const gchar *const *invalidated_properties) 1907s # { 1907s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1907s # guint n; 1907s # const gchar *key; 1907s # GVariantIter *iter; 1907s # _ExtendedGDBusPropertyInfo *info; 1907s # g_variant_get (changed_properties, "a{sv}", &iter); 1907s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1907s # { 1907s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1907s # g_datalist_remove_data (&proxy->priv->qdata, key); 1907s # if (info != NULL) 1907s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1907s # } 1907s # g_variant_iter_free (iter); 1907s # for (n = 0; invalidated_properties[n] != NULL; n++) 1907s # { 1907s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1907s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1907s # if (info != NULL) 1907s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1907s # } 1907s # } 1907s # 1907s # static void 1907s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1907s # { 1907s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1907s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1907s # #else 1907s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1907s # #endif 1907s # 1907s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1907s # } 1907s # 1907s # static void 1907s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1907s # { 1907s # GObjectClass *gobject_class; 1907s # GDBusProxyClass *proxy_class; 1907s # 1907s # gobject_class = G_OBJECT_CLASS (klass); 1907s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1907s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1907s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1907s # 1907s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1907s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1907s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1907s # 1907s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1907s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1907s # #endif 1907s # } 1907s # 1907s # static void 1907s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1907s # { 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_proxy_new: 1907s # * @connection: A #GDBusConnection. 1907s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1907s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1907s # * @object_path: An object path. 1907s # * @cancellable: (nullable): A #GCancellable or %NULL. 1907s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1907s # * @user_data: User data to pass to @callback. 1907s # * 1907s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1907s # * 1907s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1907s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1907s # * 1907s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1907s # */ 1907s # void 1907s # org_project_useful_interface_proxy_new ( 1907s # GDBusConnection *connection, 1907s # GDBusProxyFlags flags, 1907s # const gchar *name, 1907s # const gchar *object_path, 1907s # GCancellable *cancellable, 1907s # GAsyncReadyCallback callback, 1907s # gpointer user_data) 1907s # { 1907s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_proxy_new_finish: 1907s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1907s # * @error: Return location for error or %NULL 1907s # * 1907s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1907s # * 1907s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1907s # */ 1907s # OrgProjectUsefulInterface * 1907s # org_project_useful_interface_proxy_new_finish ( 1907s # GAsyncResult *res, 1907s # GError **error) 1907s # { 1907s # GObject *ret; 1907s # GObject *source_object; 1907s # source_object = g_async_result_get_source_object (res); 1907s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1907s # g_object_unref (source_object); 1907s # if (ret != NULL) 1907s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1907s # else 1907s # return NULL; 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_proxy_new_sync: 1907s # * @connection: A #GDBusConnection. 1907s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1907s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1907s # * @object_path: An object path. 1907s # * @cancellable: (nullable): A #GCancellable or %NULL. 1907s # * @error: Return location for error or %NULL 1907s # * 1907s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1907s # * 1907s # * The calling thread is blocked until a reply is received. 1907s # * 1907s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1907s # * 1907s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1907s # */ 1907s # OrgProjectUsefulInterface * 1907s # org_project_useful_interface_proxy_new_sync ( 1907s # GDBusConnection *connection, 1907s # GDBusProxyFlags flags, 1907s # const gchar *name, 1907s # const gchar *object_path, 1907s # GCancellable *cancellable, 1907s # GError **error) 1907s # { 1907s # GInitable *ret; 1907s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1907s # if (ret != NULL) 1907s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1907s # else 1907s # return NULL; 1907s # } 1907s # 1907s # 1907s # /** 1907s # * org_project_useful_interface_proxy_new_for_bus: 1907s # * @bus_type: A #GBusType. 1907s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1907s # * @name: A bus name (well-known or unique). 1907s # * @object_path: An object path. 1907s # * @cancellable: (nullable): A #GCancellable or %NULL. 1907s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1907s # * @user_data: User data to pass to @callback. 1907s # * 1907s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1907s # * 1907s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1907s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1907s # * 1907s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1907s # */ 1907s # void 1907s # org_project_useful_interface_proxy_new_for_bus ( 1907s # GBusType bus_type, 1907s # GDBusProxyFlags flags, 1907s # const gchar *name, 1907s # const gchar *object_path, 1907s # GCancellable *cancellable, 1907s # GAsyncReadyCallback callback, 1907s # gpointer user_data) 1907s # { 1907s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_proxy_new_for_bus_finish: 1907s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1907s # * @error: Return location for error or %NULL 1907s # * 1907s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1907s # * 1907s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1907s # */ 1907s # OrgProjectUsefulInterface * 1907s # org_project_useful_interface_proxy_new_for_bus_finish ( 1907s # GAsyncResult *res, 1907s # GError **error) 1907s # { 1907s # GObject *ret; 1907s # GObject *source_object; 1907s # source_object = g_async_result_get_source_object (res); 1907s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1907s # g_object_unref (source_object); 1907s # if (ret != NULL) 1907s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1907s # else 1907s # return NULL; 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_proxy_new_for_bus_sync: 1907s # * @bus_type: A #GBusType. 1907s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1907s # * @name: A bus name (well-known or unique). 1907s # * @object_path: An object path. 1907s # * @cancellable: (nullable): A #GCancellable or %NULL. 1907s # * @error: Return location for error or %NULL 1907s # * 1907s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1907s # * 1907s # * The calling thread is blocked until a reply is received. 1907s # * 1907s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1907s # * 1907s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1907s # */ 1907s # OrgProjectUsefulInterface * 1907s # org_project_useful_interface_proxy_new_for_bus_sync ( 1907s # GBusType bus_type, 1907s # GDBusProxyFlags flags, 1907s # const gchar *name, 1907s # const gchar *object_path, 1907s # GCancellable *cancellable, 1907s # GError **error) 1907s # { 1907s # GInitable *ret; 1907s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1907s # if (ret != NULL) 1907s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1907s # else 1907s # return NULL; 1907s # } 1907s # 1907s # 1907s # /* ------------------------------------------------------------------------ */ 1907s # 1907s # /** 1907s # * OrgProjectUsefulInterfaceSkeleton: 1907s # * 1907s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1907s # */ 1907s # 1907s # /** 1907s # * OrgProjectUsefulInterfaceSkeletonClass: 1907s # * @parent_class: The parent class. 1907s # * 1907s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1907s # */ 1907s # 1907s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1907s # { 1907s # GValue *properties; 1907s # GList *changed_properties; 1907s # GSource *changed_properties_idle_source; 1907s # GMainContext *context; 1907s # GMutex lock; 1907s # }; 1907s # 1907s # static void 1907s # _org_project_useful_interface_skeleton_handle_method_call ( 1907s # GDBusConnection *connection G_GNUC_UNUSED, 1907s # const gchar *sender G_GNUC_UNUSED, 1907s # const gchar *object_path G_GNUC_UNUSED, 1907s # const gchar *interface_name, 1907s # const gchar *method_name, 1907s # GVariant *parameters, 1907s # GDBusMethodInvocation *invocation, 1907s # gpointer user_data) 1907s # { 1907s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1907s # _ExtendedGDBusMethodInfo *info; 1907s # GVariantIter iter; 1907s # GVariant *child; 1907s # GValue *paramv; 1907s # gsize num_params; 1907s # guint num_extra; 1907s # gsize n; 1907s # guint signal_id; 1907s # GValue return_value = G_VALUE_INIT; 1907s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1907s # g_assert (info != NULL); 1907s # num_params = g_variant_n_children (parameters); 1907s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1907s # n = 0; 1907s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1907s # g_value_set_object (¶mv[n++], skeleton); 1907s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1907s # g_value_set_object (¶mv[n++], invocation); 1907s # if (info->pass_fdlist) 1907s # { 1907s # #ifdef G_OS_UNIX 1907s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1907s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1907s # #else 1907s # g_assert_not_reached (); 1907s # #endif 1907s # } 1907s # g_variant_iter_init (&iter, parameters); 1907s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1907s # { 1907s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1907s # if (arg_info->use_gvariant) 1907s # { 1907s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1907s # g_value_set_variant (¶mv[n], child); 1907s # n++; 1907s # } 1907s # else 1907s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1907s # g_variant_unref (child); 1907s # } 1907s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1907s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1907s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1907s # if (!g_value_get_boolean (&return_value)) 1907s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1907s # g_value_unset (&return_value); 1907s # for (n = 0; n < num_params + num_extra; n++) 1907s # g_value_unset (¶mv[n]); 1907s # g_free (paramv); 1907s # } 1907s # 1907s # static GVariant * 1907s # _org_project_useful_interface_skeleton_handle_get_property ( 1907s # GDBusConnection *connection G_GNUC_UNUSED, 1907s # const gchar *sender G_GNUC_UNUSED, 1907s # const gchar *object_path G_GNUC_UNUSED, 1907s # const gchar *interface_name G_GNUC_UNUSED, 1907s # const gchar *property_name, 1907s # GError **error, 1907s # gpointer user_data) 1907s # { 1907s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1907s # GValue value = G_VALUE_INIT; 1907s # GParamSpec *pspec; 1907s # _ExtendedGDBusPropertyInfo *info; 1907s # GVariant *ret; 1907s # ret = NULL; 1907s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1907s # g_assert (info != NULL); 1907s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1907s # if (pspec == NULL) 1907s # { 1907s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1907s # } 1907s # else 1907s # { 1907s # g_value_init (&value, pspec->value_type); 1907s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1907s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1907s # g_value_unset (&value); 1907s # } 1907s # return ret; 1907s # } 1907s # 1907s # static gboolean 1907s # _org_project_useful_interface_skeleton_handle_set_property ( 1907s # GDBusConnection *connection G_GNUC_UNUSED, 1907s # const gchar *sender G_GNUC_UNUSED, 1907s # const gchar *object_path G_GNUC_UNUSED, 1907s # const gchar *interface_name G_GNUC_UNUSED, 1907s # const gchar *property_name, 1907s # GVariant *variant, 1907s # GError **error, 1907s # gpointer user_data) 1907s # { 1907s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1907s # GValue value = G_VALUE_INIT; 1907s # GParamSpec *pspec; 1907s # _ExtendedGDBusPropertyInfo *info; 1907s # gboolean ret; 1907s # ret = FALSE; 1907s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1907s # g_assert (info != NULL); 1907s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1907s # if (pspec == NULL) 1907s # { 1907s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1907s # } 1907s # else 1907s # { 1907s # if (info->use_gvariant) 1907s # g_value_set_variant (&value, variant); 1907s # else 1907s # g_dbus_gvariant_to_gvalue (variant, &value); 1907s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1907s # g_value_unset (&value); 1907s # ret = TRUE; 1907s # } 1907s # return ret; 1907s # } 1907s # 1907s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1907s # { 1907s # _org_project_useful_interface_skeleton_handle_method_call, 1907s # _org_project_useful_interface_skeleton_handle_get_property, 1907s # _org_project_useful_interface_skeleton_handle_set_property, 1907s # {NULL} 1907s # }; 1907s # 1907s # static GDBusInterfaceInfo * 1907s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1907s # { 1907s # return org_project_useful_interface_interface_info (); 1907s # } 1907s # 1907s # static GDBusInterfaceVTable * 1907s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1907s # { 1907s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1907s # } 1907s # 1907s # static GVariant * 1907s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1907s # { 1907s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1907s # 1907s # GVariantBuilder builder; 1907s # guint n; 1907s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1907s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1907s # #else 1907s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1907s # #endif 1907s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1907s # goto out; 1907s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1907s # { 1907s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1907s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1907s # { 1907s # GVariant *value; 1907s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1907s # if (value != NULL) 1907s # { 1907s # g_variant_take_ref (value); 1907s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1907s # g_variant_unref (value); 1907s # } 1907s # } 1907s # } 1907s # out: 1907s # return g_variant_builder_end (&builder); 1907s # } 1907s # 1907s # static void 1907s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1907s # { 1907s # } 1907s # 1907s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1907s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1907s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1907s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1907s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1907s # 1907s # #else 1907s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1907s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1907s # 1907s # #endif 1907s # static void 1907s # org_project_useful_interface_skeleton_finalize (GObject *object) 1907s # { 1907s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1907s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1907s # if (skeleton->priv->changed_properties_idle_source != NULL) 1907s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1907s # g_main_context_unref (skeleton->priv->context); 1907s # g_mutex_clear (&skeleton->priv->lock); 1907s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1907s # } 1907s # 1907s # static void 1907s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1907s # { 1907s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1907s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1907s # #else 1907s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1907s # #endif 1907s # 1907s # g_mutex_init (&skeleton->priv->lock); 1907s # skeleton->priv->context = g_main_context_ref_thread_default (); 1907s # } 1907s # 1907s # static void 1907s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1907s # { 1907s # GObjectClass *gobject_class; 1907s # GDBusInterfaceSkeletonClass *skeleton_class; 1907s # 1907s # gobject_class = G_OBJECT_CLASS (klass); 1907s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1907s # 1907s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1907s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1907s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1907s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1907s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1907s # 1907s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1907s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1907s # #endif 1907s # } 1907s # 1907s # static void 1907s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1907s # { 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_skeleton_new: 1907s # * 1907s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1907s # * 1907s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1907s # */ 1907s # OrgProjectUsefulInterface * 1907s # org_project_useful_interface_skeleton_new (void) 1907s # { 1907s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1907s # } 1907s # Error: 1907s # 1907s # /tmp/tmpei14pw7z/tmpe7xluj1e.xml: 1907s # 1907s # 1907s # 1907s # 1907s # 1907s # 1907s # 1907s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpei14pw7z/tmpe7xluj1e.xml', '--output', '-', '--body'] 1907s # Return code: 0 1907s # Output: 1907s # /* 1907s # * This file is generated by gdbus-codegen, do not modify it. 1907s # * 1907s # * The license of this code is the same as for the D-Bus interface description 1907s # * it was derived from. Note that it links to GLib, so must comply with the 1907s # * LGPL linking clauses. 1907s # */ 1907s # 1907s # #ifdef HAVE_CONFIG_H 1907s # # include "config.h" 1907s # #endif 1907s # 1907s # #include 1907s # #ifdef G_OS_UNIX 1907s # # include 1907s # #endif 1907s # 1907s # #ifdef G_ENABLE_DEBUG 1907s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1907s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1907s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1907s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1907s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1907s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1907s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1907s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1907s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1907s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1907s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1907s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1907s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1907s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1907s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1907s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1907s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1907s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1907s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1907s # #else /* !G_ENABLE_DEBUG */ 1907s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1907s # * Do not access GValues directly in your code. Instead, use the 1907s # * g_value_get_*() functions 1907s # */ 1907s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1907s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1907s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1907s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1907s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1907s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1907s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1907s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1907s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1907s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1907s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1907s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1907s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1907s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1907s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1907s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1907s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1907s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1907s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1907s # #endif /* !G_ENABLE_DEBUG */ 1907s # 1907s # typedef struct 1907s # { 1907s # GDBusArgInfo parent_struct; 1907s # gboolean use_gvariant; 1907s # } _ExtendedGDBusArgInfo; 1907s # 1907s # typedef struct 1907s # { 1907s # GDBusMethodInfo parent_struct; 1907s # const gchar *signal_name; 1907s # gboolean pass_fdlist; 1907s # } _ExtendedGDBusMethodInfo; 1907s # 1907s # typedef struct 1907s # { 1907s # GDBusSignalInfo parent_struct; 1907s # const gchar *signal_name; 1907s # } _ExtendedGDBusSignalInfo; 1907s # 1907s # typedef struct 1907s # { 1907s # GDBusPropertyInfo parent_struct; 1907s # const gchar *hyphen_name; 1907s # guint use_gvariant : 1; 1907s # guint emits_changed_signal : 1; 1907s # } _ExtendedGDBusPropertyInfo; 1907s # 1907s # typedef struct 1907s # { 1907s # GDBusInterfaceInfo parent_struct; 1907s # const gchar *hyphen_name; 1907s # } _ExtendedGDBusInterfaceInfo; 1907s # 1907s # typedef struct 1907s # { 1907s # const _ExtendedGDBusPropertyInfo *info; 1907s # guint prop_id; 1907s # GValue orig_value; /* the value before the change */ 1907s # } ChangedProperty; 1907s # 1907s # static void 1907s # _changed_property_free (ChangedProperty *data) 1907s # { 1907s # g_value_unset (&data->orig_value); 1907s # g_free (data); 1907s # } 1907s # 1907s # static gboolean 1907s # _g_strv_equal0 (gchar **a, gchar **b) 1907s # { 1907s # gboolean ret = FALSE; 1907s # guint n; 1907s # if (a == NULL && b == NULL) 1907s # { 1907s # ret = TRUE; 1907s # goto out; 1907s # } 1907s # if (a == NULL || b == NULL) 1907s # goto out; 1907s # if (g_strv_length (a) != g_strv_length (b)) 1907s # goto out; 1907s # for (n = 0; a[n] != NULL; n++) 1907s # if (g_strcmp0 (a[n], b[n]) != 0) 1907s # goto out; 1907s # ret = TRUE; 1907s # out: 1907s # return ret; 1907s # } 1907s # 1907s # static gboolean 1907s # _g_variant_equal0 (GVariant *a, GVariant *b) 1907s # { 1907s # gboolean ret = FALSE; 1907s # if (a == NULL && b == NULL) 1907s # { 1907s # ret = TRUE; 1907s # goto out; 1907s # } 1907s # if (a == NULL || b == NULL) 1907s # goto out; 1907s # ret = g_variant_equal (a, b); 1907s # out: 1907s # return ret; 1907s # } 1907s # 1907s # G_GNUC_UNUSED static gboolean 1907s # _g_value_equal (const GValue *a, const GValue *b) 1907s # { 1907s # gboolean ret = FALSE; 1907s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1907s # switch (G_VALUE_TYPE (a)) 1907s # { 1907s # case G_TYPE_BOOLEAN: 1907s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1907s # break; 1907s # case G_TYPE_UCHAR: 1907s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1907s # break; 1907s # case G_TYPE_INT: 1907s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1907s # break; 1907s # case G_TYPE_UINT: 1907s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1907s # break; 1907s # case G_TYPE_INT64: 1907s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1907s # break; 1907s # case G_TYPE_UINT64: 1907s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1907s # break; 1907s # case G_TYPE_DOUBLE: 1907s # { 1907s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1907s # gdouble da = g_value_get_double (a); 1907s # gdouble db = g_value_get_double (b); 1907s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1907s # } 1907s # break; 1907s # case G_TYPE_STRING: 1907s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1907s # break; 1907s # case G_TYPE_VARIANT: 1907s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1907s # break; 1907s # default: 1907s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1907s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1907s # else 1907s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1907s # break; 1907s # } 1907s # return ret; 1907s # } 1907s # 1907s # static void 1907s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1907s # GClosure *closure, 1907s # GValue *return_value, 1907s # unsigned int n_param_values, 1907s # const GValue *param_values, 1907s # void *invocation_hint G_GNUC_UNUSED, 1907s # void *marshal_data) 1907s # { 1907s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1907s # (void *data1, 1907s # GDBusMethodInvocation *arg_method_invocation, 1907s # void *data2); 1907s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1907s # GCClosure *cc = (GCClosure*) closure; 1907s # void *data1, *data2; 1907s # gboolean v_return; 1907s # 1907s # g_return_if_fail (return_value != NULL); 1907s # g_return_if_fail (n_param_values == 2); 1907s # 1907s # if (G_CCLOSURE_SWAP_DATA (closure)) 1907s # { 1907s # data1 = closure->data; 1907s # data2 = g_value_peek_pointer (param_values + 0); 1907s # } 1907s # else 1907s # { 1907s # data1 = g_value_peek_pointer (param_values + 0); 1907s # data2 = closure->data; 1907s # } 1907s # 1907s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1907s # (marshal_data ? marshal_data : cc->callback); 1907s # 1907s # v_return = 1907s # callback (data1, 1907s # g_marshal_value_peek_object (param_values + 1), 1907s # data2); 1907s # 1907s # g_value_set_boolean (return_value, v_return); 1907s # } 1907s # 1907s # /* ------------------------------------------------------------------------ 1907s # * Code for interface org.project.UsefulInterface 1907s # * ------------------------------------------------------------------------ 1907s # */ 1907s # 1907s # /** 1907s # * SECTION:OrgProjectUsefulInterface 1907s # * @title: OrgProjectUsefulInterface 1907s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1907s # * 1907s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1907s # */ 1907s # 1907s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1907s # 1907s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_arg_n = 1907s # { 1907s # { 1907s # -1, 1907s # (gchar *) "arg_n", 1907s # (gchar *) "n", 1907s # NULL 1907s # }, 1907s # FALSE 1907s # }; 1907s # 1907s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_pointers[] = 1907s # { 1907s # &_org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_arg_n.parent_struct, 1907s # NULL 1907s # }; 1907s # 1907s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_n = 1907s # { 1907s # { 1907s # -1, 1907s # (gchar *) "SingleArgMethodN", 1907s # NULL, 1907s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_pointers, 1907s # NULL 1907s # }, 1907s # "handle-single-arg-method-n", 1907s # FALSE 1907s # }; 1907s # 1907s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1907s # { 1907s # &_org_project_useful_interface_method_info_single_arg_method_n.parent_struct, 1907s # NULL 1907s # }; 1907s # 1907s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1907s # { 1907s # { 1907s # -1, 1907s # (gchar *) "org.project.UsefulInterface", 1907s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1907s # NULL, 1907s # NULL, 1907s # NULL 1907s # }, 1907s # "org-project-useful-interface", 1907s # }; 1907s # 1907s # 1907s # /** 1907s # * org_project_useful_interface_interface_info: 1907s # * 1907s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1907s # * 1907s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1907s # */ 1907s # GDBusInterfaceInfo * 1907s # org_project_useful_interface_interface_info (void) 1907s # { 1907s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_override_properties: 1907s # * @klass: The class structure for a #GObject derived class. 1907s # * @property_id_begin: The property id to assign to the first overridden property. 1907s # * 1907s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1907s # * The properties are overridden in the order they are defined. 1907s # * 1907s # * Returns: The last property id. 1907s # */ 1907s # guint 1907s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1907s # { 1907s # return property_id_begin - 1; 1907s # } 1907s # 1907s # 1907s # inline static void 1907s # org_project_useful_interface_method_marshal_single_arg_method_n ( 1907s # GClosure *closure, 1907s # GValue *return_value, 1907s # unsigned int n_param_values, 1907s # const GValue *param_values, 1907s # void *invocation_hint, 1907s # void *marshal_data) 1907s # { 1907s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1907s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1907s # } 1907s # 1907s # 1907s # /** 1907s # * OrgProjectUsefulInterface: 1907s # * 1907s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1907s # */ 1907s # 1907s # /** 1907s # * OrgProjectUsefulInterfaceIface: 1907s # * @parent_iface: The parent interface. 1907s # * @handle_single_arg_method_n: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-n signal. 1907s # * 1907s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1907s # */ 1907s # 1907s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1907s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1907s # 1907s # static void 1907s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1907s # { 1907s # /* GObject signals for incoming D-Bus method calls: */ 1907s # /** 1907s # * OrgProjectUsefulInterface::handle-single-arg-method-n: 1907s # * @object: A #OrgProjectUsefulInterface. 1907s # * @invocation: A #GDBusMethodInvocation. 1907s # * 1907s # * Signal emitted when a remote caller is invoking the SingleArgMethodN() D-Bus method. 1907s # * 1907s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_n() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1907s # * 1907s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1907s # */ 1907s # g_signal_new ("handle-single-arg-method-n", 1907s # G_TYPE_FROM_INTERFACE (iface), 1907s # G_SIGNAL_RUN_LAST, 1907s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_n), 1907s # g_signal_accumulator_true_handled, 1907s # NULL, 1907s # org_project_useful_interface_method_marshal_single_arg_method_n, 1907s # G_TYPE_BOOLEAN, 1907s # 1, 1907s # G_TYPE_DBUS_METHOD_INVOCATION); 1907s # 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_call_single_arg_method_n: 1907s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1907s # * @cancellable: (nullable): A #GCancellable or %NULL. 1907s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1907s # * @user_data: User data to pass to @callback. 1907s # * 1907s # * Asynchronously invokes the SingleArgMethodN() D-Bus method on @proxy. 1907s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1907s # * You can then call org_project_useful_interface_call_single_arg_method_n_finish() to get the result of the operation. 1907s # * 1907s # * See org_project_useful_interface_call_single_arg_method_n_sync() for the synchronous, blocking version of this method. 1907s # */ 1907s # void 1907s # org_project_useful_interface_call_single_arg_method_n ( 1907s # OrgProjectUsefulInterface *proxy, 1907s # GCancellable *cancellable, 1907s # GAsyncReadyCallback callback, 1907s # gpointer user_data) 1907s # { 1907s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1907s # "SingleArgMethodN", 1907s # g_variant_new ("()"), 1907s # G_DBUS_CALL_FLAGS_NONE, 1907s # -1, 1907s # cancellable, 1907s # callback, 1907s # user_data); 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_call_single_arg_method_n_finish: 1907s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1907s # * @out_arg_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1907s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_n(). 1907s # * @error: Return location for error or %NULL. 1907s # * 1907s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_n(). 1907s # * 1907s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1907s # */ 1907s # gboolean 1907s # org_project_useful_interface_call_single_arg_method_n_finish ( 1907s # OrgProjectUsefulInterface *proxy, 1907s # gint16 *out_arg_n, 1907s # GAsyncResult *res, 1907s # GError **error) 1907s # { 1907s # GVariant *_ret; 1907s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1907s # if (_ret == NULL) 1907s # goto _out; 1907s # g_variant_get (_ret, 1907s # "(n)", 1907s # out_arg_n); 1907s # g_variant_unref (_ret); 1907s # _out: 1907s # return _ret != NULL; 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_call_single_arg_method_n_sync: 1907s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1907s # * @out_arg_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1907s # * @cancellable: (nullable): A #GCancellable or %NULL. 1907s # * @error: Return location for error or %NULL. 1907s # * 1907s # * Synchronously invokes the SingleArgMethodN() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1907s # * 1907s # * See org_project_useful_interface_call_single_arg_method_n() for the asynchronous version of this method. 1907s # * 1907s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1907s # */ 1907s # gboolean 1907s # org_project_useful_interface_call_single_arg_method_n_sync ( 1907s # OrgProjectUsefulInterface *proxy, 1907s # gint16 *out_arg_n, 1907s # GCancellable *cancellable, 1907s # GError **error) 1907s # { 1907s # GVariant *_ret; 1907s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1907s # "SingleArgMethodN", 1907s # g_variant_new ("()"), 1907s # G_DBUS_CALL_FLAGS_NONE, 1907s # -1, 1907s # cancellable, 1907s # error); 1907s # if (_ret == NULL) 1907s # goto _out; 1907s # g_variant_get (_ret, 1907s # "(n)", 1907s # out_arg_n); 1907s # g_variant_unref (_ret); 1907s # _out: 1907s # return _ret != NULL; 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_complete_single_arg_method_n: 1907s # * @object: A #OrgProjectUsefulInterface. 1907s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1907s # * @arg_n: Parameter to return. 1907s # * 1907s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodN() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1907s # * 1907s # * This method will free @invocation, you cannot use it afterwards. 1907s # */ 1907s # void 1907s # org_project_useful_interface_complete_single_arg_method_n ( 1907s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1907s # GDBusMethodInvocation *invocation, 1907s # gint16 arg_n) 1907s # { 1907s # g_dbus_method_invocation_return_value (invocation, 1907s # g_variant_new ("(n)", 1907s # arg_n)); 1907s # } 1907s # 1907s # /* ------------------------------------------------------------------------ */ 1907s # 1907s # /** 1907s # * OrgProjectUsefulInterfaceProxy: 1907s # * 1907s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1907s # */ 1907s # 1907s # /** 1907s # * OrgProjectUsefulInterfaceProxyClass: 1907s # * @parent_class: The parent class. 1907s # * 1907s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1907s # */ 1907s # 1907s # struct _OrgProjectUsefulInterfaceProxyPrivate 1907s # { 1907s # GData *qdata; 1907s # }; 1907s # 1907s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1907s # 1907s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1907s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1907s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1907s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1907s # 1907s # #else 1907s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1907s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1907s # 1907s # #endif 1907s # static void 1907s # org_project_useful_interface_proxy_finalize (GObject *object) 1907s # { 1907s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1907s # g_datalist_clear (&proxy->priv->qdata); 1907s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1907s # } 1907s # 1907s # static void 1907s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1907s # guint prop_id G_GNUC_UNUSED, 1907s # GValue *value G_GNUC_UNUSED, 1907s # GParamSpec *pspec G_GNUC_UNUSED) 1907s # { 1907s # } 1907s # 1907s # static void 1907s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1907s # guint prop_id G_GNUC_UNUSED, 1907s # const GValue *value G_GNUC_UNUSED, 1907s # GParamSpec *pspec G_GNUC_UNUSED) 1907s # { 1907s # } 1907s # 1907s # static void 1907s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1907s # const gchar *sender_name G_GNUC_UNUSED, 1907s # const gchar *signal_name, 1907s # GVariant *parameters) 1907s # { 1907s # _ExtendedGDBusSignalInfo *info; 1907s # GVariantIter iter; 1907s # GVariant *child; 1907s # GValue *paramv; 1907s # gsize num_params; 1907s # gsize n; 1907s # guint signal_id; 1907s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1907s # if (info == NULL) 1907s # return; 1907s # num_params = g_variant_n_children (parameters); 1907s # paramv = g_new0 (GValue, num_params + 1); 1907s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1907s # g_value_set_object (¶mv[0], proxy); 1907s # g_variant_iter_init (&iter, parameters); 1907s # n = 1; 1907s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1907s # { 1907s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1907s # if (arg_info->use_gvariant) 1907s # { 1907s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1907s # g_value_set_variant (¶mv[n], child); 1907s # n++; 1907s # } 1907s # else 1907s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1907s # g_variant_unref (child); 1907s # } 1907s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1907s # g_signal_emitv (paramv, signal_id, 0, NULL); 1907s # for (n = 0; n < num_params + 1; n++) 1907s # g_value_unset (¶mv[n]); 1907s # g_free (paramv); 1907s # } 1907s # 1907s # static void 1907s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1907s # GVariant *changed_properties, 1907s # const gchar *const *invalidated_properties) 1907s # { 1907s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1907s # guint n; 1907s # const gchar *key; 1907s # GVariantIter *iter; 1907s # _ExtendedGDBusPropertyInfo *info; 1907s # g_variant_get (changed_properties, "a{sv}", &iter); 1907s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1907s # { 1907s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1907s # g_datalist_remove_data (&proxy->priv->qdata, key); 1907s # if (info != NULL) 1907s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1907s # } 1907s # g_variant_iter_free (iter); 1907s # for (n = 0; invalidated_properties[n] != NULL; n++) 1907s # { 1907s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1907s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1907s # if (info != NULL) 1907s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1907s # } 1907s # } 1907s # 1907s # static void 1907s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1907s # { 1907s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1907s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1907s # #else 1907s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1907s # #endif 1907s # 1907s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1907s # } 1907s # 1907s # static void 1907s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1907s # { 1907s # GObjectClass *gobject_class; 1907s # GDBusProxyClass *proxy_class; 1907s # 1907s # gobject_class = G_OBJECT_CLASS (klass); 1907s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1907s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1907s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1907s # 1907s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1907s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1907s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1907s # 1907s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1907s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1907s # #endif 1907s # } 1907s # 1907s # static void 1907s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1907s # { 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_proxy_new: 1907s # * @connection: A #GDBusConnection. 1907s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1907s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1907s # * @object_path: An object path. 1907s # * @cancellable: (nullable): A #GCancellable or %NULL. 1907s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1907s # * @user_data: User data to pass to @callback. 1907s # * 1907s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1907s # * 1907s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1907s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1907s # * 1907s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1907s # */ 1907s # void 1907s # org_project_useful_interface_proxy_new ( 1907s # GDBusConnection *connection, 1907s # GDBusProxyFlags flags, 1907s # const gchar *name, 1907s # const gchar *object_path, 1907s # GCancellable *cancellable, 1907s # GAsyncReadyCallback callback, 1907s # gpointer user_data) 1907s # { 1907s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_proxy_new_finish: 1907s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1907s # * @error: Return location for error or %NULL 1907s # * 1907s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1907s # * 1907s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1907s # */ 1907s # OrgProjectUsefulInterface * 1907s # org_project_useful_interface_proxy_new_finish ( 1907s # GAsyncResult *res, 1907s # GError **error) 1907s # { 1907s # GObject *ret; 1907s # GObject *source_object; 1907s # source_object = g_async_result_get_source_object (res); 1907s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1907s # g_object_unref (source_object); 1907s # if (ret != NULL) 1907s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1907s # else 1907s # return NULL; 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_proxy_new_sync: 1907s # * @connection: A #GDBusConnection. 1907s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1907s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1907s # * @object_path: An object path. 1907s # * @cancellable: (nullable): A #GCancellable or %NULL. 1907s # * @error: Return location for error or %NULL 1907s # * 1907s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1907s # * 1907s # * The calling thread is blocked until a reply is received. 1907s # * 1907s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1907s # * 1907s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1907s # */ 1907s # OrgProjectUsefulInterface * 1907s # org_project_useful_interface_proxy_new_sync ( 1907s # GDBusConnection *connection, 1907s # GDBusProxyFlags flags, 1907s # const gchar *name, 1907s # const gchar *object_path, 1907s # GCancellable *cancellable, 1907s # GError **error) 1907s # { 1907s # GInitable *ret; 1907s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1907s # if (ret != NULL) 1907s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1907s # else 1907s # return NULL; 1907s # } 1907s # 1907s # 1907s # /** 1907s # * org_project_useful_interface_proxy_new_for_bus: 1907s # * @bus_type: A #GBusType. 1907s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1907s # * @name: A bus name (well-known or unique). 1907s # * @object_path: An object path. 1907s # * @cancellable: (nullable): A #GCancellable or %NULL. 1907s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1907s # * @user_data: User data to pass to @callback. 1907s # * 1907s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1907s # * 1907s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1907s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1907s # * 1907s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1907s # */ 1907s # void 1907s # org_project_useful_interface_proxy_new_for_bus ( 1907s # GBusType bus_type, 1907s # GDBusProxyFlags flags, 1907s # const gchar *name, 1907s # const gchar *object_path, 1907s # GCancellable *cancellable, 1907s # GAsyncReadyCallback callback, 1907s # gpointer user_data) 1907s # { 1907s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1907s # } 1907s # 1907s # /** 1907s # * org_project_useful_interface_proxy_new_for_bus_finish: 1907s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1907s # * @error: Return location for error or %NULL 1907s # * 1907s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1907s # * 1907s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1907s # */ 1907s # OrgProjectUsefulInterface * 1907s # org_project_useful_interface_proxy_new_for_bus_finish ( 1907s # GAsyncResult *res, 1907s # GError **error) 1907s # { 1907s # GObject *ret; 1907s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus_sync: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_for_bus_sync ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeleton: 1908s # * 1908s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeletonClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1908s # */ 1908s # 1908s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1908s # { 1908s # GValue *properties; 1908s # GList *changed_properties; 1908s # GSource *changed_properties_idle_source; 1908s # GMainContext *context; 1908s # GMutex lock; 1908s # }; 1908s # 1908s # static void 1908s # _org_project_useful_interface_skeleton_handle_method_call ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name, 1908s # const gchar *method_name, 1908s # GVariant *parameters, 1908s # GDBusMethodInvocation *invocation, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # _ExtendedGDBusMethodInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # guint num_extra; 1908s # gsize n; 1908s # guint signal_id; 1908s # GValue return_value = G_VALUE_INIT; 1908s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1908s # g_assert (info != NULL); 1908s # num_params = g_variant_n_children (parameters); 1908s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1908s # n = 0; 1908s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_set_object (¶mv[n++], skeleton); 1908s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1908s # g_value_set_object (¶mv[n++], invocation); 1908s # if (info->pass_fdlist) 1908s # { 1908s # #ifdef G_OS_UNIX 1908s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1908s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1908s # #else 1908s # g_assert_not_reached (); 1908s # #endif 1908s # } 1908s # g_variant_iter_init (&iter, parameters); 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1908s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1908s # if (!g_value_get_boolean (&return_value)) 1908s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1908s # g_value_unset (&return_value); 1908s # for (n = 0; n < num_params + num_extra; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static GVariant * 1908s # _org_project_useful_interface_skeleton_handle_get_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # GVariant *ret; 1908s # ret = NULL; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # g_value_init (&value, pspec->value_type); 1908s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1908s # g_value_unset (&value); 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _org_project_useful_interface_skeleton_handle_set_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GVariant *variant, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # gboolean ret; 1908s # ret = FALSE; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # if (info->use_gvariant) 1908s # g_value_set_variant (&value, variant); 1908s # else 1908s # g_dbus_gvariant_to_gvalue (variant, &value); 1908s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # g_value_unset (&value); 1908s # ret = TRUE; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1908s # { 1908s # _org_project_useful_interface_skeleton_handle_method_call, 1908s # _org_project_useful_interface_skeleton_handle_get_property, 1908s # _org_project_useful_interface_skeleton_handle_set_property, 1908s # {NULL} 1908s # }; 1908s # 1908s # static GDBusInterfaceInfo * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return org_project_useful_interface_interface_info (); 1908s # } 1908s # 1908s # static GDBusInterfaceVTable * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1908s # } 1908s # 1908s # static GVariant * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1908s # 1908s # GVariantBuilder builder; 1908s # guint n; 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1908s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #else 1908s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #endif 1908s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1908s # goto out; 1908s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1908s # { 1908s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1908s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1908s # { 1908s # GVariant *value; 1908s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1908s # if (value != NULL) 1908s # { 1908s # g_variant_take_ref (value); 1908s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1908s # g_variant_unref (value); 1908s # } 1908s # } 1908s # } 1908s # out: 1908s # return g_variant_builder_end (&builder); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_useful_interface_skeleton_finalize (GObject *object) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1908s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1908s # if (skeleton->priv->changed_properties_idle_source != NULL) 1908s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1908s # g_main_context_unref (skeleton->priv->context); 1908s # g_mutex_clear (&skeleton->priv->lock); 1908s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1908s # #else 1908s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1908s # #endif 1908s # 1908s # g_mutex_init (&skeleton->priv->lock); 1908s # skeleton->priv->context = g_main_context_ref_thread_default (); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusInterfaceSkeletonClass *skeleton_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1908s # 1908s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1908s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1908s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1908s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1908s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_skeleton_new: 1908s # * 1908s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_skeleton_new (void) 1908s # { 1908s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1908s # } 1908s # Error: 1908s # 1908s # /tmp/tmpei14pw7z/tmpktffclae.xml: 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpei14pw7z/tmpktffclae.xml', '--output', '-', '--body'] 1908s # Return code: 0 1908s # Output: 1908s # /* 1908s # * This file is generated by gdbus-codegen, do not modify it. 1908s # * 1908s # * The license of this code is the same as for the D-Bus interface description 1908s # * it was derived from. Note that it links to GLib, so must comply with the 1908s # * LGPL linking clauses. 1908s # */ 1908s # 1908s # #ifdef HAVE_CONFIG_H 1908s # # include "config.h" 1908s # #endif 1908s # 1908s # #include 1908s # #ifdef G_OS_UNIX 1908s # # include 1908s # #endif 1908s # 1908s # #ifdef G_ENABLE_DEBUG 1908s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1908s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1908s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1908s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1908s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1908s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1908s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1908s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1908s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1908s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1908s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1908s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1908s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1908s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1908s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1908s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1908s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1908s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1908s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1908s # #else /* !G_ENABLE_DEBUG */ 1908s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1908s # * Do not access GValues directly in your code. Instead, use the 1908s # * g_value_get_*() functions 1908s # */ 1908s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1908s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1908s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1908s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1908s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1908s # #endif /* !G_ENABLE_DEBUG */ 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusArgInfo parent_struct; 1908s # gboolean use_gvariant; 1908s # } _ExtendedGDBusArgInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusMethodInfo parent_struct; 1908s # const gchar *signal_name; 1908s # gboolean pass_fdlist; 1908s # } _ExtendedGDBusMethodInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusSignalInfo parent_struct; 1908s # const gchar *signal_name; 1908s # } _ExtendedGDBusSignalInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusPropertyInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # guint use_gvariant : 1; 1908s # guint emits_changed_signal : 1; 1908s # } _ExtendedGDBusPropertyInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusInterfaceInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # } _ExtendedGDBusInterfaceInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # const _ExtendedGDBusPropertyInfo *info; 1908s # guint prop_id; 1908s # GValue orig_value; /* the value before the change */ 1908s # } ChangedProperty; 1908s # 1908s # static void 1908s # _changed_property_free (ChangedProperty *data) 1908s # { 1908s # g_value_unset (&data->orig_value); 1908s # g_free (data); 1908s # } 1908s # 1908s # static gboolean 1908s # _g_strv_equal0 (gchar **a, gchar **b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # guint n; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # if (g_strv_length (a) != g_strv_length (b)) 1908s # goto out; 1908s # for (n = 0; a[n] != NULL; n++) 1908s # if (g_strcmp0 (a[n], b[n]) != 0) 1908s # goto out; 1908s # ret = TRUE; 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _g_variant_equal0 (GVariant *a, GVariant *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # ret = g_variant_equal (a, b); 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # G_GNUC_UNUSED static gboolean 1908s # _g_value_equal (const GValue *a, const GValue *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1908s # switch (G_VALUE_TYPE (a)) 1908s # { 1908s # case G_TYPE_BOOLEAN: 1908s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1908s # break; 1908s # case G_TYPE_UCHAR: 1908s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1908s # break; 1908s # case G_TYPE_INT: 1908s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1908s # break; 1908s # case G_TYPE_UINT: 1908s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1908s # break; 1908s # case G_TYPE_INT64: 1908s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1908s # break; 1908s # case G_TYPE_UINT64: 1908s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1908s # break; 1908s # case G_TYPE_DOUBLE: 1908s # { 1908s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1908s # gdouble da = g_value_get_double (a); 1908s # gdouble db = g_value_get_double (b); 1908s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1908s # } 1908s # break; 1908s # case G_TYPE_STRING: 1908s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1908s # break; 1908s # case G_TYPE_VARIANT: 1908s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1908s # break; 1908s # default: 1908s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1908s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1908s # else 1908s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1908s # break; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static void 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint G_GNUC_UNUSED, 1908s # void *marshal_data) 1908s # { 1908s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1908s # (void *data1, 1908s # GDBusMethodInvocation *arg_method_invocation, 1908s # void *data2); 1908s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1908s # GCClosure *cc = (GCClosure*) closure; 1908s # void *data1, *data2; 1908s # gboolean v_return; 1908s # 1908s # g_return_if_fail (return_value != NULL); 1908s # g_return_if_fail (n_param_values == 2); 1908s # 1908s # if (G_CCLOSURE_SWAP_DATA (closure)) 1908s # { 1908s # data1 = closure->data; 1908s # data2 = g_value_peek_pointer (param_values + 0); 1908s # } 1908s # else 1908s # { 1908s # data1 = g_value_peek_pointer (param_values + 0); 1908s # data2 = closure->data; 1908s # } 1908s # 1908s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1908s # (marshal_data ? marshal_data : cc->callback); 1908s # 1908s # v_return = 1908s # callback (data1, 1908s # g_marshal_value_peek_object (param_values + 1), 1908s # data2); 1908s # 1908s # g_value_set_boolean (return_value, v_return); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ 1908s # * Code for interface org.project.UsefulInterface 1908s # * ------------------------------------------------------------------------ 1908s # */ 1908s # 1908s # /** 1908s # * SECTION:OrgProjectUsefulInterface 1908s # * @title: OrgProjectUsefulInterface 1908s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1908s # * 1908s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1908s # */ 1908s # 1908s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_arg_q = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "arg_q", 1908s # (gchar *) "q", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_pointers[] = 1908s # { 1908s # &_org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_arg_q.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_q = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SingleArgMethodQ", 1908s # NULL, 1908s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "handle-single-arg-method-q", 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1908s # { 1908s # &_org_project_useful_interface_method_info_single_arg_method_q.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "org.project.UsefulInterface", 1908s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1908s # NULL, 1908s # NULL, 1908s # NULL 1908s # }, 1908s # "org-project-useful-interface", 1908s # }; 1908s # 1908s # 1908s # /** 1908s # * org_project_useful_interface_interface_info: 1908s # * 1908s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1908s # * 1908s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1908s # */ 1908s # GDBusInterfaceInfo * 1908s # org_project_useful_interface_interface_info (void) 1908s # { 1908s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_override_properties: 1908s # * @klass: The class structure for a #GObject derived class. 1908s # * @property_id_begin: The property id to assign to the first overridden property. 1908s # * 1908s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1908s # * The properties are overridden in the order they are defined. 1908s # * 1908s # * Returns: The last property id. 1908s # */ 1908s # guint 1908s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1908s # { 1908s # return property_id_begin - 1; 1908s # } 1908s # 1908s # 1908s # inline static void 1908s # org_project_useful_interface_method_marshal_single_arg_method_q ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterface: 1908s # * 1908s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceIface: 1908s # * @parent_iface: The parent interface. 1908s # * @handle_single_arg_method_q: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-q signal. 1908s # * 1908s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1908s # */ 1908s # 1908s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1908s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1908s # 1908s # static void 1908s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1908s # { 1908s # /* GObject signals for incoming D-Bus method calls: */ 1908s # /** 1908s # * OrgProjectUsefulInterface::handle-single-arg-method-q: 1908s # * @object: A #OrgProjectUsefulInterface. 1908s # * @invocation: A #GDBusMethodInvocation. 1908s # * 1908s # * Signal emitted when a remote caller is invoking the SingleArgMethodQ() D-Bus method. 1908s # * 1908s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_q() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1908s # * 1908s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1908s # */ 1908s # g_signal_new ("handle-single-arg-method-q", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_q), 1908s # g_signal_accumulator_true_handled, 1908s # NULL, 1908s # org_project_useful_interface_method_marshal_single_arg_method_q, 1908s # G_TYPE_BOOLEAN, 1908s # 1, 1908s # G_TYPE_DBUS_METHOD_INVOCATION); 1908s # 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_q: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_call_single_arg_method_q_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_call_single_arg_method_q_sync() for the synchronous, blocking version of this method. 1908s # */ 1908s # void 1908s # org_project_useful_interface_call_single_arg_method_q ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1908s # "SingleArgMethodQ", 1908s # g_variant_new ("()"), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # callback, 1908s # user_data); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_q_finish: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @out_arg_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_q(). 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_q(). 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_useful_interface_call_single_arg_method_q_finish ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # guint16 *out_arg_q, 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(q)", 1908s # out_arg_q); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_q_sync: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @out_arg_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Synchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_call_single_arg_method_q() for the asynchronous version of this method. 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_useful_interface_call_single_arg_method_q_sync ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # guint16 *out_arg_q, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1908s # "SingleArgMethodQ", 1908s # g_variant_new ("()"), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(q)", 1908s # out_arg_q); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_complete_single_arg_method_q: 1908s # * @object: A #OrgProjectUsefulInterface. 1908s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1908s # * @arg_q: Parameter to return. 1908s # * 1908s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodQ() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1908s # * 1908s # * This method will free @invocation, you cannot use it afterwards. 1908s # */ 1908s # void 1908s # org_project_useful_interface_complete_single_arg_method_q ( 1908s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1908s # GDBusMethodInvocation *invocation, 1908s # guint16 arg_q) 1908s # { 1908s # g_dbus_method_invocation_return_value (invocation, 1908s # g_variant_new ("(q)", 1908s # arg_q)); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceProxy: 1908s # * 1908s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceProxyClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1908s # */ 1908s # 1908s # struct _OrgProjectUsefulInterfaceProxyPrivate 1908s # { 1908s # GData *qdata; 1908s # }; 1908s # 1908s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_useful_interface_proxy_finalize (GObject *object) 1908s # { 1908s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1908s # g_datalist_clear (&proxy->priv->qdata); 1908s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # const GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1908s # const gchar *sender_name G_GNUC_UNUSED, 1908s # const gchar *signal_name, 1908s # GVariant *parameters) 1908s # { 1908s # _ExtendedGDBusSignalInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # gsize n; 1908s # guint signal_id; 1908s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1908s # if (info == NULL) 1908s # return; 1908s # num_params = g_variant_n_children (parameters); 1908s # paramv = g_new0 (GValue, num_params + 1); 1908s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_set_object (¶mv[0], proxy); 1908s # g_variant_iter_init (&iter, parameters); 1908s # n = 1; 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_signal_emitv (paramv, signal_id, 0, NULL); 1908s # for (n = 0; n < num_params + 1; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1908s # GVariant *changed_properties, 1908s # const gchar *const *invalidated_properties) 1908s # { 1908s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1908s # guint n; 1908s # const gchar *key; 1908s # GVariantIter *iter; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # g_variant_get (changed_properties, "a{sv}", &iter); 1908s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1908s # g_datalist_remove_data (&proxy->priv->qdata, key); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # g_variant_iter_free (iter); 1908s # for (n = 0; invalidated_properties[n] != NULL; n++) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1908s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1908s # #else 1908s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1908s # #endif 1908s # 1908s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusProxyClass *proxy_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1908s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1908s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1908s # 1908s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1908s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1908s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_useful_interface_proxy_new ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_sync: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_sync ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_useful_interface_proxy_new_for_bus ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_for_bus_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus_sync: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_for_bus_sync ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeleton: 1908s # * 1908s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeletonClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1908s # */ 1908s # 1908s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1908s # { 1908s # GValue *properties; 1908s # GList *changed_properties; 1908s # GSource *changed_properties_idle_source; 1908s # GMainContext *context; 1908s # GMutex lock; 1908s # }; 1908s # 1908s # static void 1908s # _org_project_useful_interface_skeleton_handle_method_call ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name, 1908s # const gchar *method_name, 1908s # GVariant *parameters, 1908s # GDBusMethodInvocation *invocation, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # _ExtendedGDBusMethodInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # guint num_extra; 1908s # gsize n; 1908s # guint signal_id; 1908s # GValue return_value = G_VALUE_INIT; 1908s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1908s # g_assert (info != NULL); 1908s # num_params = g_variant_n_children (parameters); 1908s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1908s # n = 0; 1908s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_set_object (¶mv[n++], skeleton); 1908s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1908s # g_value_set_object (¶mv[n++], invocation); 1908s # if (info->pass_fdlist) 1908s # { 1908s # #ifdef G_OS_UNIX 1908s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1908s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1908s # #else 1908s # g_assert_not_reached (); 1908s # #endif 1908s # } 1908s # g_variant_iter_init (&iter, parameters); 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1908s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1908s # if (!g_value_get_boolean (&return_value)) 1908s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1908s # g_value_unset (&return_value); 1908s # for (n = 0; n < num_params + num_extra; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static GVariant * 1908s # _org_project_useful_interface_skeleton_handle_get_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # GVariant *ret; 1908s # ret = NULL; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # g_value_init (&value, pspec->value_type); 1908s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1908s # g_value_unset (&value); 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _org_project_useful_interface_skeleton_handle_set_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GVariant *variant, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # gboolean ret; 1908s # ret = FALSE; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # if (info->use_gvariant) 1908s # g_value_set_variant (&value, variant); 1908s # else 1908s # g_dbus_gvariant_to_gvalue (variant, &value); 1908s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # g_value_unset (&value); 1908s # ret = TRUE; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1908s # { 1908s # _org_project_useful_interface_skeleton_handle_method_call, 1908s # _org_project_useful_interface_skeleton_handle_get_property, 1908s # _org_project_useful_interface_skeleton_handle_set_property, 1908s # {NULL} 1908s # }; 1908s # 1908s # static GDBusInterfaceInfo * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return org_project_useful_interface_interface_info (); 1908s # } 1908s # 1908s # static GDBusInterfaceVTable * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1908s # } 1908s # 1908s # static GVariant * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1908s # 1908s # GVariantBuilder builder; 1908s # guint n; 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1908s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #else 1908s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #endif 1908s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1908s # goto out; 1908s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1908s # { 1908s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1908s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1908s # { 1908s # GVariant *value; 1908s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1908s # if (value != NULL) 1908s # { 1908s # g_variant_take_ref (value); 1908s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1908s # g_variant_unref (value); 1908s # } 1908s # } 1908s # } 1908s # out: 1908s # return g_variant_builder_end (&builder); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_useful_interface_skeleton_finalize (GObject *object) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1908s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1908s # if (skeleton->priv->changed_properties_idle_source != NULL) 1908s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1908s # g_main_context_unref (skeleton->priv->context); 1908s # g_mutex_clear (&skeleton->priv->lock); 1908s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1908s # #else 1908s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1908s # #endif 1908s # 1908s # g_mutex_init (&skeleton->priv->lock); 1908s # skeleton->priv->context = g_main_context_ref_thread_default (); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusInterfaceSkeletonClass *skeleton_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1908s # 1908s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1908s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1908s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1908s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1908s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_skeleton_new: 1908s # * 1908s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_skeleton_new (void) 1908s # { 1908s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1908s # } 1908s # Error: 1908s # 1908s # /tmp/tmpei14pw7z/tmpqbq8cb9o.xml: 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpei14pw7z/tmpqbq8cb9o.xml', '--output', '-', '--body'] 1908s # Return code: 0 1908s # Output: 1908s # /* 1908s # * This file is generated by gdbus-codegen, do not modify it. 1908s # * 1908s # * The license of this code is the same as for the D-Bus interface description 1908s # * it was derived from. Note that it links to GLib, so must comply with the 1908s # * LGPL linking clauses. 1908s # */ 1908s # 1908s # #ifdef HAVE_CONFIG_H 1908s # # include "config.h" 1908s # #endif 1908s # 1908s # #include 1908s # #ifdef G_OS_UNIX 1908s # # include 1908s # #endif 1908s # 1908s # #ifdef G_ENABLE_DEBUG 1908s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1908s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1908s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1908s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1908s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1908s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1908s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1908s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1908s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1908s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1908s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1908s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1908s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1908s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1908s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1908s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1908s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1908s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1908s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1908s # #else /* !G_ENABLE_DEBUG */ 1908s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1908s # * Do not access GValues directly in your code. Instead, use the 1908s # * g_value_get_*() functions 1908s # */ 1908s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1908s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1908s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1908s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1908s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1908s # #endif /* !G_ENABLE_DEBUG */ 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusArgInfo parent_struct; 1908s # gboolean use_gvariant; 1908s # } _ExtendedGDBusArgInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusMethodInfo parent_struct; 1908s # const gchar *signal_name; 1908s # gboolean pass_fdlist; 1908s # } _ExtendedGDBusMethodInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusSignalInfo parent_struct; 1908s # const gchar *signal_name; 1908s # } _ExtendedGDBusSignalInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusPropertyInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # guint use_gvariant : 1; 1908s # guint emits_changed_signal : 1; 1908s # } _ExtendedGDBusPropertyInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusInterfaceInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # } _ExtendedGDBusInterfaceInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # const _ExtendedGDBusPropertyInfo *info; 1908s # guint prop_id; 1908s # GValue orig_value; /* the value before the change */ 1908s # } ChangedProperty; 1908s # 1908s # static void 1908s # _changed_property_free (ChangedProperty *data) 1908s # { 1908s # g_value_unset (&data->orig_value); 1908s # g_free (data); 1908s # } 1908s # 1908s # static gboolean 1908s # _g_strv_equal0 (gchar **a, gchar **b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # guint n; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # if (g_strv_length (a) != g_strv_length (b)) 1908s # goto out; 1908s # for (n = 0; a[n] != NULL; n++) 1908s # if (g_strcmp0 (a[n], b[n]) != 0) 1908s # goto out; 1908s # ret = TRUE; 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _g_variant_equal0 (GVariant *a, GVariant *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # ret = g_variant_equal (a, b); 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # G_GNUC_UNUSED static gboolean 1908s # _g_value_equal (const GValue *a, const GValue *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1908s # switch (G_VALUE_TYPE (a)) 1908s # { 1908s # case G_TYPE_BOOLEAN: 1908s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1908s # break; 1908s # case G_TYPE_UCHAR: 1908s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1908s # break; 1908s # case G_TYPE_INT: 1908s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1908s # break; 1908s # case G_TYPE_UINT: 1908s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1908s # break; 1908s # case G_TYPE_INT64: 1908s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1908s # break; 1908s # case G_TYPE_UINT64: 1908s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1908s # break; 1908s # case G_TYPE_DOUBLE: 1908s # { 1908s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1908s # gdouble da = g_value_get_double (a); 1908s # gdouble db = g_value_get_double (b); 1908s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1908s # } 1908s # break; 1908s # case G_TYPE_STRING: 1908s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1908s # break; 1908s # case G_TYPE_VARIANT: 1908s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1908s # break; 1908s # default: 1908s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1908s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1908s # else 1908s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1908s # break; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static void 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint G_GNUC_UNUSED, 1908s # void *marshal_data) 1908s # { 1908s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1908s # (void *data1, 1908s # GDBusMethodInvocation *arg_method_invocation, 1908s # void *data2); 1908s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1908s # GCClosure *cc = (GCClosure*) closure; 1908s # void *data1, *data2; 1908s # gboolean v_return; 1908s # 1908s # g_return_if_fail (return_value != NULL); 1908s # g_return_if_fail (n_param_values == 2); 1908s # 1908s # if (G_CCLOSURE_SWAP_DATA (closure)) 1908s # { 1908s # data1 = closure->data; 1908s # data2 = g_value_peek_pointer (param_values + 0); 1908s # } 1908s # else 1908s # { 1908s # data1 = g_value_peek_pointer (param_values + 0); 1908s # data2 = closure->data; 1908s # } 1908s # 1908s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1908s # (marshal_data ? marshal_data : cc->callback); 1908s # 1908s # v_return = 1908s # callback (data1, 1908s # g_marshal_value_peek_object (param_values + 1), 1908s # data2); 1908s # 1908s # g_value_set_boolean (return_value, v_return); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ 1908s # * Code for interface org.project.UsefulInterface 1908s # * ------------------------------------------------------------------------ 1908s # */ 1908s # 1908s # /** 1908s # * SECTION:OrgProjectUsefulInterface 1908s # * @title: OrgProjectUsefulInterface 1908s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1908s # * 1908s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1908s # */ 1908s # 1908s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_arg_i = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "arg_i", 1908s # (gchar *) "i", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_pointers[] = 1908s # { 1908s # &_org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_arg_i.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_i = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SingleArgMethodI", 1908s # NULL, 1908s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "handle-single-arg-method-i", 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1908s # { 1908s # &_org_project_useful_interface_method_info_single_arg_method_i.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "org.project.UsefulInterface", 1908s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1908s # NULL, 1908s # NULL, 1908s # NULL 1908s # }, 1908s # "org-project-useful-interface", 1908s # }; 1908s # 1908s # 1908s # /** 1908s # * org_project_useful_interface_interface_info: 1908s # * 1908s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1908s # * 1908s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1908s # */ 1908s # GDBusInterfaceInfo * 1908s # org_project_useful_interface_interface_info (void) 1908s # { 1908s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_override_properties: 1908s # * @klass: The class structure for a #GObject derived class. 1908s # * @property_id_begin: The property id to assign to the first overridden property. 1908s # * 1908s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1908s # * The properties are overridden in the order they are defined. 1908s # * 1908s # * Returns: The last property id. 1908s # */ 1908s # guint 1908s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1908s # { 1908s # return property_id_begin - 1; 1908s # } 1908s # 1908s # 1908s # inline static void 1908s # org_project_useful_interface_method_marshal_single_arg_method_i ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterface: 1908s # * 1908s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceIface: 1908s # * @parent_iface: The parent interface. 1908s # * @handle_single_arg_method_i: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-i signal. 1908s # * 1908s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1908s # */ 1908s # 1908s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1908s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1908s # 1908s # static void 1908s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1908s # { 1908s # /* GObject signals for incoming D-Bus method calls: */ 1908s # /** 1908s # * OrgProjectUsefulInterface::handle-single-arg-method-i: 1908s # * @object: A #OrgProjectUsefulInterface. 1908s # * @invocation: A #GDBusMethodInvocation. 1908s # * 1908s # * Signal emitted when a remote caller is invoking the SingleArgMethodI() D-Bus method. 1908s # * 1908s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_i() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1908s # * 1908s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1908s # */ 1908s # g_signal_new ("handle-single-arg-method-i", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_i), 1908s # g_signal_accumulator_true_handled, 1908s # NULL, 1908s # org_project_useful_interface_method_marshal_single_arg_method_i, 1908s # G_TYPE_BOOLEAN, 1908s # 1, 1908s # G_TYPE_DBUS_METHOD_INVOCATION); 1908s # 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_i: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously invokes the SingleArgMethodI() D-Bus method on @proxy. 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_call_single_arg_method_i_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_call_single_arg_method_i_sync() for the synchronous, blocking version of this method. 1908s # */ 1908s # void 1908s # org_project_useful_interface_call_single_arg_method_i ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1908s # "SingleArgMethodI", 1908s # g_variant_new ("()"), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # callback, 1908s # user_data); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_i_finish: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @out_arg_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_i(). 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_i(). 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_useful_interface_call_single_arg_method_i_finish ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # gint *out_arg_i, 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(i)", 1908s # out_arg_i); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_i_sync: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @out_arg_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Synchronously invokes the SingleArgMethodI() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_call_single_arg_method_i() for the asynchronous version of this method. 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_useful_interface_call_single_arg_method_i_sync ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # gint *out_arg_i, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1908s # "SingleArgMethodI", 1908s # g_variant_new ("()"), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(i)", 1908s # out_arg_i); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_complete_single_arg_method_i: 1908s # * @object: A #OrgProjectUsefulInterface. 1908s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1908s # * @arg_i: Parameter to return. 1908s # * 1908s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodI() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1908s # * 1908s # * This method will free @invocation, you cannot use it afterwards. 1908s # */ 1908s # void 1908s # org_project_useful_interface_complete_single_arg_method_i ( 1908s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1908s # GDBusMethodInvocation *invocation, 1908s # gint arg_i) 1908s # { 1908s # g_dbus_method_invocation_return_value (invocation, 1908s # g_variant_new ("(i)", 1908s # arg_i)); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceProxy: 1908s # * 1908s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceProxyClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1908s # */ 1908s # 1908s # struct _OrgProjectUsefulInterfaceProxyPrivate 1908s # { 1908s # GData *qdata; 1908s # }; 1908s # 1908s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_useful_interface_proxy_finalize (GObject *object) 1908s # { 1908s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1908s # g_datalist_clear (&proxy->priv->qdata); 1908s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # const GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1908s # const gchar *sender_name G_GNUC_UNUSED, 1908s # const gchar *signal_name, 1908s # GVariant *parameters) 1908s # { 1908s # _ExtendedGDBusSignalInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # gsize n; 1908s # guint signal_id; 1908s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1908s # if (info == NULL) 1908s # return; 1908s # num_params = g_variant_n_children (parameters); 1908s # paramv = g_new0 (GValue, num_params + 1); 1908s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_set_object (¶mv[0], proxy); 1908s # g_variant_iter_init (&iter, parameters); 1908s # n = 1; 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_signal_emitv (paramv, signal_id, 0, NULL); 1908s # for (n = 0; n < num_params + 1; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1908s # GVariant *changed_properties, 1908s # const gchar *const *invalidated_properties) 1908s # { 1908s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1908s # guint n; 1908s # const gchar *key; 1908s # GVariantIter *iter; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # g_variant_get (changed_properties, "a{sv}", &iter); 1908s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1908s # g_datalist_remove_data (&proxy->priv->qdata, key); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # g_variant_iter_free (iter); 1908s # for (n = 0; invalidated_properties[n] != NULL; n++) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1908s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1908s # #else 1908s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1908s # #endif 1908s # 1908s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusProxyClass *proxy_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1908s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1908s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1908s # 1908s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1908s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1908s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_useful_interface_proxy_new ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_sync: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_sync ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_useful_interface_proxy_new_for_bus ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_for_bus_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus_sync: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_for_bus_sync ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeleton: 1908s # * 1908s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeletonClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1908s # */ 1908s # 1908s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1908s # { 1908s # GValue *properties; 1908s # GList *changed_properties; 1908s # GSource *changed_properties_idle_source; 1908s # GMainContext *context; 1908s # GMutex lock; 1908s # }; 1908s # 1908s # static void 1908s # _org_project_useful_interface_skeleton_handle_method_call ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name, 1908s # const gchar *method_name, 1908s # GVariant *parameters, 1908s # GDBusMethodInvocation *invocation, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # _ExtendedGDBusMethodInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # guint num_extra; 1908s # gsize n; 1908s # guint signal_id; 1908s # GValue return_value = G_VALUE_INIT; 1908s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1908s # g_assert (info != NULL); 1908s # num_params = g_variant_n_children (parameters); 1908s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1908s # n = 0; 1908s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_set_object (¶mv[n++], skeleton); 1908s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1908s # g_value_set_object (¶mv[n++], invocation); 1908s # if (info->pass_fdlist) 1908s # { 1908s # #ifdef G_OS_UNIX 1908s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1908s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1908s # #else 1908s # g_assert_not_reached (); 1908s # #endif 1908s # } 1908s # g_variant_iter_init (&iter, parameters); 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1908s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1908s # if (!g_value_get_boolean (&return_value)) 1908s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1908s # g_value_unset (&return_value); 1908s # for (n = 0; n < num_params + num_extra; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static GVariant * 1908s # _org_project_useful_interface_skeleton_handle_get_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # GVariant *ret; 1908s # ret = NULL; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # g_value_init (&value, pspec->value_type); 1908s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1908s # g_value_unset (&value); 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _org_project_useful_interface_skeleton_handle_set_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GVariant *variant, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # gboolean ret; 1908s # ret = FALSE; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # if (info->use_gvariant) 1908s # g_value_set_variant (&value, variant); 1908s # else 1908s # g_dbus_gvariant_to_gvalue (variant, &value); 1908s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # g_value_unset (&value); 1908s # ret = TRUE; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1908s # { 1908s # _org_project_useful_interface_skeleton_handle_method_call, 1908s # _org_project_useful_interface_skeleton_handle_get_property, 1908s # _org_project_useful_interface_skeleton_handle_set_property, 1908s # {NULL} 1908s # }; 1908s # 1908s # static GDBusInterfaceInfo * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return org_project_useful_interface_interface_info (); 1908s # } 1908s # 1908s # static GDBusInterfaceVTable * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1908s # } 1908s # 1908s # static GVariant * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1908s # 1908s # GVariantBuilder builder; 1908s # guint n; 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1908s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #else 1908s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #endif 1908s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1908s # goto out; 1908s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1908s # { 1908s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1908s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1908s # { 1908s # GVariant *value; 1908s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1908s # if (value != NULL) 1908s # { 1908s # g_variant_take_ref (value); 1908s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1908s # g_variant_unref (value); 1908s # } 1908s # } 1908s # } 1908s # out: 1908s # return g_variant_builder_end (&builder); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_useful_interface_skeleton_finalize (GObject *object) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1908s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1908s # if (skeleton->priv->changed_properties_idle_source != NULL) 1908s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1908s # g_main_context_unref (skeleton->priv->context); 1908s # g_mutex_clear (&skeleton->priv->lock); 1908s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1908s # #else 1908s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1908s # #endif 1908s # 1908s # g_mutex_init (&skeleton->priv->lock); 1908s # skeleton->priv->context = g_main_context_ref_thread_default (); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusInterfaceSkeletonClass *skeleton_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1908s # 1908s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1908s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1908s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1908s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1908s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_skeleton_new: 1908s # * 1908s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_skeleton_new (void) 1908s # { 1908s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1908s # } 1908s # Error: 1908s # 1908s # /tmp/tmpei14pw7z/tmpsz6ipj9f.xml: 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpei14pw7z/tmpsz6ipj9f.xml', '--output', '-', '--body'] 1908s # Return code: 0 1908s # Output: 1908s # /* 1908s # * This file is generated by gdbus-codegen, do not modify it. 1908s # * 1908s # * The license of this code is the same as for the D-Bus interface description 1908s # * it was derived from. Note that it links to GLib, so must comply with the 1908s # * LGPL linking clauses. 1908s # */ 1908s # 1908s # #ifdef HAVE_CONFIG_H 1908s # # include "config.h" 1908s # #endif 1908s # 1908s # #include 1908s # #ifdef G_OS_UNIX 1908s # # include 1908s # #endif 1908s # 1908s # #ifdef G_ENABLE_DEBUG 1908s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1908s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1908s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1908s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1908s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1908s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1908s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1908s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1908s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1908s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1908s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1908s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1908s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1908s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1908s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1908s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1908s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1908s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1908s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1908s # #else /* !G_ENABLE_DEBUG */ 1908s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1908s # * Do not access GValues directly in your code. Instead, use the 1908s # * g_value_get_*() functions 1908s # */ 1908s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1908s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1908s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1908s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1908s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1908s # #endif /* !G_ENABLE_DEBUG */ 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusArgInfo parent_struct; 1908s # gboolean use_gvariant; 1908s # } _ExtendedGDBusArgInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusMethodInfo parent_struct; 1908s # const gchar *signal_name; 1908s # gboolean pass_fdlist; 1908s # } _ExtendedGDBusMethodInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusSignalInfo parent_struct; 1908s # const gchar *signal_name; 1908s # } _ExtendedGDBusSignalInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusPropertyInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # guint use_gvariant : 1; 1908s # guint emits_changed_signal : 1; 1908s # } _ExtendedGDBusPropertyInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusInterfaceInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # } _ExtendedGDBusInterfaceInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # const _ExtendedGDBusPropertyInfo *info; 1908s # guint prop_id; 1908s # GValue orig_value; /* the value before the change */ 1908s # } ChangedProperty; 1908s # 1908s # static void 1908s # _changed_property_free (ChangedProperty *data) 1908s # { 1908s # g_value_unset (&data->orig_value); 1908s # g_free (data); 1908s # } 1908s # 1908s # static gboolean 1908s # _g_strv_equal0 (gchar **a, gchar **b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # guint n; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # if (g_strv_length (a) != g_strv_length (b)) 1908s # goto out; 1908s # for (n = 0; a[n] != NULL; n++) 1908s # if (g_strcmp0 (a[n], b[n]) != 0) 1908s # goto out; 1908s # ret = TRUE; 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _g_variant_equal0 (GVariant *a, GVariant *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # ret = g_variant_equal (a, b); 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # G_GNUC_UNUSED static gboolean 1908s # _g_value_equal (const GValue *a, const GValue *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1908s # switch (G_VALUE_TYPE (a)) 1908s # { 1908s # case G_TYPE_BOOLEAN: 1908s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1908s # break; 1908s # case G_TYPE_UCHAR: 1908s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1908s # break; 1908s # case G_TYPE_INT: 1908s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1908s # break; 1908s # case G_TYPE_UINT: 1908s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1908s # break; 1908s # case G_TYPE_INT64: 1908s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1908s # break; 1908s # case G_TYPE_UINT64: 1908s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1908s # break; 1908s # case G_TYPE_DOUBLE: 1908s # { 1908s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1908s # gdouble da = g_value_get_double (a); 1908s # gdouble db = g_value_get_double (b); 1908s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1908s # } 1908s # break; 1908s # case G_TYPE_STRING: 1908s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1908s # break; 1908s # case G_TYPE_VARIANT: 1908s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1908s # break; 1908s # default: 1908s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1908s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1908s # else 1908s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1908s # break; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static void 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint G_GNUC_UNUSED, 1908s # void *marshal_data) 1908s # { 1908s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1908s # (void *data1, 1908s # GDBusMethodInvocation *arg_method_invocation, 1908s # void *data2); 1908s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1908s # GCClosure *cc = (GCClosure*) closure; 1908s # void *data1, *data2; 1908s # gboolean v_return; 1908s # 1908s # g_return_if_fail (return_value != NULL); 1908s # g_return_if_fail (n_param_values == 2); 1908s # 1908s # if (G_CCLOSURE_SWAP_DATA (closure)) 1908s # { 1908s # data1 = closure->data; 1908s # data2 = g_value_peek_pointer (param_values + 0); 1908s # } 1908s # else 1908s # { 1908s # data1 = g_value_peek_pointer (param_values + 0); 1908s # data2 = closure->data; 1908s # } 1908s # 1908s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1908s # (marshal_data ? marshal_data : cc->callback); 1908s # 1908s # v_return = 1908s # callback (data1, 1908s # g_marshal_value_peek_object (param_values + 1), 1908s # data2); 1908s # 1908s # g_value_set_boolean (return_value, v_return); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ 1908s # * Code for interface org.project.UsefulInterface 1908s # * ------------------------------------------------------------------------ 1908s # */ 1908s # 1908s # /** 1908s # * SECTION:OrgProjectUsefulInterface 1908s # * @title: OrgProjectUsefulInterface 1908s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1908s # * 1908s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1908s # */ 1908s # 1908s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_arg_u = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "arg_u", 1908s # (gchar *) "u", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_pointers[] = 1908s # { 1908s # &_org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_arg_u.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_u = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SingleArgMethodU", 1908s # NULL, 1908s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "handle-single-arg-method-u", 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1908s # { 1908s # &_org_project_useful_interface_method_info_single_arg_method_u.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "org.project.UsefulInterface", 1908s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1908s # NULL, 1908s # NULL, 1908s # NULL 1908s # }, 1908s # "org-project-useful-interface", 1908s # }; 1908s # 1908s # 1908s # /** 1908s # * org_project_useful_interface_interface_info: 1908s # * 1908s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1908s # * 1908s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1908s # */ 1908s # GDBusInterfaceInfo * 1908s # org_project_useful_interface_interface_info (void) 1908s # { 1908s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_override_properties: 1908s # * @klass: The class structure for a #GObject derived class. 1908s # * @property_id_begin: The property id to assign to the first overridden property. 1908s # * 1908s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1908s # * The properties are overridden in the order they are defined. 1908s # * 1908s # * Returns: The last property id. 1908s # */ 1908s # guint 1908s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1908s # { 1908s # return property_id_begin - 1; 1908s # } 1908s # 1908s # 1908s # inline static void 1908s # org_project_useful_interface_method_marshal_single_arg_method_u ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterface: 1908s # * 1908s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceIface: 1908s # * @parent_iface: The parent interface. 1908s # * @handle_single_arg_method_u: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-u signal. 1908s # * 1908s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1908s # */ 1908s # 1908s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1908s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1908s # 1908s # static void 1908s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1908s # { 1908s # /* GObject signals for incoming D-Bus method calls: */ 1908s # /** 1908s # * OrgProjectUsefulInterface::handle-single-arg-method-u: 1908s # * @object: A #OrgProjectUsefulInterface. 1908s # * @invocation: A #GDBusMethodInvocation. 1908s # * 1908s # * Signal emitted when a remote caller is invoking the SingleArgMethodU() D-Bus method. 1908s # * 1908s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_u() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1908s # * 1908s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1908s # */ 1908s # g_signal_new ("handle-single-arg-method-u", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_u), 1908s # g_signal_accumulator_true_handled, 1908s # NULL, 1908s # org_project_useful_interface_method_marshal_single_arg_method_u, 1908s # G_TYPE_BOOLEAN, 1908s # 1, 1908s # G_TYPE_DBUS_METHOD_INVOCATION); 1908s # 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_u: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously invokes the SingleArgMethodU() D-Bus method on @proxy. 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_call_single_arg_method_u_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_call_single_arg_method_u_sync() for the synchronous, blocking version of this method. 1908s # */ 1908s # void 1908s # org_project_useful_interface_call_single_arg_method_u ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1908s # "SingleArgMethodU", 1908s # g_variant_new ("()"), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # callback, 1908s # user_data); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_u_finish: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @out_arg_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_u(). 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_u(). 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_useful_interface_call_single_arg_method_u_finish ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # guint *out_arg_u, 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(u)", 1908s # out_arg_u); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_u_sync: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @out_arg_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Synchronously invokes the SingleArgMethodU() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_call_single_arg_method_u() for the asynchronous version of this method. 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_useful_interface_call_single_arg_method_u_sync ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # guint *out_arg_u, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1908s # "SingleArgMethodU", 1908s # g_variant_new ("()"), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(u)", 1908s # out_arg_u); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_complete_single_arg_method_u: 1908s # * @object: A #OrgProjectUsefulInterface. 1908s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1908s # * @arg_u: Parameter to return. 1908s # * 1908s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodU() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1908s # * 1908s # * This method will free @invocation, you cannot use it afterwards. 1908s # */ 1908s # void 1908s # org_project_useful_interface_complete_single_arg_method_u ( 1908s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1908s # GDBusMethodInvocation *invocation, 1908s # guint arg_u) 1908s # { 1908s # g_dbus_method_invocation_return_value (invocation, 1908s # g_variant_new ("(u)", 1908s # arg_u)); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceProxy: 1908s # * 1908s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceProxyClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1908s # */ 1908s # 1908s # struct _OrgProjectUsefulInterfaceProxyPrivate 1908s # { 1908s # GData *qdata; 1908s # }; 1908s # 1908s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_useful_interface_proxy_finalize (GObject *object) 1908s # { 1908s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1908s # g_datalist_clear (&proxy->priv->qdata); 1908s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # const GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1908s # const gchar *sender_name G_GNUC_UNUSED, 1908s # const gchar *signal_name, 1908s # GVariant *parameters) 1908s # { 1908s # _ExtendedGDBusSignalInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # gsize n; 1908s # guint signal_id; 1908s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1908s # if (info == NULL) 1908s # return; 1908s # num_params = g_variant_n_children (parameters); 1908s # paramv = g_new0 (GValue, num_params + 1); 1908s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_set_object (¶mv[0], proxy); 1908s # g_variant_iter_init (&iter, parameters); 1908s # n = 1; 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_signal_emitv (paramv, signal_id, 0, NULL); 1908s # for (n = 0; n < num_params + 1; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1908s # GVariant *changed_properties, 1908s # const gchar *const *invalidated_properties) 1908s # { 1908s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1908s # guint n; 1908s # const gchar *key; 1908s # GVariantIter *iter; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # g_variant_get (changed_properties, "a{sv}", &iter); 1908s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1908s # g_datalist_remove_data (&proxy->priv->qdata, key); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # g_variant_iter_free (iter); 1908s # for (n = 0; invalidated_properties[n] != NULL; n++) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1908s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1908s # #else 1908s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1908s # #endif 1908s # 1908s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusProxyClass *proxy_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1908s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1908s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1908s # 1908s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1908s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1908s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_useful_interface_proxy_new ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_sync: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_sync ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_useful_interface_proxy_new_for_bus ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_for_bus_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus_sync: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_for_bus_sync ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeleton: 1908s # * 1908s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeletonClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1908s # */ 1908s # 1908s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1908s # { 1908s # GValue *properties; 1908s # GList *changed_properties; 1908s # GSource *changed_properties_idle_source; 1908s # GMainContext *context; 1908s # GMutex lock; 1908s # }; 1908s # 1908s # static void 1908s # _org_project_useful_interface_skeleton_handle_method_call ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name, 1908s # const gchar *method_name, 1908s # GVariant *parameters, 1908s # GDBusMethodInvocation *invocation, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # _ExtendedGDBusMethodInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # guint num_extra; 1908s # gsize n; 1908s # guint signal_id; 1908s # GValue return_value = G_VALUE_INIT; 1908s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1908s # g_assert (info != NULL); 1908s # num_params = g_variant_n_children (parameters); 1908s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1908s # n = 0; 1908s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_set_object (¶mv[n++], skeleton); 1908s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1908s # g_value_set_object (¶mv[n++], invocation); 1908s # if (info->pass_fdlist) 1908s # { 1908s # #ifdef G_OS_UNIX 1908s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1908s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1908s # #else 1908s # g_assert_not_reached (); 1908s # #endif 1908s # } 1908s # g_variant_iter_init (&iter, parameters); 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1908s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1908s # if (!g_value_get_boolean (&return_value)) 1908s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1908s # g_value_unset (&return_value); 1908s # for (n = 0; n < num_params + num_extra; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static GVariant * 1908s # _org_project_useful_interface_skeleton_handle_get_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # GVariant *ret; 1908s # ret = NULL; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # g_value_init (&value, pspec->value_type); 1908s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1908s # g_value_unset (&value); 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _org_project_useful_interface_skeleton_handle_set_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GVariant *variant, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # gboolean ret; 1908s # ret = FALSE; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # if (info->use_gvariant) 1908s # g_value_set_variant (&value, variant); 1908s # else 1908s # g_dbus_gvariant_to_gvalue (variant, &value); 1908s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # g_value_unset (&value); 1908s # ret = TRUE; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1908s # { 1908s # _org_project_useful_interface_skeleton_handle_method_call, 1908s # _org_project_useful_interface_skeleton_handle_get_property, 1908s # _org_project_useful_interface_skeleton_handle_set_property, 1908s # {NULL} 1908s # }; 1908s # 1908s # static GDBusInterfaceInfo * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return org_project_useful_interface_interface_info (); 1908s # } 1908s # 1908s # static GDBusInterfaceVTable * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1908s # } 1908s # 1908s # static GVariant * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1908s # 1908s # GVariantBuilder builder; 1908s # guint n; 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1908s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #else 1908s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #endif 1908s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1908s # goto out; 1908s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1908s # { 1908s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1908s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1908s # { 1908s # GVariant *value; 1908s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1908s # if (value != NULL) 1908s # { 1908s # g_variant_take_ref (value); 1908s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1908s # g_variant_unref (value); 1908s # } 1908s # } 1908s # } 1908s # out: 1908s # return g_variant_builder_end (&builder); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_useful_interface_skeleton_finalize (GObject *object) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1908s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1908s # if (skeleton->priv->changed_properties_idle_source != NULL) 1908s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1908s # g_main_context_unref (skeleton->priv->context); 1908s # g_mutex_clear (&skeleton->priv->lock); 1908s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1908s # #else 1908s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1908s # #endif 1908s # 1908s # g_mutex_init (&skeleton->priv->lock); 1908s # skeleton->priv->context = g_main_context_ref_thread_default (); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusInterfaceSkeletonClass *skeleton_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1908s # 1908s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1908s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1908s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1908s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1908s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_skeleton_new: 1908s # * 1908s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_skeleton_new (void) 1908s # { 1908s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1908s # } 1908s # Error: 1908s # 1908s # /tmp/tmpei14pw7z/tmpajkg0tw2.xml: 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpei14pw7z/tmpajkg0tw2.xml', '--output', '-', '--body'] 1908s # Return code: 0 1908s # Output: 1908s # /* 1908s # * This file is generated by gdbus-codegen, do not modify it. 1908s # * 1908s # * The license of this code is the same as for the D-Bus interface description 1908s # * it was derived from. Note that it links to GLib, so must comply with the 1908s # * LGPL linking clauses. 1908s # */ 1908s # 1908s # #ifdef HAVE_CONFIG_H 1908s # # include "config.h" 1908s # #endif 1908s # 1908s # #include 1908s # #ifdef G_OS_UNIX 1908s # # include 1908s # #endif 1908s # 1908s # #ifdef G_ENABLE_DEBUG 1908s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1908s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1908s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1908s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1908s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1908s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1908s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1908s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1908s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1908s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1908s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1908s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1908s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1908s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1908s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1908s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1908s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1908s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1908s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1908s # #else /* !G_ENABLE_DEBUG */ 1908s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1908s # * Do not access GValues directly in your code. Instead, use the 1908s # * g_value_get_*() functions 1908s # */ 1908s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1908s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1908s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1908s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1908s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1908s # #endif /* !G_ENABLE_DEBUG */ 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusArgInfo parent_struct; 1908s # gboolean use_gvariant; 1908s # } _ExtendedGDBusArgInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusMethodInfo parent_struct; 1908s # const gchar *signal_name; 1908s # gboolean pass_fdlist; 1908s # } _ExtendedGDBusMethodInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusSignalInfo parent_struct; 1908s # const gchar *signal_name; 1908s # } _ExtendedGDBusSignalInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusPropertyInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # guint use_gvariant : 1; 1908s # guint emits_changed_signal : 1; 1908s # } _ExtendedGDBusPropertyInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusInterfaceInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # } _ExtendedGDBusInterfaceInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # const _ExtendedGDBusPropertyInfo *info; 1908s # guint prop_id; 1908s # GValue orig_value; /* the value before the change */ 1908s # } ChangedProperty; 1908s # 1908s # static void 1908s # _changed_property_free (ChangedProperty *data) 1908s # { 1908s # g_value_unset (&data->orig_value); 1908s # g_free (data); 1908s # } 1908s # 1908s # static gboolean 1908s # _g_strv_equal0 (gchar **a, gchar **b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # guint n; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # if (g_strv_length (a) != g_strv_length (b)) 1908s # goto out; 1908s # for (n = 0; a[n] != NULL; n++) 1908s # if (g_strcmp0 (a[n], b[n]) != 0) 1908s # goto out; 1908s # ret = TRUE; 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _g_variant_equal0 (GVariant *a, GVariant *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # ret = g_variant_equal (a, b); 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # G_GNUC_UNUSED static gboolean 1908s # _g_value_equal (const GValue *a, const GValue *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1908s # switch (G_VALUE_TYPE (a)) 1908s # { 1908s # case G_TYPE_BOOLEAN: 1908s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1908s # break; 1908s # case G_TYPE_UCHAR: 1908s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1908s # break; 1908s # case G_TYPE_INT: 1908s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1908s # break; 1908s # case G_TYPE_UINT: 1908s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1908s # break; 1908s # case G_TYPE_INT64: 1908s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1908s # break; 1908s # case G_TYPE_UINT64: 1908s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1908s # break; 1908s # case G_TYPE_DOUBLE: 1908s # { 1908s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1908s # gdouble da = g_value_get_double (a); 1908s # gdouble db = g_value_get_double (b); 1908s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1908s # } 1908s # break; 1908s # case G_TYPE_STRING: 1908s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1908s # break; 1908s # case G_TYPE_VARIANT: 1908s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1908s # break; 1908s # default: 1908s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1908s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1908s # else 1908s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1908s # break; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static void 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint G_GNUC_UNUSED, 1908s # void *marshal_data) 1908s # { 1908s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1908s # (void *data1, 1908s # GDBusMethodInvocation *arg_method_invocation, 1908s # void *data2); 1908s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1908s # GCClosure *cc = (GCClosure*) closure; 1908s # void *data1, *data2; 1908s # gboolean v_return; 1908s # 1908s # g_return_if_fail (return_value != NULL); 1908s # g_return_if_fail (n_param_values == 2); 1908s # 1908s # if (G_CCLOSURE_SWAP_DATA (closure)) 1908s # { 1908s # data1 = closure->data; 1908s # data2 = g_value_peek_pointer (param_values + 0); 1908s # } 1908s # else 1908s # { 1908s # data1 = g_value_peek_pointer (param_values + 0); 1908s # data2 = closure->data; 1908s # } 1908s # 1908s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1908s # (marshal_data ? marshal_data : cc->callback); 1908s # 1908s # v_return = 1908s # callback (data1, 1908s # g_marshal_value_peek_object (param_values + 1), 1908s # data2); 1908s # 1908s # g_value_set_boolean (return_value, v_return); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ 1908s # * Code for interface org.project.UsefulInterface 1908s # * ------------------------------------------------------------------------ 1908s # */ 1908s # 1908s # /** 1908s # * SECTION:OrgProjectUsefulInterface 1908s # * @title: OrgProjectUsefulInterface 1908s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1908s # * 1908s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1908s # */ 1908s # 1908s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_arg_x = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "arg_x", 1908s # (gchar *) "x", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_pointers[] = 1908s # { 1908s # &_org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_arg_x.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_x = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SingleArgMethodX", 1908s # NULL, 1908s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "handle-single-arg-method-x", 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1908s # { 1908s # &_org_project_useful_interface_method_info_single_arg_method_x.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "org.project.UsefulInterface", 1908s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1908s # NULL, 1908s # NULL, 1908s # NULL 1908s # }, 1908s # "org-project-useful-interface", 1908s # }; 1908s # 1908s # 1908s # /** 1908s # * org_project_useful_interface_interface_info: 1908s # * 1908s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1908s # * 1908s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1908s # */ 1908s # GDBusInterfaceInfo * 1908s # org_project_useful_interface_interface_info (void) 1908s # { 1908s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_override_properties: 1908s # * @klass: The class structure for a #GObject derived class. 1908s # * @property_id_begin: The property id to assign to the first overridden property. 1908s # * 1908s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1908s # * The properties are overridden in the order they are defined. 1908s # * 1908s # * Returns: The last property id. 1908s # */ 1908s # guint 1908s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1908s # { 1908s # return property_id_begin - 1; 1908s # } 1908s # 1908s # 1908s # inline static void 1908s # org_project_useful_interface_method_marshal_single_arg_method_x ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterface: 1908s # * 1908s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceIface: 1908s # * @parent_iface: The parent interface. 1908s # * @handle_single_arg_method_x: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-x signal. 1908s # * 1908s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1908s # */ 1908s # 1908s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1908s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1908s # 1908s # static void 1908s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1908s # { 1908s # /* GObject signals for incoming D-Bus method calls: */ 1908s # /** 1908s # * OrgProjectUsefulInterface::handle-single-arg-method-x: 1908s # * @object: A #OrgProjectUsefulInterface. 1908s # * @invocation: A #GDBusMethodInvocation. 1908s # * 1908s # * Signal emitted when a remote caller is invoking the SingleArgMethodX() D-Bus method. 1908s # * 1908s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_x() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1908s # * 1908s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1908s # */ 1908s # g_signal_new ("handle-single-arg-method-x", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_x), 1908s # g_signal_accumulator_true_handled, 1908s # NULL, 1908s # org_project_useful_interface_method_marshal_single_arg_method_x, 1908s # G_TYPE_BOOLEAN, 1908s # 1, 1908s # G_TYPE_DBUS_METHOD_INVOCATION); 1908s # 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_x: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously invokes the SingleArgMethodX() D-Bus method on @proxy. 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_call_single_arg_method_x_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_call_single_arg_method_x_sync() for the synchronous, blocking version of this method. 1908s # */ 1908s # void 1908s # org_project_useful_interface_call_single_arg_method_x ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1908s # "SingleArgMethodX", 1908s # g_variant_new ("()"), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # callback, 1908s # user_data); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_x_finish: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @out_arg_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_x(). 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_x(). 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_useful_interface_call_single_arg_method_x_finish ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # gint64 *out_arg_x, 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(x)", 1908s # out_arg_x); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_x_sync: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @out_arg_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Synchronously invokes the SingleArgMethodX() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_call_single_arg_method_x() for the asynchronous version of this method. 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_useful_interface_call_single_arg_method_x_sync ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # gint64 *out_arg_x, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1908s # "SingleArgMethodX", 1908s # g_variant_new ("()"), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(x)", 1908s # out_arg_x); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_complete_single_arg_method_x: 1908s # * @object: A #OrgProjectUsefulInterface. 1908s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1908s # * @arg_x: Parameter to return. 1908s # * 1908s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodX() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1908s # * 1908s # * This method will free @invocation, you cannot use it afterwards. 1908s # */ 1908s # void 1908s # org_project_useful_interface_complete_single_arg_method_x ( 1908s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1908s # GDBusMethodInvocation *invocation, 1908s # gint64 arg_x) 1908s # { 1908s # g_dbus_method_invocation_return_value (invocation, 1908s # g_variant_new ("(x)", 1908s # arg_x)); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceProxy: 1908s # * 1908s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceProxyClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1908s # */ 1908s # 1908s # struct _OrgProjectUsefulInterfaceProxyPrivate 1908s # { 1908s # GData *qdata; 1908s # }; 1908s # 1908s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_useful_interface_proxy_finalize (GObject *object) 1908s # { 1908s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1908s # g_datalist_clear (&proxy->priv->qdata); 1908s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # const GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1908s # const gchar *sender_name G_GNUC_UNUSED, 1908s # const gchar *signal_name, 1908s # GVariant *parameters) 1908s # { 1908s # _ExtendedGDBusSignalInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # gsize n; 1908s # guint signal_id; 1908s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1908s # if (info == NULL) 1908s # return; 1908s # num_params = g_variant_n_children (parameters); 1908s # paramv = g_new0 (GValue, num_params + 1); 1908s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_set_object (¶mv[0], proxy); 1908s # g_variant_iter_init (&iter, parameters); 1908s # n = 1; 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_signal_emitv (paramv, signal_id, 0, NULL); 1908s # for (n = 0; n < num_params + 1; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1908s # GVariant *changed_properties, 1908s # const gchar *const *invalidated_properties) 1908s # { 1908s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1908s # guint n; 1908s # const gchar *key; 1908s # GVariantIter *iter; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # g_variant_get (changed_properties, "a{sv}", &iter); 1908s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1908s # g_datalist_remove_data (&proxy->priv->qdata, key); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # g_variant_iter_free (iter); 1908s # for (n = 0; invalidated_properties[n] != NULL; n++) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1908s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1908s # #else 1908s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1908s # #endif 1908s # 1908s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusProxyClass *proxy_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1908s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1908s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1908s # 1908s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1908s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1908s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_useful_interface_proxy_new ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_sync: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_sync ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_useful_interface_proxy_new_for_bus ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_for_bus_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus_sync: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_for_bus_sync ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeleton: 1908s # * 1908s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeletonClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1908s # */ 1908s # 1908s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1908s # { 1908s # GValue *properties; 1908s # GList *changed_properties; 1908s # GSource *changed_properties_idle_source; 1908s # GMainContext *context; 1908s # GMutex lock; 1908s # }; 1908s # 1908s # static void 1908s # _org_project_useful_interface_skeleton_handle_method_call ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name, 1908s # const gchar *method_name, 1908s # GVariant *parameters, 1908s # GDBusMethodInvocation *invocation, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # _ExtendedGDBusMethodInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # guint num_extra; 1908s # gsize n; 1908s # guint signal_id; 1908s # GValue return_value = G_VALUE_INIT; 1908s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1908s # g_assert (info != NULL); 1908s # num_params = g_variant_n_children (parameters); 1908s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1908s # n = 0; 1908s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_set_object (¶mv[n++], skeleton); 1908s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1908s # g_value_set_object (¶mv[n++], invocation); 1908s # if (info->pass_fdlist) 1908s # { 1908s # #ifdef G_OS_UNIX 1908s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1908s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1908s # #else 1908s # g_assert_not_reached (); 1908s # #endif 1908s # } 1908s # g_variant_iter_init (&iter, parameters); 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1908s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1908s # if (!g_value_get_boolean (&return_value)) 1908s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1908s # g_value_unset (&return_value); 1908s # for (n = 0; n < num_params + num_extra; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static GVariant * 1908s # _org_project_useful_interface_skeleton_handle_get_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # GVariant *ret; 1908s # ret = NULL; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # g_value_init (&value, pspec->value_type); 1908s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1908s # g_value_unset (&value); 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _org_project_useful_interface_skeleton_handle_set_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GVariant *variant, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # gboolean ret; 1908s # ret = FALSE; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # if (info->use_gvariant) 1908s # g_value_set_variant (&value, variant); 1908s # else 1908s # g_dbus_gvariant_to_gvalue (variant, &value); 1908s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # g_value_unset (&value); 1908s # ret = TRUE; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1908s # { 1908s # _org_project_useful_interface_skeleton_handle_method_call, 1908s # _org_project_useful_interface_skeleton_handle_get_property, 1908s # _org_project_useful_interface_skeleton_handle_set_property, 1908s # {NULL} 1908s # }; 1908s # 1908s # static GDBusInterfaceInfo * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return org_project_useful_interface_interface_info (); 1908s # } 1908s # 1908s # static GDBusInterfaceVTable * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1908s # } 1908s # 1908s # static GVariant * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1908s # 1908s # GVariantBuilder builder; 1908s # guint n; 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1908s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #else 1908s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #endif 1908s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1908s # goto out; 1908s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1908s # { 1908s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1908s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1908s # { 1908s # GVariant *value; 1908s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1908s # if (value != NULL) 1908s # { 1908s # g_variant_take_ref (value); 1908s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1908s # g_variant_unref (value); 1908s # } 1908s # } 1908s # } 1908s # out: 1908s # return g_variant_builder_end (&builder); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_useful_interface_skeleton_finalize (GObject *object) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1908s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1908s # if (skeleton->priv->changed_properties_idle_source != NULL) 1908s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1908s # g_main_context_unref (skeleton->priv->context); 1908s # g_mutex_clear (&skeleton->priv->lock); 1908s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1908s # #else 1908s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1908s # #endif 1908s # 1908s # g_mutex_init (&skeleton->priv->lock); 1908s # skeleton->priv->context = g_main_context_ref_thread_default (); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusInterfaceSkeletonClass *skeleton_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1908s # 1908s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1908s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1908s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1908s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1908s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_skeleton_new: 1908s # * 1908s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_skeleton_new (void) 1908s # { 1908s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1908s # } 1908s # Error: 1908s # 1908s # /tmp/tmpei14pw7z/tmp7slhu8hx.xml: 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpei14pw7z/tmp7slhu8hx.xml', '--output', '-', '--body'] 1908s # Return code: 0 1908s # Output: 1908s # /* 1908s # * This file is generated by gdbus-codegen, do not modify it. 1908s # * 1908s # * The license of this code is the same as for the D-Bus interface description 1908s # * it was derived from. Note that it links to GLib, so must comply with the 1908s # * LGPL linking clauses. 1908s # */ 1908s # 1908s # #ifdef HAVE_CONFIG_H 1908s # # include "config.h" 1908s # #endif 1908s # 1908s # #include 1908s # #ifdef G_OS_UNIX 1908s # # include 1908s # #endif 1908s # 1908s # #ifdef G_ENABLE_DEBUG 1908s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1908s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1908s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1908s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1908s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1908s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1908s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1908s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1908s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1908s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1908s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1908s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1908s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1908s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1908s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1908s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1908s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1908s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1908s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1908s # #else /* !G_ENABLE_DEBUG */ 1908s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1908s # * Do not access GValues directly in your code. Instead, use the 1908s # * g_value_get_*() functions 1908s # */ 1908s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1908s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1908s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1908s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1908s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1908s # #endif /* !G_ENABLE_DEBUG */ 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusArgInfo parent_struct; 1908s # gboolean use_gvariant; 1908s # } _ExtendedGDBusArgInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusMethodInfo parent_struct; 1908s # const gchar *signal_name; 1908s # gboolean pass_fdlist; 1908s # } _ExtendedGDBusMethodInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusSignalInfo parent_struct; 1908s # const gchar *signal_name; 1908s # } _ExtendedGDBusSignalInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusPropertyInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # guint use_gvariant : 1; 1908s # guint emits_changed_signal : 1; 1908s # } _ExtendedGDBusPropertyInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusInterfaceInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # } _ExtendedGDBusInterfaceInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # const _ExtendedGDBusPropertyInfo *info; 1908s # guint prop_id; 1908s # GValue orig_value; /* the value before the change */ 1908s # } ChangedProperty; 1908s # 1908s # static void 1908s # _changed_property_free (ChangedProperty *data) 1908s # { 1908s # g_value_unset (&data->orig_value); 1908s # g_free (data); 1908s # } 1908s # 1908s # static gboolean 1908s # _g_strv_equal0 (gchar **a, gchar **b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # guint n; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # if (g_strv_length (a) != g_strv_length (b)) 1908s # goto out; 1908s # for (n = 0; a[n] != NULL; n++) 1908s # if (g_strcmp0 (a[n], b[n]) != 0) 1908s # goto out; 1908s # ret = TRUE; 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _g_variant_equal0 (GVariant *a, GVariant *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # ret = g_variant_equal (a, b); 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # G_GNUC_UNUSED static gboolean 1908s # _g_value_equal (const GValue *a, const GValue *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1908s # switch (G_VALUE_TYPE (a)) 1908s # { 1908s # case G_TYPE_BOOLEAN: 1908s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1908s # break; 1908s # case G_TYPE_UCHAR: 1908s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1908s # break; 1908s # case G_TYPE_INT: 1908s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1908s # break; 1908s # case G_TYPE_UINT: 1908s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1908s # break; 1908s # case G_TYPE_INT64: 1908s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1908s # break; 1908s # case G_TYPE_UINT64: 1908s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1908s # break; 1908s # case G_TYPE_DOUBLE: 1908s # { 1908s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1908s # gdouble da = g_value_get_double (a); 1908s # gdouble db = g_value_get_double (b); 1908s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1908s # } 1908s # break; 1908s # case G_TYPE_STRING: 1908s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1908s # break; 1908s # case G_TYPE_VARIANT: 1908s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1908s # break; 1908s # default: 1908s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1908s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1908s # else 1908s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1908s # break; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static void 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint G_GNUC_UNUSED, 1908s # void *marshal_data) 1908s # { 1908s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1908s # (void *data1, 1908s # GDBusMethodInvocation *arg_method_invocation, 1908s # void *data2); 1908s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1908s # GCClosure *cc = (GCClosure*) closure; 1908s # void *data1, *data2; 1908s # gboolean v_return; 1908s # 1908s # g_return_if_fail (return_value != NULL); 1908s # g_return_if_fail (n_param_values == 2); 1908s # 1908s # if (G_CCLOSURE_SWAP_DATA (closure)) 1908s # { 1908s # data1 = closure->data; 1908s # data2 = g_value_peek_pointer (param_values + 0); 1908s # } 1908s # else 1908s # { 1908s # data1 = g_value_peek_pointer (param_values + 0); 1908s # data2 = closure->data; 1908s # } 1908s # 1908s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1908s # (marshal_data ? marshal_data : cc->callback); 1908s # 1908s # v_return = 1908s # callback (data1, 1908s # g_marshal_value_peek_object (param_values + 1), 1908s # data2); 1908s # 1908s # g_value_set_boolean (return_value, v_return); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ 1908s # * Code for interface org.project.UsefulInterface 1908s # * ------------------------------------------------------------------------ 1908s # */ 1908s # 1908s # /** 1908s # * SECTION:OrgProjectUsefulInterface 1908s # * @title: OrgProjectUsefulInterface 1908s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1908s # * 1908s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1908s # */ 1908s # 1908s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_arg_t = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "arg_t", 1908s # (gchar *) "t", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_pointers[] = 1908s # { 1908s # &_org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_arg_t.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_t = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SingleArgMethodT", 1908s # NULL, 1908s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "handle-single-arg-method-t", 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1908s # { 1908s # &_org_project_useful_interface_method_info_single_arg_method_t.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "org.project.UsefulInterface", 1908s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1908s # NULL, 1908s # NULL, 1908s # NULL 1908s # }, 1908s # "org-project-useful-interface", 1908s # }; 1908s # 1908s # 1908s # /** 1908s # * org_project_useful_interface_interface_info: 1908s # * 1908s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1908s # * 1908s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1908s # */ 1908s # GDBusInterfaceInfo * 1908s # org_project_useful_interface_interface_info (void) 1908s # { 1908s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_override_properties: 1908s # * @klass: The class structure for a #GObject derived class. 1908s # * @property_id_begin: The property id to assign to the first overridden property. 1908s # * 1908s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1908s # * The properties are overridden in the order they are defined. 1908s # * 1908s # * Returns: The last property id. 1908s # */ 1908s # guint 1908s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1908s # { 1908s # return property_id_begin - 1; 1908s # } 1908s # 1908s # 1908s # inline static void 1908s # org_project_useful_interface_method_marshal_single_arg_method_t ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterface: 1908s # * 1908s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceIface: 1908s # * @parent_iface: The parent interface. 1908s # * @handle_single_arg_method_t: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-t signal. 1908s # * 1908s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1908s # */ 1908s # 1908s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1908s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1908s # 1908s # static void 1908s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1908s # { 1908s # /* GObject signals for incoming D-Bus method calls: */ 1908s # /** 1908s # * OrgProjectUsefulInterface::handle-single-arg-method-t: 1908s # * @object: A #OrgProjectUsefulInterface. 1908s # * @invocation: A #GDBusMethodInvocation. 1908s # * 1908s # * Signal emitted when a remote caller is invoking the SingleArgMethodT() D-Bus method. 1908s # * 1908s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_t() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1908s # * 1908s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1908s # */ 1908s # g_signal_new ("handle-single-arg-method-t", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_t), 1908s # g_signal_accumulator_true_handled, 1908s # NULL, 1908s # org_project_useful_interface_method_marshal_single_arg_method_t, 1908s # G_TYPE_BOOLEAN, 1908s # 1, 1908s # G_TYPE_DBUS_METHOD_INVOCATION); 1908s # 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_t: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously invokes the SingleArgMethodT() D-Bus method on @proxy. 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_call_single_arg_method_t_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_call_single_arg_method_t_sync() for the synchronous, blocking version of this method. 1908s # */ 1908s # void 1908s # org_project_useful_interface_call_single_arg_method_t ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1908s # "SingleArgMethodT", 1908s # g_variant_new ("()"), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # callback, 1908s # user_data); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_t_finish: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @out_arg_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_t(). 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_t(). 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_useful_interface_call_single_arg_method_t_finish ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # guint64 *out_arg_t, 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(t)", 1908s # out_arg_t); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_t_sync: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @out_arg_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Synchronously invokes the SingleArgMethodT() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_call_single_arg_method_t() for the asynchronous version of this method. 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_useful_interface_call_single_arg_method_t_sync ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # guint64 *out_arg_t, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1908s # "SingleArgMethodT", 1908s # g_variant_new ("()"), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(t)", 1908s # out_arg_t); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_complete_single_arg_method_t: 1908s # * @object: A #OrgProjectUsefulInterface. 1908s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1908s # * @arg_t: Parameter to return. 1908s # * 1908s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodT() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1908s # * 1908s # * This method will free @invocation, you cannot use it afterwards. 1908s # */ 1908s # void 1908s # org_project_useful_interface_complete_single_arg_method_t ( 1908s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1908s # GDBusMethodInvocation *invocation, 1908s # guint64 arg_t) 1908s # { 1908s # g_dbus_method_invocation_return_value (invocation, 1908s # g_variant_new ("(t)", 1908s # arg_t)); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceProxy: 1908s # * 1908s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceProxyClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1908s # */ 1908s # 1908s # struct _OrgProjectUsefulInterfaceProxyPrivate 1908s # { 1908s # GData *qdata; 1908s # }; 1908s # 1908s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_useful_interface_proxy_finalize (GObject *object) 1908s # { 1908s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1908s # g_datalist_clear (&proxy->priv->qdata); 1908s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # const GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1908s # const gchar *sender_name G_GNUC_UNUSED, 1908s # const gchar *signal_name, 1908s # GVariant *parameters) 1908s # { 1908s # _ExtendedGDBusSignalInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # gsize n; 1908s # guint signal_id; 1908s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1908s # if (info == NULL) 1908s # return; 1908s # num_params = g_variant_n_children (parameters); 1908s # paramv = g_new0 (GValue, num_params + 1); 1908s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_set_object (¶mv[0], proxy); 1908s # g_variant_iter_init (&iter, parameters); 1908s # n = 1; 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_signal_emitv (paramv, signal_id, 0, NULL); 1908s # for (n = 0; n < num_params + 1; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1908s # GVariant *changed_properties, 1908s # const gchar *const *invalidated_properties) 1908s # { 1908s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1908s # guint n; 1908s # const gchar *key; 1908s # GVariantIter *iter; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # g_variant_get (changed_properties, "a{sv}", &iter); 1908s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1908s # g_datalist_remove_data (&proxy->priv->qdata, key); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # g_variant_iter_free (iter); 1908s # for (n = 0; invalidated_properties[n] != NULL; n++) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1908s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1908s # #else 1908s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1908s # #endif 1908s # 1908s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusProxyClass *proxy_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1908s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1908s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1908s # 1908s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1908s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1908s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_useful_interface_proxy_new ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_sync: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_sync ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_useful_interface_proxy_new_for_bus ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_for_bus_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus_sync: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_for_bus_sync ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeleton: 1908s # * 1908s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeletonClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1908s # */ 1908s # 1908s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1908s # { 1908s # GValue *properties; 1908s # GList *changed_properties; 1908s # GSource *changed_properties_idle_source; 1908s # GMainContext *context; 1908s # GMutex lock; 1908s # }; 1908s # 1908s # static void 1908s # _org_project_useful_interface_skeleton_handle_method_call ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name, 1908s # const gchar *method_name, 1908s # GVariant *parameters, 1908s # GDBusMethodInvocation *invocation, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # _ExtendedGDBusMethodInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # guint num_extra; 1908s # gsize n; 1908s # guint signal_id; 1908s # GValue return_value = G_VALUE_INIT; 1908s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1908s # g_assert (info != NULL); 1908s # num_params = g_variant_n_children (parameters); 1908s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1908s # n = 0; 1908s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_set_object (¶mv[n++], skeleton); 1908s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1908s # g_value_set_object (¶mv[n++], invocation); 1908s # if (info->pass_fdlist) 1908s # { 1908s # #ifdef G_OS_UNIX 1908s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1908s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1908s # #else 1908s # g_assert_not_reached (); 1908s # #endif 1908s # } 1908s # g_variant_iter_init (&iter, parameters); 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1908s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1908s # if (!g_value_get_boolean (&return_value)) 1908s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1908s # g_value_unset (&return_value); 1908s # for (n = 0; n < num_params + num_extra; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static GVariant * 1908s # _org_project_useful_interface_skeleton_handle_get_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # GVariant *ret; 1908s # ret = NULL; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # g_value_init (&value, pspec->value_type); 1908s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1908s # g_value_unset (&value); 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _org_project_useful_interface_skeleton_handle_set_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GVariant *variant, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # gboolean ret; 1908s # ret = FALSE; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # if (info->use_gvariant) 1908s # g_value_set_variant (&value, variant); 1908s # else 1908s # g_dbus_gvariant_to_gvalue (variant, &value); 1908s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # g_value_unset (&value); 1908s # ret = TRUE; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1908s # { 1908s # _org_project_useful_interface_skeleton_handle_method_call, 1908s # _org_project_useful_interface_skeleton_handle_get_property, 1908s # _org_project_useful_interface_skeleton_handle_set_property, 1908s # {NULL} 1908s # }; 1908s # 1908s # static GDBusInterfaceInfo * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return org_project_useful_interface_interface_info (); 1908s # } 1908s # 1908s # static GDBusInterfaceVTable * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1908s # } 1908s # 1908s # static GVariant * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1908s # 1908s # GVariantBuilder builder; 1908s # guint n; 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1908s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #else 1908s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #endif 1908s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1908s # goto out; 1908s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1908s # { 1908s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1908s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1908s # { 1908s # GVariant *value; 1908s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1908s # if (value != NULL) 1908s # { 1908s # g_variant_take_ref (value); 1908s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1908s # g_variant_unref (value); 1908s # } 1908s # } 1908s # } 1908s # out: 1908s # return g_variant_builder_end (&builder); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_useful_interface_skeleton_finalize (GObject *object) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1908s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1908s # if (skeleton->priv->changed_properties_idle_source != NULL) 1908s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1908s # g_main_context_unref (skeleton->priv->context); 1908s # g_mutex_clear (&skeleton->priv->lock); 1908s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1908s # #else 1908s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1908s # #endif 1908s # 1908s # g_mutex_init (&skeleton->priv->lock); 1908s # skeleton->priv->context = g_main_context_ref_thread_default (); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusInterfaceSkeletonClass *skeleton_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1908s # 1908s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1908s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1908s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1908s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1908s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_skeleton_new: 1908s # * 1908s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_skeleton_new (void) 1908s # { 1908s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1908s # } 1908s # Error: 1908s # 1908s # /tmp/tmpei14pw7z/tmp_2u59ub3.xml: 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpei14pw7z/tmp_2u59ub3.xml', '--output', '-', '--body'] 1908s # Return code: 0 1908s # Output: 1908s # /* 1908s # * This file is generated by gdbus-codegen, do not modify it. 1908s # * 1908s # * The license of this code is the same as for the D-Bus interface description 1908s # * it was derived from. Note that it links to GLib, so must comply with the 1908s # * LGPL linking clauses. 1908s # */ 1908s # 1908s # #ifdef HAVE_CONFIG_H 1908s # # include "config.h" 1908s # #endif 1908s # 1908s # #include 1908s # #ifdef G_OS_UNIX 1908s # # include 1908s # #endif 1908s # 1908s # #ifdef G_ENABLE_DEBUG 1908s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1908s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1908s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1908s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1908s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1908s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1908s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1908s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1908s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1908s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1908s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1908s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1908s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1908s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1908s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1908s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1908s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1908s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1908s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1908s # #else /* !G_ENABLE_DEBUG */ 1908s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1908s # * Do not access GValues directly in your code. Instead, use the 1908s # * g_value_get_*() functions 1908s # */ 1908s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1908s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1908s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1908s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1908s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1908s # #endif /* !G_ENABLE_DEBUG */ 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusArgInfo parent_struct; 1908s # gboolean use_gvariant; 1908s # } _ExtendedGDBusArgInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusMethodInfo parent_struct; 1908s # const gchar *signal_name; 1908s # gboolean pass_fdlist; 1908s # } _ExtendedGDBusMethodInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusSignalInfo parent_struct; 1908s # const gchar *signal_name; 1908s # } _ExtendedGDBusSignalInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusPropertyInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # guint use_gvariant : 1; 1908s # guint emits_changed_signal : 1; 1908s # } _ExtendedGDBusPropertyInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusInterfaceInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # } _ExtendedGDBusInterfaceInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # const _ExtendedGDBusPropertyInfo *info; 1908s # guint prop_id; 1908s # GValue orig_value; /* the value before the change */ 1908s # } ChangedProperty; 1908s # 1908s # static void 1908s # _changed_property_free (ChangedProperty *data) 1908s # { 1908s # g_value_unset (&data->orig_value); 1908s # g_free (data); 1908s # } 1908s # 1908s # static gboolean 1908s # _g_strv_equal0 (gchar **a, gchar **b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # guint n; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # if (g_strv_length (a) != g_strv_length (b)) 1908s # goto out; 1908s # for (n = 0; a[n] != NULL; n++) 1908s # if (g_strcmp0 (a[n], b[n]) != 0) 1908s # goto out; 1908s # ret = TRUE; 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _g_variant_equal0 (GVariant *a, GVariant *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # ret = g_variant_equal (a, b); 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # G_GNUC_UNUSED static gboolean 1908s # _g_value_equal (const GValue *a, const GValue *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1908s # switch (G_VALUE_TYPE (a)) 1908s # { 1908s # case G_TYPE_BOOLEAN: 1908s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1908s # break; 1908s # case G_TYPE_UCHAR: 1908s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1908s # break; 1908s # case G_TYPE_INT: 1908s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1908s # break; 1908s # case G_TYPE_UINT: 1908s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1908s # break; 1908s # case G_TYPE_INT64: 1908s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1908s # break; 1908s # case G_TYPE_UINT64: 1908s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1908s # break; 1908s # case G_TYPE_DOUBLE: 1908s # { 1908s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1908s # gdouble da = g_value_get_double (a); 1908s # gdouble db = g_value_get_double (b); 1908s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1908s # } 1908s # break; 1908s # case G_TYPE_STRING: 1908s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1908s # break; 1908s # case G_TYPE_VARIANT: 1908s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1908s # break; 1908s # default: 1908s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1908s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1908s # else 1908s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1908s # break; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static void 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint G_GNUC_UNUSED, 1908s # void *marshal_data) 1908s # { 1908s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1908s # (void *data1, 1908s # GDBusMethodInvocation *arg_method_invocation, 1908s # void *data2); 1908s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1908s # GCClosure *cc = (GCClosure*) closure; 1908s # void *data1, *data2; 1908s # gboolean v_return; 1908s # 1908s # g_return_if_fail (return_value != NULL); 1908s # g_return_if_fail (n_param_values == 2); 1908s # 1908s # if (G_CCLOSURE_SWAP_DATA (closure)) 1908s # { 1908s # data1 = closure->data; 1908s # data2 = g_value_peek_pointer (param_values + 0); 1908s # } 1908s # else 1908s # { 1908s # data1 = g_value_peek_pointer (param_values + 0); 1908s # data2 = closure->data; 1908s # } 1908s # 1908s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1908s # (marshal_data ? marshal_data : cc->callback); 1908s # 1908s # v_return = 1908s # callback (data1, 1908s # g_marshal_value_peek_object (param_values + 1), 1908s # data2); 1908s # 1908s # g_value_set_boolean (return_value, v_return); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ 1908s # * Code for interface org.project.UsefulInterface 1908s # * ------------------------------------------------------------------------ 1908s # */ 1908s # 1908s # /** 1908s # * SECTION:OrgProjectUsefulInterface 1908s # * @title: OrgProjectUsefulInterface 1908s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1908s # * 1908s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1908s # */ 1908s # 1908s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_arg_d = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "arg_d", 1908s # (gchar *) "d", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_pointers[] = 1908s # { 1908s # &_org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_arg_d.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_d = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SingleArgMethodD", 1908s # NULL, 1908s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "handle-single-arg-method-d", 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1908s # { 1908s # &_org_project_useful_interface_method_info_single_arg_method_d.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "org.project.UsefulInterface", 1908s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1908s # NULL, 1908s # NULL, 1908s # NULL 1908s # }, 1908s # "org-project-useful-interface", 1908s # }; 1908s # 1908s # 1908s # /** 1908s # * org_project_useful_interface_interface_info: 1908s # * 1908s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1908s # * 1908s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1908s # */ 1908s # GDBusInterfaceInfo * 1908s # org_project_useful_interface_interface_info (void) 1908s # { 1908s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_override_properties: 1908s # * @klass: The class structure for a #GObject derived class. 1908s # * @property_id_begin: The property id to assign to the first overridden property. 1908s # * 1908s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1908s # * The properties are overridden in the order they are defined. 1908s # * 1908s # * Returns: The last property id. 1908s # */ 1908s # guint 1908s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1908s # { 1908s # return property_id_begin - 1; 1908s # } 1908s # 1908s # 1908s # inline static void 1908s # org_project_useful_interface_method_marshal_single_arg_method_d ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterface: 1908s # * 1908s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceIface: 1908s # * @parent_iface: The parent interface. 1908s # * @handle_single_arg_method_d: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-d signal. 1908s # * 1908s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1908s # */ 1908s # 1908s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1908s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1908s # 1908s # static void 1908s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1908s # { 1908s # /* GObject signals for incoming D-Bus method calls: */ 1908s # /** 1908s # * OrgProjectUsefulInterface::handle-single-arg-method-d: 1908s # * @object: A #OrgProjectUsefulInterface. 1908s # * @invocation: A #GDBusMethodInvocation. 1908s # * 1908s # * Signal emitted when a remote caller is invoking the SingleArgMethodD() D-Bus method. 1908s # * 1908s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_d() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1908s # * 1908s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1908s # */ 1908s # g_signal_new ("handle-single-arg-method-d", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_d), 1908s # g_signal_accumulator_true_handled, 1908s # NULL, 1908s # org_project_useful_interface_method_marshal_single_arg_method_d, 1908s # G_TYPE_BOOLEAN, 1908s # 1, 1908s # G_TYPE_DBUS_METHOD_INVOCATION); 1908s # 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_d: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously invokes the SingleArgMethodD() D-Bus method on @proxy. 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_call_single_arg_method_d_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_call_single_arg_method_d_sync() for the synchronous, blocking version of this method. 1908s # */ 1908s # void 1908s # org_project_useful_interface_call_single_arg_method_d ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1908s # "SingleArgMethodD", 1908s # g_variant_new ("()"), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # callback, 1908s # user_data); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_d_finish: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @out_arg_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_d(). 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_d(). 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_useful_interface_call_single_arg_method_d_finish ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # gdouble *out_arg_d, 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(d)", 1908s # out_arg_d); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_d_sync: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @out_arg_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Synchronously invokes the SingleArgMethodD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_call_single_arg_method_d() for the asynchronous version of this method. 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_useful_interface_call_single_arg_method_d_sync ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # gdouble *out_arg_d, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1908s # "SingleArgMethodD", 1908s # g_variant_new ("()"), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(d)", 1908s # out_arg_d); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_complete_single_arg_method_d: 1908s # * @object: A #OrgProjectUsefulInterface. 1908s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1908s # * @arg_d: Parameter to return. 1908s # * 1908s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodD() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1908s # * 1908s # * This method will free @invocation, you cannot use it afterwards. 1908s # */ 1908s # void 1908s # org_project_useful_interface_complete_single_arg_method_d ( 1908s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1908s # GDBusMethodInvocation *invocation, 1908s # gdouble arg_d) 1908s # { 1908s # g_dbus_method_invocation_return_value (invocation, 1908s # g_variant_new ("(d)", 1908s # arg_d)); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceProxy: 1908s # * 1908s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceProxyClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1908s # */ 1908s # 1908s # struct _OrgProjectUsefulInterfaceProxyPrivate 1908s # { 1908s # GData *qdata; 1908s # }; 1908s # 1908s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_useful_interface_proxy_finalize (GObject *object) 1908s # { 1908s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1908s # g_datalist_clear (&proxy->priv->qdata); 1908s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # const GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1908s # const gchar *sender_name G_GNUC_UNUSED, 1908s # const gchar *signal_name, 1908s # GVariant *parameters) 1908s # { 1908s # _ExtendedGDBusSignalInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # gsize n; 1908s # guint signal_id; 1908s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1908s # if (info == NULL) 1908s # return; 1908s # num_params = g_variant_n_children (parameters); 1908s # paramv = g_new0 (GValue, num_params + 1); 1908s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_set_object (¶mv[0], proxy); 1908s # g_variant_iter_init (&iter, parameters); 1908s # n = 1; 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_signal_emitv (paramv, signal_id, 0, NULL); 1908s # for (n = 0; n < num_params + 1; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1908s # GVariant *changed_properties, 1908s # const gchar *const *invalidated_properties) 1908s # { 1908s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1908s # guint n; 1908s # const gchar *key; 1908s # GVariantIter *iter; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # g_variant_get (changed_properties, "a{sv}", &iter); 1908s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1908s # g_datalist_remove_data (&proxy->priv->qdata, key); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # g_variant_iter_free (iter); 1908s # for (n = 0; invalidated_properties[n] != NULL; n++) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1908s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1908s # #else 1908s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1908s # #endif 1908s # 1908s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusProxyClass *proxy_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1908s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1908s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1908s # 1908s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1908s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1908s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_useful_interface_proxy_new ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_sync: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_sync ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_useful_interface_proxy_new_for_bus ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_for_bus_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus_sync: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_for_bus_sync ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeleton: 1908s # * 1908s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeletonClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1908s # */ 1908s # 1908s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1908s # { 1908s # GValue *properties; 1908s # GList *changed_properties; 1908s # GSource *changed_properties_idle_source; 1908s # GMainContext *context; 1908s # GMutex lock; 1908s # }; 1908s # 1908s # static void 1908s # _org_project_useful_interface_skeleton_handle_method_call ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name, 1908s # const gchar *method_name, 1908s # GVariant *parameters, 1908s # GDBusMethodInvocation *invocation, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # _ExtendedGDBusMethodInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # guint num_extra; 1908s # gsize n; 1908s # guint signal_id; 1908s # GValue return_value = G_VALUE_INIT; 1908s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1908s # g_assert (info != NULL); 1908s # num_params = g_variant_n_children (parameters); 1908s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1908s # n = 0; 1908s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_set_object (¶mv[n++], skeleton); 1908s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1908s # g_value_set_object (¶mv[n++], invocation); 1908s # if (info->pass_fdlist) 1908s # { 1908s # #ifdef G_OS_UNIX 1908s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1908s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1908s # #else 1908s # g_assert_not_reached (); 1908s # #endif 1908s # } 1908s # g_variant_iter_init (&iter, parameters); 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1908s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1908s # if (!g_value_get_boolean (&return_value)) 1908s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1908s # g_value_unset (&return_value); 1908s # for (n = 0; n < num_params + num_extra; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static GVariant * 1908s # _org_project_useful_interface_skeleton_handle_get_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # GVariant *ret; 1908s # ret = NULL; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # g_value_init (&value, pspec->value_type); 1908s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1908s # g_value_unset (&value); 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _org_project_useful_interface_skeleton_handle_set_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GVariant *variant, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # gboolean ret; 1908s # ret = FALSE; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # if (info->use_gvariant) 1908s # g_value_set_variant (&value, variant); 1908s # else 1908s # g_dbus_gvariant_to_gvalue (variant, &value); 1908s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # g_value_unset (&value); 1908s # ret = TRUE; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1908s # { 1908s # _org_project_useful_interface_skeleton_handle_method_call, 1908s # _org_project_useful_interface_skeleton_handle_get_property, 1908s # _org_project_useful_interface_skeleton_handle_set_property, 1908s # {NULL} 1908s # }; 1908s # 1908s # static GDBusInterfaceInfo * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return org_project_useful_interface_interface_info (); 1908s # } 1908s # 1908s # static GDBusInterfaceVTable * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1908s # } 1908s # 1908s # static GVariant * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1908s # 1908s # GVariantBuilder builder; 1908s # guint n; 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1908s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #else 1908s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #endif 1908s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1908s # goto out; 1908s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1908s # { 1908s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1908s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1908s # { 1908s # GVariant *value; 1908s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1908s # if (value != NULL) 1908s # { 1908s # g_variant_take_ref (value); 1908s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1908s # g_variant_unref (value); 1908s # } 1908s # } 1908s # } 1908s # out: 1908s # return g_variant_builder_end (&builder); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_useful_interface_skeleton_finalize (GObject *object) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1908s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1908s # if (skeleton->priv->changed_properties_idle_source != NULL) 1908s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1908s # g_main_context_unref (skeleton->priv->context); 1908s # g_mutex_clear (&skeleton->priv->lock); 1908s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1908s # #else 1908s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1908s # #endif 1908s # 1908s # g_mutex_init (&skeleton->priv->lock); 1908s # skeleton->priv->context = g_main_context_ref_thread_default (); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusInterfaceSkeletonClass *skeleton_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1908s # 1908s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1908s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1908s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1908s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1908s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_skeleton_new: 1908s # * 1908s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_skeleton_new (void) 1908s # { 1908s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1908s # } 1908s # Error: 1908s # 1908s # /tmp/tmpei14pw7z/tmparchrlj0.xml: 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpei14pw7z/tmparchrlj0.xml', '--output', '-', '--body'] 1908s # Return code: 0 1908s # Output: 1908s # /* 1908s # * This file is generated by gdbus-codegen, do not modify it. 1908s # * 1908s # * The license of this code is the same as for the D-Bus interface description 1908s # * it was derived from. Note that it links to GLib, so must comply with the 1908s # * LGPL linking clauses. 1908s # */ 1908s # 1908s # #ifdef HAVE_CONFIG_H 1908s # # include "config.h" 1908s # #endif 1908s # 1908s # #include 1908s # #ifdef G_OS_UNIX 1908s # # include 1908s # #endif 1908s # 1908s # #ifdef G_ENABLE_DEBUG 1908s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1908s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1908s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1908s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1908s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1908s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1908s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1908s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1908s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1908s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1908s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1908s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1908s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1908s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1908s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1908s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1908s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1908s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1908s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1908s # #else /* !G_ENABLE_DEBUG */ 1908s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1908s # * Do not access GValues directly in your code. Instead, use the 1908s # * g_value_get_*() functions 1908s # */ 1908s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1908s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1908s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1908s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1908s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1908s # #endif /* !G_ENABLE_DEBUG */ 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusArgInfo parent_struct; 1908s # gboolean use_gvariant; 1908s # } _ExtendedGDBusArgInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusMethodInfo parent_struct; 1908s # const gchar *signal_name; 1908s # gboolean pass_fdlist; 1908s # } _ExtendedGDBusMethodInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusSignalInfo parent_struct; 1908s # const gchar *signal_name; 1908s # } _ExtendedGDBusSignalInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusPropertyInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # guint use_gvariant : 1; 1908s # guint emits_changed_signal : 1; 1908s # } _ExtendedGDBusPropertyInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusInterfaceInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # } _ExtendedGDBusInterfaceInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # const _ExtendedGDBusPropertyInfo *info; 1908s # guint prop_id; 1908s # GValue orig_value; /* the value before the change */ 1908s # } ChangedProperty; 1908s # 1908s # static void 1908s # _changed_property_free (ChangedProperty *data) 1908s # { 1908s # g_value_unset (&data->orig_value); 1908s # g_free (data); 1908s # } 1908s # 1908s # static gboolean 1908s # _g_strv_equal0 (gchar **a, gchar **b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # guint n; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # if (g_strv_length (a) != g_strv_length (b)) 1908s # goto out; 1908s # for (n = 0; a[n] != NULL; n++) 1908s # if (g_strcmp0 (a[n], b[n]) != 0) 1908s # goto out; 1908s # ret = TRUE; 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _g_variant_equal0 (GVariant *a, GVariant *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # ret = g_variant_equal (a, b); 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # G_GNUC_UNUSED static gboolean 1908s # _g_value_equal (const GValue *a, const GValue *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1908s # switch (G_VALUE_TYPE (a)) 1908s # { 1908s # case G_TYPE_BOOLEAN: 1908s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1908s # break; 1908s # case G_TYPE_UCHAR: 1908s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1908s # break; 1908s # case G_TYPE_INT: 1908s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1908s # break; 1908s # case G_TYPE_UINT: 1908s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1908s # break; 1908s # case G_TYPE_INT64: 1908s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1908s # break; 1908s # case G_TYPE_UINT64: 1908s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1908s # break; 1908s # case G_TYPE_DOUBLE: 1908s # { 1908s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1908s # gdouble da = g_value_get_double (a); 1908s # gdouble db = g_value_get_double (b); 1908s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1908s # } 1908s # break; 1908s # case G_TYPE_STRING: 1908s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1908s # break; 1908s # case G_TYPE_VARIANT: 1908s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1908s # break; 1908s # default: 1908s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1908s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1908s # else 1908s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1908s # break; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static void 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint G_GNUC_UNUSED, 1908s # void *marshal_data) 1908s # { 1908s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1908s # (void *data1, 1908s # GDBusMethodInvocation *arg_method_invocation, 1908s # void *data2); 1908s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1908s # GCClosure *cc = (GCClosure*) closure; 1908s # void *data1, *data2; 1908s # gboolean v_return; 1908s # 1908s # g_return_if_fail (return_value != NULL); 1908s # g_return_if_fail (n_param_values == 2); 1908s # 1908s # if (G_CCLOSURE_SWAP_DATA (closure)) 1908s # { 1908s # data1 = closure->data; 1908s # data2 = g_value_peek_pointer (param_values + 0); 1908s # } 1908s # else 1908s # { 1908s # data1 = g_value_peek_pointer (param_values + 0); 1908s # data2 = closure->data; 1908s # } 1908s # 1908s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1908s # (marshal_data ? marshal_data : cc->callback); 1908s # 1908s # v_return = 1908s # callback (data1, 1908s # g_marshal_value_peek_object (param_values + 1), 1908s # data2); 1908s # 1908s # g_value_set_boolean (return_value, v_return); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ 1908s # * Code for interface org.project.UsefulInterface 1908s # * ------------------------------------------------------------------------ 1908s # */ 1908s # 1908s # /** 1908s # * SECTION:OrgProjectUsefulInterface 1908s # * @title: OrgProjectUsefulInterface 1908s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1908s # * 1908s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1908s # */ 1908s # 1908s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_arg_s = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "arg_s", 1908s # (gchar *) "s", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_pointers[] = 1908s # { 1908s # &_org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_arg_s.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_s = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SingleArgMethodS", 1908s # NULL, 1908s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "handle-single-arg-method-s", 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1908s # { 1908s # &_org_project_useful_interface_method_info_single_arg_method_s.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "org.project.UsefulInterface", 1908s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1908s # NULL, 1908s # NULL, 1908s # NULL 1908s # }, 1908s # "org-project-useful-interface", 1908s # }; 1908s # 1908s # 1908s # /** 1908s # * org_project_useful_interface_interface_info: 1908s # * 1908s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1908s # * 1908s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1908s # */ 1908s # GDBusInterfaceInfo * 1908s # org_project_useful_interface_interface_info (void) 1908s # { 1908s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_override_properties: 1908s # * @klass: The class structure for a #GObject derived class. 1908s # * @property_id_begin: The property id to assign to the first overridden property. 1908s # * 1908s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1908s # * The properties are overridden in the order they are defined. 1908s # * 1908s # * Returns: The last property id. 1908s # */ 1908s # guint 1908s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1908s # { 1908s # return property_id_begin - 1; 1908s # } 1908s # 1908s # 1908s # inline static void 1908s # org_project_useful_interface_method_marshal_single_arg_method_s ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterface: 1908s # * 1908s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceIface: 1908s # * @parent_iface: The parent interface. 1908s # * @handle_single_arg_method_s: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-s signal. 1908s # * 1908s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1908s # */ 1908s # 1908s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1908s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1908s # 1908s # static void 1908s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1908s # { 1908s # /* GObject signals for incoming D-Bus method calls: */ 1908s # /** 1908s # * OrgProjectUsefulInterface::handle-single-arg-method-s: 1908s # * @object: A #OrgProjectUsefulInterface. 1908s # * @invocation: A #GDBusMethodInvocation. 1908s # * 1908s # * Signal emitted when a remote caller is invoking the SingleArgMethodS() D-Bus method. 1908s # * 1908s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_s() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1908s # * 1908s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1908s # */ 1908s # g_signal_new ("handle-single-arg-method-s", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_s), 1908s # g_signal_accumulator_true_handled, 1908s # NULL, 1908s # org_project_useful_interface_method_marshal_single_arg_method_s, 1908s # G_TYPE_BOOLEAN, 1908s # 1, 1908s # G_TYPE_DBUS_METHOD_INVOCATION); 1908s # 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_s: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously invokes the SingleArgMethodS() D-Bus method on @proxy. 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_call_single_arg_method_s_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_call_single_arg_method_s_sync() for the synchronous, blocking version of this method. 1908s # */ 1908s # void 1908s # org_project_useful_interface_call_single_arg_method_s ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1908s # "SingleArgMethodS", 1908s # g_variant_new ("()"), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # callback, 1908s # user_data); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_s_finish: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @out_arg_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_s(). 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_s(). 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_useful_interface_call_single_arg_method_s_finish ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # gchar **out_arg_s, 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(s)", 1908s # out_arg_s); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_s_sync: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @out_arg_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Synchronously invokes the SingleArgMethodS() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_call_single_arg_method_s() for the asynchronous version of this method. 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_useful_interface_call_single_arg_method_s_sync ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # gchar **out_arg_s, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1908s # "SingleArgMethodS", 1908s # g_variant_new ("()"), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(s)", 1908s # out_arg_s); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_complete_single_arg_method_s: 1908s # * @object: A #OrgProjectUsefulInterface. 1908s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1908s # * @arg_s: Parameter to return. 1908s # * 1908s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodS() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1908s # * 1908s # * This method will free @invocation, you cannot use it afterwards. 1908s # */ 1908s # void 1908s # org_project_useful_interface_complete_single_arg_method_s ( 1908s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1908s # GDBusMethodInvocation *invocation, 1908s # const gchar *arg_s) 1908s # { 1908s # g_dbus_method_invocation_return_value (invocation, 1908s # g_variant_new ("(s)", 1908s # arg_s)); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceProxy: 1908s # * 1908s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceProxyClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1908s # */ 1908s # 1908s # struct _OrgProjectUsefulInterfaceProxyPrivate 1908s # { 1908s # GData *qdata; 1908s # }; 1908s # 1908s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_useful_interface_proxy_finalize (GObject *object) 1908s # { 1908s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1908s # g_datalist_clear (&proxy->priv->qdata); 1908s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # const GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1908s # const gchar *sender_name G_GNUC_UNUSED, 1908s # const gchar *signal_name, 1908s # GVariant *parameters) 1908s # { 1908s # _ExtendedGDBusSignalInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # gsize n; 1908s # guint signal_id; 1908s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1908s # if (info == NULL) 1908s # return; 1908s # num_params = g_variant_n_children (parameters); 1908s # paramv = g_new0 (GValue, num_params + 1); 1908s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_set_object (¶mv[0], proxy); 1908s # g_variant_iter_init (&iter, parameters); 1908s # n = 1; 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_signal_emitv (paramv, signal_id, 0, NULL); 1908s # for (n = 0; n < num_params + 1; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1908s # GVariant *changed_properties, 1908s # const gchar *const *invalidated_properties) 1908s # { 1908s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1908s # guint n; 1908s # const gchar *key; 1908s # GVariantIter *iter; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # g_variant_get (changed_properties, "a{sv}", &iter); 1908s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1908s # g_datalist_remove_data (&proxy->priv->qdata, key); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # g_variant_iter_free (iter); 1908s # for (n = 0; invalidated_properties[n] != NULL; n++) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1908s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1908s # #else 1908s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1908s # #endif 1908s # 1908s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusProxyClass *proxy_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1908s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1908s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1908s # 1908s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1908s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1908s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_useful_interface_proxy_new ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_sync: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_sync ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_useful_interface_proxy_new_for_bus ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_for_bus_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus_sync: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_for_bus_sync ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeleton: 1908s # * 1908s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeletonClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1908s # */ 1908s # 1908s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1908s # { 1908s # GValue *properties; 1908s # GList *changed_properties; 1908s # GSource *changed_properties_idle_source; 1908s # GMainContext *context; 1908s # GMutex lock; 1908s # }; 1908s # 1908s # static void 1908s # _org_project_useful_interface_skeleton_handle_method_call ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name, 1908s # const gchar *method_name, 1908s # GVariant *parameters, 1908s # GDBusMethodInvocation *invocation, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # _ExtendedGDBusMethodInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # guint num_extra; 1908s # gsize n; 1908s # guint signal_id; 1908s # GValue return_value = G_VALUE_INIT; 1908s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1908s # g_assert (info != NULL); 1908s # num_params = g_variant_n_children (parameters); 1908s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1908s # n = 0; 1908s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_set_object (¶mv[n++], skeleton); 1908s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1908s # g_value_set_object (¶mv[n++], invocation); 1908s # if (info->pass_fdlist) 1908s # { 1908s # #ifdef G_OS_UNIX 1908s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1908s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1908s # #else 1908s # g_assert_not_reached (); 1908s # #endif 1908s # } 1908s # g_variant_iter_init (&iter, parameters); 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1908s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1908s # if (!g_value_get_boolean (&return_value)) 1908s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1908s # g_value_unset (&return_value); 1908s # for (n = 0; n < num_params + num_extra; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static GVariant * 1908s # _org_project_useful_interface_skeleton_handle_get_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # GVariant *ret; 1908s # ret = NULL; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # g_value_init (&value, pspec->value_type); 1908s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1908s # g_value_unset (&value); 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _org_project_useful_interface_skeleton_handle_set_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GVariant *variant, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # gboolean ret; 1908s # ret = FALSE; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # if (info->use_gvariant) 1908s # g_value_set_variant (&value, variant); 1908s # else 1908s # g_dbus_gvariant_to_gvalue (variant, &value); 1908s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # g_value_unset (&value); 1908s # ret = TRUE; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1908s # { 1908s # _org_project_useful_interface_skeleton_handle_method_call, 1908s # _org_project_useful_interface_skeleton_handle_get_property, 1908s # _org_project_useful_interface_skeleton_handle_set_property, 1908s # {NULL} 1908s # }; 1908s # 1908s # static GDBusInterfaceInfo * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return org_project_useful_interface_interface_info (); 1908s # } 1908s # 1908s # static GDBusInterfaceVTable * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1908s # } 1908s # 1908s # static GVariant * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1908s # 1908s # GVariantBuilder builder; 1908s # guint n; 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1908s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #else 1908s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #endif 1908s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1908s # goto out; 1908s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1908s # { 1908s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1908s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1908s # { 1908s # GVariant *value; 1908s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1908s # if (value != NULL) 1908s # { 1908s # g_variant_take_ref (value); 1908s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1908s # g_variant_unref (value); 1908s # } 1908s # } 1908s # } 1908s # out: 1908s # return g_variant_builder_end (&builder); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_useful_interface_skeleton_finalize (GObject *object) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1908s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1908s # if (skeleton->priv->changed_properties_idle_source != NULL) 1908s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1908s # g_main_context_unref (skeleton->priv->context); 1908s # g_mutex_clear (&skeleton->priv->lock); 1908s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1908s # #else 1908s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1908s # #endif 1908s # 1908s # g_mutex_init (&skeleton->priv->lock); 1908s # skeleton->priv->context = g_main_context_ref_thread_default (); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusInterfaceSkeletonClass *skeleton_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1908s # 1908s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1908s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1908s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1908s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1908s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_skeleton_new: 1908s # * 1908s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_skeleton_new (void) 1908s # { 1908s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1908s # } 1908s # Error: 1908s # 1908s # /tmp/tmpei14pw7z/tmpblg0iar9.xml: 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpei14pw7z/tmpblg0iar9.xml', '--output', '-', '--body'] 1908s # Return code: 0 1908s # Output: 1908s # /* 1908s # * This file is generated by gdbus-codegen, do not modify it. 1908s # * 1908s # * The license of this code is the same as for the D-Bus interface description 1908s # * it was derived from. Note that it links to GLib, so must comply with the 1908s # * LGPL linking clauses. 1908s # */ 1908s # 1908s # #ifdef HAVE_CONFIG_H 1908s # # include "config.h" 1908s # #endif 1908s # 1908s # #include 1908s # #ifdef G_OS_UNIX 1908s # # include 1908s # #endif 1908s # 1908s # #ifdef G_ENABLE_DEBUG 1908s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1908s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1908s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1908s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1908s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1908s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1908s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1908s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1908s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1908s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1908s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1908s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1908s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1908s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1908s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1908s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1908s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1908s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1908s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1908s # #else /* !G_ENABLE_DEBUG */ 1908s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1908s # * Do not access GValues directly in your code. Instead, use the 1908s # * g_value_get_*() functions 1908s # */ 1908s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1908s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1908s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1908s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1908s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1908s # #endif /* !G_ENABLE_DEBUG */ 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusArgInfo parent_struct; 1908s # gboolean use_gvariant; 1908s # } _ExtendedGDBusArgInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusMethodInfo parent_struct; 1908s # const gchar *signal_name; 1908s # gboolean pass_fdlist; 1908s # } _ExtendedGDBusMethodInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusSignalInfo parent_struct; 1908s # const gchar *signal_name; 1908s # } _ExtendedGDBusSignalInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusPropertyInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # guint use_gvariant : 1; 1908s # guint emits_changed_signal : 1; 1908s # } _ExtendedGDBusPropertyInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusInterfaceInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # } _ExtendedGDBusInterfaceInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # const _ExtendedGDBusPropertyInfo *info; 1908s # guint prop_id; 1908s # GValue orig_value; /* the value before the change */ 1908s # } ChangedProperty; 1908s # 1908s # static void 1908s # _changed_property_free (ChangedProperty *data) 1908s # { 1908s # g_value_unset (&data->orig_value); 1908s # g_free (data); 1908s # } 1908s # 1908s # static gboolean 1908s # _g_strv_equal0 (gchar **a, gchar **b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # guint n; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # if (g_strv_length (a) != g_strv_length (b)) 1908s # goto out; 1908s # for (n = 0; a[n] != NULL; n++) 1908s # if (g_strcmp0 (a[n], b[n]) != 0) 1908s # goto out; 1908s # ret = TRUE; 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _g_variant_equal0 (GVariant *a, GVariant *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # ret = g_variant_equal (a, b); 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # G_GNUC_UNUSED static gboolean 1908s # _g_value_equal (const GValue *a, const GValue *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1908s # switch (G_VALUE_TYPE (a)) 1908s # { 1908s # case G_TYPE_BOOLEAN: 1908s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1908s # break; 1908s # case G_TYPE_UCHAR: 1908s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1908s # break; 1908s # case G_TYPE_INT: 1908s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1908s # break; 1908s # case G_TYPE_UINT: 1908s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1908s # break; 1908s # case G_TYPE_INT64: 1908s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1908s # break; 1908s # case G_TYPE_UINT64: 1908s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1908s # break; 1908s # case G_TYPE_DOUBLE: 1908s # { 1908s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1908s # gdouble da = g_value_get_double (a); 1908s # gdouble db = g_value_get_double (b); 1908s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1908s # } 1908s # break; 1908s # case G_TYPE_STRING: 1908s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1908s # break; 1908s # case G_TYPE_VARIANT: 1908s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1908s # break; 1908s # default: 1908s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1908s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1908s # else 1908s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1908s # break; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static void 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint G_GNUC_UNUSED, 1908s # void *marshal_data) 1908s # { 1908s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1908s # (void *data1, 1908s # GDBusMethodInvocation *arg_method_invocation, 1908s # void *data2); 1908s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1908s # GCClosure *cc = (GCClosure*) closure; 1908s # void *data1, *data2; 1908s # gboolean v_return; 1908s # 1908s # g_return_if_fail (return_value != NULL); 1908s # g_return_if_fail (n_param_values == 2); 1908s # 1908s # if (G_CCLOSURE_SWAP_DATA (closure)) 1908s # { 1908s # data1 = closure->data; 1908s # data2 = g_value_peek_pointer (param_values + 0); 1908s # } 1908s # else 1908s # { 1908s # data1 = g_value_peek_pointer (param_values + 0); 1908s # data2 = closure->data; 1908s # } 1908s # 1908s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1908s # (marshal_data ? marshal_data : cc->callback); 1908s # 1908s # v_return = 1908s # callback (data1, 1908s # g_marshal_value_peek_object (param_values + 1), 1908s # data2); 1908s # 1908s # g_value_set_boolean (return_value, v_return); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ 1908s # * Code for interface org.project.UsefulInterface 1908s # * ------------------------------------------------------------------------ 1908s # */ 1908s # 1908s # /** 1908s # * SECTION:OrgProjectUsefulInterface 1908s # * @title: OrgProjectUsefulInterface 1908s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1908s # * 1908s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1908s # */ 1908s # 1908s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_arg_o = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "arg_o", 1908s # (gchar *) "o", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_pointers[] = 1908s # { 1908s # &_org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_arg_o.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_o = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SingleArgMethodO", 1908s # NULL, 1908s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "handle-single-arg-method-o", 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1908s # { 1908s # &_org_project_useful_interface_method_info_single_arg_method_o.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "org.project.UsefulInterface", 1908s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1908s # NULL, 1908s # NULL, 1908s # NULL 1908s # }, 1908s # "org-project-useful-interface", 1908s # }; 1908s # 1908s # 1908s # /** 1908s # * org_project_useful_interface_interface_info: 1908s # * 1908s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1908s # * 1908s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1908s # */ 1908s # GDBusInterfaceInfo * 1908s # org_project_useful_interface_interface_info (void) 1908s # { 1908s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_override_properties: 1908s # * @klass: The class structure for a #GObject derived class. 1908s # * @property_id_begin: The property id to assign to the first overridden property. 1908s # * 1908s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1908s # * The properties are overridden in the order they are defined. 1908s # * 1908s # * Returns: The last property id. 1908s # */ 1908s # guint 1908s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1908s # { 1908s # return property_id_begin - 1; 1908s # } 1908s # 1908s # 1908s # inline static void 1908s # org_project_useful_interface_method_marshal_single_arg_method_o ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterface: 1908s # * 1908s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceIface: 1908s # * @parent_iface: The parent interface. 1908s # * @handle_single_arg_method_o: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-o signal. 1908s # * 1908s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1908s # */ 1908s # 1908s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1908s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1908s # 1908s # static void 1908s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1908s # { 1908s # /* GObject signals for incoming D-Bus method calls: */ 1908s # /** 1908s # * OrgProjectUsefulInterface::handle-single-arg-method-o: 1908s # * @object: A #OrgProjectUsefulInterface. 1908s # * @invocation: A #GDBusMethodInvocation. 1908s # * 1908s # * Signal emitted when a remote caller is invoking the SingleArgMethodO() D-Bus method. 1908s # * 1908s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_o() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1908s # * 1908s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1908s # */ 1908s # g_signal_new ("handle-single-arg-method-o", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_o), 1908s # g_signal_accumulator_true_handled, 1908s # NULL, 1908s # org_project_useful_interface_method_marshal_single_arg_method_o, 1908s # G_TYPE_BOOLEAN, 1908s # 1, 1908s # G_TYPE_DBUS_METHOD_INVOCATION); 1908s # 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_o: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously invokes the SingleArgMethodO() D-Bus method on @proxy. 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_call_single_arg_method_o_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_call_single_arg_method_o_sync() for the synchronous, blocking version of this method. 1908s # */ 1908s # void 1908s # org_project_useful_interface_call_single_arg_method_o ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1908s # "SingleArgMethodO", 1908s # g_variant_new ("()"), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # callback, 1908s # user_data); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_o_finish: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @out_arg_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_o(). 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_o(). 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_useful_interface_call_single_arg_method_o_finish ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # gchar **out_arg_o, 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(o)", 1908s # out_arg_o); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_o_sync: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @out_arg_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Synchronously invokes the SingleArgMethodO() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_call_single_arg_method_o() for the asynchronous version of this method. 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_useful_interface_call_single_arg_method_o_sync ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # gchar **out_arg_o, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1908s # "SingleArgMethodO", 1908s # g_variant_new ("()"), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(o)", 1908s # out_arg_o); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_complete_single_arg_method_o: 1908s # * @object: A #OrgProjectUsefulInterface. 1908s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1908s # * @arg_o: Parameter to return. 1908s # * 1908s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodO() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1908s # * 1908s # * This method will free @invocation, you cannot use it afterwards. 1908s # */ 1908s # void 1908s # org_project_useful_interface_complete_single_arg_method_o ( 1908s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1908s # GDBusMethodInvocation *invocation, 1908s # const gchar *arg_o) 1908s # { 1908s # g_dbus_method_invocation_return_value (invocation, 1908s # g_variant_new ("(o)", 1908s # arg_o)); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceProxy: 1908s # * 1908s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceProxyClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1908s # */ 1908s # 1908s # struct _OrgProjectUsefulInterfaceProxyPrivate 1908s # { 1908s # GData *qdata; 1908s # }; 1908s # 1908s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_useful_interface_proxy_finalize (GObject *object) 1908s # { 1908s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1908s # g_datalist_clear (&proxy->priv->qdata); 1908s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # const GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1908s # const gchar *sender_name G_GNUC_UNUSED, 1908s # const gchar *signal_name, 1908s # GVariant *parameters) 1908s # { 1908s # _ExtendedGDBusSignalInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # gsize n; 1908s # guint signal_id; 1908s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1908s # if (info == NULL) 1908s # return; 1908s # num_params = g_variant_n_children (parameters); 1908s # paramv = g_new0 (GValue, num_params + 1); 1908s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_set_object (¶mv[0], proxy); 1908s # g_variant_iter_init (&iter, parameters); 1908s # n = 1; 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_signal_emitv (paramv, signal_id, 0, NULL); 1908s # for (n = 0; n < num_params + 1; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1908s # GVariant *changed_properties, 1908s # const gchar *const *invalidated_properties) 1908s # { 1908s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1908s # guint n; 1908s # const gchar *key; 1908s # GVariantIter *iter; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # g_variant_get (changed_properties, "a{sv}", &iter); 1908s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1908s # g_datalist_remove_data (&proxy->priv->qdata, key); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # g_variant_iter_free (iter); 1908s # for (n = 0; invalidated_properties[n] != NULL; n++) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1908s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1908s # #else 1908s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1908s # #endif 1908s # 1908s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusProxyClass *proxy_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1908s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1908s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1908s # 1908s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1908s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1908s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_useful_interface_proxy_new ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_sync: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_sync ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_useful_interface_proxy_new_for_bus ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_for_bus_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus_sync: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_for_bus_sync ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeleton: 1908s # * 1908s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeletonClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1908s # */ 1908s # 1908s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1908s # { 1908s # GValue *properties; 1908s # GList *changed_properties; 1908s # GSource *changed_properties_idle_source; 1908s # GMainContext *context; 1908s # GMutex lock; 1908s # }; 1908s # 1908s # static void 1908s # _org_project_useful_interface_skeleton_handle_method_call ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name, 1908s # const gchar *method_name, 1908s # GVariant *parameters, 1908s # GDBusMethodInvocation *invocation, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # _ExtendedGDBusMethodInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # guint num_extra; 1908s # gsize n; 1908s # guint signal_id; 1908s # GValue return_value = G_VALUE_INIT; 1908s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1908s # g_assert (info != NULL); 1908s # num_params = g_variant_n_children (parameters); 1908s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1908s # n = 0; 1908s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_set_object (¶mv[n++], skeleton); 1908s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1908s # g_value_set_object (¶mv[n++], invocation); 1908s # if (info->pass_fdlist) 1908s # { 1908s # #ifdef G_OS_UNIX 1908s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1908s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1908s # #else 1908s # g_assert_not_reached (); 1908s # #endif 1908s # } 1908s # g_variant_iter_init (&iter, parameters); 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1908s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1908s # if (!g_value_get_boolean (&return_value)) 1908s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1908s # g_value_unset (&return_value); 1908s # for (n = 0; n < num_params + num_extra; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static GVariant * 1908s # _org_project_useful_interface_skeleton_handle_get_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # GVariant *ret; 1908s # ret = NULL; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # g_value_init (&value, pspec->value_type); 1908s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1908s # g_value_unset (&value); 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _org_project_useful_interface_skeleton_handle_set_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GVariant *variant, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # gboolean ret; 1908s # ret = FALSE; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # if (info->use_gvariant) 1908s # g_value_set_variant (&value, variant); 1908s # else 1908s # g_dbus_gvariant_to_gvalue (variant, &value); 1908s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # g_value_unset (&value); 1908s # ret = TRUE; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1908s # { 1908s # _org_project_useful_interface_skeleton_handle_method_call, 1908s # _org_project_useful_interface_skeleton_handle_get_property, 1908s # _org_project_useful_interface_skeleton_handle_set_property, 1908s # {NULL} 1908s # }; 1908s # 1908s # static GDBusInterfaceInfo * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return org_project_useful_interface_interface_info (); 1908s # } 1908s # 1908s # static GDBusInterfaceVTable * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1908s # } 1908s # 1908s # static GVariant * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1908s # 1908s # GVariantBuilder builder; 1908s # guint n; 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1908s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #else 1908s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #endif 1908s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1908s # goto out; 1908s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1908s # { 1908s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1908s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1908s # { 1908s # GVariant *value; 1908s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1908s # if (value != NULL) 1908s # { 1908s # g_variant_take_ref (value); 1908s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1908s # g_variant_unref (value); 1908s # } 1908s # } 1908s # } 1908s # out: 1908s # return g_variant_builder_end (&builder); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_useful_interface_skeleton_finalize (GObject *object) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1908s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1908s # if (skeleton->priv->changed_properties_idle_source != NULL) 1908s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1908s # g_main_context_unref (skeleton->priv->context); 1908s # g_mutex_clear (&skeleton->priv->lock); 1908s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1908s # #else 1908s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1908s # #endif 1908s # 1908s # g_mutex_init (&skeleton->priv->lock); 1908s # skeleton->priv->context = g_main_context_ref_thread_default (); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusInterfaceSkeletonClass *skeleton_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1908s # 1908s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1908s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1908s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1908s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1908s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_skeleton_new: 1908s # * 1908s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_skeleton_new (void) 1908s # { 1908s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1908s # } 1908s # Error: 1908s # 1908s # /tmp/tmpei14pw7z/tmp1oouckkz.xml: 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpei14pw7z/tmp1oouckkz.xml', '--output', '-', '--body'] 1908s # Return code: 0 1908s # Output: 1908s # /* 1908s # * This file is generated by gdbus-codegen, do not modify it. 1908s # * 1908s # * The license of this code is the same as for the D-Bus interface description 1908s # * it was derived from. Note that it links to GLib, so must comply with the 1908s # * LGPL linking clauses. 1908s # */ 1908s # 1908s # #ifdef HAVE_CONFIG_H 1908s # # include "config.h" 1908s # #endif 1908s # 1908s # #include 1908s # #ifdef G_OS_UNIX 1908s # # include 1908s # #endif 1908s # 1908s # #ifdef G_ENABLE_DEBUG 1908s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1908s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1908s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1908s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1908s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1908s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1908s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1908s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1908s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1908s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1908s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1908s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1908s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1908s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1908s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1908s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1908s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1908s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1908s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1908s # #else /* !G_ENABLE_DEBUG */ 1908s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1908s # * Do not access GValues directly in your code. Instead, use the 1908s # * g_value_get_*() functions 1908s # */ 1908s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1908s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1908s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1908s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1908s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1908s # #endif /* !G_ENABLE_DEBUG */ 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusArgInfo parent_struct; 1908s # gboolean use_gvariant; 1908s # } _ExtendedGDBusArgInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusMethodInfo parent_struct; 1908s # const gchar *signal_name; 1908s # gboolean pass_fdlist; 1908s # } _ExtendedGDBusMethodInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusSignalInfo parent_struct; 1908s # const gchar *signal_name; 1908s # } _ExtendedGDBusSignalInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusPropertyInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # guint use_gvariant : 1; 1908s # guint emits_changed_signal : 1; 1908s # } _ExtendedGDBusPropertyInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusInterfaceInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # } _ExtendedGDBusInterfaceInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # const _ExtendedGDBusPropertyInfo *info; 1908s # guint prop_id; 1908s # GValue orig_value; /* the value before the change */ 1908s # } ChangedProperty; 1908s # 1908s # static void 1908s # _changed_property_free (ChangedProperty *data) 1908s # { 1908s # g_value_unset (&data->orig_value); 1908s # g_free (data); 1908s # } 1908s # 1908s # static gboolean 1908s # _g_strv_equal0 (gchar **a, gchar **b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # guint n; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # if (g_strv_length (a) != g_strv_length (b)) 1908s # goto out; 1908s # for (n = 0; a[n] != NULL; n++) 1908s # if (g_strcmp0 (a[n], b[n]) != 0) 1908s # goto out; 1908s # ret = TRUE; 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _g_variant_equal0 (GVariant *a, GVariant *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # ret = g_variant_equal (a, b); 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # G_GNUC_UNUSED static gboolean 1908s # _g_value_equal (const GValue *a, const GValue *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1908s # switch (G_VALUE_TYPE (a)) 1908s # { 1908s # case G_TYPE_BOOLEAN: 1908s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1908s # break; 1908s # case G_TYPE_UCHAR: 1908s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1908s # break; 1908s # case G_TYPE_INT: 1908s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1908s # break; 1908s # case G_TYPE_UINT: 1908s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1908s # break; 1908s # case G_TYPE_INT64: 1908s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1908s # break; 1908s # case G_TYPE_UINT64: 1908s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1908s # break; 1908s # case G_TYPE_DOUBLE: 1908s # { 1908s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1908s # gdouble da = g_value_get_double (a); 1908s # gdouble db = g_value_get_double (b); 1908s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1908s # } 1908s # break; 1908s # case G_TYPE_STRING: 1908s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1908s # break; 1908s # case G_TYPE_VARIANT: 1908s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1908s # break; 1908s # default: 1908s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1908s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1908s # else 1908s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1908s # break; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static void 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint G_GNUC_UNUSED, 1908s # void *marshal_data) 1908s # { 1908s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1908s # (void *data1, 1908s # GDBusMethodInvocation *arg_method_invocation, 1908s # void *data2); 1908s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1908s # GCClosure *cc = (GCClosure*) closure; 1908s # void *data1, *data2; 1908s # gboolean v_return; 1908s # 1908s # g_return_if_fail (return_value != NULL); 1908s # g_return_if_fail (n_param_values == 2); 1908s # 1908s # if (G_CCLOSURE_SWAP_DATA (closure)) 1908s # { 1908s # data1 = closure->data; 1908s # data2 = g_value_peek_pointer (param_values + 0); 1908s # } 1908s # else 1908s # { 1908s # data1 = g_value_peek_pointer (param_values + 0); 1908s # data2 = closure->data; 1908s # } 1908s # 1908s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1908s # (marshal_data ? marshal_data : cc->callback); 1908s # 1908s # v_return = 1908s # callback (data1, 1908s # g_marshal_value_peek_object (param_values + 1), 1908s # data2); 1908s # 1908s # g_value_set_boolean (return_value, v_return); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ 1908s # * Code for interface org.project.UsefulInterface 1908s # * ------------------------------------------------------------------------ 1908s # */ 1908s # 1908s # /** 1908s # * SECTION:OrgProjectUsefulInterface 1908s # * @title: OrgProjectUsefulInterface 1908s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1908s # * 1908s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1908s # */ 1908s # 1908s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_arg_g = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "arg_g", 1908s # (gchar *) "g", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_pointers[] = 1908s # { 1908s # &_org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_arg_g.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_g = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SingleArgMethodG", 1908s # NULL, 1908s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "handle-single-arg-method-g", 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1908s # { 1908s # &_org_project_useful_interface_method_info_single_arg_method_g.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "org.project.UsefulInterface", 1908s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1908s # NULL, 1908s # NULL, 1908s # NULL 1908s # }, 1908s # "org-project-useful-interface", 1908s # }; 1908s # 1908s # 1908s # /** 1908s # * org_project_useful_interface_interface_info: 1908s # * 1908s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1908s # * 1908s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1908s # */ 1908s # GDBusInterfaceInfo * 1908s # org_project_useful_interface_interface_info (void) 1908s # { 1908s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_override_properties: 1908s # * @klass: The class structure for a #GObject derived class. 1908s # * @property_id_begin: The property id to assign to the first overridden property. 1908s # * 1908s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1908s # * The properties are overridden in the order they are defined. 1908s # * 1908s # * Returns: The last property id. 1908s # */ 1908s # guint 1908s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1908s # { 1908s # return property_id_begin - 1; 1908s # } 1908s # 1908s # 1908s # inline static void 1908s # org_project_useful_interface_method_marshal_single_arg_method_g ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterface: 1908s # * 1908s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceIface: 1908s # * @parent_iface: The parent interface. 1908s # * @handle_single_arg_method_g: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-g signal. 1908s # * 1908s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1908s # */ 1908s # 1908s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1908s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1908s # 1908s # static void 1908s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1908s # { 1908s # /* GObject signals for incoming D-Bus method calls: */ 1908s # /** 1908s # * OrgProjectUsefulInterface::handle-single-arg-method-g: 1908s # * @object: A #OrgProjectUsefulInterface. 1908s # * @invocation: A #GDBusMethodInvocation. 1908s # * 1908s # * Signal emitted when a remote caller is invoking the SingleArgMethodG() D-Bus method. 1908s # * 1908s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_g() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1908s # * 1908s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1908s # */ 1908s # g_signal_new ("handle-single-arg-method-g", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_g), 1908s # g_signal_accumulator_true_handled, 1908s # NULL, 1908s # org_project_useful_interface_method_marshal_single_arg_method_g, 1908s # G_TYPE_BOOLEAN, 1908s # 1, 1908s # G_TYPE_DBUS_METHOD_INVOCATION); 1908s # 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_g: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously invokes the SingleArgMethodG() D-Bus method on @proxy. 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_call_single_arg_method_g_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_call_single_arg_method_g_sync() for the synchronous, blocking version of this method. 1908s # */ 1908s # void 1908s # org_project_useful_interface_call_single_arg_method_g ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1908s # "SingleArgMethodG", 1908s # g_variant_new ("()"), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # callback, 1908s # user_data); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_g_finish: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @out_arg_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_g(). 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_g(). 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_useful_interface_call_single_arg_method_g_finish ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # gchar **out_arg_g, 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(g)", 1908s # out_arg_g); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_g_sync: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @out_arg_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Synchronously invokes the SingleArgMethodG() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_call_single_arg_method_g() for the asynchronous version of this method. 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_useful_interface_call_single_arg_method_g_sync ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # gchar **out_arg_g, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1908s # "SingleArgMethodG", 1908s # g_variant_new ("()"), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(g)", 1908s # out_arg_g); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_complete_single_arg_method_g: 1908s # * @object: A #OrgProjectUsefulInterface. 1908s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1908s # * @arg_g: Parameter to return. 1908s # * 1908s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodG() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1908s # * 1908s # * This method will free @invocation, you cannot use it afterwards. 1908s # */ 1908s # void 1908s # org_project_useful_interface_complete_single_arg_method_g ( 1908s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1908s # GDBusMethodInvocation *invocation, 1908s # const gchar *arg_g) 1908s # { 1908s # g_dbus_method_invocation_return_value (invocation, 1908s # g_variant_new ("(g)", 1908s # arg_g)); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceProxy: 1908s # * 1908s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceProxyClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1908s # */ 1908s # 1908s # struct _OrgProjectUsefulInterfaceProxyPrivate 1908s # { 1908s # GData *qdata; 1908s # }; 1908s # 1908s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_useful_interface_proxy_finalize (GObject *object) 1908s # { 1908s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1908s # g_datalist_clear (&proxy->priv->qdata); 1908s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # const GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1908s # const gchar *sender_name G_GNUC_UNUSED, 1908s # const gchar *signal_name, 1908s # GVariant *parameters) 1908s # { 1908s # _ExtendedGDBusSignalInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # gsize n; 1908s # guint signal_id; 1908s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1908s # if (info == NULL) 1908s # return; 1908s # num_params = g_variant_n_children (parameters); 1908s # paramv = g_new0 (GValue, num_params + 1); 1908s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_set_object (¶mv[0], proxy); 1908s # g_variant_iter_init (&iter, parameters); 1908s # n = 1; 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_signal_emitv (paramv, signal_id, 0, NULL); 1908s # for (n = 0; n < num_params + 1; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1908s # GVariant *changed_properties, 1908s # const gchar *const *invalidated_properties) 1908s # { 1908s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1908s # guint n; 1908s # const gchar *key; 1908s # GVariantIter *iter; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # g_variant_get (changed_properties, "a{sv}", &iter); 1908s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1908s # g_datalist_remove_data (&proxy->priv->qdata, key); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # g_variant_iter_free (iter); 1908s # for (n = 0; invalidated_properties[n] != NULL; n++) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1908s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1908s # #else 1908s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1908s # #endif 1908s # 1908s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusProxyClass *proxy_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1908s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1908s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1908s # 1908s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1908s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1908s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_useful_interface_proxy_new ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_sync: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_sync ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_useful_interface_proxy_new_for_bus ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_for_bus_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus_sync: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_for_bus_sync ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeleton: 1908s # * 1908s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeletonClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1908s # */ 1908s # 1908s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1908s # { 1908s # GValue *properties; 1908s # GList *changed_properties; 1908s # GSource *changed_properties_idle_source; 1908s # GMainContext *context; 1908s # GMutex lock; 1908s # }; 1908s # 1908s # static void 1908s # _org_project_useful_interface_skeleton_handle_method_call ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name, 1908s # const gchar *method_name, 1908s # GVariant *parameters, 1908s # GDBusMethodInvocation *invocation, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # _ExtendedGDBusMethodInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # guint num_extra; 1908s # gsize n; 1908s # guint signal_id; 1908s # GValue return_value = G_VALUE_INIT; 1908s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1908s # g_assert (info != NULL); 1908s # num_params = g_variant_n_children (parameters); 1908s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1908s # n = 0; 1908s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_set_object (¶mv[n++], skeleton); 1908s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1908s # g_value_set_object (¶mv[n++], invocation); 1908s # if (info->pass_fdlist) 1908s # { 1908s # #ifdef G_OS_UNIX 1908s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1908s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1908s # #else 1908s # g_assert_not_reached (); 1908s # #endif 1908s # } 1908s # g_variant_iter_init (&iter, parameters); 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1908s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1908s # if (!g_value_get_boolean (&return_value)) 1908s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1908s # g_value_unset (&return_value); 1908s # for (n = 0; n < num_params + num_extra; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static GVariant * 1908s # _org_project_useful_interface_skeleton_handle_get_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # GVariant *ret; 1908s # ret = NULL; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # g_value_init (&value, pspec->value_type); 1908s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1908s # g_value_unset (&value); 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _org_project_useful_interface_skeleton_handle_set_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GVariant *variant, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # gboolean ret; 1908s # ret = FALSE; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # if (info->use_gvariant) 1908s # g_value_set_variant (&value, variant); 1908s # else 1908s # g_dbus_gvariant_to_gvalue (variant, &value); 1908s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # g_value_unset (&value); 1908s # ret = TRUE; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1908s # { 1908s # _org_project_useful_interface_skeleton_handle_method_call, 1908s # _org_project_useful_interface_skeleton_handle_get_property, 1908s # _org_project_useful_interface_skeleton_handle_set_property, 1908s # {NULL} 1908s # }; 1908s # 1908s # static GDBusInterfaceInfo * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return org_project_useful_interface_interface_info (); 1908s # } 1908s # 1908s # static GDBusInterfaceVTable * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1908s # } 1908s # 1908s # static GVariant * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1908s # 1908s # GVariantBuilder builder; 1908s # guint n; 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1908s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #else 1908s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #endif 1908s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1908s # goto out; 1908s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1908s # { 1908s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1908s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1908s # { 1908s # GVariant *value; 1908s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1908s # if (value != NULL) 1908s # { 1908s # g_variant_take_ref (value); 1908s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1908s # g_variant_unref (value); 1908s # } 1908s # } 1908s # } 1908s # out: 1908s # return g_variant_builder_end (&builder); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_useful_interface_skeleton_finalize (GObject *object) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1908s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1908s # if (skeleton->priv->changed_properties_idle_source != NULL) 1908s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1908s # g_main_context_unref (skeleton->priv->context); 1908s # g_mutex_clear (&skeleton->priv->lock); 1908s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1908s # #else 1908s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1908s # #endif 1908s # 1908s # g_mutex_init (&skeleton->priv->lock); 1908s # skeleton->priv->context = g_main_context_ref_thread_default (); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusInterfaceSkeletonClass *skeleton_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1908s # 1908s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1908s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1908s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1908s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1908s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_skeleton_new: 1908s # * 1908s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_skeleton_new (void) 1908s # { 1908s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1908s # } 1908s # Error: 1908s # 1908s # /tmp/tmpei14pw7z/tmps0hfe66w.xml: 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpei14pw7z/tmps0hfe66w.xml', '--output', '-', '--body'] 1908s # Return code: 0 1908s # Output: 1908s # /* 1908s # * This file is generated by gdbus-codegen, do not modify it. 1908s # * 1908s # * The license of this code is the same as for the D-Bus interface description 1908s # * it was derived from. Note that it links to GLib, so must comply with the 1908s # * LGPL linking clauses. 1908s # */ 1908s # 1908s # #ifdef HAVE_CONFIG_H 1908s # # include "config.h" 1908s # #endif 1908s # 1908s # #include 1908s # #ifdef G_OS_UNIX 1908s # # include 1908s # #endif 1908s # 1908s # #ifdef G_ENABLE_DEBUG 1908s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1908s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1908s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1908s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1908s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1908s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1908s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1908s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1908s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1908s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1908s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1908s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1908s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1908s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1908s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1908s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1908s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1908s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1908s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1908s # #else /* !G_ENABLE_DEBUG */ 1908s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1908s # * Do not access GValues directly in your code. Instead, use the 1908s # * g_value_get_*() functions 1908s # */ 1908s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1908s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1908s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1908s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1908s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1908s # #endif /* !G_ENABLE_DEBUG */ 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusArgInfo parent_struct; 1908s # gboolean use_gvariant; 1908s # } _ExtendedGDBusArgInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusMethodInfo parent_struct; 1908s # const gchar *signal_name; 1908s # gboolean pass_fdlist; 1908s # } _ExtendedGDBusMethodInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusSignalInfo parent_struct; 1908s # const gchar *signal_name; 1908s # } _ExtendedGDBusSignalInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusPropertyInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # guint use_gvariant : 1; 1908s # guint emits_changed_signal : 1; 1908s # } _ExtendedGDBusPropertyInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusInterfaceInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # } _ExtendedGDBusInterfaceInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # const _ExtendedGDBusPropertyInfo *info; 1908s # guint prop_id; 1908s # GValue orig_value; /* the value before the change */ 1908s # } ChangedProperty; 1908s # 1908s # static void 1908s # _changed_property_free (ChangedProperty *data) 1908s # { 1908s # g_value_unset (&data->orig_value); 1908s # g_free (data); 1908s # } 1908s # 1908s # static gboolean 1908s # _g_strv_equal0 (gchar **a, gchar **b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # guint n; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # if (g_strv_length (a) != g_strv_length (b)) 1908s # goto out; 1908s # for (n = 0; a[n] != NULL; n++) 1908s # if (g_strcmp0 (a[n], b[n]) != 0) 1908s # goto out; 1908s # ret = TRUE; 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _g_variant_equal0 (GVariant *a, GVariant *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # ret = g_variant_equal (a, b); 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # G_GNUC_UNUSED static gboolean 1908s # _g_value_equal (const GValue *a, const GValue *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1908s # switch (G_VALUE_TYPE (a)) 1908s # { 1908s # case G_TYPE_BOOLEAN: 1908s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1908s # break; 1908s # case G_TYPE_UCHAR: 1908s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1908s # break; 1908s # case G_TYPE_INT: 1908s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1908s # break; 1908s # case G_TYPE_UINT: 1908s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1908s # break; 1908s # case G_TYPE_INT64: 1908s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1908s # break; 1908s # case G_TYPE_UINT64: 1908s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1908s # break; 1908s # case G_TYPE_DOUBLE: 1908s # { 1908s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1908s # gdouble da = g_value_get_double (a); 1908s # gdouble db = g_value_get_double (b); 1908s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1908s # } 1908s # break; 1908s # case G_TYPE_STRING: 1908s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1908s # break; 1908s # case G_TYPE_VARIANT: 1908s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1908s # break; 1908s # default: 1908s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1908s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1908s # else 1908s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1908s # break; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static void 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint G_GNUC_UNUSED, 1908s # void *marshal_data) 1908s # { 1908s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1908s # (void *data1, 1908s # GDBusMethodInvocation *arg_method_invocation, 1908s # void *data2); 1908s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1908s # GCClosure *cc = (GCClosure*) closure; 1908s # void *data1, *data2; 1908s # gboolean v_return; 1908s # 1908s # g_return_if_fail (return_value != NULL); 1908s # g_return_if_fail (n_param_values == 2); 1908s # 1908s # if (G_CCLOSURE_SWAP_DATA (closure)) 1908s # { 1908s # data1 = closure->data; 1908s # data2 = g_value_peek_pointer (param_values + 0); 1908s # } 1908s # else 1908s # { 1908s # data1 = g_value_peek_pointer (param_values + 0); 1908s # data2 = closure->data; 1908s # } 1908s # 1908s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1908s # (marshal_data ? marshal_data : cc->callback); 1908s # 1908s # v_return = 1908s # callback (data1, 1908s # g_marshal_value_peek_object (param_values + 1), 1908s # data2); 1908s # 1908s # g_value_set_boolean (return_value, v_return); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ 1908s # * Code for interface org.project.UsefulInterface 1908s # * ------------------------------------------------------------------------ 1908s # */ 1908s # 1908s # /** 1908s # * SECTION:OrgProjectUsefulInterface 1908s # * @title: OrgProjectUsefulInterface 1908s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1908s # * 1908s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1908s # */ 1908s # 1908s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_arg_h = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "arg_h", 1908s # (gchar *) "h", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_pointers[] = 1908s # { 1908s # &_org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_arg_h.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_h = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SingleArgMethodH", 1908s # NULL, 1908s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "handle-single-arg-method-h", 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1908s # { 1908s # &_org_project_useful_interface_method_info_single_arg_method_h.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "org.project.UsefulInterface", 1908s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1908s # NULL, 1908s # NULL, 1908s # NULL 1908s # }, 1908s # "org-project-useful-interface", 1908s # }; 1908s # 1908s # 1908s # /** 1908s # * org_project_useful_interface_interface_info: 1908s # * 1908s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1908s # * 1908s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1908s # */ 1908s # GDBusInterfaceInfo * 1908s # org_project_useful_interface_interface_info (void) 1908s # { 1908s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_override_properties: 1908s # * @klass: The class structure for a #GObject derived class. 1908s # * @property_id_begin: The property id to assign to the first overridden property. 1908s # * 1908s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1908s # * The properties are overridden in the order they are defined. 1908s # * 1908s # * Returns: The last property id. 1908s # */ 1908s # guint 1908s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1908s # { 1908s # return property_id_begin - 1; 1908s # } 1908s # 1908s # 1908s # inline static void 1908s # org_project_useful_interface_method_marshal_single_arg_method_h ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterface: 1908s # * 1908s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceIface: 1908s # * @parent_iface: The parent interface. 1908s # * @handle_single_arg_method_h: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-h signal. 1908s # * 1908s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1908s # */ 1908s # 1908s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1908s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1908s # 1908s # static void 1908s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1908s # { 1908s # /* GObject signals for incoming D-Bus method calls: */ 1908s # /** 1908s # * OrgProjectUsefulInterface::handle-single-arg-method-h: 1908s # * @object: A #OrgProjectUsefulInterface. 1908s # * @invocation: A #GDBusMethodInvocation. 1908s # * 1908s # * Signal emitted when a remote caller is invoking the SingleArgMethodH() D-Bus method. 1908s # * 1908s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_h() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1908s # * 1908s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1908s # */ 1908s # g_signal_new ("handle-single-arg-method-h", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_h), 1908s # g_signal_accumulator_true_handled, 1908s # NULL, 1908s # org_project_useful_interface_method_marshal_single_arg_method_h, 1908s # G_TYPE_BOOLEAN, 1908s # 1, 1908s # G_TYPE_DBUS_METHOD_INVOCATION); 1908s # 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_h: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously invokes the SingleArgMethodH() D-Bus method on @proxy. 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_call_single_arg_method_h_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_call_single_arg_method_h_sync() for the synchronous, blocking version of this method. 1908s # */ 1908s # void 1908s # org_project_useful_interface_call_single_arg_method_h ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1908s # "SingleArgMethodH", 1908s # g_variant_new ("()"), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # callback, 1908s # user_data); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_h_finish: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @out_arg_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_h(). 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_h(). 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_useful_interface_call_single_arg_method_h_finish ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # GVariant **out_arg_h, 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(@h)", 1908s # out_arg_h); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_h_sync: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @out_arg_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Synchronously invokes the SingleArgMethodH() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_call_single_arg_method_h() for the asynchronous version of this method. 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_useful_interface_call_single_arg_method_h_sync ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # GVariant **out_arg_h, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1908s # "SingleArgMethodH", 1908s # g_variant_new ("()"), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(@h)", 1908s # out_arg_h); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_complete_single_arg_method_h: 1908s # * @object: A #OrgProjectUsefulInterface. 1908s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1908s # * @arg_h: Parameter to return. 1908s # * 1908s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodH() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1908s # * 1908s # * This method will free @invocation, you cannot use it afterwards. 1908s # */ 1908s # void 1908s # org_project_useful_interface_complete_single_arg_method_h ( 1908s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1908s # GDBusMethodInvocation *invocation, 1908s # GVariant *arg_h) 1908s # { 1908s # g_dbus_method_invocation_return_value (invocation, 1908s # g_variant_new ("(@h)", 1908s # arg_h)); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceProxy: 1908s # * 1908s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceProxyClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1908s # */ 1908s # 1908s # struct _OrgProjectUsefulInterfaceProxyPrivate 1908s # { 1908s # GData *qdata; 1908s # }; 1908s # 1908s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_useful_interface_proxy_finalize (GObject *object) 1908s # { 1908s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1908s # g_datalist_clear (&proxy->priv->qdata); 1908s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # const GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1908s # const gchar *sender_name G_GNUC_UNUSED, 1908s # const gchar *signal_name, 1908s # GVariant *parameters) 1908s # { 1908s # _ExtendedGDBusSignalInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # gsize n; 1908s # guint signal_id; 1908s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1908s # if (info == NULL) 1908s # return; 1908s # num_params = g_variant_n_children (parameters); 1908s # paramv = g_new0 (GValue, num_params + 1); 1908s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_set_object (¶mv[0], proxy); 1908s # g_variant_iter_init (&iter, parameters); 1908s # n = 1; 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_signal_emitv (paramv, signal_id, 0, NULL); 1908s # for (n = 0; n < num_params + 1; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1908s # GVariant *changed_properties, 1908s # const gchar *const *invalidated_properties) 1908s # { 1908s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1908s # guint n; 1908s # const gchar *key; 1908s # GVariantIter *iter; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # g_variant_get (changed_properties, "a{sv}", &iter); 1908s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1908s # g_datalist_remove_data (&proxy->priv->qdata, key); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # g_variant_iter_free (iter); 1908s # for (n = 0; invalidated_properties[n] != NULL; n++) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1908s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1908s # #else 1908s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1908s # #endif 1908s # 1908s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusProxyClass *proxy_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1908s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1908s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1908s # 1908s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1908s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1908s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_useful_interface_proxy_new ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_sync: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_sync ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_useful_interface_proxy_new_for_bus ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_for_bus_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus_sync: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_for_bus_sync ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeleton: 1908s # * 1908s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeletonClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1908s # */ 1908s # 1908s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1908s # { 1908s # GValue *properties; 1908s # GList *changed_properties; 1908s # GSource *changed_properties_idle_source; 1908s # GMainContext *context; 1908s # GMutex lock; 1908s # }; 1908s # 1908s # static void 1908s # _org_project_useful_interface_skeleton_handle_method_call ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name, 1908s # const gchar *method_name, 1908s # GVariant *parameters, 1908s # GDBusMethodInvocation *invocation, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # _ExtendedGDBusMethodInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # guint num_extra; 1908s # gsize n; 1908s # guint signal_id; 1908s # GValue return_value = G_VALUE_INIT; 1908s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1908s # g_assert (info != NULL); 1908s # num_params = g_variant_n_children (parameters); 1908s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1908s # n = 0; 1908s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_set_object (¶mv[n++], skeleton); 1908s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1908s # g_value_set_object (¶mv[n++], invocation); 1908s # if (info->pass_fdlist) 1908s # { 1908s # #ifdef G_OS_UNIX 1908s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1908s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1908s # #else 1908s # g_assert_not_reached (); 1908s # #endif 1908s # } 1908s # g_variant_iter_init (&iter, parameters); 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1908s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1908s # if (!g_value_get_boolean (&return_value)) 1908s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1908s # g_value_unset (&return_value); 1908s # for (n = 0; n < num_params + num_extra; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static GVariant * 1908s # _org_project_useful_interface_skeleton_handle_get_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # GVariant *ret; 1908s # ret = NULL; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # g_value_init (&value, pspec->value_type); 1908s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1908s # g_value_unset (&value); 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _org_project_useful_interface_skeleton_handle_set_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GVariant *variant, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # gboolean ret; 1908s # ret = FALSE; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # if (info->use_gvariant) 1908s # g_value_set_variant (&value, variant); 1908s # else 1908s # g_dbus_gvariant_to_gvalue (variant, &value); 1908s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # g_value_unset (&value); 1908s # ret = TRUE; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1908s # { 1908s # _org_project_useful_interface_skeleton_handle_method_call, 1908s # _org_project_useful_interface_skeleton_handle_get_property, 1908s # _org_project_useful_interface_skeleton_handle_set_property, 1908s # {NULL} 1908s # }; 1908s # 1908s # static GDBusInterfaceInfo * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return org_project_useful_interface_interface_info (); 1908s # } 1908s # 1908s # static GDBusInterfaceVTable * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1908s # } 1908s # 1908s # static GVariant * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1908s # 1908s # GVariantBuilder builder; 1908s # guint n; 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1908s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #else 1908s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #endif 1908s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1908s # goto out; 1908s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1908s # { 1908s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1908s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1908s # { 1908s # GVariant *value; 1908s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1908s # if (value != NULL) 1908s # { 1908s # g_variant_take_ref (value); 1908s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1908s # g_variant_unref (value); 1908s # } 1908s # } 1908s # } 1908s # out: 1908s # return g_variant_builder_end (&builder); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_useful_interface_skeleton_finalize (GObject *object) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1908s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1908s # if (skeleton->priv->changed_properties_idle_source != NULL) 1908s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1908s # g_main_context_unref (skeleton->priv->context); 1908s # g_mutex_clear (&skeleton->priv->lock); 1908s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1908s # #else 1908s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1908s # #endif 1908s # 1908s # g_mutex_init (&skeleton->priv->lock); 1908s # skeleton->priv->context = g_main_context_ref_thread_default (); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusInterfaceSkeletonClass *skeleton_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1908s # 1908s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1908s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1908s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1908s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1908s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_skeleton_new: 1908s # * 1908s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_skeleton_new (void) 1908s # { 1908s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1908s # } 1908s # Error: 1908s # 1908s # /tmp/tmpei14pw7z/tmple7wixmi.xml: 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpei14pw7z/tmple7wixmi.xml', '--output', '-', '--body'] 1908s # Return code: 0 1908s # Output: 1908s # /* 1908s # * This file is generated by gdbus-codegen, do not modify it. 1908s # * 1908s # * The license of this code is the same as for the D-Bus interface description 1908s # * it was derived from. Note that it links to GLib, so must comply with the 1908s # * LGPL linking clauses. 1908s # */ 1908s # 1908s # #ifdef HAVE_CONFIG_H 1908s # # include "config.h" 1908s # #endif 1908s # 1908s # #include 1908s # #ifdef G_OS_UNIX 1908s # # include 1908s # #endif 1908s # 1908s # #ifdef G_ENABLE_DEBUG 1908s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1908s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1908s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1908s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1908s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1908s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1908s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1908s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1908s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1908s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1908s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1908s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1908s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1908s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1908s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1908s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1908s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1908s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1908s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1908s # #else /* !G_ENABLE_DEBUG */ 1908s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1908s # * Do not access GValues directly in your code. Instead, use the 1908s # * g_value_get_*() functions 1908s # */ 1908s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1908s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1908s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1908s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1908s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1908s # #endif /* !G_ENABLE_DEBUG */ 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusArgInfo parent_struct; 1908s # gboolean use_gvariant; 1908s # } _ExtendedGDBusArgInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusMethodInfo parent_struct; 1908s # const gchar *signal_name; 1908s # gboolean pass_fdlist; 1908s # } _ExtendedGDBusMethodInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusSignalInfo parent_struct; 1908s # const gchar *signal_name; 1908s # } _ExtendedGDBusSignalInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusPropertyInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # guint use_gvariant : 1; 1908s # guint emits_changed_signal : 1; 1908s # } _ExtendedGDBusPropertyInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusInterfaceInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # } _ExtendedGDBusInterfaceInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # const _ExtendedGDBusPropertyInfo *info; 1908s # guint prop_id; 1908s # GValue orig_value; /* the value before the change */ 1908s # } ChangedProperty; 1908s # 1908s # static void 1908s # _changed_property_free (ChangedProperty *data) 1908s # { 1908s # g_value_unset (&data->orig_value); 1908s # g_free (data); 1908s # } 1908s # 1908s # static gboolean 1908s # _g_strv_equal0 (gchar **a, gchar **b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # guint n; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # if (g_strv_length (a) != g_strv_length (b)) 1908s # goto out; 1908s # for (n = 0; a[n] != NULL; n++) 1908s # if (g_strcmp0 (a[n], b[n]) != 0) 1908s # goto out; 1908s # ret = TRUE; 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _g_variant_equal0 (GVariant *a, GVariant *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # ret = g_variant_equal (a, b); 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # G_GNUC_UNUSED static gboolean 1908s # _g_value_equal (const GValue *a, const GValue *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1908s # switch (G_VALUE_TYPE (a)) 1908s # { 1908s # case G_TYPE_BOOLEAN: 1908s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1908s # break; 1908s # case G_TYPE_UCHAR: 1908s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1908s # break; 1908s # case G_TYPE_INT: 1908s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1908s # break; 1908s # case G_TYPE_UINT: 1908s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1908s # break; 1908s # case G_TYPE_INT64: 1908s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1908s # break; 1908s # case G_TYPE_UINT64: 1908s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1908s # break; 1908s # case G_TYPE_DOUBLE: 1908s # { 1908s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1908s # gdouble da = g_value_get_double (a); 1908s # gdouble db = g_value_get_double (b); 1908s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1908s # } 1908s # break; 1908s # case G_TYPE_STRING: 1908s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1908s # break; 1908s # case G_TYPE_VARIANT: 1908s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1908s # break; 1908s # default: 1908s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1908s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1908s # else 1908s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1908s # break; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static void 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint G_GNUC_UNUSED, 1908s # void *marshal_data) 1908s # { 1908s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1908s # (void *data1, 1908s # GDBusMethodInvocation *arg_method_invocation, 1908s # void *data2); 1908s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1908s # GCClosure *cc = (GCClosure*) closure; 1908s # void *data1, *data2; 1908s # gboolean v_return; 1908s # 1908s # g_return_if_fail (return_value != NULL); 1908s # g_return_if_fail (n_param_values == 2); 1908s # 1908s # if (G_CCLOSURE_SWAP_DATA (closure)) 1908s # { 1908s # data1 = closure->data; 1908s # data2 = g_value_peek_pointer (param_values + 0); 1908s # } 1908s # else 1908s # { 1908s # data1 = g_value_peek_pointer (param_values + 0); 1908s # data2 = closure->data; 1908s # } 1908s # 1908s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1908s # (marshal_data ? marshal_data : cc->callback); 1908s # 1908s # v_return = 1908s # callback (data1, 1908s # g_marshal_value_peek_object (param_values + 1), 1908s # data2); 1908s # 1908s # g_value_set_boolean (return_value, v_return); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ 1908s # * Code for interface org.project.UsefulInterface 1908s # * ------------------------------------------------------------------------ 1908s # */ 1908s # 1908s # /** 1908s # * SECTION:OrgProjectUsefulInterface 1908s # * @title: OrgProjectUsefulInterface 1908s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1908s # * 1908s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1908s # */ 1908s # 1908s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_arg_ay = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "arg_ay", 1908s # (gchar *) "ay", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_pointers[] = 1908s # { 1908s # &_org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_arg_ay.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ay = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SingleArgMethodAy", 1908s # NULL, 1908s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "handle-single-arg-method-ay", 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1908s # { 1908s # &_org_project_useful_interface_method_info_single_arg_method_ay.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "org.project.UsefulInterface", 1908s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1908s # NULL, 1908s # NULL, 1908s # NULL 1908s # }, 1908s # "org-project-useful-interface", 1908s # }; 1908s # 1908s # 1908s # /** 1908s # * org_project_useful_interface_interface_info: 1908s # * 1908s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1908s # * 1908s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1908s # */ 1908s # GDBusInterfaceInfo * 1908s # org_project_useful_interface_interface_info (void) 1908s # { 1908s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_override_properties: 1908s # * @klass: The class structure for a #GObject derived class. 1908s # * @property_id_begin: The property id to assign to the first overridden property. 1908s # * 1908s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1908s # * The properties are overridden in the order they are defined. 1908s # * 1908s # * Returns: The last property id. 1908s # */ 1908s # guint 1908s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1908s # { 1908s # return property_id_begin - 1; 1908s # } 1908s # 1908s # 1908s # inline static void 1908s # org_project_useful_interface_method_marshal_single_arg_method_ay ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterface: 1908s # * 1908s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceIface: 1908s # * @parent_iface: The parent interface. 1908s # * @handle_single_arg_method_ay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ay signal. 1908s # * 1908s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1908s # */ 1908s # 1908s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1908s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1908s # 1908s # static void 1908s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1908s # { 1908s # /* GObject signals for incoming D-Bus method calls: */ 1908s # /** 1908s # * OrgProjectUsefulInterface::handle-single-arg-method-ay: 1908s # * @object: A #OrgProjectUsefulInterface. 1908s # * @invocation: A #GDBusMethodInvocation. 1908s # * 1908s # * Signal emitted when a remote caller is invoking the SingleArgMethodAy() D-Bus method. 1908s # * 1908s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_ay() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1908s # * 1908s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1908s # */ 1908s # g_signal_new ("handle-single-arg-method-ay", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ay), 1908s # g_signal_accumulator_true_handled, 1908s # NULL, 1908s # org_project_useful_interface_method_marshal_single_arg_method_ay, 1908s # G_TYPE_BOOLEAN, 1908s # 1, 1908s # G_TYPE_DBUS_METHOD_INVOCATION); 1908s # 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_ay: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_call_single_arg_method_ay_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_call_single_arg_method_ay_sync() for the synchronous, blocking version of this method. 1908s # */ 1908s # void 1908s # org_project_useful_interface_call_single_arg_method_ay ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1908s # "SingleArgMethodAy", 1908s # g_variant_new ("()"), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # callback, 1908s # user_data); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_ay_finish: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @out_arg_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ay(). 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ay(). 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_useful_interface_call_single_arg_method_ay_finish ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # gchar **out_arg_ay, 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(^ay)", 1908s # out_arg_ay); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_ay_sync: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @out_arg_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Synchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_call_single_arg_method_ay() for the asynchronous version of this method. 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_useful_interface_call_single_arg_method_ay_sync ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # gchar **out_arg_ay, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1908s # "SingleArgMethodAy", 1908s # g_variant_new ("()"), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(^ay)", 1908s # out_arg_ay); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_complete_single_arg_method_ay: 1908s # * @object: A #OrgProjectUsefulInterface. 1908s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1908s # * @arg_ay: Parameter to return. 1908s # * 1908s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodAy() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1908s # * 1908s # * This method will free @invocation, you cannot use it afterwards. 1908s # */ 1908s # void 1908s # org_project_useful_interface_complete_single_arg_method_ay ( 1908s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1908s # GDBusMethodInvocation *invocation, 1908s # const gchar *arg_ay) 1908s # { 1908s # g_dbus_method_invocation_return_value (invocation, 1908s # g_variant_new ("(^ay)", 1908s # arg_ay)); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceProxy: 1908s # * 1908s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceProxyClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1908s # */ 1908s # 1908s # struct _OrgProjectUsefulInterfaceProxyPrivate 1908s # { 1908s # GData *qdata; 1908s # }; 1908s # 1908s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_useful_interface_proxy_finalize (GObject *object) 1908s # { 1908s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1908s # g_datalist_clear (&proxy->priv->qdata); 1908s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # const GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1908s # const gchar *sender_name G_GNUC_UNUSED, 1908s # const gchar *signal_name, 1908s # GVariant *parameters) 1908s # { 1908s # _ExtendedGDBusSignalInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # gsize n; 1908s # guint signal_id; 1908s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1908s # if (info == NULL) 1908s # return; 1908s # num_params = g_variant_n_children (parameters); 1908s # paramv = g_new0 (GValue, num_params + 1); 1908s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_set_object (¶mv[0], proxy); 1908s # g_variant_iter_init (&iter, parameters); 1908s # n = 1; 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_signal_emitv (paramv, signal_id, 0, NULL); 1908s # for (n = 0; n < num_params + 1; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1908s # GVariant *changed_properties, 1908s # const gchar *const *invalidated_properties) 1908s # { 1908s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1908s # guint n; 1908s # const gchar *key; 1908s # GVariantIter *iter; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # g_variant_get (changed_properties, "a{sv}", &iter); 1908s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1908s # g_datalist_remove_data (&proxy->priv->qdata, key); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # g_variant_iter_free (iter); 1908s # for (n = 0; invalidated_properties[n] != NULL; n++) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1908s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1908s # #else 1908s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1908s # #endif 1908s # 1908s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusProxyClass *proxy_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1908s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1908s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1908s # 1908s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1908s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1908s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_useful_interface_proxy_new ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_sync: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_sync ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_useful_interface_proxy_new_for_bus ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_for_bus_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus_sync: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_for_bus_sync ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeleton: 1908s # * 1908s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeletonClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1908s # */ 1908s # 1908s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1908s # { 1908s # GValue *properties; 1908s # GList *changed_properties; 1908s # GSource *changed_properties_idle_source; 1908s # GMainContext *context; 1908s # GMutex lock; 1908s # }; 1908s # 1908s # static void 1908s # _org_project_useful_interface_skeleton_handle_method_call ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name, 1908s # const gchar *method_name, 1908s # GVariant *parameters, 1908s # GDBusMethodInvocation *invocation, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # _ExtendedGDBusMethodInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # guint num_extra; 1908s # gsize n; 1908s # guint signal_id; 1908s # GValue return_value = G_VALUE_INIT; 1908s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1908s # g_assert (info != NULL); 1908s # num_params = g_variant_n_children (parameters); 1908s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1908s # n = 0; 1908s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_set_object (¶mv[n++], skeleton); 1908s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1908s # g_value_set_object (¶mv[n++], invocation); 1908s # if (info->pass_fdlist) 1908s # { 1908s # #ifdef G_OS_UNIX 1908s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1908s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1908s # #else 1908s # g_assert_not_reached (); 1908s # #endif 1908s # } 1908s # g_variant_iter_init (&iter, parameters); 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1908s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1908s # if (!g_value_get_boolean (&return_value)) 1908s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1908s # g_value_unset (&return_value); 1908s # for (n = 0; n < num_params + num_extra; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static GVariant * 1908s # _org_project_useful_interface_skeleton_handle_get_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # GVariant *ret; 1908s # ret = NULL; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # g_value_init (&value, pspec->value_type); 1908s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1908s # g_value_unset (&value); 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _org_project_useful_interface_skeleton_handle_set_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GVariant *variant, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # gboolean ret; 1908s # ret = FALSE; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # if (info->use_gvariant) 1908s # g_value_set_variant (&value, variant); 1908s # else 1908s # g_dbus_gvariant_to_gvalue (variant, &value); 1908s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # g_value_unset (&value); 1908s # ret = TRUE; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1908s # { 1908s # _org_project_useful_interface_skeleton_handle_method_call, 1908s # _org_project_useful_interface_skeleton_handle_get_property, 1908s # _org_project_useful_interface_skeleton_handle_set_property, 1908s # {NULL} 1908s # }; 1908s # 1908s # static GDBusInterfaceInfo * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return org_project_useful_interface_interface_info (); 1908s # } 1908s # 1908s # static GDBusInterfaceVTable * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1908s # } 1908s # 1908s # static GVariant * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1908s # 1908s # GVariantBuilder builder; 1908s # guint n; 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1908s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #else 1908s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #endif 1908s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1908s # goto out; 1908s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1908s # { 1908s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1908s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1908s # { 1908s # GVariant *value; 1908s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1908s # if (value != NULL) 1908s # { 1908s # g_variant_take_ref (value); 1908s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1908s # g_variant_unref (value); 1908s # } 1908s # } 1908s # } 1908s # out: 1908s # return g_variant_builder_end (&builder); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_useful_interface_skeleton_finalize (GObject *object) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1908s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1908s # if (skeleton->priv->changed_properties_idle_source != NULL) 1908s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1908s # g_main_context_unref (skeleton->priv->context); 1908s # g_mutex_clear (&skeleton->priv->lock); 1908s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1908s # #else 1908s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1908s # #endif 1908s # 1908s # g_mutex_init (&skeleton->priv->lock); 1908s # skeleton->priv->context = g_main_context_ref_thread_default (); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusInterfaceSkeletonClass *skeleton_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1908s # 1908s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1908s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1908s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1908s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1908s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_skeleton_new: 1908s # * 1908s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_skeleton_new (void) 1908s # { 1908s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1908s # } 1908s # Error: 1908s # 1908s # /tmp/tmpei14pw7z/tmp0skxn47a.xml: 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpei14pw7z/tmp0skxn47a.xml', '--output', '-', '--body'] 1908s # Return code: 0 1908s # Output: 1908s # /* 1908s # * This file is generated by gdbus-codegen, do not modify it. 1908s # * 1908s # * The license of this code is the same as for the D-Bus interface description 1908s # * it was derived from. Note that it links to GLib, so must comply with the 1908s # * LGPL linking clauses. 1908s # */ 1908s # 1908s # #ifdef HAVE_CONFIG_H 1908s # # include "config.h" 1908s # #endif 1908s # 1908s # #include 1908s # #ifdef G_OS_UNIX 1908s # # include 1908s # #endif 1908s # 1908s # #ifdef G_ENABLE_DEBUG 1908s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1908s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1908s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1908s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1908s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1908s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1908s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1908s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1908s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1908s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1908s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1908s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1908s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1908s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1908s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1908s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1908s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1908s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1908s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1908s # #else /* !G_ENABLE_DEBUG */ 1908s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1908s # * Do not access GValues directly in your code. Instead, use the 1908s # * g_value_get_*() functions 1908s # */ 1908s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1908s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1908s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1908s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1908s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1908s # #endif /* !G_ENABLE_DEBUG */ 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusArgInfo parent_struct; 1908s # gboolean use_gvariant; 1908s # } _ExtendedGDBusArgInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusMethodInfo parent_struct; 1908s # const gchar *signal_name; 1908s # gboolean pass_fdlist; 1908s # } _ExtendedGDBusMethodInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusSignalInfo parent_struct; 1908s # const gchar *signal_name; 1908s # } _ExtendedGDBusSignalInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusPropertyInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # guint use_gvariant : 1; 1908s # guint emits_changed_signal : 1; 1908s # } _ExtendedGDBusPropertyInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusInterfaceInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # } _ExtendedGDBusInterfaceInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # const _ExtendedGDBusPropertyInfo *info; 1908s # guint prop_id; 1908s # GValue orig_value; /* the value before the change */ 1908s # } ChangedProperty; 1908s # 1908s # static void 1908s # _changed_property_free (ChangedProperty *data) 1908s # { 1908s # g_value_unset (&data->orig_value); 1908s # g_free (data); 1908s # } 1908s # 1908s # static gboolean 1908s # _g_strv_equal0 (gchar **a, gchar **b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # guint n; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # if (g_strv_length (a) != g_strv_length (b)) 1908s # goto out; 1908s # for (n = 0; a[n] != NULL; n++) 1908s # if (g_strcmp0 (a[n], b[n]) != 0) 1908s # goto out; 1908s # ret = TRUE; 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _g_variant_equal0 (GVariant *a, GVariant *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # ret = g_variant_equal (a, b); 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # G_GNUC_UNUSED static gboolean 1908s # _g_value_equal (const GValue *a, const GValue *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1908s # switch (G_VALUE_TYPE (a)) 1908s # { 1908s # case G_TYPE_BOOLEAN: 1908s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1908s # break; 1908s # case G_TYPE_UCHAR: 1908s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1908s # break; 1908s # case G_TYPE_INT: 1908s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1908s # break; 1908s # case G_TYPE_UINT: 1908s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1908s # break; 1908s # case G_TYPE_INT64: 1908s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1908s # break; 1908s # case G_TYPE_UINT64: 1908s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1908s # break; 1908s # case G_TYPE_DOUBLE: 1908s # { 1908s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1908s # gdouble da = g_value_get_double (a); 1908s # gdouble db = g_value_get_double (b); 1908s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1908s # } 1908s # break; 1908s # case G_TYPE_STRING: 1908s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1908s # break; 1908s # case G_TYPE_VARIANT: 1908s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1908s # break; 1908s # default: 1908s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1908s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1908s # else 1908s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1908s # break; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static void 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint G_GNUC_UNUSED, 1908s # void *marshal_data) 1908s # { 1908s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1908s # (void *data1, 1908s # GDBusMethodInvocation *arg_method_invocation, 1908s # void *data2); 1908s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1908s # GCClosure *cc = (GCClosure*) closure; 1908s # void *data1, *data2; 1908s # gboolean v_return; 1908s # 1908s # g_return_if_fail (return_value != NULL); 1908s # g_return_if_fail (n_param_values == 2); 1908s # 1908s # if (G_CCLOSURE_SWAP_DATA (closure)) 1908s # { 1908s # data1 = closure->data; 1908s # data2 = g_value_peek_pointer (param_values + 0); 1908s # } 1908s # else 1908s # { 1908s # data1 = g_value_peek_pointer (param_values + 0); 1908s # data2 = closure->data; 1908s # } 1908s # 1908s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1908s # (marshal_data ? marshal_data : cc->callback); 1908s # 1908s # v_return = 1908s # callback (data1, 1908s # g_marshal_value_peek_object (param_values + 1), 1908s # data2); 1908s # 1908s # g_value_set_boolean (return_value, v_return); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ 1908s # * Code for interface org.project.UsefulInterface 1908s # * ------------------------------------------------------------------------ 1908s # */ 1908s # 1908s # /** 1908s # * SECTION:OrgProjectUsefulInterface 1908s # * @title: OrgProjectUsefulInterface 1908s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1908s # * 1908s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1908s # */ 1908s # 1908s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_arg_as = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "arg_as", 1908s # (gchar *) "as", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_pointers[] = 1908s # { 1908s # &_org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_arg_as.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_as = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SingleArgMethodAs", 1908s # NULL, 1908s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "handle-single-arg-method-as", 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1908s # { 1908s # &_org_project_useful_interface_method_info_single_arg_method_as.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "org.project.UsefulInterface", 1908s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1908s # NULL, 1908s # NULL, 1908s # NULL 1908s # }, 1908s # "org-project-useful-interface", 1908s # }; 1908s # 1908s # 1908s # /** 1908s # * org_project_useful_interface_interface_info: 1908s # * 1908s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1908s # * 1908s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1908s # */ 1908s # GDBusInterfaceInfo * 1908s # org_project_useful_interface_interface_info (void) 1908s # { 1908s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_override_properties: 1908s # * @klass: The class structure for a #GObject derived class. 1908s # * @property_id_begin: The property id to assign to the first overridden property. 1908s # * 1908s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1908s # * The properties are overridden in the order they are defined. 1908s # * 1908s # * Returns: The last property id. 1908s # */ 1908s # guint 1908s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1908s # { 1908s # return property_id_begin - 1; 1908s # } 1908s # 1908s # 1908s # inline static void 1908s # org_project_useful_interface_method_marshal_single_arg_method_as ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterface: 1908s # * 1908s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceIface: 1908s # * @parent_iface: The parent interface. 1908s # * @handle_single_arg_method_as: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-as signal. 1908s # * 1908s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1908s # */ 1908s # 1908s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1908s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1908s # 1908s # static void 1908s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1908s # { 1908s # /* GObject signals for incoming D-Bus method calls: */ 1908s # /** 1908s # * OrgProjectUsefulInterface::handle-single-arg-method-as: 1908s # * @object: A #OrgProjectUsefulInterface. 1908s # * @invocation: A #GDBusMethodInvocation. 1908s # * 1908s # * Signal emitted when a remote caller is invoking the SingleArgMethodAs() D-Bus method. 1908s # * 1908s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_as() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1908s # * 1908s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1908s # */ 1908s # g_signal_new ("handle-single-arg-method-as", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_as), 1908s # g_signal_accumulator_true_handled, 1908s # NULL, 1908s # org_project_useful_interface_method_marshal_single_arg_method_as, 1908s # G_TYPE_BOOLEAN, 1908s # 1, 1908s # G_TYPE_DBUS_METHOD_INVOCATION); 1908s # 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_as: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_call_single_arg_method_as_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_call_single_arg_method_as_sync() for the synchronous, blocking version of this method. 1908s # */ 1908s # void 1908s # org_project_useful_interface_call_single_arg_method_as ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1908s # "SingleArgMethodAs", 1908s # g_variant_new ("()"), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # callback, 1908s # user_data); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_as_finish: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @out_arg_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_as(). 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_as(). 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_useful_interface_call_single_arg_method_as_finish ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # gchar ***out_arg_as, 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(^as)", 1908s # out_arg_as); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_as_sync: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @out_arg_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Synchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_call_single_arg_method_as() for the asynchronous version of this method. 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_useful_interface_call_single_arg_method_as_sync ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # gchar ***out_arg_as, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1908s # "SingleArgMethodAs", 1908s # g_variant_new ("()"), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(^as)", 1908s # out_arg_as); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_complete_single_arg_method_as: 1908s # * @object: A #OrgProjectUsefulInterface. 1908s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1908s # * @arg_as: Parameter to return. 1908s # * 1908s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodAs() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1908s # * 1908s # * This method will free @invocation, you cannot use it afterwards. 1908s # */ 1908s # void 1908s # org_project_useful_interface_complete_single_arg_method_as ( 1908s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1908s # GDBusMethodInvocation *invocation, 1908s # const gchar *const *arg_as) 1908s # { 1908s # g_dbus_method_invocation_return_value (invocation, 1908s # g_variant_new ("(^as)", 1908s # arg_as)); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceProxy: 1908s # * 1908s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceProxyClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1908s # */ 1908s # 1908s # struct _OrgProjectUsefulInterfaceProxyPrivate 1908s # { 1908s # GData *qdata; 1908s # }; 1908s # 1908s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_useful_interface_proxy_finalize (GObject *object) 1908s # { 1908s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1908s # g_datalist_clear (&proxy->priv->qdata); 1908s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # const GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1908s # const gchar *sender_name G_GNUC_UNUSED, 1908s # const gchar *signal_name, 1908s # GVariant *parameters) 1908s # { 1908s # _ExtendedGDBusSignalInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # gsize n; 1908s # guint signal_id; 1908s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1908s # if (info == NULL) 1908s # return; 1908s # num_params = g_variant_n_children (parameters); 1908s # paramv = g_new0 (GValue, num_params + 1); 1908s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_set_object (¶mv[0], proxy); 1908s # g_variant_iter_init (&iter, parameters); 1908s # n = 1; 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_signal_emitv (paramv, signal_id, 0, NULL); 1908s # for (n = 0; n < num_params + 1; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1908s # GVariant *changed_properties, 1908s # const gchar *const *invalidated_properties) 1908s # { 1908s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1908s # guint n; 1908s # const gchar *key; 1908s # GVariantIter *iter; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # g_variant_get (changed_properties, "a{sv}", &iter); 1908s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1908s # g_datalist_remove_data (&proxy->priv->qdata, key); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # g_variant_iter_free (iter); 1908s # for (n = 0; invalidated_properties[n] != NULL; n++) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1908s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1908s # #else 1908s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1908s # #endif 1908s # 1908s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusProxyClass *proxy_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1908s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1908s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1908s # 1908s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1908s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1908s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_useful_interface_proxy_new ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_sync: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_sync ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_useful_interface_proxy_new_for_bus ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_for_bus_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus_sync: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_for_bus_sync ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeleton: 1908s # * 1908s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeletonClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1908s # */ 1908s # 1908s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1908s # { 1908s # GValue *properties; 1908s # GList *changed_properties; 1908s # GSource *changed_properties_idle_source; 1908s # GMainContext *context; 1908s # GMutex lock; 1908s # }; 1908s # 1908s # static void 1908s # _org_project_useful_interface_skeleton_handle_method_call ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name, 1908s # const gchar *method_name, 1908s # GVariant *parameters, 1908s # GDBusMethodInvocation *invocation, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # _ExtendedGDBusMethodInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # guint num_extra; 1908s # gsize n; 1908s # guint signal_id; 1908s # GValue return_value = G_VALUE_INIT; 1908s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1908s # g_assert (info != NULL); 1908s # num_params = g_variant_n_children (parameters); 1908s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1908s # n = 0; 1908s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_set_object (¶mv[n++], skeleton); 1908s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1908s # g_value_set_object (¶mv[n++], invocation); 1908s # if (info->pass_fdlist) 1908s # { 1908s # #ifdef G_OS_UNIX 1908s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1908s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1908s # #else 1908s # g_assert_not_reached (); 1908s # #endif 1908s # } 1908s # g_variant_iter_init (&iter, parameters); 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1908s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1908s # if (!g_value_get_boolean (&return_value)) 1908s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1908s # g_value_unset (&return_value); 1908s # for (n = 0; n < num_params + num_extra; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static GVariant * 1908s # _org_project_useful_interface_skeleton_handle_get_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # GVariant *ret; 1908s # ret = NULL; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # g_value_init (&value, pspec->value_type); 1908s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1908s # g_value_unset (&value); 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _org_project_useful_interface_skeleton_handle_set_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GVariant *variant, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # gboolean ret; 1908s # ret = FALSE; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # if (info->use_gvariant) 1908s # g_value_set_variant (&value, variant); 1908s # else 1908s # g_dbus_gvariant_to_gvalue (variant, &value); 1908s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # g_value_unset (&value); 1908s # ret = TRUE; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1908s # { 1908s # _org_project_useful_interface_skeleton_handle_method_call, 1908s # _org_project_useful_interface_skeleton_handle_get_property, 1908s # _org_project_useful_interface_skeleton_handle_set_property, 1908s # {NULL} 1908s # }; 1908s # 1908s # static GDBusInterfaceInfo * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return org_project_useful_interface_interface_info (); 1908s # } 1908s # 1908s # static GDBusInterfaceVTable * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1908s # } 1908s # 1908s # static GVariant * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1908s # 1908s # GVariantBuilder builder; 1908s # guint n; 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1908s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #else 1908s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #endif 1908s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1908s # goto out; 1908s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1908s # { 1908s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1908s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1908s # { 1908s # GVariant *value; 1908s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1908s # if (value != NULL) 1908s # { 1908s # g_variant_take_ref (value); 1908s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1908s # g_variant_unref (value); 1908s # } 1908s # } 1908s # } 1908s # out: 1908s # return g_variant_builder_end (&builder); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_useful_interface_skeleton_finalize (GObject *object) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1908s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1908s # if (skeleton->priv->changed_properties_idle_source != NULL) 1908s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1908s # g_main_context_unref (skeleton->priv->context); 1908s # g_mutex_clear (&skeleton->priv->lock); 1908s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1908s # #else 1908s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1908s # #endif 1908s # 1908s # g_mutex_init (&skeleton->priv->lock); 1908s # skeleton->priv->context = g_main_context_ref_thread_default (); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusInterfaceSkeletonClass *skeleton_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1908s # 1908s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1908s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1908s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1908s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1908s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_skeleton_new: 1908s # * 1908s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_skeleton_new (void) 1908s # { 1908s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1908s # } 1908s # Error: 1908s # 1908s # /tmp/tmpei14pw7z/tmpzxapwlgd.xml: 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpei14pw7z/tmpzxapwlgd.xml', '--output', '-', '--body'] 1908s # Return code: 0 1908s # Output: 1908s # /* 1908s # * This file is generated by gdbus-codegen, do not modify it. 1908s # * 1908s # * The license of this code is the same as for the D-Bus interface description 1908s # * it was derived from. Note that it links to GLib, so must comply with the 1908s # * LGPL linking clauses. 1908s # */ 1908s # 1908s # #ifdef HAVE_CONFIG_H 1908s # # include "config.h" 1908s # #endif 1908s # 1908s # #include 1908s # #ifdef G_OS_UNIX 1908s # # include 1908s # #endif 1908s # 1908s # #ifdef G_ENABLE_DEBUG 1908s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1908s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1908s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1908s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1908s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1908s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1908s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1908s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1908s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1908s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1908s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1908s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1908s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1908s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1908s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1908s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1908s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1908s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1908s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1908s # #else /* !G_ENABLE_DEBUG */ 1908s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1908s # * Do not access GValues directly in your code. Instead, use the 1908s # * g_value_get_*() functions 1908s # */ 1908s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1908s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1908s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1908s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1908s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1908s # #endif /* !G_ENABLE_DEBUG */ 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusArgInfo parent_struct; 1908s # gboolean use_gvariant; 1908s # } _ExtendedGDBusArgInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusMethodInfo parent_struct; 1908s # const gchar *signal_name; 1908s # gboolean pass_fdlist; 1908s # } _ExtendedGDBusMethodInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusSignalInfo parent_struct; 1908s # const gchar *signal_name; 1908s # } _ExtendedGDBusSignalInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusPropertyInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # guint use_gvariant : 1; 1908s # guint emits_changed_signal : 1; 1908s # } _ExtendedGDBusPropertyInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusInterfaceInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # } _ExtendedGDBusInterfaceInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # const _ExtendedGDBusPropertyInfo *info; 1908s # guint prop_id; 1908s # GValue orig_value; /* the value before the change */ 1908s # } ChangedProperty; 1908s # 1908s # static void 1908s # _changed_property_free (ChangedProperty *data) 1908s # { 1908s # g_value_unset (&data->orig_value); 1908s # g_free (data); 1908s # } 1908s # 1908s # static gboolean 1908s # _g_strv_equal0 (gchar **a, gchar **b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # guint n; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # if (g_strv_length (a) != g_strv_length (b)) 1908s # goto out; 1908s # for (n = 0; a[n] != NULL; n++) 1908s # if (g_strcmp0 (a[n], b[n]) != 0) 1908s # goto out; 1908s # ret = TRUE; 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _g_variant_equal0 (GVariant *a, GVariant *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # ret = g_variant_equal (a, b); 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # G_GNUC_UNUSED static gboolean 1908s # _g_value_equal (const GValue *a, const GValue *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1908s # switch (G_VALUE_TYPE (a)) 1908s # { 1908s # case G_TYPE_BOOLEAN: 1908s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1908s # break; 1908s # case G_TYPE_UCHAR: 1908s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1908s # break; 1908s # case G_TYPE_INT: 1908s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1908s # break; 1908s # case G_TYPE_UINT: 1908s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1908s # break; 1908s # case G_TYPE_INT64: 1908s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1908s # break; 1908s # case G_TYPE_UINT64: 1908s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1908s # break; 1908s # case G_TYPE_DOUBLE: 1908s # { 1908s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1908s # gdouble da = g_value_get_double (a); 1908s # gdouble db = g_value_get_double (b); 1908s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1908s # } 1908s # break; 1908s # case G_TYPE_STRING: 1908s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1908s # break; 1908s # case G_TYPE_VARIANT: 1908s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1908s # break; 1908s # default: 1908s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1908s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1908s # else 1908s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1908s # break; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static void 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint G_GNUC_UNUSED, 1908s # void *marshal_data) 1908s # { 1908s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1908s # (void *data1, 1908s # GDBusMethodInvocation *arg_method_invocation, 1908s # void *data2); 1908s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1908s # GCClosure *cc = (GCClosure*) closure; 1908s # void *data1, *data2; 1908s # gboolean v_return; 1908s # 1908s # g_return_if_fail (return_value != NULL); 1908s # g_return_if_fail (n_param_values == 2); 1908s # 1908s # if (G_CCLOSURE_SWAP_DATA (closure)) 1908s # { 1908s # data1 = closure->data; 1908s # data2 = g_value_peek_pointer (param_values + 0); 1908s # } 1908s # else 1908s # { 1908s # data1 = g_value_peek_pointer (param_values + 0); 1908s # data2 = closure->data; 1908s # } 1908s # 1908s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1908s # (marshal_data ? marshal_data : cc->callback); 1908s # 1908s # v_return = 1908s # callback (data1, 1908s # g_marshal_value_peek_object (param_values + 1), 1908s # data2); 1908s # 1908s # g_value_set_boolean (return_value, v_return); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ 1908s # * Code for interface org.project.UsefulInterface 1908s # * ------------------------------------------------------------------------ 1908s # */ 1908s # 1908s # /** 1908s # * SECTION:OrgProjectUsefulInterface 1908s # * @title: OrgProjectUsefulInterface 1908s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1908s # * 1908s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1908s # */ 1908s # 1908s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_arg_ao = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "arg_ao", 1908s # (gchar *) "ao", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_pointers[] = 1908s # { 1908s # &_org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_arg_ao.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ao = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SingleArgMethodAo", 1908s # NULL, 1908s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "handle-single-arg-method-ao", 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1908s # { 1908s # &_org_project_useful_interface_method_info_single_arg_method_ao.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "org.project.UsefulInterface", 1908s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1908s # NULL, 1908s # NULL, 1908s # NULL 1908s # }, 1908s # "org-project-useful-interface", 1908s # }; 1908s # 1908s # 1908s # /** 1908s # * org_project_useful_interface_interface_info: 1908s # * 1908s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1908s # * 1908s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1908s # */ 1908s # GDBusInterfaceInfo * 1908s # org_project_useful_interface_interface_info (void) 1908s # { 1908s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_override_properties: 1908s # * @klass: The class structure for a #GObject derived class. 1908s # * @property_id_begin: The property id to assign to the first overridden property. 1908s # * 1908s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1908s # * The properties are overridden in the order they are defined. 1908s # * 1908s # * Returns: The last property id. 1908s # */ 1908s # guint 1908s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1908s # { 1908s # return property_id_begin - 1; 1908s # } 1908s # 1908s # 1908s # inline static void 1908s # org_project_useful_interface_method_marshal_single_arg_method_ao ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterface: 1908s # * 1908s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceIface: 1908s # * @parent_iface: The parent interface. 1908s # * @handle_single_arg_method_ao: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ao signal. 1908s # * 1908s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1908s # */ 1908s # 1908s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1908s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1908s # 1908s # static void 1908s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1908s # { 1908s # /* GObject signals for incoming D-Bus method calls: */ 1908s # /** 1908s # * OrgProjectUsefulInterface::handle-single-arg-method-ao: 1908s # * @object: A #OrgProjectUsefulInterface. 1908s # * @invocation: A #GDBusMethodInvocation. 1908s # * 1908s # * Signal emitted when a remote caller is invoking the SingleArgMethodAo() D-Bus method. 1908s # * 1908s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_ao() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1908s # * 1908s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1908s # */ 1908s # g_signal_new ("handle-single-arg-method-ao", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ao), 1908s # g_signal_accumulator_true_handled, 1908s # NULL, 1908s # org_project_useful_interface_method_marshal_single_arg_method_ao, 1908s # G_TYPE_BOOLEAN, 1908s # 1, 1908s # G_TYPE_DBUS_METHOD_INVOCATION); 1908s # 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_ao: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_call_single_arg_method_ao_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_call_single_arg_method_ao_sync() for the synchronous, blocking version of this method. 1908s # */ 1908s # void 1908s # org_project_useful_interface_call_single_arg_method_ao ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1908s # "SingleArgMethodAo", 1908s # g_variant_new ("()"), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # callback, 1908s # user_data); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_ao_finish: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @out_arg_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ao(). 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ao(). 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_useful_interface_call_single_arg_method_ao_finish ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # gchar ***out_arg_ao, 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(^ao)", 1908s # out_arg_ao); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_ao_sync: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @out_arg_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Synchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_call_single_arg_method_ao() for the asynchronous version of this method. 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_useful_interface_call_single_arg_method_ao_sync ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # gchar ***out_arg_ao, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1908s # "SingleArgMethodAo", 1908s # g_variant_new ("()"), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(^ao)", 1908s # out_arg_ao); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_complete_single_arg_method_ao: 1908s # * @object: A #OrgProjectUsefulInterface. 1908s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1908s # * @arg_ao: Parameter to return. 1908s # * 1908s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodAo() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1908s # * 1908s # * This method will free @invocation, you cannot use it afterwards. 1908s # */ 1908s # void 1908s # org_project_useful_interface_complete_single_arg_method_ao ( 1908s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1908s # GDBusMethodInvocation *invocation, 1908s # const gchar *const *arg_ao) 1908s # { 1908s # g_dbus_method_invocation_return_value (invocation, 1908s # g_variant_new ("(^ao)", 1908s # arg_ao)); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceProxy: 1908s # * 1908s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceProxyClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1908s # */ 1908s # 1908s # struct _OrgProjectUsefulInterfaceProxyPrivate 1908s # { 1908s # GData *qdata; 1908s # }; 1908s # 1908s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_useful_interface_proxy_finalize (GObject *object) 1908s # { 1908s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1908s # g_datalist_clear (&proxy->priv->qdata); 1908s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # const GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1908s # const gchar *sender_name G_GNUC_UNUSED, 1908s # const gchar *signal_name, 1908s # GVariant *parameters) 1908s # { 1908s # _ExtendedGDBusSignalInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # gsize n; 1908s # guint signal_id; 1908s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1908s # if (info == NULL) 1908s # return; 1908s # num_params = g_variant_n_children (parameters); 1908s # paramv = g_new0 (GValue, num_params + 1); 1908s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_set_object (¶mv[0], proxy); 1908s # g_variant_iter_init (&iter, parameters); 1908s # n = 1; 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_signal_emitv (paramv, signal_id, 0, NULL); 1908s # for (n = 0; n < num_params + 1; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1908s # GVariant *changed_properties, 1908s # const gchar *const *invalidated_properties) 1908s # { 1908s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1908s # guint n; 1908s # const gchar *key; 1908s # GVariantIter *iter; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # g_variant_get (changed_properties, "a{sv}", &iter); 1908s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1908s # g_datalist_remove_data (&proxy->priv->qdata, key); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # g_variant_iter_free (iter); 1908s # for (n = 0; invalidated_properties[n] != NULL; n++) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1908s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1908s # #else 1908s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1908s # #endif 1908s # 1908s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusProxyClass *proxy_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1908s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1908s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1908s # 1908s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1908s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1908s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_useful_interface_proxy_new ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_sync: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_sync ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_useful_interface_proxy_new_for_bus ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_for_bus_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus_sync: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_for_bus_sync ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeleton: 1908s # * 1908s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeletonClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1908s # */ 1908s # 1908s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1908s # { 1908s # GValue *properties; 1908s # GList *changed_properties; 1908s # GSource *changed_properties_idle_source; 1908s # GMainContext *context; 1908s # GMutex lock; 1908s # }; 1908s # 1908s # static void 1908s # _org_project_useful_interface_skeleton_handle_method_call ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name, 1908s # const gchar *method_name, 1908s # GVariant *parameters, 1908s # GDBusMethodInvocation *invocation, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # _ExtendedGDBusMethodInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # guint num_extra; 1908s # gsize n; 1908s # guint signal_id; 1908s # GValue return_value = G_VALUE_INIT; 1908s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1908s # g_assert (info != NULL); 1908s # num_params = g_variant_n_children (parameters); 1908s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1908s # n = 0; 1908s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_set_object (¶mv[n++], skeleton); 1908s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1908s # g_value_set_object (¶mv[n++], invocation); 1908s # if (info->pass_fdlist) 1908s # { 1908s # #ifdef G_OS_UNIX 1908s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1908s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1908s # #else 1908s # g_assert_not_reached (); 1908s # #endif 1908s # } 1908s # g_variant_iter_init (&iter, parameters); 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1908s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1908s # if (!g_value_get_boolean (&return_value)) 1908s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1908s # g_value_unset (&return_value); 1908s # for (n = 0; n < num_params + num_extra; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static GVariant * 1908s # _org_project_useful_interface_skeleton_handle_get_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # GVariant *ret; 1908s # ret = NULL; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # g_value_init (&value, pspec->value_type); 1908s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1908s # g_value_unset (&value); 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _org_project_useful_interface_skeleton_handle_set_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GVariant *variant, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # gboolean ret; 1908s # ret = FALSE; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # if (info->use_gvariant) 1908s # g_value_set_variant (&value, variant); 1908s # else 1908s # g_dbus_gvariant_to_gvalue (variant, &value); 1908s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # g_value_unset (&value); 1908s # ret = TRUE; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1908s # { 1908s # _org_project_useful_interface_skeleton_handle_method_call, 1908s # _org_project_useful_interface_skeleton_handle_get_property, 1908s # _org_project_useful_interface_skeleton_handle_set_property, 1908s # {NULL} 1908s # }; 1908s # 1908s # static GDBusInterfaceInfo * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return org_project_useful_interface_interface_info (); 1908s # } 1908s # 1908s # static GDBusInterfaceVTable * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1908s # } 1908s # 1908s # static GVariant * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1908s # 1908s # GVariantBuilder builder; 1908s # guint n; 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1908s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #else 1908s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #endif 1908s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1908s # goto out; 1908s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1908s # { 1908s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1908s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1908s # { 1908s # GVariant *value; 1908s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1908s # if (value != NULL) 1908s # { 1908s # g_variant_take_ref (value); 1908s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1908s # g_variant_unref (value); 1908s # } 1908s # } 1908s # } 1908s # out: 1908s # return g_variant_builder_end (&builder); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_useful_interface_skeleton_finalize (GObject *object) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1908s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1908s # if (skeleton->priv->changed_properties_idle_source != NULL) 1908s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1908s # g_main_context_unref (skeleton->priv->context); 1908s # g_mutex_clear (&skeleton->priv->lock); 1908s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1908s # #else 1908s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1908s # #endif 1908s # 1908s # g_mutex_init (&skeleton->priv->lock); 1908s # skeleton->priv->context = g_main_context_ref_thread_default (); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusInterfaceSkeletonClass *skeleton_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1908s # 1908s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1908s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1908s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1908s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1908s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_skeleton_new: 1908s # * 1908s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_skeleton_new (void) 1908s # { 1908s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1908s # } 1908s # Error: 1908s # 1908s # /tmp/tmpei14pw7z/tmpx33qe4mk.xml: 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpei14pw7z/tmpx33qe4mk.xml', '--output', '-', '--body'] 1908s # Return code: 0 1908s # Output: 1908s # /* 1908s # * This file is generated by gdbus-codegen, do not modify it. 1908s # * 1908s # * The license of this code is the same as for the D-Bus interface description 1908s # * it was derived from. Note that it links to GLib, so must comply with the 1908s # * LGPL linking clauses. 1908s # */ 1908s # 1908s # #ifdef HAVE_CONFIG_H 1908s # # include "config.h" 1908s # #endif 1908s # 1908s # #include 1908s # #ifdef G_OS_UNIX 1908s # # include 1908s # #endif 1908s # 1908s # #ifdef G_ENABLE_DEBUG 1908s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1908s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1908s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1908s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1908s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1908s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1908s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1908s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1908s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1908s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1908s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1908s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1908s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1908s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1908s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1908s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1908s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1908s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1908s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1908s # #else /* !G_ENABLE_DEBUG */ 1908s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1908s # * Do not access GValues directly in your code. Instead, use the 1908s # * g_value_get_*() functions 1908s # */ 1908s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1908s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1908s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1908s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1908s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1908s # #endif /* !G_ENABLE_DEBUG */ 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusArgInfo parent_struct; 1908s # gboolean use_gvariant; 1908s # } _ExtendedGDBusArgInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusMethodInfo parent_struct; 1908s # const gchar *signal_name; 1908s # gboolean pass_fdlist; 1908s # } _ExtendedGDBusMethodInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusSignalInfo parent_struct; 1908s # const gchar *signal_name; 1908s # } _ExtendedGDBusSignalInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusPropertyInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # guint use_gvariant : 1; 1908s # guint emits_changed_signal : 1; 1908s # } _ExtendedGDBusPropertyInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusInterfaceInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # } _ExtendedGDBusInterfaceInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # const _ExtendedGDBusPropertyInfo *info; 1908s # guint prop_id; 1908s # GValue orig_value; /* the value before the change */ 1908s # } ChangedProperty; 1908s # 1908s # static void 1908s # _changed_property_free (ChangedProperty *data) 1908s # { 1908s # g_value_unset (&data->orig_value); 1908s # g_free (data); 1908s # } 1908s # 1908s # static gboolean 1908s # _g_strv_equal0 (gchar **a, gchar **b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # guint n; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # if (g_strv_length (a) != g_strv_length (b)) 1908s # goto out; 1908s # for (n = 0; a[n] != NULL; n++) 1908s # if (g_strcmp0 (a[n], b[n]) != 0) 1908s # goto out; 1908s # ret = TRUE; 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _g_variant_equal0 (GVariant *a, GVariant *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # ret = g_variant_equal (a, b); 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # G_GNUC_UNUSED static gboolean 1908s # _g_value_equal (const GValue *a, const GValue *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1908s # switch (G_VALUE_TYPE (a)) 1908s # { 1908s # case G_TYPE_BOOLEAN: 1908s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1908s # break; 1908s # case G_TYPE_UCHAR: 1908s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1908s # break; 1908s # case G_TYPE_INT: 1908s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1908s # break; 1908s # case G_TYPE_UINT: 1908s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1908s # break; 1908s # case G_TYPE_INT64: 1908s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1908s # break; 1908s # case G_TYPE_UINT64: 1908s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1908s # break; 1908s # case G_TYPE_DOUBLE: 1908s # { 1908s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1908s # gdouble da = g_value_get_double (a); 1908s # gdouble db = g_value_get_double (b); 1908s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1908s # } 1908s # break; 1908s # case G_TYPE_STRING: 1908s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1908s # break; 1908s # case G_TYPE_VARIANT: 1908s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1908s # break; 1908s # default: 1908s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1908s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1908s # else 1908s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1908s # break; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static void 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint G_GNUC_UNUSED, 1908s # void *marshal_data) 1908s # { 1908s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1908s # (void *data1, 1908s # GDBusMethodInvocation *arg_method_invocation, 1908s # void *data2); 1908s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1908s # GCClosure *cc = (GCClosure*) closure; 1908s # void *data1, *data2; 1908s # gboolean v_return; 1908s # 1908s # g_return_if_fail (return_value != NULL); 1908s # g_return_if_fail (n_param_values == 2); 1908s # 1908s # if (G_CCLOSURE_SWAP_DATA (closure)) 1908s # { 1908s # data1 = closure->data; 1908s # data2 = g_value_peek_pointer (param_values + 0); 1908s # } 1908s # else 1908s # { 1908s # data1 = g_value_peek_pointer (param_values + 0); 1908s # data2 = closure->data; 1908s # } 1908s # 1908s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1908s # (marshal_data ? marshal_data : cc->callback); 1908s # 1908s # v_return = 1908s # callback (data1, 1908s # g_marshal_value_peek_object (param_values + 1), 1908s # data2); 1908s # 1908s # g_value_set_boolean (return_value, v_return); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ 1908s # * Code for interface org.project.UsefulInterface 1908s # * ------------------------------------------------------------------------ 1908s # */ 1908s # 1908s # /** 1908s # * SECTION:OrgProjectUsefulInterface 1908s # * @title: OrgProjectUsefulInterface 1908s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1908s # * 1908s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1908s # */ 1908s # 1908s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_arg_aay = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "arg_aay", 1908s # (gchar *) "aay", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_pointers[] = 1908s # { 1908s # &_org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_arg_aay.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_aay = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SingleArgMethodAay", 1908s # NULL, 1908s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "handle-single-arg-method-aay", 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1908s # { 1908s # &_org_project_useful_interface_method_info_single_arg_method_aay.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "org.project.UsefulInterface", 1908s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1908s # NULL, 1908s # NULL, 1908s # NULL 1908s # }, 1908s # "org-project-useful-interface", 1908s # }; 1908s # 1908s # 1908s # /** 1908s # * org_project_useful_interface_interface_info: 1908s # * 1908s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1908s # * 1908s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1908s # */ 1908s # GDBusInterfaceInfo * 1908s # org_project_useful_interface_interface_info (void) 1908s # { 1908s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_override_properties: 1908s # * @klass: The class structure for a #GObject derived class. 1908s # * @property_id_begin: The property id to assign to the first overridden property. 1908s # * 1908s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1908s # * The properties are overridden in the order they are defined. 1908s # * 1908s # * Returns: The last property id. 1908s # */ 1908s # guint 1908s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1908s # { 1908s # return property_id_begin - 1; 1908s # } 1908s # 1908s # 1908s # inline static void 1908s # org_project_useful_interface_method_marshal_single_arg_method_aay ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterface: 1908s # * 1908s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceIface: 1908s # * @parent_iface: The parent interface. 1908s # * @handle_single_arg_method_aay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-aay signal. 1908s # * 1908s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1908s # */ 1908s # 1908s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1908s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1908s # 1908s # static void 1908s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1908s # { 1908s # /* GObject signals for incoming D-Bus method calls: */ 1908s # /** 1908s # * OrgProjectUsefulInterface::handle-single-arg-method-aay: 1908s # * @object: A #OrgProjectUsefulInterface. 1908s # * @invocation: A #GDBusMethodInvocation. 1908s # * 1908s # * Signal emitted when a remote caller is invoking the SingleArgMethodAay() D-Bus method. 1908s # * 1908s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_aay() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1908s # * 1908s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1908s # */ 1908s # g_signal_new ("handle-single-arg-method-aay", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_aay), 1908s # g_signal_accumulator_true_handled, 1908s # NULL, 1908s # org_project_useful_interface_method_marshal_single_arg_method_aay, 1908s # G_TYPE_BOOLEAN, 1908s # 1, 1908s # G_TYPE_DBUS_METHOD_INVOCATION); 1908s # 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_aay: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_call_single_arg_method_aay_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_call_single_arg_method_aay_sync() for the synchronous, blocking version of this method. 1908s # */ 1908s # void 1908s # org_project_useful_interface_call_single_arg_method_aay ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1908s # "SingleArgMethodAay", 1908s # g_variant_new ("()"), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # callback, 1908s # user_data); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_aay_finish: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @out_arg_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_aay(). 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_aay(). 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_useful_interface_call_single_arg_method_aay_finish ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # gchar ***out_arg_aay, 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(^aay)", 1908s # out_arg_aay); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_aay_sync: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @out_arg_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Synchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_call_single_arg_method_aay() for the asynchronous version of this method. 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_useful_interface_call_single_arg_method_aay_sync ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # gchar ***out_arg_aay, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1908s # "SingleArgMethodAay", 1908s # g_variant_new ("()"), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(^aay)", 1908s # out_arg_aay); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_complete_single_arg_method_aay: 1908s # * @object: A #OrgProjectUsefulInterface. 1908s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1908s # * @arg_aay: Parameter to return. 1908s # * 1908s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodAay() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1908s # * 1908s # * This method will free @invocation, you cannot use it afterwards. 1908s # */ 1908s # void 1908s # org_project_useful_interface_complete_single_arg_method_aay ( 1908s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1908s # GDBusMethodInvocation *invocation, 1908s # const gchar *const *arg_aay) 1908s # { 1908s # g_dbus_method_invocation_return_value (invocation, 1908s # g_variant_new ("(^aay)", 1908s # arg_aay)); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceProxy: 1908s # * 1908s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceProxyClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1908s # */ 1908s # 1908s # struct _OrgProjectUsefulInterfaceProxyPrivate 1908s # { 1908s # GData *qdata; 1908s # }; 1908s # 1908s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_useful_interface_proxy_finalize (GObject *object) 1908s # { 1908s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1908s # g_datalist_clear (&proxy->priv->qdata); 1908s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # const GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1908s # const gchar *sender_name G_GNUC_UNUSED, 1908s # const gchar *signal_name, 1908s # GVariant *parameters) 1908s # { 1908s # _ExtendedGDBusSignalInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # gsize n; 1908s # guint signal_id; 1908s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1908s # if (info == NULL) 1908s # return; 1908s # num_params = g_variant_n_children (parameters); 1908s # paramv = g_new0 (GValue, num_params + 1); 1908s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_set_object (¶mv[0], proxy); 1908s # g_variant_iter_init (&iter, parameters); 1908s # n = 1; 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_signal_emitv (paramv, signal_id, 0, NULL); 1908s # for (n = 0; n < num_params + 1; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1908s # GVariant *changed_properties, 1908s # const gchar *const *invalidated_properties) 1908s # { 1908s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1908s # guint n; 1908s # const gchar *key; 1908s # GVariantIter *iter; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # g_variant_get (changed_properties, "a{sv}", &iter); 1908s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1908s # g_datalist_remove_data (&proxy->priv->qdata, key); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # g_variant_iter_free (iter); 1908s # for (n = 0; invalidated_properties[n] != NULL; n++) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1908s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1908s # #else 1908s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1908s # #endif 1908s # 1908s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusProxyClass *proxy_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1908s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1908s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1908s # 1908s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1908s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1908s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_useful_interface_proxy_new ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_sync: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_sync ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_useful_interface_proxy_new_for_bus ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_for_bus_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus_sync: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_for_bus_sync ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeleton: 1908s # * 1908s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeletonClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1908s # */ 1908s # 1908s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1908s # { 1908s # GValue *properties; 1908s # GList *changed_properties; 1908s # GSource *changed_properties_idle_source; 1908s # GMainContext *context; 1908s # GMutex lock; 1908s # }; 1908s # 1908s # static void 1908s # _org_project_useful_interface_skeleton_handle_method_call ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name, 1908s # const gchar *method_name, 1908s # GVariant *parameters, 1908s # GDBusMethodInvocation *invocation, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # _ExtendedGDBusMethodInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # guint num_extra; 1908s # gsize n; 1908s # guint signal_id; 1908s # GValue return_value = G_VALUE_INIT; 1908s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1908s # g_assert (info != NULL); 1908s # num_params = g_variant_n_children (parameters); 1908s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1908s # n = 0; 1908s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_set_object (¶mv[n++], skeleton); 1908s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1908s # g_value_set_object (¶mv[n++], invocation); 1908s # if (info->pass_fdlist) 1908s # { 1908s # #ifdef G_OS_UNIX 1908s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1908s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1908s # #else 1908s # g_assert_not_reached (); 1908s # #endif 1908s # } 1908s # g_variant_iter_init (&iter, parameters); 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1908s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1908s # if (!g_value_get_boolean (&return_value)) 1908s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1908s # g_value_unset (&return_value); 1908s # for (n = 0; n < num_params + num_extra; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static GVariant * 1908s # _org_project_useful_interface_skeleton_handle_get_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # GVariant *ret; 1908s # ret = NULL; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # g_value_init (&value, pspec->value_type); 1908s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1908s # g_value_unset (&value); 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _org_project_useful_interface_skeleton_handle_set_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GVariant *variant, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # gboolean ret; 1908s # ret = FALSE; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # if (info->use_gvariant) 1908s # g_value_set_variant (&value, variant); 1908s # else 1908s # g_dbus_gvariant_to_gvalue (variant, &value); 1908s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # g_value_unset (&value); 1908s # ret = TRUE; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1908s # { 1908s # _org_project_useful_interface_skeleton_handle_method_call, 1908s # _org_project_useful_interface_skeleton_handle_get_property, 1908s # _org_project_useful_interface_skeleton_handle_set_property, 1908s # {NULL} 1908s # }; 1908s # 1908s # static GDBusInterfaceInfo * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return org_project_useful_interface_interface_info (); 1908s # } 1908s # 1908s # static GDBusInterfaceVTable * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1908s # } 1908s # 1908s # static GVariant * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1908s # 1908s # GVariantBuilder builder; 1908s # guint n; 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1908s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #else 1908s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #endif 1908s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1908s # goto out; 1908s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1908s # { 1908s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1908s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1908s # { 1908s # GVariant *value; 1908s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1908s # if (value != NULL) 1908s # { 1908s # g_variant_take_ref (value); 1908s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1908s # g_variant_unref (value); 1908s # } 1908s # } 1908s # } 1908s # out: 1908s # return g_variant_builder_end (&builder); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_useful_interface_skeleton_finalize (GObject *object) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1908s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1908s # if (skeleton->priv->changed_properties_idle_source != NULL) 1908s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1908s # g_main_context_unref (skeleton->priv->context); 1908s # g_mutex_clear (&skeleton->priv->lock); 1908s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1908s # #else 1908s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1908s # #endif 1908s # 1908s # g_mutex_init (&skeleton->priv->lock); 1908s # skeleton->priv->context = g_main_context_ref_thread_default (); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusInterfaceSkeletonClass *skeleton_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1908s # 1908s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1908s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1908s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1908s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1908s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_skeleton_new: 1908s # * 1908s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_skeleton_new (void) 1908s # { 1908s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1908s # } 1908s # Error: 1908s # 1908s # /tmp/tmpei14pw7z/tmpasf7ijbj.xml: 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpei14pw7z/tmpasf7ijbj.xml', '--output', '-', '--body'] 1908s # Return code: 0 1908s # Output: 1908s # /* 1908s # * This file is generated by gdbus-codegen, do not modify it. 1908s # * 1908s # * The license of this code is the same as for the D-Bus interface description 1908s # * it was derived from. Note that it links to GLib, so must comply with the 1908s # * LGPL linking clauses. 1908s # */ 1908s # 1908s # #ifdef HAVE_CONFIG_H 1908s # # include "config.h" 1908s # #endif 1908s # 1908s # #include 1908s # #ifdef G_OS_UNIX 1908s # # include 1908s # #endif 1908s # 1908s # #ifdef G_ENABLE_DEBUG 1908s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1908s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1908s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1908s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1908s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1908s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1908s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1908s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1908s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1908s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1908s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1908s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1908s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1908s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1908s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1908s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1908s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1908s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1908s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1908s # #else /* !G_ENABLE_DEBUG */ 1908s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1908s # * Do not access GValues directly in your code. Instead, use the 1908s # * g_value_get_*() functions 1908s # */ 1908s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1908s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1908s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1908s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1908s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1908s # #endif /* !G_ENABLE_DEBUG */ 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusArgInfo parent_struct; 1908s # gboolean use_gvariant; 1908s # } _ExtendedGDBusArgInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusMethodInfo parent_struct; 1908s # const gchar *signal_name; 1908s # gboolean pass_fdlist; 1908s # } _ExtendedGDBusMethodInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusSignalInfo parent_struct; 1908s # const gchar *signal_name; 1908s # } _ExtendedGDBusSignalInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusPropertyInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # guint use_gvariant : 1; 1908s # guint emits_changed_signal : 1; 1908s # } _ExtendedGDBusPropertyInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusInterfaceInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # } _ExtendedGDBusInterfaceInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # const _ExtendedGDBusPropertyInfo *info; 1908s # guint prop_id; 1908s # GValue orig_value; /* the value before the change */ 1908s # } ChangedProperty; 1908s # 1908s # static void 1908s # _changed_property_free (ChangedProperty *data) 1908s # { 1908s # g_value_unset (&data->orig_value); 1908s # g_free (data); 1908s # } 1908s # 1908s # static gboolean 1908s # _g_strv_equal0 (gchar **a, gchar **b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # guint n; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # if (g_strv_length (a) != g_strv_length (b)) 1908s # goto out; 1908s # for (n = 0; a[n] != NULL; n++) 1908s # if (g_strcmp0 (a[n], b[n]) != 0) 1908s # goto out; 1908s # ret = TRUE; 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _g_variant_equal0 (GVariant *a, GVariant *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # ret = g_variant_equal (a, b); 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # G_GNUC_UNUSED static gboolean 1908s # _g_value_equal (const GValue *a, const GValue *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1908s # switch (G_VALUE_TYPE (a)) 1908s # { 1908s # case G_TYPE_BOOLEAN: 1908s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1908s # break; 1908s # case G_TYPE_UCHAR: 1908s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1908s # break; 1908s # case G_TYPE_INT: 1908s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1908s # break; 1908s # case G_TYPE_UINT: 1908s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1908s # break; 1908s # case G_TYPE_INT64: 1908s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1908s # break; 1908s # case G_TYPE_UINT64: 1908s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1908s # break; 1908s # case G_TYPE_DOUBLE: 1908s # { 1908s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1908s # gdouble da = g_value_get_double (a); 1908s # gdouble db = g_value_get_double (b); 1908s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1908s # } 1908s # break; 1908s # case G_TYPE_STRING: 1908s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1908s # break; 1908s # case G_TYPE_VARIANT: 1908s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1908s # break; 1908s # default: 1908s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1908s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1908s # else 1908s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1908s # break; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static void 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint G_GNUC_UNUSED, 1908s # void *marshal_data) 1908s # { 1908s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1908s # (void *data1, 1908s # GDBusMethodInvocation *arg_method_invocation, 1908s # void *data2); 1908s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1908s # GCClosure *cc = (GCClosure*) closure; 1908s # void *data1, *data2; 1908s # gboolean v_return; 1908s # 1908s # g_return_if_fail (return_value != NULL); 1908s # g_return_if_fail (n_param_values == 2); 1908s # 1908s # if (G_CCLOSURE_SWAP_DATA (closure)) 1908s # { 1908s # data1 = closure->data; 1908s # data2 = g_value_peek_pointer (param_values + 0); 1908s # } 1908s # else 1908s # { 1908s # data1 = g_value_peek_pointer (param_values + 0); 1908s # data2 = closure->data; 1908s # } 1908s # 1908s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1908s # (marshal_data ? marshal_data : cc->callback); 1908s # 1908s # v_return = 1908s # callback (data1, 1908s # g_marshal_value_peek_object (param_values + 1), 1908s # data2); 1908s # 1908s # g_value_set_boolean (return_value, v_return); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ 1908s # * Code for interface org.project.UsefulInterface 1908s # * ------------------------------------------------------------------------ 1908s # */ 1908s # 1908s # /** 1908s # * SECTION:OrgProjectUsefulInterface 1908s # * @title: OrgProjectUsefulInterface 1908s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1908s # * 1908s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1908s # */ 1908s # 1908s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_arg_asv = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "arg_asv", 1908s # (gchar *) "a{sv}", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_pointers[] = 1908s # { 1908s # &_org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_arg_asv.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_asv = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SingleArgMethodAsv", 1908s # NULL, 1908s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "handle-single-arg-method-asv", 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1908s # { 1908s # &_org_project_useful_interface_method_info_single_arg_method_asv.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "org.project.UsefulInterface", 1908s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1908s # NULL, 1908s # NULL, 1908s # NULL 1908s # }, 1908s # "org-project-useful-interface", 1908s # }; 1908s # 1908s # 1908s # /** 1908s # * org_project_useful_interface_interface_info: 1908s # * 1908s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1908s # * 1908s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1908s # */ 1908s # GDBusInterfaceInfo * 1908s # org_project_useful_interface_interface_info (void) 1908s # { 1908s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_override_properties: 1908s # * @klass: The class structure for a #GObject derived class. 1908s # * @property_id_begin: The property id to assign to the first overridden property. 1908s # * 1908s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1908s # * The properties are overridden in the order they are defined. 1908s # * 1908s # * Returns: The last property id. 1908s # */ 1908s # guint 1908s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1908s # { 1908s # return property_id_begin - 1; 1908s # } 1908s # 1908s # 1908s # inline static void 1908s # org_project_useful_interface_method_marshal_single_arg_method_asv ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterface: 1908s # * 1908s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceIface: 1908s # * @parent_iface: The parent interface. 1908s # * @handle_single_arg_method_asv: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-asv signal. 1908s # * 1908s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1908s # */ 1908s # 1908s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1908s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1908s # 1908s # static void 1908s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1908s # { 1908s # /* GObject signals for incoming D-Bus method calls: */ 1908s # /** 1908s # * OrgProjectUsefulInterface::handle-single-arg-method-asv: 1908s # * @object: A #OrgProjectUsefulInterface. 1908s # * @invocation: A #GDBusMethodInvocation. 1908s # * 1908s # * Signal emitted when a remote caller is invoking the SingleArgMethodAsv() D-Bus method. 1908s # * 1908s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_useful_interface_complete_single_arg_method_asv() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1908s # * 1908s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1908s # */ 1908s # g_signal_new ("handle-single-arg-method-asv", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_asv), 1908s # g_signal_accumulator_true_handled, 1908s # NULL, 1908s # org_project_useful_interface_method_marshal_single_arg_method_asv, 1908s # G_TYPE_BOOLEAN, 1908s # 1, 1908s # G_TYPE_DBUS_METHOD_INVOCATION); 1908s # 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_asv: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_call_single_arg_method_asv_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_call_single_arg_method_asv_sync() for the synchronous, blocking version of this method. 1908s # */ 1908s # void 1908s # org_project_useful_interface_call_single_arg_method_asv ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1908s # "SingleArgMethodAsv", 1908s # g_variant_new ("()"), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # callback, 1908s # user_data); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_asv_finish: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @out_arg_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_asv(). 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_asv(). 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_useful_interface_call_single_arg_method_asv_finish ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # GVariant **out_arg_asv, 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(@a{sv})", 1908s # out_arg_asv); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_call_single_arg_method_asv_sync: 1908s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1908s # * @out_arg_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Synchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_call_single_arg_method_asv() for the asynchronous version of this method. 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_useful_interface_call_single_arg_method_asv_sync ( 1908s # OrgProjectUsefulInterface *proxy, 1908s # GVariant **out_arg_asv, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1908s # "SingleArgMethodAsv", 1908s # g_variant_new ("()"), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(@a{sv})", 1908s # out_arg_asv); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_complete_single_arg_method_asv: 1908s # * @object: A #OrgProjectUsefulInterface. 1908s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1908s # * @arg_asv: Parameter to return. 1908s # * 1908s # * Helper function used in service implementations to finish handling invocations of the SingleArgMethodAsv() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1908s # * 1908s # * This method will free @invocation, you cannot use it afterwards. 1908s # */ 1908s # void 1908s # org_project_useful_interface_complete_single_arg_method_asv ( 1908s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1908s # GDBusMethodInvocation *invocation, 1908s # GVariant *arg_asv) 1908s # { 1908s # g_dbus_method_invocation_return_value (invocation, 1908s # g_variant_new ("(@a{sv})", 1908s # arg_asv)); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceProxy: 1908s # * 1908s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceProxyClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1908s # */ 1908s # 1908s # struct _OrgProjectUsefulInterfaceProxyPrivate 1908s # { 1908s # GData *qdata; 1908s # }; 1908s # 1908s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_useful_interface_proxy_finalize (GObject *object) 1908s # { 1908s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1908s # g_datalist_clear (&proxy->priv->qdata); 1908s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # const GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1908s # const gchar *sender_name G_GNUC_UNUSED, 1908s # const gchar *signal_name, 1908s # GVariant *parameters) 1908s # { 1908s # _ExtendedGDBusSignalInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # gsize n; 1908s # guint signal_id; 1908s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1908s # if (info == NULL) 1908s # return; 1908s # num_params = g_variant_n_children (parameters); 1908s # paramv = g_new0 (GValue, num_params + 1); 1908s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_set_object (¶mv[0], proxy); 1908s # g_variant_iter_init (&iter, parameters); 1908s # n = 1; 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_signal_emitv (paramv, signal_id, 0, NULL); 1908s # for (n = 0; n < num_params + 1; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1908s # GVariant *changed_properties, 1908s # const gchar *const *invalidated_properties) 1908s # { 1908s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1908s # guint n; 1908s # const gchar *key; 1908s # GVariantIter *iter; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # g_variant_get (changed_properties, "a{sv}", &iter); 1908s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1908s # g_datalist_remove_data (&proxy->priv->qdata, key); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # g_variant_iter_free (iter); 1908s # for (n = 0; invalidated_properties[n] != NULL; n++) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1908s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1908s # #else 1908s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1908s # #endif 1908s # 1908s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusProxyClass *proxy_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1908s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1908s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1908s # 1908s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1908s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1908s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_useful_interface_proxy_new ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_sync: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_sync ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_useful_interface_proxy_new_for_bus ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_for_bus_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus_sync: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_for_bus_sync ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeleton: 1908s # * 1908s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeletonClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1908s # */ 1908s # 1908s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1908s # { 1908s # GValue *properties; 1908s # GList *changed_properties; 1908s # GSource *changed_properties_idle_source; 1908s # GMainContext *context; 1908s # GMutex lock; 1908s # }; 1908s # 1908s # static void 1908s # _org_project_useful_interface_skeleton_handle_method_call ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name, 1908s # const gchar *method_name, 1908s # GVariant *parameters, 1908s # GDBusMethodInvocation *invocation, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # _ExtendedGDBusMethodInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # guint num_extra; 1908s # gsize n; 1908s # guint signal_id; 1908s # GValue return_value = G_VALUE_INIT; 1908s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1908s # g_assert (info != NULL); 1908s # num_params = g_variant_n_children (parameters); 1908s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1908s # n = 0; 1908s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_set_object (¶mv[n++], skeleton); 1908s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1908s # g_value_set_object (¶mv[n++], invocation); 1908s # if (info->pass_fdlist) 1908s # { 1908s # #ifdef G_OS_UNIX 1908s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1908s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1908s # #else 1908s # g_assert_not_reached (); 1908s # #endif 1908s # } 1908s # g_variant_iter_init (&iter, parameters); 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1908s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1908s # if (!g_value_get_boolean (&return_value)) 1908s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1908s # g_value_unset (&return_value); 1908s # for (n = 0; n < num_params + num_extra; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static GVariant * 1908s # _org_project_useful_interface_skeleton_handle_get_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # GVariant *ret; 1908s # ret = NULL; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # g_value_init (&value, pspec->value_type); 1908s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1908s # g_value_unset (&value); 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _org_project_useful_interface_skeleton_handle_set_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GVariant *variant, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # gboolean ret; 1908s # ret = FALSE; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # if (info->use_gvariant) 1908s # g_value_set_variant (&value, variant); 1908s # else 1908s # g_dbus_gvariant_to_gvalue (variant, &value); 1908s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # g_value_unset (&value); 1908s # ret = TRUE; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1908s # { 1908s # _org_project_useful_interface_skeleton_handle_method_call, 1908s # _org_project_useful_interface_skeleton_handle_get_property, 1908s # _org_project_useful_interface_skeleton_handle_set_property, 1908s # {NULL} 1908s # }; 1908s # 1908s # static GDBusInterfaceInfo * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return org_project_useful_interface_interface_info (); 1908s # } 1908s # 1908s # static GDBusInterfaceVTable * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1908s # } 1908s # 1908s # static GVariant * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1908s # 1908s # GVariantBuilder builder; 1908s # guint n; 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1908s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #else 1908s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #endif 1908s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1908s # goto out; 1908s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1908s # { 1908s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1908s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1908s # { 1908s # GVariant *value; 1908s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1908s # if (value != NULL) 1908s # { 1908s # g_variant_take_ref (value); 1908s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1908s # g_variant_unref (value); 1908s # } 1908s # } 1908s # } 1908s # out: 1908s # return g_variant_builder_end (&builder); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_useful_interface_skeleton_finalize (GObject *object) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1908s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1908s # if (skeleton->priv->changed_properties_idle_source != NULL) 1908s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1908s # g_main_context_unref (skeleton->priv->context); 1908s # g_mutex_clear (&skeleton->priv->lock); 1908s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1908s # #else 1908s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1908s # #endif 1908s # 1908s # g_mutex_init (&skeleton->priv->lock); 1908s # skeleton->priv->context = g_main_context_ref_thread_default (); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusInterfaceSkeletonClass *skeleton_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1908s # 1908s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1908s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1908s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1908s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1908s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_skeleton_new: 1908s # * 1908s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_skeleton_new (void) 1908s # { 1908s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1908s # } 1908s # Error: 1908s ok 12 __main__.TestCodegen.test_generate_methods_marshallers_multiple_in_args 1908s # gdbus-codegen: /usr/bin/gdbus-codegen 1908s # tmpdir: /tmp/tmpae_bw9p2 1908s # /tmp/tmpae_bw9p2/tmpag0dc8oe.xml: 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpae_bw9p2/tmpag0dc8oe.xml', '--output', '-', '--body'] 1908s # Return code: 0 1908s # Output: 1908s # /* 1908s # * This file is generated by gdbus-codegen, do not modify it. 1908s # * 1908s # * The license of this code is the same as for the D-Bus interface description 1908s # * it was derived from. Note that it links to GLib, so must comply with the 1908s # * LGPL linking clauses. 1908s # */ 1908s # 1908s # #ifdef HAVE_CONFIG_H 1908s # # include "config.h" 1908s # #endif 1908s # 1908s # #include 1908s # #ifdef G_OS_UNIX 1908s # # include 1908s # #endif 1908s # 1908s # #ifdef G_ENABLE_DEBUG 1908s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1908s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1908s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1908s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1908s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1908s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1908s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1908s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1908s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1908s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1908s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1908s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1908s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1908s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1908s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1908s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1908s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1908s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1908s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1908s # #else /* !G_ENABLE_DEBUG */ 1908s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1908s # * Do not access GValues directly in your code. Instead, use the 1908s # * g_value_get_*() functions 1908s # */ 1908s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1908s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1908s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1908s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1908s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1908s # #endif /* !G_ENABLE_DEBUG */ 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusArgInfo parent_struct; 1908s # gboolean use_gvariant; 1908s # } _ExtendedGDBusArgInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusMethodInfo parent_struct; 1908s # const gchar *signal_name; 1908s # gboolean pass_fdlist; 1908s # } _ExtendedGDBusMethodInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusSignalInfo parent_struct; 1908s # const gchar *signal_name; 1908s # } _ExtendedGDBusSignalInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusPropertyInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # guint use_gvariant : 1; 1908s # guint emits_changed_signal : 1; 1908s # } _ExtendedGDBusPropertyInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusInterfaceInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # } _ExtendedGDBusInterfaceInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # const _ExtendedGDBusPropertyInfo *info; 1908s # guint prop_id; 1908s # GValue orig_value; /* the value before the change */ 1908s # } ChangedProperty; 1908s # 1908s # static void 1908s # _changed_property_free (ChangedProperty *data) 1908s # { 1908s # g_value_unset (&data->orig_value); 1908s # g_free (data); 1908s # } 1908s # 1908s # static gboolean 1908s # _g_strv_equal0 (gchar **a, gchar **b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # guint n; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # if (g_strv_length (a) != g_strv_length (b)) 1908s # goto out; 1908s # for (n = 0; a[n] != NULL; n++) 1908s # if (g_strcmp0 (a[n], b[n]) != 0) 1908s # goto out; 1908s # ret = TRUE; 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _g_variant_equal0 (GVariant *a, GVariant *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # ret = g_variant_equal (a, b); 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # G_GNUC_UNUSED static gboolean 1908s # _g_value_equal (const GValue *a, const GValue *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1908s # switch (G_VALUE_TYPE (a)) 1908s # { 1908s # case G_TYPE_BOOLEAN: 1908s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1908s # break; 1908s # case G_TYPE_UCHAR: 1908s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1908s # break; 1908s # case G_TYPE_INT: 1908s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1908s # break; 1908s # case G_TYPE_UINT: 1908s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1908s # break; 1908s # case G_TYPE_INT64: 1908s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1908s # break; 1908s # case G_TYPE_UINT64: 1908s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1908s # break; 1908s # case G_TYPE_DOUBLE: 1908s # { 1908s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1908s # gdouble da = g_value_get_double (a); 1908s # gdouble db = g_value_get_double (b); 1908s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1908s # } 1908s # break; 1908s # case G_TYPE_STRING: 1908s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1908s # break; 1908s # case G_TYPE_VARIANT: 1908s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1908s # break; 1908s # default: 1908s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1908s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1908s # else 1908s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1908s # break; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static void 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint G_GNUC_UNUSED, 1908s # void *marshal_data) 1908s # { 1908s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1908s # (void *data1, 1908s # GDBusMethodInvocation *arg_method_invocation, 1908s # gboolean arg_an_b, 1908s # guchar arg_an_y, 1908s # gint16 arg_an_n, 1908s # guint16 arg_an_q, 1908s # gint arg_an_i, 1908s # guint arg_an_u, 1908s # gint64 arg_an_x, 1908s # guint64 arg_an_t, 1908s # gdouble arg_an_d, 1908s # const gchar *arg_an_s, 1908s # const gchar *arg_an_o, 1908s # const gchar *arg_an_g, 1908s # GVariant *arg_an_h, 1908s # const gchar *arg_an_ay, 1908s # const gchar *const *arg_an_as, 1908s # const gchar *const *arg_an_ao, 1908s # const gchar *const *arg_an_aay, 1908s # GVariant *arg_an_asv, 1908s # void *data2); 1908s # _GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 1908s # GCClosure *cc = (GCClosure*) closure; 1908s # void *data1, *data2; 1908s # gboolean v_return; 1908s # 1908s # g_return_if_fail (return_value != NULL); 1908s # g_return_if_fail (n_param_values == 20); 1908s # 1908s # if (G_CCLOSURE_SWAP_DATA (closure)) 1908s # { 1908s # data1 = closure->data; 1908s # data2 = g_value_peek_pointer (param_values + 0); 1908s # } 1908s # else 1908s # { 1908s # data1 = g_value_peek_pointer (param_values + 0); 1908s # data2 = closure->data; 1908s # } 1908s # 1908s # callback = (_GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1908s # (marshal_data ? marshal_data : cc->callback); 1908s # 1908s # v_return = 1908s # callback (data1, 1908s # g_marshal_value_peek_object (param_values + 1), 1908s # g_marshal_value_peek_boolean (param_values + 2), 1908s # g_marshal_value_peek_uchar (param_values + 3), 1908s # g_marshal_value_peek_int (param_values + 4), 1908s # g_marshal_value_peek_uint (param_values + 5), 1908s # g_marshal_value_peek_int (param_values + 6), 1908s # g_marshal_value_peek_uint (param_values + 7), 1908s # g_marshal_value_peek_int64 (param_values + 8), 1908s # g_marshal_value_peek_uint64 (param_values + 9), 1908s # g_marshal_value_peek_double (param_values + 10), 1908s # g_marshal_value_peek_string (param_values + 11), 1908s # g_marshal_value_peek_string (param_values + 12), 1908s # g_marshal_value_peek_string (param_values + 13), 1908s # g_marshal_value_peek_variant (param_values + 14), 1908s # g_marshal_value_peek_string (param_values + 15), 1908s # g_marshal_value_peek_boxed (param_values + 16), 1908s # g_marshal_value_peek_boxed (param_values + 17), 1908s # g_marshal_value_peek_boxed (param_values + 18), 1908s # g_marshal_value_peek_variant (param_values + 19), 1908s # data2); 1908s # 1908s # g_value_set_boolean (return_value, v_return); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ 1908s # * Code for interface org.project.CallableIface 1908s # * ------------------------------------------------------------------------ 1908s # */ 1908s # 1908s # /** 1908s # * SECTION:OrgProjectCallableIface 1908s # * @title: OrgProjectCallableIface 1908s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 1908s # * 1908s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 1908s # */ 1908s # 1908s # /* ---- Introspection data for org.project.CallableIface ---- */ 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_b = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_b", 1908s # (gchar *) "b", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_y = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_y", 1908s # (gchar *) "y", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_n = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_n", 1908s # (gchar *) "n", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_q = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_q", 1908s # (gchar *) "q", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_i = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_i", 1908s # (gchar *) "i", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_u = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_u", 1908s # (gchar *) "u", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_x = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_x", 1908s # (gchar *) "x", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_t = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_t", 1908s # (gchar *) "t", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_d = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_d", 1908s # (gchar *) "d", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_s = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_s", 1908s # (gchar *) "s", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_o = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_o", 1908s # (gchar *) "o", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_g = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_g", 1908s # (gchar *) "g", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_h = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_h", 1908s # (gchar *) "h", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_ay", 1908s # (gchar *) "ay", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_as = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_as", 1908s # (gchar *) "as", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_ao", 1908s # (gchar *) "ao", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_aay", 1908s # (gchar *) "aay", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_asv", 1908s # (gchar *) "a{sv}", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_pointers[] = 1908s # { 1908s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_b.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_y.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_n.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_q.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_i.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_u.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_x.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_t.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_d.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_s.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_o.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_g.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_h.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_as.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_method_with_many_args = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "MethodWithManyArgs", 1908s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_pointers, 1908s # NULL, 1908s # NULL 1908s # }, 1908s # "handle-method-with-many-args", 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_b = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_b", 1908s # (gchar *) "b", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_y = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_y", 1908s # (gchar *) "y", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_n = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_n", 1908s # (gchar *) "n", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_q = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_q", 1908s # (gchar *) "q", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_i = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_i", 1908s # (gchar *) "i", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_u = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_u", 1908s # (gchar *) "u", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_x = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_x", 1908s # (gchar *) "x", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_t = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_t", 1908s # (gchar *) "t", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_d = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_d", 1908s # (gchar *) "d", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_s = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_s", 1908s # (gchar *) "s", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_o = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_o", 1908s # (gchar *) "o", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_g = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_g", 1908s # (gchar *) "g", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_h = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_h", 1908s # (gchar *) "h", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ay = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_ay", 1908s # (gchar *) "ay", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_as = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_as", 1908s # (gchar *) "as", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ao = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_ao", 1908s # (gchar *) "ao", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_aay = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_aay", 1908s # (gchar *) "aay", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_asv = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_asv", 1908s # (gchar *) "a{sv}", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_pointers[] = 1908s # { 1908s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_b.parent_struct, 1908s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_y.parent_struct, 1908s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_n.parent_struct, 1908s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_q.parent_struct, 1908s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_i.parent_struct, 1908s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_u.parent_struct, 1908s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_x.parent_struct, 1908s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_t.parent_struct, 1908s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_d.parent_struct, 1908s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_s.parent_struct, 1908s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_o.parent_struct, 1908s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_g.parent_struct, 1908s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_h.parent_struct, 1908s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ay.parent_struct, 1908s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_as.parent_struct, 1908s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ao.parent_struct, 1908s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_aay.parent_struct, 1908s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_asv.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_same_method_with_many_args = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SameMethodWithManyArgs", 1908s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_pointers, 1908s # NULL, 1908s # NULL 1908s # }, 1908s # "handle-same-method-with-many-args", 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 1908s # { 1908s # &_org_project_callable_iface_method_info_method_with_many_args.parent_struct, 1908s # &_org_project_callable_iface_method_info_same_method_with_many_args.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "org.project.CallableIface", 1908s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 1908s # NULL, 1908s # NULL, 1908s # NULL 1908s # }, 1908s # "org-project-callable-iface", 1908s # }; 1908s # 1908s # 1908s # /** 1908s # * org_project_callable_iface_interface_info: 1908s # * 1908s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 1908s # * 1908s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1908s # */ 1908s # GDBusInterfaceInfo * 1908s # org_project_callable_iface_interface_info (void) 1908s # { 1908s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 1908s # } 1908s # 1908s # /** 1908s # * org_project_callable_iface_override_properties: 1908s # * @klass: The class structure for a #GObject derived class. 1908s # * @property_id_begin: The property id to assign to the first overridden property. 1908s # * 1908s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 1908s # * The properties are overridden in the order they are defined. 1908s # * 1908s # * Returns: The last property id. 1908s # */ 1908s # guint 1908s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1908s # { 1908s # return property_id_begin - 1; 1908s # } 1908s # 1908s # 1908s # inline static void 1908s # org_project_callable_iface_method_marshal_method_with_many_args ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # inline static void 1908s # org_project_callable_iface_method_marshal_same_method_with_many_args ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # 1908s # /** 1908s # * OrgProjectCallableIface: 1908s # * 1908s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectCallableIfaceIface: 1908s # * @parent_iface: The parent interface. 1908s # * @handle_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-method-with-many-args signal. 1908s # * @handle_same_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-same-method-with-many-args signal. 1908s # * 1908s # * Virtual table for the D-Bus interface org.project.CallableIface. 1908s # */ 1908s # 1908s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 1908s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 1908s # 1908s # static void 1908s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 1908s # { 1908s # /* GObject signals for incoming D-Bus method calls: */ 1908s # /** 1908s # * OrgProjectCallableIface::handle-method-with-many-args: 1908s # * @object: A #OrgProjectCallableIface. 1908s # * @invocation: A #GDBusMethodInvocation. 1908s # * @arg_an_b: Argument passed by remote caller. 1908s # * @arg_an_y: Argument passed by remote caller. 1908s # * @arg_an_n: Argument passed by remote caller. 1908s # * @arg_an_q: Argument passed by remote caller. 1908s # * @arg_an_i: Argument passed by remote caller. 1908s # * @arg_an_u: Argument passed by remote caller. 1908s # * @arg_an_x: Argument passed by remote caller. 1908s # * @arg_an_t: Argument passed by remote caller. 1908s # * @arg_an_d: Argument passed by remote caller. 1908s # * @arg_an_s: Argument passed by remote caller. 1908s # * @arg_an_o: Argument passed by remote caller. 1908s # * @arg_an_g: Argument passed by remote caller. 1908s # * @arg_an_h: Argument passed by remote caller. 1908s # * @arg_an_ay: Argument passed by remote caller. 1908s # * @arg_an_as: Argument passed by remote caller. 1908s # * @arg_an_ao: Argument passed by remote caller. 1908s # * @arg_an_aay: Argument passed by remote caller. 1908s # * @arg_an_asv: Argument passed by remote caller. 1908s # * 1908s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 1908s # * 1908s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_callable_iface_complete_method_with_many_args() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1908s # * 1908s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1908s # */ 1908s # g_signal_new ("handle-method-with-many-args", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_method_with_many_args), 1908s # g_signal_accumulator_true_handled, 1908s # NULL, 1908s # org_project_callable_iface_method_marshal_method_with_many_args, 1908s # G_TYPE_BOOLEAN, 1908s # 19, 1908s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_BOOLEAN, G_TYPE_UCHAR, G_TYPE_INT, G_TYPE_UINT, G_TYPE_INT, G_TYPE_UINT, G_TYPE_INT64, G_TYPE_UINT64, G_TYPE_DOUBLE, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_VARIANT, G_TYPE_STRING, G_TYPE_STRV, G_TYPE_STRV, G_TYPE_STRV, G_TYPE_VARIANT); 1908s # 1908s # /** 1908s # * OrgProjectCallableIface::handle-same-method-with-many-args: 1908s # * @object: A #OrgProjectCallableIface. 1908s # * @invocation: A #GDBusMethodInvocation. 1908s # * @arg_an_b: Argument passed by remote caller. 1908s # * @arg_an_y: Argument passed by remote caller. 1908s # * @arg_an_n: Argument passed by remote caller. 1908s # * @arg_an_q: Argument passed by remote caller. 1908s # * @arg_an_i: Argument passed by remote caller. 1908s # * @arg_an_u: Argument passed by remote caller. 1908s # * @arg_an_x: Argument passed by remote caller. 1908s # * @arg_an_t: Argument passed by remote caller. 1908s # * @arg_an_d: Argument passed by remote caller. 1908s # * @arg_an_s: Argument passed by remote caller. 1908s # * @arg_an_o: Argument passed by remote caller. 1908s # * @arg_an_g: Argument passed by remote caller. 1908s # * @arg_an_h: Argument passed by remote caller. 1908s # * @arg_an_ay: Argument passed by remote caller. 1908s # * @arg_an_as: Argument passed by remote caller. 1908s # * @arg_an_ao: Argument passed by remote caller. 1908s # * @arg_an_aay: Argument passed by remote caller. 1908s # * @arg_an_asv: Argument passed by remote caller. 1908s # * 1908s # * Signal emitted when a remote caller is invoking the SameMethodWithManyArgs() D-Bus method. 1908s # * 1908s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_callable_iface_complete_same_method_with_many_args() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1908s # * 1908s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1908s # */ 1908s # g_signal_new ("handle-same-method-with-many-args", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_same_method_with_many_args), 1908s # g_signal_accumulator_true_handled, 1908s # NULL, 1908s # org_project_callable_iface_method_marshal_same_method_with_many_args, 1908s # G_TYPE_BOOLEAN, 1908s # 19, 1908s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_BOOLEAN, G_TYPE_UCHAR, G_TYPE_INT, G_TYPE_UINT, G_TYPE_INT, G_TYPE_UINT, G_TYPE_INT64, G_TYPE_UINT64, G_TYPE_DOUBLE, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_VARIANT, G_TYPE_STRING, G_TYPE_STRV, G_TYPE_STRV, G_TYPE_STRV, G_TYPE_VARIANT); 1908s # 1908s # } 1908s # 1908s # /** 1908s # * org_project_callable_iface_call_method_with_many_args: 1908s # * @proxy: A #OrgProjectCallableIfaceProxy. 1908s # * @arg_an_b: Argument to pass with the method invocation. 1908s # * @arg_an_y: Argument to pass with the method invocation. 1908s # * @arg_an_n: Argument to pass with the method invocation. 1908s # * @arg_an_q: Argument to pass with the method invocation. 1908s # * @arg_an_i: Argument to pass with the method invocation. 1908s # * @arg_an_u: Argument to pass with the method invocation. 1908s # * @arg_an_x: Argument to pass with the method invocation. 1908s # * @arg_an_t: Argument to pass with the method invocation. 1908s # * @arg_an_d: Argument to pass with the method invocation. 1908s # * @arg_an_s: Argument to pass with the method invocation. 1908s # * @arg_an_o: Argument to pass with the method invocation. 1908s # * @arg_an_g: Argument to pass with the method invocation. 1908s # * @arg_an_h: Argument to pass with the method invocation. 1908s # * @arg_an_ay: Argument to pass with the method invocation. 1908s # * @arg_an_as: Argument to pass with the method invocation. 1908s # * @arg_an_ao: Argument to pass with the method invocation. 1908s # * @arg_an_aay: Argument to pass with the method invocation. 1908s # * @arg_an_asv: Argument to pass with the method invocation. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 1908s # */ 1908s # void 1908s # org_project_callable_iface_call_method_with_many_args ( 1908s # OrgProjectCallableIface *proxy, 1908s # gboolean arg_an_b, 1908s # guchar arg_an_y, 1908s # gint16 arg_an_n, 1908s # guint16 arg_an_q, 1908s # gint arg_an_i, 1908s # guint arg_an_u, 1908s # gint64 arg_an_x, 1908s # guint64 arg_an_t, 1908s # gdouble arg_an_d, 1908s # const gchar *arg_an_s, 1908s # const gchar *arg_an_o, 1908s # const gchar *arg_an_g, 1908s # GVariant *arg_an_h, 1908s # const gchar *arg_an_ay, 1908s # const gchar *const *arg_an_as, 1908s # const gchar *const *arg_an_ao, 1908s # const gchar *const *arg_an_aay, 1908s # GVariant *arg_an_asv, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1908s # "MethodWithManyArgs", 1908s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1908s # arg_an_b, 1908s # arg_an_y, 1908s # arg_an_n, 1908s # arg_an_q, 1908s # arg_an_i, 1908s # arg_an_u, 1908s # arg_an_x, 1908s # arg_an_t, 1908s # arg_an_d, 1908s # arg_an_s, 1908s # arg_an_o, 1908s # arg_an_g, 1908s # arg_an_h, 1908s # arg_an_ay, 1908s # arg_an_as, 1908s # arg_an_ao, 1908s # arg_an_aay, 1908s # arg_an_asv), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # callback, 1908s # user_data); 1908s # } 1908s # 1908s # /** 1908s # * org_project_callable_iface_call_method_with_many_args_finish: 1908s # * @proxy: A #OrgProjectCallableIfaceProxy. 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_method_with_many_args(). 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Finishes an operation started with org_project_callable_iface_call_method_with_many_args(). 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_callable_iface_call_method_with_many_args_finish ( 1908s # OrgProjectCallableIface *proxy, 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "()"); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_callable_iface_call_method_with_many_args_sync: 1908s # * @proxy: A #OrgProjectCallableIfaceProxy. 1908s # * @arg_an_b: Argument to pass with the method invocation. 1908s # * @arg_an_y: Argument to pass with the method invocation. 1908s # * @arg_an_n: Argument to pass with the method invocation. 1908s # * @arg_an_q: Argument to pass with the method invocation. 1908s # * @arg_an_i: Argument to pass with the method invocation. 1908s # * @arg_an_u: Argument to pass with the method invocation. 1908s # * @arg_an_x: Argument to pass with the method invocation. 1908s # * @arg_an_t: Argument to pass with the method invocation. 1908s # * @arg_an_d: Argument to pass with the method invocation. 1908s # * @arg_an_s: Argument to pass with the method invocation. 1908s # * @arg_an_o: Argument to pass with the method invocation. 1908s # * @arg_an_g: Argument to pass with the method invocation. 1908s # * @arg_an_h: Argument to pass with the method invocation. 1908s # * @arg_an_ay: Argument to pass with the method invocation. 1908s # * @arg_an_as: Argument to pass with the method invocation. 1908s # * @arg_an_ao: Argument to pass with the method invocation. 1908s # * @arg_an_aay: Argument to pass with the method invocation. 1908s # * @arg_an_asv: Argument to pass with the method invocation. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_callable_iface_call_method_with_many_args_sync ( 1908s # OrgProjectCallableIface *proxy, 1908s # gboolean arg_an_b, 1908s # guchar arg_an_y, 1908s # gint16 arg_an_n, 1908s # guint16 arg_an_q, 1908s # gint arg_an_i, 1908s # guint arg_an_u, 1908s # gint64 arg_an_x, 1908s # guint64 arg_an_t, 1908s # gdouble arg_an_d, 1908s # const gchar *arg_an_s, 1908s # const gchar *arg_an_o, 1908s # const gchar *arg_an_g, 1908s # GVariant *arg_an_h, 1908s # const gchar *arg_an_ay, 1908s # const gchar *const *arg_an_as, 1908s # const gchar *const *arg_an_ao, 1908s # const gchar *const *arg_an_aay, 1908s # GVariant *arg_an_asv, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1908s # "MethodWithManyArgs", 1908s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1908s # arg_an_b, 1908s # arg_an_y, 1908s # arg_an_n, 1908s # arg_an_q, 1908s # arg_an_i, 1908s # arg_an_u, 1908s # arg_an_x, 1908s # arg_an_t, 1908s # arg_an_d, 1908s # arg_an_s, 1908s # arg_an_o, 1908s # arg_an_g, 1908s # arg_an_h, 1908s # arg_an_ay, 1908s # arg_an_as, 1908s # arg_an_ao, 1908s # arg_an_aay, 1908s # arg_an_asv), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "()"); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_callable_iface_call_same_method_with_many_args: 1908s # * @proxy: A #OrgProjectCallableIfaceProxy. 1908s # * @arg_an_b: Argument to pass with the method invocation. 1908s # * @arg_an_y: Argument to pass with the method invocation. 1908s # * @arg_an_n: Argument to pass with the method invocation. 1908s # * @arg_an_q: Argument to pass with the method invocation. 1908s # * @arg_an_i: Argument to pass with the method invocation. 1908s # * @arg_an_u: Argument to pass with the method invocation. 1908s # * @arg_an_x: Argument to pass with the method invocation. 1908s # * @arg_an_t: Argument to pass with the method invocation. 1908s # * @arg_an_d: Argument to pass with the method invocation. 1908s # * @arg_an_s: Argument to pass with the method invocation. 1908s # * @arg_an_o: Argument to pass with the method invocation. 1908s # * @arg_an_g: Argument to pass with the method invocation. 1908s # * @arg_an_h: Argument to pass with the method invocation. 1908s # * @arg_an_ay: Argument to pass with the method invocation. 1908s # * @arg_an_as: Argument to pass with the method invocation. 1908s # * @arg_an_ao: Argument to pass with the method invocation. 1908s # * @arg_an_aay: Argument to pass with the method invocation. 1908s # * @arg_an_asv: Argument to pass with the method invocation. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously invokes the SameMethodWithManyArgs() D-Bus method on @proxy. 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_callable_iface_call_same_method_with_many_args_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_callable_iface_call_same_method_with_many_args_sync() for the synchronous, blocking version of this method. 1908s # */ 1908s # void 1908s # org_project_callable_iface_call_same_method_with_many_args ( 1908s # OrgProjectCallableIface *proxy, 1908s # gboolean arg_an_b, 1908s # guchar arg_an_y, 1908s # gint16 arg_an_n, 1908s # guint16 arg_an_q, 1908s # gint arg_an_i, 1908s # guint arg_an_u, 1908s # gint64 arg_an_x, 1908s # guint64 arg_an_t, 1908s # gdouble arg_an_d, 1908s # const gchar *arg_an_s, 1908s # const gchar *arg_an_o, 1908s # const gchar *arg_an_g, 1908s # GVariant *arg_an_h, 1908s # const gchar *arg_an_ay, 1908s # const gchar *const *arg_an_as, 1908s # const gchar *const *arg_an_ao, 1908s # const gchar *const *arg_an_aay, 1908s # GVariant *arg_an_asv, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1908s # "SameMethodWithManyArgs", 1908s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1908s # arg_an_b, 1908s # arg_an_y, 1908s # arg_an_n, 1908s # arg_an_q, 1908s # arg_an_i, 1908s # arg_an_u, 1908s # arg_an_x, 1908s # arg_an_t, 1908s # arg_an_d, 1908s # arg_an_s, 1908s # arg_an_o, 1908s # arg_an_g, 1908s # arg_an_h, 1908s # arg_an_ay, 1908s # arg_an_as, 1908s # arg_an_ao, 1908s # arg_an_aay, 1908s # arg_an_asv), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # callback, 1908s # user_data); 1908s # } 1908s # 1908s # /** 1908s # * org_project_callable_iface_call_same_method_with_many_args_finish: 1908s # * @proxy: A #OrgProjectCallableIfaceProxy. 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_same_method_with_many_args(). 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Finishes an operation started with org_project_callable_iface_call_same_method_with_many_args(). 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_callable_iface_call_same_method_with_many_args_finish ( 1908s # OrgProjectCallableIface *proxy, 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "()"); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_callable_iface_call_same_method_with_many_args_sync: 1908s # * @proxy: A #OrgProjectCallableIfaceProxy. 1908s # * @arg_an_b: Argument to pass with the method invocation. 1908s # * @arg_an_y: Argument to pass with the method invocation. 1908s # * @arg_an_n: Argument to pass with the method invocation. 1908s # * @arg_an_q: Argument to pass with the method invocation. 1908s # * @arg_an_i: Argument to pass with the method invocation. 1908s # * @arg_an_u: Argument to pass with the method invocation. 1908s # * @arg_an_x: Argument to pass with the method invocation. 1908s # * @arg_an_t: Argument to pass with the method invocation. 1908s # * @arg_an_d: Argument to pass with the method invocation. 1908s # * @arg_an_s: Argument to pass with the method invocation. 1908s # * @arg_an_o: Argument to pass with the method invocation. 1908s # * @arg_an_g: Argument to pass with the method invocation. 1908s # * @arg_an_h: Argument to pass with the method invocation. 1908s # * @arg_an_ay: Argument to pass with the method invocation. 1908s # * @arg_an_as: Argument to pass with the method invocation. 1908s # * @arg_an_ao: Argument to pass with the method invocation. 1908s # * @arg_an_aay: Argument to pass with the method invocation. 1908s # * @arg_an_asv: Argument to pass with the method invocation. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Synchronously invokes the SameMethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_callable_iface_call_same_method_with_many_args() for the asynchronous version of this method. 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_callable_iface_call_same_method_with_many_args_sync ( 1908s # OrgProjectCallableIface *proxy, 1908s # gboolean arg_an_b, 1908s # guchar arg_an_y, 1908s # gint16 arg_an_n, 1908s # guint16 arg_an_q, 1908s # gint arg_an_i, 1908s # guint arg_an_u, 1908s # gint64 arg_an_x, 1908s # guint64 arg_an_t, 1908s # gdouble arg_an_d, 1908s # const gchar *arg_an_s, 1908s # const gchar *arg_an_o, 1908s # const gchar *arg_an_g, 1908s # GVariant *arg_an_h, 1908s # const gchar *arg_an_ay, 1908s # const gchar *const *arg_an_as, 1908s # const gchar *const *arg_an_ao, 1908s # const gchar *const *arg_an_aay, 1908s # GVariant *arg_an_asv, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1908s # "SameMethodWithManyArgs", 1908s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1908s # arg_an_b, 1908s # arg_an_y, 1908s # arg_an_n, 1908s # arg_an_q, 1908s # arg_an_i, 1908s # arg_an_u, 1908s # arg_an_x, 1908s # arg_an_t, 1908s # arg_an_d, 1908s # arg_an_s, 1908s # arg_an_o, 1908s # arg_an_g, 1908s # arg_an_h, 1908s # arg_an_ay, 1908s # arg_an_as, 1908s # arg_an_ao, 1908s # arg_an_aay, 1908s # arg_an_asv), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "()"); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_callable_iface_complete_method_with_many_args: 1908s # * @object: A #OrgProjectCallableIface. 1908s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1908s # * 1908s # * Helper function used in service implementations to finish handling invocations of the MethodWithManyArgs() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1908s # * 1908s # * This method will free @invocation, you cannot use it afterwards. 1908s # */ 1908s # void 1908s # org_project_callable_iface_complete_method_with_many_args ( 1908s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1908s # GDBusMethodInvocation *invocation) 1908s # { 1908s # g_dbus_method_invocation_return_value (invocation, 1908s # g_variant_new ("()")); 1908s # } 1908s # 1908s # /** 1908s # * org_project_callable_iface_complete_same_method_with_many_args: 1908s # * @object: A #OrgProjectCallableIface. 1908s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1908s # * 1908s # * Helper function used in service implementations to finish handling invocations of the SameMethodWithManyArgs() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1908s # * 1908s # * This method will free @invocation, you cannot use it afterwards. 1908s # */ 1908s # void 1908s # org_project_callable_iface_complete_same_method_with_many_args ( 1908s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1908s # GDBusMethodInvocation *invocation) 1908s # { 1908s # g_dbus_method_invocation_return_value (invocation, 1908s # g_variant_new ("()")); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectCallableIfaceProxy: 1908s # * 1908s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectCallableIfaceProxyClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectCallableIfaceProxy. 1908s # */ 1908s # 1908s # struct _OrgProjectCallableIfaceProxyPrivate 1908s # { 1908s # GData *qdata; 1908s # }; 1908s # 1908s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_callable_iface_proxy_finalize (GObject *object) 1908s # { 1908s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 1908s # g_datalist_clear (&proxy->priv->qdata); 1908s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # const GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1908s # const gchar *sender_name G_GNUC_UNUSED, 1908s # const gchar *signal_name, 1908s # GVariant *parameters) 1908s # { 1908s # _ExtendedGDBusSignalInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # gsize n; 1908s # guint signal_id; 1908s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 1908s # if (info == NULL) 1908s # return; 1908s # num_params = g_variant_n_children (parameters); 1908s # paramv = g_new0 (GValue, num_params + 1); 1908s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1908s # g_value_set_object (¶mv[0], proxy); 1908s # g_variant_iter_init (&iter, parameters); 1908s # n = 1; 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1908s # g_signal_emitv (paramv, signal_id, 0, NULL); 1908s # for (n = 0; n < num_params + 1; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static void 1908s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1908s # GVariant *changed_properties, 1908s # const gchar *const *invalidated_properties) 1908s # { 1908s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 1908s # guint n; 1908s # const gchar *key; 1908s # GVariantIter *iter; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # g_variant_get (changed_properties, "a{sv}", &iter); 1908s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 1908s # g_datalist_remove_data (&proxy->priv->qdata, key); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # g_variant_iter_free (iter); 1908s # for (n = 0; invalidated_properties[n] != NULL; n++) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1908s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # } 1908s # 1908s # static void 1908s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 1908s # #else 1908s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 1908s # #endif 1908s # 1908s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 1908s # } 1908s # 1908s # static void 1908s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusProxyClass *proxy_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 1908s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 1908s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 1908s # 1908s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1908s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 1908s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_callable_iface_proxy_new: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_callable_iface_proxy_new ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.CallableIface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_callable_iface_proxy_new_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectCallableIface * 1908s # org_project_callable_iface_proxy_new_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_callable_iface_proxy_new_sync: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectCallableIface * 1908s # org_project_callable_iface_proxy_new_sync ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.CallableIface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /** 1908s # * org_project_callable_iface_proxy_new_for_bus: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_callable_iface_proxy_new_for_bus ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.CallableIface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_callable_iface_proxy_new_for_bus_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectCallableIface * 1908s # org_project_callable_iface_proxy_new_for_bus_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_callable_iface_proxy_new_for_bus_sync: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectCallableIface * 1908s # org_project_callable_iface_proxy_new_for_bus_sync ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.CallableIface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectCallableIfaceSkeleton: 1908s # * 1908s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectCallableIfaceSkeletonClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectCallableIfaceSkeleton. 1908s # */ 1908s # 1908s # struct _OrgProjectCallableIfaceSkeletonPrivate 1908s # { 1908s # GValue *properties; 1908s # GList *changed_properties; 1908s # GSource *changed_properties_idle_source; 1908s # GMainContext *context; 1908s # GMutex lock; 1908s # }; 1908s # 1908s # static void 1908s # _org_project_callable_iface_skeleton_handle_method_call ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name, 1908s # const gchar *method_name, 1908s # GVariant *parameters, 1908s # GDBusMethodInvocation *invocation, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1908s # _ExtendedGDBusMethodInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # guint num_extra; 1908s # gsize n; 1908s # guint signal_id; 1908s # GValue return_value = G_VALUE_INIT; 1908s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1908s # g_assert (info != NULL); 1908s # num_params = g_variant_n_children (parameters); 1908s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1908s # n = 0; 1908s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1908s # g_value_set_object (¶mv[n++], skeleton); 1908s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1908s # g_value_set_object (¶mv[n++], invocation); 1908s # if (info->pass_fdlist) 1908s # { 1908s # #ifdef G_OS_UNIX 1908s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1908s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1908s # #else 1908s # g_assert_not_reached (); 1908s # #endif 1908s # } 1908s # g_variant_iter_init (&iter, parameters); 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1908s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1908s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1908s # if (!g_value_get_boolean (&return_value)) 1908s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1908s # g_value_unset (&return_value); 1908s # for (n = 0; n < num_params + num_extra; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static GVariant * 1908s # _org_project_callable_iface_skeleton_handle_get_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # GVariant *ret; 1908s # ret = NULL; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # g_value_init (&value, pspec->value_type); 1908s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1908s # g_value_unset (&value); 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _org_project_callable_iface_skeleton_handle_set_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GVariant *variant, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # gboolean ret; 1908s # ret = FALSE; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # if (info->use_gvariant) 1908s # g_value_set_variant (&value, variant); 1908s # else 1908s # g_dbus_gvariant_to_gvalue (variant, &value); 1908s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # g_value_unset (&value); 1908s # ret = TRUE; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 1908s # { 1908s # _org_project_callable_iface_skeleton_handle_method_call, 1908s # _org_project_callable_iface_skeleton_handle_get_property, 1908s # _org_project_callable_iface_skeleton_handle_set_property, 1908s # {NULL} 1908s # }; 1908s # 1908s # static GDBusInterfaceInfo * 1908s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return org_project_callable_iface_interface_info (); 1908s # } 1908s # 1908s # static GDBusInterfaceVTable * 1908s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 1908s # } 1908s # 1908s # static GVariant * 1908s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1908s # { 1908s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 1908s # 1908s # GVariantBuilder builder; 1908s # guint n; 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1908s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #else 1908s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #endif 1908s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 1908s # goto out; 1908s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1908s # { 1908s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 1908s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1908s # { 1908s # GVariant *value; 1908s # value = _org_project_callable_iface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.CallableIface", info->name, NULL, skeleton); 1908s # if (value != NULL) 1908s # { 1908s # g_variant_take_ref (value); 1908s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1908s # g_variant_unref (value); 1908s # } 1908s # } 1908s # } 1908s # out: 1908s # return g_variant_builder_end (&builder); 1908s # } 1908s # 1908s # static void 1908s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_callable_iface_skeleton_finalize (GObject *object) 1908s # { 1908s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 1908s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1908s # if (skeleton->priv->changed_properties_idle_source != NULL) 1908s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1908s # g_main_context_unref (skeleton->priv->context); 1908s # g_mutex_clear (&skeleton->priv->lock); 1908s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 1908s # #else 1908s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 1908s # #endif 1908s # 1908s # g_mutex_init (&skeleton->priv->lock); 1908s # skeleton->priv->context = g_main_context_ref_thread_default (); 1908s # } 1908s # 1908s # static void 1908s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusInterfaceSkeletonClass *skeleton_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 1908s # 1908s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1908s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 1908s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 1908s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 1908s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_callable_iface_skeleton_new: 1908s # * 1908s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 1908s # */ 1908s # OrgProjectCallableIface * 1908s # org_project_callable_iface_skeleton_new (void) 1908s # { 1908s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ 1908s # * Code for interface org.project.OtherCallableIface 1908s # * ------------------------------------------------------------------------ 1908s # */ 1908s # 1908s # /** 1908s # * SECTION:OrgProjectOtherCallableIface 1908s # * @title: OrgProjectOtherCallableIface 1908s # * @short_description: Generated C code for the org.project.OtherCallableIface D-Bus interface 1908s # * 1908s # * This section contains code for working with the org.project.OtherCallableIface D-Bus interface in C. 1908s # */ 1908s # 1908s # /* ---- Introspection data for org.project.OtherCallableIface ---- */ 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_b = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_b", 1908s # (gchar *) "b", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_y = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_y", 1908s # (gchar *) "y", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_n = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_n", 1908s # (gchar *) "n", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_q = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_q", 1908s # (gchar *) "q", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_i = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_i", 1908s # (gchar *) "i", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_u = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_u", 1908s # (gchar *) "u", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_x = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_x", 1908s # (gchar *) "x", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_t = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_t", 1908s # (gchar *) "t", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_d = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_d", 1908s # (gchar *) "d", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_s = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_s", 1908s # (gchar *) "s", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_o = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_o", 1908s # (gchar *) "o", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_g = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_g", 1908s # (gchar *) "g", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_h = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_h", 1908s # (gchar *) "h", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_ay", 1908s # (gchar *) "ay", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_as = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_as", 1908s # (gchar *) "as", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_ao", 1908s # (gchar *) "ao", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_aay", 1908s # (gchar *) "aay", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_asv", 1908s # (gchar *) "a{sv}", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_pointers[] = 1908s # { 1908s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_b.parent_struct, 1908s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_y.parent_struct, 1908s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_n.parent_struct, 1908s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_q.parent_struct, 1908s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_i.parent_struct, 1908s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_u.parent_struct, 1908s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_x.parent_struct, 1908s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_t.parent_struct, 1908s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_d.parent_struct, 1908s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_s.parent_struct, 1908s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_o.parent_struct, 1908s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_g.parent_struct, 1908s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_h.parent_struct, 1908s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay.parent_struct, 1908s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_as.parent_struct, 1908s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao.parent_struct, 1908s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay.parent_struct, 1908s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusMethodInfo _org_project_other_callable_iface_method_info_method_with_many_args = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "MethodWithManyArgs", 1908s # (GDBusArgInfo **) &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_pointers, 1908s # NULL, 1908s # NULL 1908s # }, 1908s # "handle-method-with-many-args", 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusMethodInfo * const _org_project_other_callable_iface_method_info_pointers[] = 1908s # { 1908s # &_org_project_other_callable_iface_method_info_method_with_many_args.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusInterfaceInfo _org_project_other_callable_iface_interface_info = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "org.project.OtherCallableIface", 1908s # (GDBusMethodInfo **) &_org_project_other_callable_iface_method_info_pointers, 1908s # NULL, 1908s # NULL, 1908s # NULL 1908s # }, 1908s # "org-project-other-callable-iface", 1908s # }; 1908s # 1908s # 1908s # /** 1908s # * org_project_other_callable_iface_interface_info: 1908s # * 1908s # * Gets a machine-readable description of the org.project.OtherCallableIface D-Bus interface. 1908s # * 1908s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1908s # */ 1908s # GDBusInterfaceInfo * 1908s # org_project_other_callable_iface_interface_info (void) 1908s # { 1908s # return (GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct; 1908s # } 1908s # 1908s # /** 1908s # * org_project_other_callable_iface_override_properties: 1908s # * @klass: The class structure for a #GObject derived class. 1908s # * @property_id_begin: The property id to assign to the first overridden property. 1908s # * 1908s # * Overrides all #GObject properties in the #OrgProjectOtherCallableIface interface for a concrete class. 1908s # * The properties are overridden in the order they are defined. 1908s # * 1908s # * Returns: The last property id. 1908s # */ 1908s # guint 1908s # org_project_other_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1908s # { 1908s # return property_id_begin - 1; 1908s # } 1908s # 1908s # 1908s # inline static void 1908s # org_project_other_callable_iface_method_marshal_method_with_many_args ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # 1908s # /** 1908s # * OrgProjectOtherCallableIface: 1908s # * 1908s # * Abstract interface type for the D-Bus interface org.project.OtherCallableIface. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectOtherCallableIfaceIface: 1908s # * @parent_iface: The parent interface. 1908s # * @handle_method_with_many_args: Handler for the #OrgProjectOtherCallableIface::handle-method-with-many-args signal. 1908s # * 1908s # * Virtual table for the D-Bus interface org.project.OtherCallableIface. 1908s # */ 1908s # 1908s # typedef OrgProjectOtherCallableIfaceIface OrgProjectOtherCallableIfaceInterface; 1908s # G_DEFINE_INTERFACE (OrgProjectOtherCallableIface, org_project_other_callable_iface, G_TYPE_OBJECT) 1908s # 1908s # static void 1908s # org_project_other_callable_iface_default_init (OrgProjectOtherCallableIfaceIface *iface) 1908s # { 1908s # /* GObject signals for incoming D-Bus method calls: */ 1908s # /** 1908s # * OrgProjectOtherCallableIface::handle-method-with-many-args: 1908s # * @object: A #OrgProjectOtherCallableIface. 1908s # * @invocation: A #GDBusMethodInvocation. 1908s # * @arg_an_b: Argument passed by remote caller. 1908s # * @arg_an_y: Argument passed by remote caller. 1908s # * @arg_an_n: Argument passed by remote caller. 1908s # * @arg_an_q: Argument passed by remote caller. 1908s # * @arg_an_i: Argument passed by remote caller. 1908s # * @arg_an_u: Argument passed by remote caller. 1908s # * @arg_an_x: Argument passed by remote caller. 1908s # * @arg_an_t: Argument passed by remote caller. 1908s # * @arg_an_d: Argument passed by remote caller. 1908s # * @arg_an_s: Argument passed by remote caller. 1908s # * @arg_an_o: Argument passed by remote caller. 1908s # * @arg_an_g: Argument passed by remote caller. 1908s # * @arg_an_h: Argument passed by remote caller. 1908s # * @arg_an_ay: Argument passed by remote caller. 1908s # * @arg_an_as: Argument passed by remote caller. 1908s # * @arg_an_ao: Argument passed by remote caller. 1908s # * @arg_an_aay: Argument passed by remote caller. 1908s # * @arg_an_asv: Argument passed by remote caller. 1908s # * 1908s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 1908s # * 1908s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_other_callable_iface_complete_method_with_many_args() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1908s # * 1908s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1908s # */ 1908s # g_signal_new ("handle-method-with-many-args", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectOtherCallableIfaceIface, handle_method_with_many_args), 1908s # g_signal_accumulator_true_handled, 1908s # NULL, 1908s # org_project_other_callable_iface_method_marshal_method_with_many_args, 1908s # G_TYPE_BOOLEAN, 1908s # 19, 1908s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_BOOLEAN, G_TYPE_UCHAR, G_TYPE_INT, G_TYPE_UINT, G_TYPE_INT, G_TYPE_UINT, G_TYPE_INT64, G_TYPE_UINT64, G_TYPE_DOUBLE, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_VARIANT, G_TYPE_STRING, G_TYPE_STRV, G_TYPE_STRV, G_TYPE_STRV, G_TYPE_VARIANT); 1908s # 1908s # } 1908s # 1908s # /** 1908s # * org_project_other_callable_iface_call_method_with_many_args: 1908s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1908s # * @arg_an_b: Argument to pass with the method invocation. 1908s # * @arg_an_y: Argument to pass with the method invocation. 1908s # * @arg_an_n: Argument to pass with the method invocation. 1908s # * @arg_an_q: Argument to pass with the method invocation. 1908s # * @arg_an_i: Argument to pass with the method invocation. 1908s # * @arg_an_u: Argument to pass with the method invocation. 1908s # * @arg_an_x: Argument to pass with the method invocation. 1908s # * @arg_an_t: Argument to pass with the method invocation. 1908s # * @arg_an_d: Argument to pass with the method invocation. 1908s # * @arg_an_s: Argument to pass with the method invocation. 1908s # * @arg_an_o: Argument to pass with the method invocation. 1908s # * @arg_an_g: Argument to pass with the method invocation. 1908s # * @arg_an_h: Argument to pass with the method invocation. 1908s # * @arg_an_ay: Argument to pass with the method invocation. 1908s # * @arg_an_as: Argument to pass with the method invocation. 1908s # * @arg_an_ao: Argument to pass with the method invocation. 1908s # * @arg_an_aay: Argument to pass with the method invocation. 1908s # * @arg_an_asv: Argument to pass with the method invocation. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_other_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_other_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 1908s # */ 1908s # void 1908s # org_project_other_callable_iface_call_method_with_many_args ( 1908s # OrgProjectOtherCallableIface *proxy, 1908s # gboolean arg_an_b, 1908s # guchar arg_an_y, 1908s # gint16 arg_an_n, 1908s # guint16 arg_an_q, 1908s # gint arg_an_i, 1908s # guint arg_an_u, 1908s # gint64 arg_an_x, 1908s # guint64 arg_an_t, 1908s # gdouble arg_an_d, 1908s # const gchar *arg_an_s, 1908s # const gchar *arg_an_o, 1908s # const gchar *arg_an_g, 1908s # GVariant *arg_an_h, 1908s # const gchar *arg_an_ay, 1908s # const gchar *const *arg_an_as, 1908s # const gchar *const *arg_an_ao, 1908s # const gchar *const *arg_an_aay, 1908s # GVariant *arg_an_asv, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1908s # "MethodWithManyArgs", 1908s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1908s # arg_an_b, 1908s # arg_an_y, 1908s # arg_an_n, 1908s # arg_an_q, 1908s # arg_an_i, 1908s # arg_an_u, 1908s # arg_an_x, 1908s # arg_an_t, 1908s # arg_an_d, 1908s # arg_an_s, 1908s # arg_an_o, 1908s # arg_an_g, 1908s # arg_an_h, 1908s # arg_an_ay, 1908s # arg_an_as, 1908s # arg_an_ao, 1908s # arg_an_aay, 1908s # arg_an_asv), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # callback, 1908s # user_data); 1908s # } 1908s # 1908s # /** 1908s # * org_project_other_callable_iface_call_method_with_many_args_finish: 1908s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_call_method_with_many_args(). 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Finishes an operation started with org_project_other_callable_iface_call_method_with_many_args(). 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_other_callable_iface_call_method_with_many_args_finish ( 1908s # OrgProjectOtherCallableIface *proxy, 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "()"); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_other_callable_iface_call_method_with_many_args_sync: 1908s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1908s # * @arg_an_b: Argument to pass with the method invocation. 1908s # * @arg_an_y: Argument to pass with the method invocation. 1908s # * @arg_an_n: Argument to pass with the method invocation. 1908s # * @arg_an_q: Argument to pass with the method invocation. 1908s # * @arg_an_i: Argument to pass with the method invocation. 1908s # * @arg_an_u: Argument to pass with the method invocation. 1908s # * @arg_an_x: Argument to pass with the method invocation. 1908s # * @arg_an_t: Argument to pass with the method invocation. 1908s # * @arg_an_d: Argument to pass with the method invocation. 1908s # * @arg_an_s: Argument to pass with the method invocation. 1908s # * @arg_an_o: Argument to pass with the method invocation. 1908s # * @arg_an_g: Argument to pass with the method invocation. 1908s # * @arg_an_h: Argument to pass with the method invocation. 1908s # * @arg_an_ay: Argument to pass with the method invocation. 1908s # * @arg_an_as: Argument to pass with the method invocation. 1908s # * @arg_an_ao: Argument to pass with the method invocation. 1908s # * @arg_an_aay: Argument to pass with the method invocation. 1908s # * @arg_an_asv: Argument to pass with the method invocation. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_other_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_other_callable_iface_call_method_with_many_args_sync ( 1908s # OrgProjectOtherCallableIface *proxy, 1908s # gboolean arg_an_b, 1908s # guchar arg_an_y, 1908s # gint16 arg_an_n, 1908s # guint16 arg_an_q, 1908s # gint arg_an_i, 1908s # guint arg_an_u, 1908s # gint64 arg_an_x, 1908s # guint64 arg_an_t, 1908s # gdouble arg_an_d, 1908s # const gchar *arg_an_s, 1908s # const gchar *arg_an_o, 1908s # const gchar *arg_an_g, 1908s # GVariant *arg_an_h, 1908s # const gchar *arg_an_ay, 1908s # const gchar *const *arg_an_as, 1908s # const gchar *const *arg_an_ao, 1908s # const gchar *const *arg_an_aay, 1908s # GVariant *arg_an_asv, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1908s # "MethodWithManyArgs", 1908s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1908s # arg_an_b, 1908s # arg_an_y, 1908s # arg_an_n, 1908s # arg_an_q, 1908s # arg_an_i, 1908s # arg_an_u, 1908s # arg_an_x, 1908s # arg_an_t, 1908s # arg_an_d, 1908s # arg_an_s, 1908s # arg_an_o, 1908s # arg_an_g, 1908s # arg_an_h, 1908s # arg_an_ay, 1908s # arg_an_as, 1908s # arg_an_ao, 1908s # arg_an_aay, 1908s # arg_an_asv), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "()"); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_other_callable_iface_complete_method_with_many_args: 1908s # * @object: A #OrgProjectOtherCallableIface. 1908s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1908s # * 1908s # * Helper function used in service implementations to finish handling invocations of the MethodWithManyArgs() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1908s # * 1908s # * This method will free @invocation, you cannot use it afterwards. 1908s # */ 1908s # void 1908s # org_project_other_callable_iface_complete_method_with_many_args ( 1908s # OrgProjectOtherCallableIface *object G_GNUC_UNUSED, 1908s # GDBusMethodInvocation *invocation) 1908s # { 1908s # g_dbus_method_invocation_return_value (invocation, 1908s # g_variant_new ("()")); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectOtherCallableIfaceProxy: 1908s # * 1908s # * The #OrgProjectOtherCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectOtherCallableIfaceProxyClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectOtherCallableIfaceProxy. 1908s # */ 1908s # 1908s # struct _OrgProjectOtherCallableIfaceProxyPrivate 1908s # { 1908s # GData *qdata; 1908s # }; 1908s # 1908s # static void org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceProxy) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_other_callable_iface_proxy_finalize (GObject *object) 1908s # { 1908s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (object); 1908s # g_datalist_clear (&proxy->priv->qdata); 1908s # G_OBJECT_CLASS (org_project_other_callable_iface_proxy_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_other_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_other_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # const GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_other_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1908s # const gchar *sender_name G_GNUC_UNUSED, 1908s # const gchar *signal_name, 1908s # GVariant *parameters) 1908s # { 1908s # _ExtendedGDBusSignalInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # gsize n; 1908s # guint signal_id; 1908s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, signal_name); 1908s # if (info == NULL) 1908s # return; 1908s # num_params = g_variant_n_children (parameters); 1908s # paramv = g_new0 (GValue, num_params + 1); 1908s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1908s # g_value_set_object (¶mv[0], proxy); 1908s # g_variant_iter_init (&iter, parameters); 1908s # n = 1; 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1908s # g_signal_emitv (paramv, signal_id, 0, NULL); 1908s # for (n = 0; n < num_params + 1; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static void 1908s # org_project_other_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1908s # GVariant *changed_properties, 1908s # const gchar *const *invalidated_properties) 1908s # { 1908s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (_proxy); 1908s # guint n; 1908s # const gchar *key; 1908s # GVariantIter *iter; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # g_variant_get (changed_properties, "a{sv}", &iter); 1908s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, key); 1908s # g_datalist_remove_data (&proxy->priv->qdata, key); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # g_variant_iter_free (iter); 1908s # for (n = 0; invalidated_properties[n] != NULL; n++) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1908s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # } 1908s # 1908s # static void 1908s # org_project_other_callable_iface_proxy_init (OrgProjectOtherCallableIfaceProxy *proxy) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # proxy->priv = org_project_other_callable_iface_proxy_get_instance_private (proxy); 1908s # #else 1908s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, OrgProjectOtherCallableIfaceProxyPrivate); 1908s # #endif 1908s # 1908s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_callable_iface_interface_info ()); 1908s # } 1908s # 1908s # static void 1908s # org_project_other_callable_iface_proxy_class_init (OrgProjectOtherCallableIfaceProxyClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusProxyClass *proxy_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_other_callable_iface_proxy_finalize; 1908s # gobject_class->get_property = org_project_other_callable_iface_proxy_get_property; 1908s # gobject_class->set_property = org_project_other_callable_iface_proxy_set_property; 1908s # 1908s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1908s # proxy_class->g_signal = org_project_other_callable_iface_proxy_g_signal; 1908s # proxy_class->g_properties_changed = org_project_other_callable_iface_proxy_g_properties_changed; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceProxyPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_other_callable_iface_proxy_new: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new() for more details. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_other_callable_iface_proxy_new_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_other_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_other_callable_iface_proxy_new ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.OtherCallableIface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_other_callable_iface_proxy_new_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_other_callable_iface_proxy_new(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectOtherCallableIface * 1908s # org_project_other_callable_iface_proxy_new_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_other_callable_iface_proxy_new_sync: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new_sync() for more details. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_other_callable_iface_proxy_new() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectOtherCallableIface * 1908s # org_project_other_callable_iface_proxy_new_sync ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.OtherCallableIface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /** 1908s # * org_project_other_callable_iface_proxy_new_for_bus: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Like org_project_other_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_other_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_other_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_other_callable_iface_proxy_new_for_bus ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.OtherCallableIface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_other_callable_iface_proxy_new_for_bus_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new_for_bus(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_other_callable_iface_proxy_new_for_bus(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectOtherCallableIface * 1908s # org_project_other_callable_iface_proxy_new_for_bus_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_other_callable_iface_proxy_new_for_bus_sync: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Like org_project_other_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_other_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectOtherCallableIface * 1908s # org_project_other_callable_iface_proxy_new_for_bus_sync ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.OtherCallableIface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectOtherCallableIfaceSkeleton: 1908s # * 1908s # * The #OrgProjectOtherCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectOtherCallableIfaceSkeletonClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectOtherCallableIfaceSkeleton. 1908s # */ 1908s # 1908s # struct _OrgProjectOtherCallableIfaceSkeletonPrivate 1908s # { 1908s # GValue *properties; 1908s # GList *changed_properties; 1908s # GSource *changed_properties_idle_source; 1908s # GMainContext *context; 1908s # GMutex lock; 1908s # }; 1908s # 1908s # static void 1908s # _org_project_other_callable_iface_skeleton_handle_method_call ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name, 1908s # const gchar *method_name, 1908s # GVariant *parameters, 1908s # GDBusMethodInvocation *invocation, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1908s # _ExtendedGDBusMethodInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # guint num_extra; 1908s # gsize n; 1908s # guint signal_id; 1908s # GValue return_value = G_VALUE_INIT; 1908s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1908s # g_assert (info != NULL); 1908s # num_params = g_variant_n_children (parameters); 1908s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1908s # n = 0; 1908s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1908s # g_value_set_object (¶mv[n++], skeleton); 1908s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1908s # g_value_set_object (¶mv[n++], invocation); 1908s # if (info->pass_fdlist) 1908s # { 1908s # #ifdef G_OS_UNIX 1908s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1908s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1908s # #else 1908s # g_assert_not_reached (); 1908s # #endif 1908s # } 1908s # g_variant_iter_init (&iter, parameters); 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1908s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1908s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1908s # if (!g_value_get_boolean (&return_value)) 1908s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1908s # g_value_unset (&return_value); 1908s # for (n = 0; n < num_params + num_extra; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static GVariant * 1908s # _org_project_other_callable_iface_skeleton_handle_get_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # GVariant *ret; 1908s # ret = NULL; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # g_value_init (&value, pspec->value_type); 1908s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1908s # g_value_unset (&value); 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _org_project_other_callable_iface_skeleton_handle_set_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GVariant *variant, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # gboolean ret; 1908s # ret = FALSE; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # if (info->use_gvariant) 1908s # g_value_set_variant (&value, variant); 1908s # else 1908s # g_dbus_gvariant_to_gvalue (variant, &value); 1908s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # g_value_unset (&value); 1908s # ret = TRUE; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static const GDBusInterfaceVTable _org_project_other_callable_iface_skeleton_vtable = 1908s # { 1908s # _org_project_other_callable_iface_skeleton_handle_method_call, 1908s # _org_project_other_callable_iface_skeleton_handle_get_property, 1908s # _org_project_other_callable_iface_skeleton_handle_set_property, 1908s # {NULL} 1908s # }; 1908s # 1908s # static GDBusInterfaceInfo * 1908s # org_project_other_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return org_project_other_callable_iface_interface_info (); 1908s # } 1908s # 1908s # static GDBusInterfaceVTable * 1908s # org_project_other_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return (GDBusInterfaceVTable *) &_org_project_other_callable_iface_skeleton_vtable; 1908s # } 1908s # 1908s # static GVariant * 1908s # org_project_other_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1908s # { 1908s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (_skeleton); 1908s # 1908s # GVariantBuilder builder; 1908s # guint n; 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1908s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #else 1908s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #endif 1908s # if (_org_project_other_callable_iface_interface_info.parent_struct.properties == NULL) 1908s # goto out; 1908s # for (n = 0; _org_project_other_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1908s # { 1908s # GDBusPropertyInfo *info = _org_project_other_callable_iface_interface_info.parent_struct.properties[n]; 1908s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1908s # { 1908s # GVariant *value; 1908s # value = _org_project_other_callable_iface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherCallableIface", info->name, NULL, skeleton); 1908s # if (value != NULL) 1908s # { 1908s # g_variant_take_ref (value); 1908s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1908s # g_variant_unref (value); 1908s # } 1908s # } 1908s # } 1908s # out: 1908s # return g_variant_builder_end (&builder); 1908s # } 1908s # 1908s # static void 1908s # org_project_other_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceSkeleton) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_other_callable_iface_skeleton_finalize (GObject *object) 1908s # { 1908s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (object); 1908s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1908s # if (skeleton->priv->changed_properties_idle_source != NULL) 1908s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1908s # g_main_context_unref (skeleton->priv->context); 1908s # g_mutex_clear (&skeleton->priv->lock); 1908s # G_OBJECT_CLASS (org_project_other_callable_iface_skeleton_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_other_callable_iface_skeleton_init (OrgProjectOtherCallableIfaceSkeleton *skeleton) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # skeleton->priv = org_project_other_callable_iface_skeleton_get_instance_private (skeleton); 1908s # #else 1908s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, OrgProjectOtherCallableIfaceSkeletonPrivate); 1908s # #endif 1908s # 1908s # g_mutex_init (&skeleton->priv->lock); 1908s # skeleton->priv->context = g_main_context_ref_thread_default (); 1908s # } 1908s # 1908s # static void 1908s # org_project_other_callable_iface_skeleton_class_init (OrgProjectOtherCallableIfaceSkeletonClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusInterfaceSkeletonClass *skeleton_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_other_callable_iface_skeleton_finalize; 1908s # 1908s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1908s # skeleton_class->get_info = org_project_other_callable_iface_skeleton_dbus_interface_get_info; 1908s # skeleton_class->get_properties = org_project_other_callable_iface_skeleton_dbus_interface_get_properties; 1908s # skeleton_class->flush = org_project_other_callable_iface_skeleton_dbus_interface_flush; 1908s # skeleton_class->get_vtable = org_project_other_callable_iface_skeleton_dbus_interface_get_vtable; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceSkeletonPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_other_callable_iface_skeleton_new: 1908s # * 1908s # * Creates a skeleton object for the D-Bus interface org.project.OtherCallableIface. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceSkeleton): The skeleton object. 1908s # */ 1908s # OrgProjectOtherCallableIface * 1908s # org_project_other_callable_iface_skeleton_new (void) 1908s # { 1908s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, NULL)); 1908s # } 1908s # Error: 1908s ok 13 __main__.TestCodegen.test_generate_methods_marshallers_multiple_out_args 1908s # gdbus-codegen: /usr/bin/gdbus-codegen 1908s # tmpdir: /tmp/tmp8uh7eq5e 1908s # /tmp/tmp8uh7eq5e/tmpe_rjt7vc.xml: 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8uh7eq5e/tmpe_rjt7vc.xml', '--output', '-', '--body'] 1908s # Return code: 0 1908s # Output: 1908s # /* 1908s # * This file is generated by gdbus-codegen, do not modify it. 1908s # * 1908s # * The license of this code is the same as for the D-Bus interface description 1908s # * it was derived from. Note that it links to GLib, so must comply with the 1908s # * LGPL linking clauses. 1908s # */ 1908s # 1908s # #ifdef HAVE_CONFIG_H 1908s # # include "config.h" 1908s # #endif 1908s # 1908s # #include 1908s # #ifdef G_OS_UNIX 1908s # # include 1908s # #endif 1908s # 1908s # #ifdef G_ENABLE_DEBUG 1908s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1908s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1908s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1908s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1908s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1908s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1908s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1908s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1908s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1908s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1908s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1908s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1908s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1908s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1908s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1908s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1908s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1908s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1908s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1908s # #else /* !G_ENABLE_DEBUG */ 1908s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1908s # * Do not access GValues directly in your code. Instead, use the 1908s # * g_value_get_*() functions 1908s # */ 1908s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1908s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1908s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1908s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1908s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1908s # #endif /* !G_ENABLE_DEBUG */ 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusArgInfo parent_struct; 1908s # gboolean use_gvariant; 1908s # } _ExtendedGDBusArgInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusMethodInfo parent_struct; 1908s # const gchar *signal_name; 1908s # gboolean pass_fdlist; 1908s # } _ExtendedGDBusMethodInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusSignalInfo parent_struct; 1908s # const gchar *signal_name; 1908s # } _ExtendedGDBusSignalInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusPropertyInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # guint use_gvariant : 1; 1908s # guint emits_changed_signal : 1; 1908s # } _ExtendedGDBusPropertyInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusInterfaceInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # } _ExtendedGDBusInterfaceInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # const _ExtendedGDBusPropertyInfo *info; 1908s # guint prop_id; 1908s # GValue orig_value; /* the value before the change */ 1908s # } ChangedProperty; 1908s # 1908s # static void 1908s # _changed_property_free (ChangedProperty *data) 1908s # { 1908s # g_value_unset (&data->orig_value); 1908s # g_free (data); 1908s # } 1908s # 1908s # static gboolean 1908s # _g_strv_equal0 (gchar **a, gchar **b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # guint n; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # if (g_strv_length (a) != g_strv_length (b)) 1908s # goto out; 1908s # for (n = 0; a[n] != NULL; n++) 1908s # if (g_strcmp0 (a[n], b[n]) != 0) 1908s # goto out; 1908s # ret = TRUE; 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _g_variant_equal0 (GVariant *a, GVariant *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # ret = g_variant_equal (a, b); 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # G_GNUC_UNUSED static gboolean 1908s # _g_value_equal (const GValue *a, const GValue *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1908s # switch (G_VALUE_TYPE (a)) 1908s # { 1908s # case G_TYPE_BOOLEAN: 1908s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1908s # break; 1908s # case G_TYPE_UCHAR: 1908s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1908s # break; 1908s # case G_TYPE_INT: 1908s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1908s # break; 1908s # case G_TYPE_UINT: 1908s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1908s # break; 1908s # case G_TYPE_INT64: 1908s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1908s # break; 1908s # case G_TYPE_UINT64: 1908s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1908s # break; 1908s # case G_TYPE_DOUBLE: 1908s # { 1908s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1908s # gdouble da = g_value_get_double (a); 1908s # gdouble db = g_value_get_double (b); 1908s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1908s # } 1908s # break; 1908s # case G_TYPE_STRING: 1908s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1908s # break; 1908s # case G_TYPE_VARIANT: 1908s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1908s # break; 1908s # default: 1908s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1908s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1908s # else 1908s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1908s # break; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static void 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint G_GNUC_UNUSED, 1908s # void *marshal_data) 1908s # { 1908s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1908s # (void *data1, 1908s # GDBusMethodInvocation *arg_method_invocation, 1908s # void *data2); 1908s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1908s # GCClosure *cc = (GCClosure*) closure; 1908s # void *data1, *data2; 1908s # gboolean v_return; 1908s # 1908s # g_return_if_fail (return_value != NULL); 1908s # g_return_if_fail (n_param_values == 2); 1908s # 1908s # if (G_CCLOSURE_SWAP_DATA (closure)) 1908s # { 1908s # data1 = closure->data; 1908s # data2 = g_value_peek_pointer (param_values + 0); 1908s # } 1908s # else 1908s # { 1908s # data1 = g_value_peek_pointer (param_values + 0); 1908s # data2 = closure->data; 1908s # } 1908s # 1908s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1908s # (marshal_data ? marshal_data : cc->callback); 1908s # 1908s # v_return = 1908s # callback (data1, 1908s # g_marshal_value_peek_object (param_values + 1), 1908s # data2); 1908s # 1908s # g_value_set_boolean (return_value, v_return); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ 1908s # * Code for interface org.project.CallableIface 1908s # * ------------------------------------------------------------------------ 1908s # */ 1908s # 1908s # /** 1908s # * SECTION:OrgProjectCallableIface 1908s # * @title: OrgProjectCallableIface 1908s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 1908s # * 1908s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 1908s # */ 1908s # 1908s # /* ---- Introspection data for org.project.CallableIface ---- */ 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_b = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_b", 1908s # (gchar *) "b", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_y = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_y", 1908s # (gchar *) "y", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_n = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_n", 1908s # (gchar *) "n", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_q = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_q", 1908s # (gchar *) "q", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_i = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_i", 1908s # (gchar *) "i", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_u = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_u", 1908s # (gchar *) "u", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_x = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_x", 1908s # (gchar *) "x", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_t = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_t", 1908s # (gchar *) "t", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_d = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_d", 1908s # (gchar *) "d", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_s = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_s", 1908s # (gchar *) "s", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_o = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_o", 1908s # (gchar *) "o", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_g = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_g", 1908s # (gchar *) "g", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_h = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_h", 1908s # (gchar *) "h", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ay = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_ay", 1908s # (gchar *) "ay", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_as = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_as", 1908s # (gchar *) "as", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ao = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_ao", 1908s # (gchar *) "ao", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_aay = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_aay", 1908s # (gchar *) "aay", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_asv = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_asv", 1908s # (gchar *) "a{sv}", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_pointers[] = 1908s # { 1908s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_b.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_y.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_n.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_q.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_i.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_u.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_x.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_t.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_d.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_s.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_o.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_g.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_h.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ay.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_as.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ao.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_aay.parent_struct, 1908s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_asv.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_method_with_many_args = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "MethodWithManyArgs", 1908s # NULL, 1908s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "handle-method-with-many-args", 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 1908s # { 1908s # &_org_project_callable_iface_method_info_method_with_many_args.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "org.project.CallableIface", 1908s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 1908s # NULL, 1908s # NULL, 1908s # NULL 1908s # }, 1908s # "org-project-callable-iface", 1908s # }; 1908s # 1908s # 1908s # /** 1908s # * org_project_callable_iface_interface_info: 1908s # * 1908s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 1908s # * 1908s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1908s # */ 1908s # GDBusInterfaceInfo * 1908s # org_project_callable_iface_interface_info (void) 1908s # { 1908s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 1908s # } 1908s # 1908s # /** 1908s # * org_project_callable_iface_override_properties: 1908s # * @klass: The class structure for a #GObject derived class. 1908s # * @property_id_begin: The property id to assign to the first overridden property. 1908s # * 1908s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 1908s # * The properties are overridden in the order they are defined. 1908s # * 1908s # * Returns: The last property id. 1908s # */ 1908s # guint 1908s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1908s # { 1908s # return property_id_begin - 1; 1908s # } 1908s # 1908s # 1908s # inline static void 1908s # org_project_callable_iface_method_marshal_method_with_many_args ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # 1908s # /** 1908s # * OrgProjectCallableIface: 1908s # * 1908s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectCallableIfaceIface: 1908s # * @parent_iface: The parent interface. 1908s # * @handle_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-method-with-many-args signal. 1908s # * 1908s # * Virtual table for the D-Bus interface org.project.CallableIface. 1908s # */ 1908s # 1908s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 1908s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 1908s # 1908s # static void 1908s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 1908s # { 1908s # /* GObject signals for incoming D-Bus method calls: */ 1908s # /** 1908s # * OrgProjectCallableIface::handle-method-with-many-args: 1908s # * @object: A #OrgProjectCallableIface. 1908s # * @invocation: A #GDBusMethodInvocation. 1908s # * 1908s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 1908s # * 1908s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_callable_iface_complete_method_with_many_args() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1908s # * 1908s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1908s # */ 1908s # g_signal_new ("handle-method-with-many-args", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_method_with_many_args), 1908s # g_signal_accumulator_true_handled, 1908s # NULL, 1908s # org_project_callable_iface_method_marshal_method_with_many_args, 1908s # G_TYPE_BOOLEAN, 1908s # 1, 1908s # G_TYPE_DBUS_METHOD_INVOCATION); 1908s # 1908s # } 1908s # 1908s # /** 1908s # * org_project_callable_iface_call_method_with_many_args: 1908s # * @proxy: A #OrgProjectCallableIfaceProxy. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 1908s # */ 1908s # void 1908s # org_project_callable_iface_call_method_with_many_args ( 1908s # OrgProjectCallableIface *proxy, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1908s # "MethodWithManyArgs", 1908s # g_variant_new ("()"), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # callback, 1908s # user_data); 1908s # } 1908s # 1908s # /** 1908s # * org_project_callable_iface_call_method_with_many_args_finish: 1908s # * @proxy: A #OrgProjectCallableIfaceProxy. 1908s # * @out_an_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_method_with_many_args(). 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Finishes an operation started with org_project_callable_iface_call_method_with_many_args(). 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_callable_iface_call_method_with_many_args_finish ( 1908s # OrgProjectCallableIface *proxy, 1908s # gboolean *out_an_b, 1908s # guchar *out_an_y, 1908s # gint16 *out_an_n, 1908s # guint16 *out_an_q, 1908s # gint *out_an_i, 1908s # guint *out_an_u, 1908s # gint64 *out_an_x, 1908s # guint64 *out_an_t, 1908s # gdouble *out_an_d, 1908s # gchar **out_an_s, 1908s # gchar **out_an_o, 1908s # gchar **out_an_g, 1908s # GVariant **out_an_h, 1908s # gchar **out_an_ay, 1908s # gchar ***out_an_as, 1908s # gchar ***out_an_ao, 1908s # gchar ***out_an_aay, 1908s # GVariant **out_an_asv, 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1908s # out_an_b, 1908s # out_an_y, 1908s # out_an_n, 1908s # out_an_q, 1908s # out_an_i, 1908s # out_an_u, 1908s # out_an_x, 1908s # out_an_t, 1908s # out_an_d, 1908s # out_an_s, 1908s # out_an_o, 1908s # out_an_g, 1908s # out_an_h, 1908s # out_an_ay, 1908s # out_an_as, 1908s # out_an_ao, 1908s # out_an_aay, 1908s # out_an_asv); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_callable_iface_call_method_with_many_args_sync: 1908s # * @proxy: A #OrgProjectCallableIfaceProxy. 1908s # * @out_an_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1908s # * @out_an_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # org_project_callable_iface_call_method_with_many_args_sync ( 1908s # OrgProjectCallableIface *proxy, 1908s # gboolean *out_an_b, 1908s # guchar *out_an_y, 1908s # gint16 *out_an_n, 1908s # guint16 *out_an_q, 1908s # gint *out_an_i, 1908s # guint *out_an_u, 1908s # gint64 *out_an_x, 1908s # guint64 *out_an_t, 1908s # gdouble *out_an_d, 1908s # gchar **out_an_s, 1908s # gchar **out_an_o, 1908s # gchar **out_an_g, 1908s # GVariant **out_an_h, 1908s # gchar **out_an_ay, 1908s # gchar ***out_an_as, 1908s # gchar ***out_an_ao, 1908s # gchar ***out_an_aay, 1908s # GVariant **out_an_asv, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1908s # "MethodWithManyArgs", 1908s # g_variant_new ("()"), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # cancellable, 1908s # error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1908s # out_an_b, 1908s # out_an_y, 1908s # out_an_n, 1908s # out_an_q, 1908s # out_an_i, 1908s # out_an_u, 1908s # out_an_x, 1908s # out_an_t, 1908s # out_an_d, 1908s # out_an_s, 1908s # out_an_o, 1908s # out_an_g, 1908s # out_an_h, 1908s # out_an_ay, 1908s # out_an_as, 1908s # out_an_ao, 1908s # out_an_aay, 1908s # out_an_asv); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_callable_iface_complete_method_with_many_args: 1908s # * @object: A #OrgProjectCallableIface. 1908s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1908s # * @an_b: Parameter to return. 1908s # * @an_y: Parameter to return. 1908s # * @an_n: Parameter to return. 1908s # * @an_q: Parameter to return. 1908s # * @an_i: Parameter to return. 1908s # * @an_u: Parameter to return. 1908s # * @an_x: Parameter to return. 1908s # * @an_t: Parameter to return. 1908s # * @an_d: Parameter to return. 1908s # * @an_s: Parameter to return. 1908s # * @an_o: Parameter to return. 1908s # * @an_g: Parameter to return. 1908s # * @an_h: Parameter to return. 1908s # * @an_ay: Parameter to return. 1908s # * @an_as: Parameter to return. 1908s # * @an_ao: Parameter to return. 1908s # * @an_aay: Parameter to return. 1908s # * @an_asv: Parameter to return. 1908s # * 1908s # * Helper function used in service implementations to finish handling invocations of the MethodWithManyArgs() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1908s # * 1908s # * This method will free @invocation, you cannot use it afterwards. 1908s # */ 1908s # void 1908s # org_project_callable_iface_complete_method_with_many_args ( 1908s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1908s # GDBusMethodInvocation *invocation, 1908s # gboolean an_b, 1908s # guchar an_y, 1908s # gint16 an_n, 1908s # guint16 an_q, 1908s # gint an_i, 1908s # guint an_u, 1908s # gint64 an_x, 1908s # guint64 an_t, 1908s # gdouble an_d, 1908s # const gchar *an_s, 1908s # const gchar *an_o, 1908s # const gchar *an_g, 1908s # GVariant *an_h, 1908s # const gchar *an_ay, 1908s # const gchar *const *an_as, 1908s # const gchar *const *an_ao, 1908s # const gchar *const *an_aay, 1908s # GVariant *an_asv) 1908s # { 1908s # g_dbus_method_invocation_return_value (invocation, 1908s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1908s # an_b, 1908s # an_y, 1908s # an_n, 1908s # an_q, 1908s # an_i, 1908s # an_u, 1908s # an_x, 1908s # an_t, 1908s # an_d, 1908s # an_s, 1908s # an_o, 1908s # an_g, 1908s # an_h, 1908s # an_ay, 1908s # an_as, 1908s # an_ao, 1908s # an_aay, 1908s # an_asv)); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectCallableIfaceProxy: 1908s # * 1908s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectCallableIfaceProxyClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectCallableIfaceProxy. 1908s # */ 1908s # 1908s # struct _OrgProjectCallableIfaceProxyPrivate 1908s # { 1908s # GData *qdata; 1908s # }; 1908s # 1908s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_callable_iface_proxy_finalize (GObject *object) 1908s # { 1908s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 1908s # g_datalist_clear (&proxy->priv->qdata); 1908s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # const GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1908s # const gchar *sender_name G_GNUC_UNUSED, 1908s # const gchar *signal_name, 1908s # GVariant *parameters) 1908s # { 1908s # _ExtendedGDBusSignalInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # gsize n; 1908s # guint signal_id; 1908s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 1908s # if (info == NULL) 1908s # return; 1908s # num_params = g_variant_n_children (parameters); 1908s # paramv = g_new0 (GValue, num_params + 1); 1908s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1908s # g_value_set_object (¶mv[0], proxy); 1908s # g_variant_iter_init (&iter, parameters); 1908s # n = 1; 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1908s # g_signal_emitv (paramv, signal_id, 0, NULL); 1908s # for (n = 0; n < num_params + 1; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static void 1908s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1908s # GVariant *changed_properties, 1908s # const gchar *const *invalidated_properties) 1908s # { 1908s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 1908s # guint n; 1908s # const gchar *key; 1908s # GVariantIter *iter; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # g_variant_get (changed_properties, "a{sv}", &iter); 1908s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 1908s # g_datalist_remove_data (&proxy->priv->qdata, key); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # g_variant_iter_free (iter); 1908s # for (n = 0; invalidated_properties[n] != NULL; n++) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1908s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # } 1908s # 1908s # static void 1908s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 1908s # #else 1908s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 1908s # #endif 1908s # 1908s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 1908s # } 1908s # 1908s # static void 1908s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusProxyClass *proxy_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 1908s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 1908s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 1908s # 1908s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1908s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 1908s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_callable_iface_proxy_new: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_callable_iface_proxy_new ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.CallableIface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_callable_iface_proxy_new_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectCallableIface * 1908s # org_project_callable_iface_proxy_new_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_callable_iface_proxy_new_sync: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectCallableIface * 1908s # org_project_callable_iface_proxy_new_sync ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.CallableIface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /** 1908s # * org_project_callable_iface_proxy_new_for_bus: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_callable_iface_proxy_new_for_bus ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.CallableIface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_callable_iface_proxy_new_for_bus_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectCallableIface * 1908s # org_project_callable_iface_proxy_new_for_bus_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_callable_iface_proxy_new_for_bus_sync: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectCallableIface * 1908s # org_project_callable_iface_proxy_new_for_bus_sync ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.CallableIface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectCallableIfaceSkeleton: 1908s # * 1908s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectCallableIfaceSkeletonClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectCallableIfaceSkeleton. 1908s # */ 1908s # 1908s # struct _OrgProjectCallableIfaceSkeletonPrivate 1908s # { 1908s # GValue *properties; 1908s # GList *changed_properties; 1908s # GSource *changed_properties_idle_source; 1908s # GMainContext *context; 1908s # GMutex lock; 1908s # }; 1908s # 1908s # static void 1908s # _org_project_callable_iface_skeleton_handle_method_call ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name, 1908s # const gchar *method_name, 1908s # GVariant *parameters, 1908s # GDBusMethodInvocation *invocation, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1908s # _ExtendedGDBusMethodInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # guint num_extra; 1908s # gsize n; 1908s # guint signal_id; 1908s # GValue return_value = G_VALUE_INIT; 1908s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1908s # g_assert (info != NULL); 1908s # num_params = g_variant_n_children (parameters); 1908s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1908s # n = 0; 1908s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1908s # g_value_set_object (¶mv[n++], skeleton); 1908s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1908s # g_value_set_object (¶mv[n++], invocation); 1908s # if (info->pass_fdlist) 1908s # { 1908s # #ifdef G_OS_UNIX 1908s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1908s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1908s # #else 1908s # g_assert_not_reached (); 1908s # #endif 1908s # } 1908s # g_variant_iter_init (&iter, parameters); 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1908s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1908s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1908s # if (!g_value_get_boolean (&return_value)) 1908s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1908s # g_value_unset (&return_value); 1908s # for (n = 0; n < num_params + num_extra; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static GVariant * 1908s # _org_project_callable_iface_skeleton_handle_get_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # GVariant *ret; 1908s # ret = NULL; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # g_value_init (&value, pspec->value_type); 1908s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1908s # g_value_unset (&value); 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _org_project_callable_iface_skeleton_handle_set_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GVariant *variant, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # gboolean ret; 1908s # ret = FALSE; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # if (info->use_gvariant) 1908s # g_value_set_variant (&value, variant); 1908s # else 1908s # g_dbus_gvariant_to_gvalue (variant, &value); 1908s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # g_value_unset (&value); 1908s # ret = TRUE; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 1908s # { 1908s # _org_project_callable_iface_skeleton_handle_method_call, 1908s # _org_project_callable_iface_skeleton_handle_get_property, 1908s # _org_project_callable_iface_skeleton_handle_set_property, 1908s # {NULL} 1908s # }; 1908s # 1908s # static GDBusInterfaceInfo * 1908s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return org_project_callable_iface_interface_info (); 1908s # } 1908s # 1908s # static GDBusInterfaceVTable * 1908s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 1908s # } 1908s # 1908s # static GVariant * 1908s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1908s # { 1908s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 1908s # 1908s # GVariantBuilder builder; 1908s # guint n; 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1908s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #else 1908s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #endif 1908s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 1908s # goto out; 1908s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1908s # { 1908s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 1908s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1908s # { 1908s # GVariant *value; 1908s # value = _org_project_callable_iface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.CallableIface", info->name, NULL, skeleton); 1908s # if (value != NULL) 1908s # { 1908s # g_variant_take_ref (value); 1908s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1908s # g_variant_unref (value); 1908s # } 1908s # } 1908s # } 1908s # out: 1908s # return g_variant_builder_end (&builder); 1908s # } 1908s # 1908s # static void 1908s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_callable_iface_skeleton_finalize (GObject *object) 1908s # { 1908s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 1908s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1908s # if (skeleton->priv->changed_properties_idle_source != NULL) 1908s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1908s # g_main_context_unref (skeleton->priv->context); 1908s # g_mutex_clear (&skeleton->priv->lock); 1908s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 1908s # #else 1908s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 1908s # #endif 1908s # 1908s # g_mutex_init (&skeleton->priv->lock); 1908s # skeleton->priv->context = g_main_context_ref_thread_default (); 1908s # } 1908s # 1908s # static void 1908s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusInterfaceSkeletonClass *skeleton_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 1908s # 1908s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1908s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 1908s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 1908s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 1908s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_callable_iface_skeleton_new: 1908s # * 1908s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 1908s # */ 1908s # OrgProjectCallableIface * 1908s # org_project_callable_iface_skeleton_new (void) 1908s # { 1908s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 1908s # } 1908s # Error: 1908s ok 14 __main__.TestCodegen.test_generate_methods_marshallers_with_unix_fds 1908s # gdbus-codegen: /usr/bin/gdbus-codegen 1908s # tmpdir: /tmp/tmpftgbhv77 1908s # /tmp/tmpftgbhv77/tmpk28n92ex.xml: 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpftgbhv77/tmpk28n92ex.xml', '--output', '-', '--body'] 1908s # Return code: 0 1908s # Output: 1908s # /* 1908s # * This file is generated by gdbus-codegen, do not modify it. 1908s # * 1908s # * The license of this code is the same as for the D-Bus interface description 1908s # * it was derived from. Note that it links to GLib, so must comply with the 1908s # * LGPL linking clauses. 1908s # */ 1908s # 1908s # #ifdef HAVE_CONFIG_H 1908s # # include "config.h" 1908s # #endif 1908s # 1908s # #include 1908s # #ifdef G_OS_UNIX 1908s # # include 1908s # #endif 1908s # 1908s # #ifdef G_ENABLE_DEBUG 1908s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1908s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1908s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1908s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1908s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1908s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1908s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1908s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1908s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1908s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1908s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1908s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1908s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1908s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1908s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1908s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1908s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1908s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1908s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1908s # #else /* !G_ENABLE_DEBUG */ 1908s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1908s # * Do not access GValues directly in your code. Instead, use the 1908s # * g_value_get_*() functions 1908s # */ 1908s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1908s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1908s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1908s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1908s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1908s # #endif /* !G_ENABLE_DEBUG */ 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusArgInfo parent_struct; 1908s # gboolean use_gvariant; 1908s # } _ExtendedGDBusArgInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusMethodInfo parent_struct; 1908s # const gchar *signal_name; 1908s # gboolean pass_fdlist; 1908s # } _ExtendedGDBusMethodInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusSignalInfo parent_struct; 1908s # const gchar *signal_name; 1908s # } _ExtendedGDBusSignalInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusPropertyInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # guint use_gvariant : 1; 1908s # guint emits_changed_signal : 1; 1908s # } _ExtendedGDBusPropertyInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusInterfaceInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # } _ExtendedGDBusInterfaceInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # const _ExtendedGDBusPropertyInfo *info; 1908s # guint prop_id; 1908s # GValue orig_value; /* the value before the change */ 1908s # } ChangedProperty; 1908s # 1908s # static void 1908s # _changed_property_free (ChangedProperty *data) 1908s # { 1908s # g_value_unset (&data->orig_value); 1908s # g_free (data); 1908s # } 1908s # 1908s # static gboolean 1908s # _g_strv_equal0 (gchar **a, gchar **b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # guint n; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # if (g_strv_length (a) != g_strv_length (b)) 1908s # goto out; 1908s # for (n = 0; a[n] != NULL; n++) 1908s # if (g_strcmp0 (a[n], b[n]) != 0) 1908s # goto out; 1908s # ret = TRUE; 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _g_variant_equal0 (GVariant *a, GVariant *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # ret = g_variant_equal (a, b); 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # G_GNUC_UNUSED static gboolean 1908s # _g_value_equal (const GValue *a, const GValue *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1908s # switch (G_VALUE_TYPE (a)) 1908s # { 1908s # case G_TYPE_BOOLEAN: 1908s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1908s # break; 1908s # case G_TYPE_UCHAR: 1908s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1908s # break; 1908s # case G_TYPE_INT: 1908s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1908s # break; 1908s # case G_TYPE_UINT: 1908s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1908s # break; 1908s # case G_TYPE_INT64: 1908s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1908s # break; 1908s # case G_TYPE_UINT64: 1908s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1908s # break; 1908s # case G_TYPE_DOUBLE: 1908s # { 1908s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1908s # gdouble da = g_value_get_double (a); 1908s # gdouble db = g_value_get_double (b); 1908s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1908s # } 1908s # break; 1908s # case G_TYPE_STRING: 1908s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1908s # break; 1908s # case G_TYPE_VARIANT: 1908s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1908s # break; 1908s # default: 1908s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1908s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1908s # else 1908s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1908s # break; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static void 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_OBJECT_STRING ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint G_GNUC_UNUSED, 1908s # void *marshal_data) 1908s # { 1908s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectObjectStringFunc) 1908s # (void *data1, 1908s # GDBusMethodInvocation *arg_method_invocation, 1908s # GUnixFDList *arg_fd_list, 1908s # const gchar *arg_greeting, 1908s # void *data2); 1908s # _GDbusCodegenMarshalBoolean_ObjectObjectStringFunc callback; 1908s # GCClosure *cc = (GCClosure*) closure; 1908s # void *data1, *data2; 1908s # gboolean v_return; 1908s # 1908s # g_return_if_fail (return_value != NULL); 1908s # g_return_if_fail (n_param_values == 4); 1908s # 1908s # if (G_CCLOSURE_SWAP_DATA (closure)) 1908s # { 1908s # data1 = closure->data; 1908s # data2 = g_value_peek_pointer (param_values + 0); 1908s # } 1908s # else 1908s # { 1908s # data1 = g_value_peek_pointer (param_values + 0); 1908s # data2 = closure->data; 1908s # } 1908s # 1908s # callback = (_GDbusCodegenMarshalBoolean_ObjectObjectStringFunc) 1908s # (marshal_data ? marshal_data : cc->callback); 1908s # 1908s # v_return = 1908s # callback (data1, 1908s # g_marshal_value_peek_object (param_values + 1), 1908s # g_marshal_value_peek_object (param_values + 2), 1908s # g_marshal_value_peek_string (param_values + 3), 1908s # data2); 1908s # 1908s # g_value_set_boolean (return_value, v_return); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ 1908s # * Code for interface test.FDPassing 1908s # * ------------------------------------------------------------------------ 1908s # */ 1908s # 1908s # /** 1908s # * SECTION:TestFDPassing 1908s # * @title: TestFDPassing 1908s # * @short_description: Generated C code for the test.FDPassing D-Bus interface 1908s # * 1908s # * This section contains code for working with the test.FDPassing D-Bus interface in C. 1908s # */ 1908s # 1908s # /* ---- Introspection data for test.FDPassing ---- */ 1908s # 1908s # static const _ExtendedGDBusArgInfo _test_fdpassing_method_info_hello_fd_IN_ARG_greeting = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "greeting", 1908s # (gchar *) "s", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _test_fdpassing_method_info_hello_fd_IN_ARG_pointers[] = 1908s # { 1908s # &_test_fdpassing_method_info_hello_fd_IN_ARG_greeting.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _test_fdpassing_method_info_hello_fd_OUT_ARG_response = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "response", 1908s # (gchar *) "s", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _test_fdpassing_method_info_hello_fd_OUT_ARG_pointers[] = 1908s # { 1908s # &_test_fdpassing_method_info_hello_fd_OUT_ARG_response.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusMethodInfo _test_fdpassing_method_info_hello_fd = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "HelloFD", 1908s # (GDBusArgInfo **) &_test_fdpassing_method_info_hello_fd_IN_ARG_pointers, 1908s # (GDBusArgInfo **) &_test_fdpassing_method_info_hello_fd_OUT_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "handle-hello-fd", 1908s # TRUE 1908s # }; 1908s # 1908s # static const GDBusMethodInfo * const _test_fdpassing_method_info_pointers[] = 1908s # { 1908s # &_test_fdpassing_method_info_hello_fd.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusInterfaceInfo _test_fdpassing_interface_info = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "test.FDPassing", 1908s # (GDBusMethodInfo **) &_test_fdpassing_method_info_pointers, 1908s # NULL, 1908s # NULL, 1908s # NULL 1908s # }, 1908s # "test-fdpassing", 1908s # }; 1908s # 1908s # 1908s # /** 1908s # * test_fdpassing_interface_info: 1908s # * 1908s # * Gets a machine-readable description of the test.FDPassing D-Bus interface. 1908s # * 1908s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1908s # */ 1908s # GDBusInterfaceInfo * 1908s # test_fdpassing_interface_info (void) 1908s # { 1908s # return (GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct; 1908s # } 1908s # 1908s # /** 1908s # * test_fdpassing_override_properties: 1908s # * @klass: The class structure for a #GObject derived class. 1908s # * @property_id_begin: The property id to assign to the first overridden property. 1908s # * 1908s # * Overrides all #GObject properties in the #TestFDPassing interface for a concrete class. 1908s # * The properties are overridden in the order they are defined. 1908s # * 1908s # * Returns: The last property id. 1908s # */ 1908s # guint 1908s # test_fdpassing_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1908s # { 1908s # return property_id_begin - 1; 1908s # } 1908s # 1908s # 1908s # inline static void 1908s # test_fdpassing_method_marshal_hello_fd ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_OBJECT_STRING (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # 1908s # /** 1908s # * TestFDPassing: 1908s # * 1908s # * Abstract interface type for the D-Bus interface test.FDPassing. 1908s # */ 1908s # 1908s # /** 1908s # * TestFDPassingIface: 1908s # * @parent_iface: The parent interface. 1908s # * @handle_hello_fd: Handler for the #TestFDPassing::handle-hello-fd signal. 1908s # * 1908s # * Virtual table for the D-Bus interface test.FDPassing. 1908s # */ 1908s # 1908s # typedef TestFDPassingIface TestFDPassingInterface; 1908s # G_DEFINE_INTERFACE (TestFDPassing, test_fdpassing, G_TYPE_OBJECT) 1908s # 1908s # static void 1908s # test_fdpassing_default_init (TestFDPassingIface *iface) 1908s # { 1908s # /* GObject signals for incoming D-Bus method calls: */ 1908s # /** 1908s # * TestFDPassing::handle-hello-fd: 1908s # * @object: A #TestFDPassing. 1908s # * @invocation: A #GDBusMethodInvocation. 1908s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1908s # * @arg_greeting: Argument passed by remote caller. 1908s # * 1908s # * Signal emitted when a remote caller is invoking the HelloFD() D-Bus method. 1908s # * 1908s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call test_fdpassing_complete_hello_fd() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1908s # * 1908s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1908s # */ 1908s # g_signal_new ("handle-hello-fd", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (TestFDPassingIface, handle_hello_fd), 1908s # g_signal_accumulator_true_handled, 1908s # NULL, 1908s # test_fdpassing_method_marshal_hello_fd, 1908s # G_TYPE_BOOLEAN, 1908s # 3, 1908s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UNIX_FD_LIST, G_TYPE_STRING); 1908s # 1908s # } 1908s # 1908s # /** 1908s # * test_fdpassing_call_hello_fd: 1908s # * @proxy: A #TestFDPassingProxy. 1908s # * @arg_greeting: Argument to pass with the method invocation. 1908s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously invokes the HelloFD() D-Bus method on @proxy. 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call test_fdpassing_call_hello_fd_finish() to get the result of the operation. 1908s # * 1908s # * See test_fdpassing_call_hello_fd_sync() for the synchronous, blocking version of this method. 1908s # */ 1908s # void 1908s # test_fdpassing_call_hello_fd ( 1908s # TestFDPassing *proxy, 1908s # const gchar *arg_greeting, 1908s # GUnixFDList *fd_list, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_dbus_proxy_call_with_unix_fd_list (G_DBUS_PROXY (proxy), 1908s # "HelloFD", 1908s # g_variant_new ("(s)", 1908s # arg_greeting), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # fd_list, 1908s # cancellable, 1908s # callback, 1908s # user_data); 1908s # } 1908s # 1908s # /** 1908s # * test_fdpassing_call_hello_fd_finish: 1908s # * @proxy: A #TestFDPassingProxy. 1908s # * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @out_fd_list: (out) (optional) (nullable): Return location for a #GUnixFDList or %NULL to ignore. 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_call_hello_fd(). 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Finishes an operation started with test_fdpassing_call_hello_fd(). 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # test_fdpassing_call_hello_fd_finish ( 1908s # TestFDPassing *proxy, 1908s # gchar **out_response, 1908s # GUnixFDList **out_fd_list, 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_with_unix_fd_list_finish (G_DBUS_PROXY (proxy), out_fd_list, res, error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(s)", 1908s # out_response); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * test_fdpassing_call_hello_fd_sync: 1908s # * @proxy: A #TestFDPassingProxy. 1908s # * @arg_greeting: Argument to pass with the method invocation. 1908s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1908s # * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. 1908s # * @out_fd_list: (out) (optional) (nullable): Return location for a #GUnixFDList or %NULL. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL. 1908s # * 1908s # * Synchronously invokes the HelloFD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1908s # * 1908s # * See test_fdpassing_call_hello_fd() for the asynchronous version of this method. 1908s # * 1908s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1908s # */ 1908s # gboolean 1908s # test_fdpassing_call_hello_fd_sync ( 1908s # TestFDPassing *proxy, 1908s # const gchar *arg_greeting, 1908s # GUnixFDList *fd_list, 1908s # gchar **out_response, 1908s # GUnixFDList **out_fd_list, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GVariant *_ret; 1908s # _ret = g_dbus_proxy_call_with_unix_fd_list_sync (G_DBUS_PROXY (proxy), 1908s # "HelloFD", 1908s # g_variant_new ("(s)", 1908s # arg_greeting), 1908s # G_DBUS_CALL_FLAGS_NONE, 1908s # -1, 1908s # fd_list, 1908s # out_fd_list, 1908s # cancellable, 1908s # error); 1908s # if (_ret == NULL) 1908s # goto _out; 1908s # g_variant_get (_ret, 1908s # "(s)", 1908s # out_response); 1908s # g_variant_unref (_ret); 1908s # _out: 1908s # return _ret != NULL; 1908s # } 1908s # 1908s # /** 1908s # * test_fdpassing_complete_hello_fd: 1908s # * @object: A #TestFDPassing. 1908s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1908s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1908s # * @response: Parameter to return. 1908s # * 1908s # * Helper function used in service implementations to finish handling invocations of the HelloFD() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1908s # * 1908s # * This method will free @invocation, you cannot use it afterwards. 1908s # */ 1908s # void 1908s # test_fdpassing_complete_hello_fd ( 1908s # TestFDPassing *object G_GNUC_UNUSED, 1908s # GDBusMethodInvocation *invocation, 1908s # GUnixFDList *fd_list, 1908s # const gchar *response) 1908s # { 1908s # g_dbus_method_invocation_return_value_with_unix_fd_list (invocation, 1908s # g_variant_new ("(s)", 1908s # response), 1908s # fd_list); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * TestFDPassingProxy: 1908s # * 1908s # * The #TestFDPassingProxy structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * TestFDPassingProxyClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #TestFDPassingProxy. 1908s # */ 1908s # 1908s # struct _TestFDPassingProxyPrivate 1908s # { 1908s # GData *qdata; 1908s # }; 1908s # 1908s # static void test_fdpassing_proxy_iface_init (TestFDPassingIface *iface); 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingProxy, test_fdpassing_proxy, G_TYPE_DBUS_PROXY, 1908s # G_ADD_PRIVATE (TestFDPassingProxy) 1908s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_proxy_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingProxy, test_fdpassing_proxy, G_TYPE_DBUS_PROXY, 1908s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_proxy_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # test_fdpassing_proxy_finalize (GObject *object) 1908s # { 1908s # TestFDPassingProxy *proxy = TEST_FDPASSING_PROXY (object); 1908s # g_datalist_clear (&proxy->priv->qdata); 1908s # G_OBJECT_CLASS (test_fdpassing_proxy_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # test_fdpassing_proxy_get_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # test_fdpassing_proxy_set_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # const GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # test_fdpassing_proxy_g_signal (GDBusProxy *proxy, 1908s # const gchar *sender_name G_GNUC_UNUSED, 1908s # const gchar *signal_name, 1908s # GVariant *parameters) 1908s # { 1908s # _ExtendedGDBusSignalInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # gsize n; 1908s # guint signal_id; 1908s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, signal_name); 1908s # if (info == NULL) 1908s # return; 1908s # num_params = g_variant_n_children (parameters); 1908s # paramv = g_new0 (GValue, num_params + 1); 1908s # g_value_init (¶mv[0], TYPE_TEST_FDPASSING); 1908s # g_value_set_object (¶mv[0], proxy); 1908s # g_variant_iter_init (&iter, parameters); 1908s # n = 1; 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_TEST_FDPASSING); 1908s # g_signal_emitv (paramv, signal_id, 0, NULL); 1908s # for (n = 0; n < num_params + 1; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static void 1908s # test_fdpassing_proxy_g_properties_changed (GDBusProxy *_proxy, 1908s # GVariant *changed_properties, 1908s # const gchar *const *invalidated_properties) 1908s # { 1908s # TestFDPassingProxy *proxy = TEST_FDPASSING_PROXY (_proxy); 1908s # guint n; 1908s # const gchar *key; 1908s # GVariantIter *iter; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # g_variant_get (changed_properties, "a{sv}", &iter); 1908s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, key); 1908s # g_datalist_remove_data (&proxy->priv->qdata, key); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # g_variant_iter_free (iter); 1908s # for (n = 0; invalidated_properties[n] != NULL; n++) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, invalidated_properties[n]); 1908s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # } 1908s # 1908s # static void 1908s # test_fdpassing_proxy_init (TestFDPassingProxy *proxy) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # proxy->priv = test_fdpassing_proxy_get_instance_private (proxy); 1908s # #else 1908s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_TEST_FDPASSING_PROXY, TestFDPassingProxyPrivate); 1908s # #endif 1908s # 1908s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), test_fdpassing_interface_info ()); 1908s # } 1908s # 1908s # static void 1908s # test_fdpassing_proxy_class_init (TestFDPassingProxyClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusProxyClass *proxy_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = test_fdpassing_proxy_finalize; 1908s # gobject_class->get_property = test_fdpassing_proxy_get_property; 1908s # gobject_class->set_property = test_fdpassing_proxy_set_property; 1908s # 1908s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1908s # proxy_class->g_signal = test_fdpassing_proxy_g_signal; 1908s # proxy_class->g_properties_changed = test_fdpassing_proxy_g_properties_changed; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (TestFDPassingProxyPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # test_fdpassing_proxy_iface_init (TestFDPassingIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * test_fdpassing_proxy_new: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously creates a proxy for the D-Bus interface test.FDPassing. See g_dbus_proxy_new() for more details. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call test_fdpassing_proxy_new_finish() to get the result of the operation. 1908s # * 1908s # * See test_fdpassing_proxy_new_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # test_fdpassing_proxy_new ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_TEST_FDPASSING_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "test.FDPassing", NULL); 1908s # } 1908s # 1908s # /** 1908s # * test_fdpassing_proxy_new_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_proxy_new(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with test_fdpassing_proxy_new(). 1908s # * 1908s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # TestFDPassing * 1908s # test_fdpassing_proxy_new_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return TEST_FDPASSING (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * test_fdpassing_proxy_new_sync: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Synchronously creates a proxy for the D-Bus interface test.FDPassing. See g_dbus_proxy_new_sync() for more details. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See test_fdpassing_proxy_new() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # TestFDPassing * 1908s # test_fdpassing_proxy_new_sync ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_TEST_FDPASSING_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "test.FDPassing", NULL); 1908s # if (ret != NULL) 1908s # return TEST_FDPASSING (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /** 1908s # * test_fdpassing_proxy_new_for_bus: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Like test_fdpassing_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call test_fdpassing_proxy_new_for_bus_finish() to get the result of the operation. 1908s # * 1908s # * See test_fdpassing_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # test_fdpassing_proxy_new_for_bus ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_TEST_FDPASSING_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "test.FDPassing", NULL); 1908s # } 1908s # 1908s # /** 1908s # * test_fdpassing_proxy_new_for_bus_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_proxy_new_for_bus(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with test_fdpassing_proxy_new_for_bus(). 1908s # * 1908s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # TestFDPassing * 1908s # test_fdpassing_proxy_new_for_bus_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return TEST_FDPASSING (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * test_fdpassing_proxy_new_for_bus_sync: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Like test_fdpassing_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See test_fdpassing_proxy_new_for_bus() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # TestFDPassing * 1908s # test_fdpassing_proxy_new_for_bus_sync ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_TEST_FDPASSING_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "test.FDPassing", NULL); 1908s # if (ret != NULL) 1908s # return TEST_FDPASSING (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * TestFDPassingSkeleton: 1908s # * 1908s # * The #TestFDPassingSkeleton structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * TestFDPassingSkeletonClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #TestFDPassingSkeleton. 1908s # */ 1908s # 1908s # struct _TestFDPassingSkeletonPrivate 1908s # { 1908s # GValue *properties; 1908s # GList *changed_properties; 1908s # GSource *changed_properties_idle_source; 1908s # GMainContext *context; 1908s # GMutex lock; 1908s # }; 1908s # 1908s # static void 1908s # _test_fdpassing_skeleton_handle_method_call ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name, 1908s # const gchar *method_name, 1908s # GVariant *parameters, 1908s # GDBusMethodInvocation *invocation, 1908s # gpointer user_data) 1908s # { 1908s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 1908s # _ExtendedGDBusMethodInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # guint num_extra; 1908s # gsize n; 1908s # guint signal_id; 1908s # GValue return_value = G_VALUE_INIT; 1908s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1908s # g_assert (info != NULL); 1908s # num_params = g_variant_n_children (parameters); 1908s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1908s # n = 0; 1908s # g_value_init (¶mv[n], TYPE_TEST_FDPASSING); 1908s # g_value_set_object (¶mv[n++], skeleton); 1908s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1908s # g_value_set_object (¶mv[n++], invocation); 1908s # if (info->pass_fdlist) 1908s # { 1908s # #ifdef G_OS_UNIX 1908s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1908s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1908s # #else 1908s # g_assert_not_reached (); 1908s # #endif 1908s # } 1908s # g_variant_iter_init (&iter, parameters); 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_TEST_FDPASSING); 1908s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1908s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1908s # if (!g_value_get_boolean (&return_value)) 1908s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1908s # g_value_unset (&return_value); 1908s # for (n = 0; n < num_params + num_extra; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static GVariant * 1908s # _test_fdpassing_skeleton_handle_get_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # GVariant *ret; 1908s # ret = NULL; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # g_value_init (&value, pspec->value_type); 1908s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1908s # g_value_unset (&value); 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _test_fdpassing_skeleton_handle_set_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GVariant *variant, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # gboolean ret; 1908s # ret = FALSE; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # if (info->use_gvariant) 1908s # g_value_set_variant (&value, variant); 1908s # else 1908s # g_dbus_gvariant_to_gvalue (variant, &value); 1908s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # g_value_unset (&value); 1908s # ret = TRUE; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static const GDBusInterfaceVTable _test_fdpassing_skeleton_vtable = 1908s # { 1908s # _test_fdpassing_skeleton_handle_method_call, 1908s # _test_fdpassing_skeleton_handle_get_property, 1908s # _test_fdpassing_skeleton_handle_set_property, 1908s # {NULL} 1908s # }; 1908s # 1908s # static GDBusInterfaceInfo * 1908s # test_fdpassing_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return test_fdpassing_interface_info (); 1908s # } 1908s # 1908s # static GDBusInterfaceVTable * 1908s # test_fdpassing_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return (GDBusInterfaceVTable *) &_test_fdpassing_skeleton_vtable; 1908s # } 1908s # 1908s # static GVariant * 1908s # test_fdpassing_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1908s # { 1908s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (_skeleton); 1908s # 1908s # GVariantBuilder builder; 1908s # guint n; 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1908s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #else 1908s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #endif 1908s # if (_test_fdpassing_interface_info.parent_struct.properties == NULL) 1908s # goto out; 1908s # for (n = 0; _test_fdpassing_interface_info.parent_struct.properties[n] != NULL; n++) 1908s # { 1908s # GDBusPropertyInfo *info = _test_fdpassing_interface_info.parent_struct.properties[n]; 1908s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1908s # { 1908s # GVariant *value; 1908s # value = _test_fdpassing_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "test.FDPassing", info->name, NULL, skeleton); 1908s # if (value != NULL) 1908s # { 1908s # g_variant_take_ref (value); 1908s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1908s # g_variant_unref (value); 1908s # } 1908s # } 1908s # } 1908s # out: 1908s # return g_variant_builder_end (&builder); 1908s # } 1908s # 1908s # static void 1908s # test_fdpassing_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void test_fdpassing_skeleton_iface_init (TestFDPassingIface *iface); 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingSkeleton, test_fdpassing_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_ADD_PRIVATE (TestFDPassingSkeleton) 1908s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_skeleton_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingSkeleton, test_fdpassing_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_skeleton_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # test_fdpassing_skeleton_finalize (GObject *object) 1908s # { 1908s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (object); 1908s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1908s # if (skeleton->priv->changed_properties_idle_source != NULL) 1908s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1908s # g_main_context_unref (skeleton->priv->context); 1908s # g_mutex_clear (&skeleton->priv->lock); 1908s # G_OBJECT_CLASS (test_fdpassing_skeleton_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # test_fdpassing_skeleton_init (TestFDPassingSkeleton *skeleton) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # skeleton->priv = test_fdpassing_skeleton_get_instance_private (skeleton); 1908s # #else 1908s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_TEST_FDPASSING_SKELETON, TestFDPassingSkeletonPrivate); 1908s # #endif 1908s # 1908s # g_mutex_init (&skeleton->priv->lock); 1908s # skeleton->priv->context = g_main_context_ref_thread_default (); 1908s # } 1908s # 1908s # static void 1908s # test_fdpassing_skeleton_class_init (TestFDPassingSkeletonClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusInterfaceSkeletonClass *skeleton_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = test_fdpassing_skeleton_finalize; 1908s # 1908s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1908s # skeleton_class->get_info = test_fdpassing_skeleton_dbus_interface_get_info; 1908s # skeleton_class->get_properties = test_fdpassing_skeleton_dbus_interface_get_properties; 1908s # skeleton_class->flush = test_fdpassing_skeleton_dbus_interface_flush; 1908s # skeleton_class->get_vtable = test_fdpassing_skeleton_dbus_interface_get_vtable; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (TestFDPassingSkeletonPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # test_fdpassing_skeleton_iface_init (TestFDPassingIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * test_fdpassing_skeleton_new: 1908s # * 1908s # * Creates a skeleton object for the D-Bus interface test.FDPassing. 1908s # * 1908s # * Returns: (transfer full) (type TestFDPassingSkeleton): The skeleton object. 1908s # */ 1908s # TestFDPassing * 1908s # test_fdpassing_skeleton_new (void) 1908s # { 1908s # return TEST_FDPASSING (g_object_new (TYPE_TEST_FDPASSING_SKELETON, NULL)); 1908s # } 1908s # Error: 1908s ok 15 __main__.TestCodegen.test_generate_rst 1908s # gdbus-codegen: /usr/bin/gdbus-codegen 1908s # tmpdir: /tmp/tmp0e0ijt7q 1908s # /tmp/tmp0e0ijt7q/tmp6zrckgsc.xml: 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp0e0ijt7q/tmp6zrckgsc.xml', '--generate-rst', 'test'] 1908s # Return code: 0 1908s # Output: 1908s # 1908s # Error: 1908s ok 16 __main__.TestCodegen.test_generate_rst_method 1908s # gdbus-codegen: /usr/bin/gdbus-codegen 1908s # tmpdir: /tmp/tmpysw4df98 1908s # /tmp/tmpysw4df98/tmpkayptsfb.xml: 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpysw4df98/tmpkayptsfb.xml', '--generate-rst', 'test'] 1908s # Return code: 0 1908s # Output: 1908s # 1908s # Error: 1908s ok 17 __main__.TestCodegen.test_generate_rst_property 1908s # gdbus-codegen: /usr/bin/gdbus-codegen 1908s # tmpdir: /tmp/tmpw_tudier 1908s # /tmp/tmpw_tudier/tmp9ldbw680.xml: 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpw_tudier/tmp9ldbw680.xml', '--generate-rst', 'test'] 1908s # Return code: 0 1908s # Output: 1908s # 1908s # Error: 1908s ok 18 __main__.TestCodegen.test_generate_rst_signal 1908s # gdbus-codegen: /usr/bin/gdbus-codegen 1908s # tmpdir: /tmp/tmpe180td2p 1908s # /tmp/tmpe180td2p/tmposzow97t.xml: 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpe180td2p/tmposzow97t.xml', '--generate-rst', 'test'] 1908s # Return code: 0 1908s # Output: 1908s # 1908s # Error: 1908s ok 19 __main__.TestCodegen.test_generate_signal_id_multiple_signal_args_types 1908s # gdbus-codegen: /usr/bin/gdbus-codegen 1908s # tmpdir: /tmp/tmp51q557r2 1908s # /tmp/tmp51q557r2/tmpjfx5wk0n.xml: 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp51q557r2/tmpjfx5wk0n.xml', '--output', '-', '--body'] 1908s # Return code: 0 1908s # Output: 1908s # /* 1908s # * This file is generated by gdbus-codegen, do not modify it. 1908s # * 1908s # * The license of this code is the same as for the D-Bus interface description 1908s # * it was derived from. Note that it links to GLib, so must comply with the 1908s # * LGPL linking clauses. 1908s # */ 1908s # 1908s # #ifdef HAVE_CONFIG_H 1908s # # include "config.h" 1908s # #endif 1908s # 1908s # #include 1908s # #ifdef G_OS_UNIX 1908s # # include 1908s # #endif 1908s # 1908s # #ifdef G_ENABLE_DEBUG 1908s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1908s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1908s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1908s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1908s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1908s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1908s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1908s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1908s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1908s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1908s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1908s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1908s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1908s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1908s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1908s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1908s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1908s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1908s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1908s # #else /* !G_ENABLE_DEBUG */ 1908s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1908s # * Do not access GValues directly in your code. Instead, use the 1908s # * g_value_get_*() functions 1908s # */ 1908s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1908s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1908s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1908s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1908s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1908s # #endif /* !G_ENABLE_DEBUG */ 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusArgInfo parent_struct; 1908s # gboolean use_gvariant; 1908s # } _ExtendedGDBusArgInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusMethodInfo parent_struct; 1908s # const gchar *signal_name; 1908s # gboolean pass_fdlist; 1908s # } _ExtendedGDBusMethodInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusSignalInfo parent_struct; 1908s # const gchar *signal_name; 1908s # } _ExtendedGDBusSignalInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusPropertyInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # guint use_gvariant : 1; 1908s # guint emits_changed_signal : 1; 1908s # } _ExtendedGDBusPropertyInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusInterfaceInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # } _ExtendedGDBusInterfaceInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # const _ExtendedGDBusPropertyInfo *info; 1908s # guint prop_id; 1908s # GValue orig_value; /* the value before the change */ 1908s # } ChangedProperty; 1908s # 1908s # static void 1908s # _changed_property_free (ChangedProperty *data) 1908s # { 1908s # g_value_unset (&data->orig_value); 1908s # g_free (data); 1908s # } 1908s # 1908s # static gboolean 1908s # _g_strv_equal0 (gchar **a, gchar **b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # guint n; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # if (g_strv_length (a) != g_strv_length (b)) 1908s # goto out; 1908s # for (n = 0; a[n] != NULL; n++) 1908s # if (g_strcmp0 (a[n], b[n]) != 0) 1908s # goto out; 1908s # ret = TRUE; 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _g_variant_equal0 (GVariant *a, GVariant *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # ret = g_variant_equal (a, b); 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # G_GNUC_UNUSED static gboolean 1908s # _g_value_equal (const GValue *a, const GValue *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1908s # switch (G_VALUE_TYPE (a)) 1908s # { 1908s # case G_TYPE_BOOLEAN: 1908s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1908s # break; 1908s # case G_TYPE_UCHAR: 1908s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1908s # break; 1908s # case G_TYPE_INT: 1908s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1908s # break; 1908s # case G_TYPE_UINT: 1908s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1908s # break; 1908s # case G_TYPE_INT64: 1908s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1908s # break; 1908s # case G_TYPE_UINT64: 1908s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1908s # break; 1908s # case G_TYPE_DOUBLE: 1908s # { 1908s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1908s # gdouble da = g_value_get_double (a); 1908s # gdouble db = g_value_get_double (b); 1908s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1908s # } 1908s # break; 1908s # case G_TYPE_STRING: 1908s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1908s # break; 1908s # case G_TYPE_VARIANT: 1908s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1908s # break; 1908s # default: 1908s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1908s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1908s # else 1908s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1908s # break; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static void 1908s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 1908s # GClosure *closure, 1908s # GValue *return_value G_GNUC_UNUSED, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint G_GNUC_UNUSED, 1908s # void *marshal_data) 1908s # { 1908s # typedef void (*_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1908s # (void *data1, 1908s # gboolean arg_an_b, 1908s # guchar arg_an_y, 1908s # gint16 arg_an_n, 1908s # guint16 arg_an_q, 1908s # gint arg_an_i, 1908s # guint arg_an_u, 1908s # gint64 arg_an_x, 1908s # guint64 arg_an_t, 1908s # gdouble arg_an_d, 1908s # const gchar *arg_an_s, 1908s # const gchar *arg_an_o, 1908s # const gchar *arg_an_g, 1908s # GVariant *arg_an_h, 1908s # const gchar *arg_an_ay, 1908s # const gchar *const *arg_an_as, 1908s # const gchar *const *arg_an_ao, 1908s # const gchar *const *arg_an_aay, 1908s # GVariant *arg_an_asv, 1908s # void *data2); 1908s # _GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 1908s # GCClosure *cc = (GCClosure*) closure; 1908s # void *data1, *data2; 1908s # 1908s # g_return_if_fail (n_param_values == 19); 1908s # 1908s # if (G_CCLOSURE_SWAP_DATA (closure)) 1908s # { 1908s # data1 = closure->data; 1908s # data2 = g_value_peek_pointer (param_values + 0); 1908s # } 1908s # else 1908s # { 1908s # data1 = g_value_peek_pointer (param_values + 0); 1908s # data2 = closure->data; 1908s # } 1908s # 1908s # callback = (_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1908s # (marshal_data ? marshal_data : cc->callback); 1908s # 1908s # callback (data1, 1908s # g_marshal_value_peek_boolean (param_values + 1), 1908s # g_marshal_value_peek_uchar (param_values + 2), 1908s # g_marshal_value_peek_int (param_values + 3), 1908s # g_marshal_value_peek_uint (param_values + 4), 1908s # g_marshal_value_peek_int (param_values + 5), 1908s # g_marshal_value_peek_uint (param_values + 6), 1908s # g_marshal_value_peek_int64 (param_values + 7), 1908s # g_marshal_value_peek_uint64 (param_values + 8), 1908s # g_marshal_value_peek_double (param_values + 9), 1908s # g_marshal_value_peek_string (param_values + 10), 1908s # g_marshal_value_peek_string (param_values + 11), 1908s # g_marshal_value_peek_string (param_values + 12), 1908s # g_marshal_value_peek_variant (param_values + 13), 1908s # g_marshal_value_peek_string (param_values + 14), 1908s # g_marshal_value_peek_boxed (param_values + 15), 1908s # g_marshal_value_peek_boxed (param_values + 16), 1908s # g_marshal_value_peek_boxed (param_values + 17), 1908s # g_marshal_value_peek_variant (param_values + 18), 1908s # data2); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ 1908s # * Code for interface org.project.SignalingIface 1908s # * ------------------------------------------------------------------------ 1908s # */ 1908s # 1908s # /** 1908s # * SECTION:OrgProjectSignalingIface 1908s # * @title: OrgProjectSignalingIface 1908s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1908s # * 1908s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1908s # */ 1908s # 1908s # enum 1908s # { 1908s # _ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS, 1908s # }; 1908s # 1908s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 1908s # 1908s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_b", 1908s # (gchar *) "b", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_y", 1908s # (gchar *) "y", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_n", 1908s # (gchar *) "n", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_q", 1908s # (gchar *) "q", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_i", 1908s # (gchar *) "i", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_u", 1908s # (gchar *) "u", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_x", 1908s # (gchar *) "x", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_t", 1908s # (gchar *) "t", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_d", 1908s # (gchar *) "d", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_s", 1908s # (gchar *) "s", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_o", 1908s # (gchar *) "o", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_g", 1908s # (gchar *) "g", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_h", 1908s # (gchar *) "h", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_ay", 1908s # (gchar *) "ay", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_as", 1908s # (gchar *) "as", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_ao", 1908s # (gchar *) "ao", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_aay", 1908s # (gchar *) "aay", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_asv", 1908s # (gchar *) "a{sv}", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers[] = 1908s # { 1908s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_signal_with_many_args = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SignalWithManyArgs", 1908s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "signal-with-many-args" 1908s # }; 1908s # 1908s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1908s # { 1908s # &_org_project_signaling_iface_signal_info_signal_with_many_args.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "org.project.SignalingIface", 1908s # NULL, 1908s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1908s # NULL, 1908s # NULL 1908s # }, 1908s # "org-project-signaling-iface", 1908s # }; 1908s # 1908s # 1908s # /** 1908s # * org_project_signaling_iface_interface_info: 1908s # * 1908s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1908s # * 1908s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1908s # */ 1908s # GDBusInterfaceInfo * 1908s # org_project_signaling_iface_interface_info (void) 1908s # { 1908s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_override_properties: 1908s # * @klass: The class structure for a #GObject derived class. 1908s # * @property_id_begin: The property id to assign to the first overridden property. 1908s # * 1908s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1908s # * The properties are overridden in the order they are defined. 1908s # * 1908s # * Returns: The last property id. 1908s # */ 1908s # guint 1908s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1908s # { 1908s # return property_id_begin - 1; 1908s # } 1908s # 1908s # 1908s # inline static void 1908s # org_project_signaling_iface_signal_marshal_signal_with_many_args ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # 1908s # /** 1908s # * OrgProjectSignalingIface: 1908s # * 1908s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectSignalingIfaceIface: 1908s # * @parent_iface: The parent interface. 1908s # * @signal_with_many_args: Handler for the #OrgProjectSignalingIface::signal-with-many-args signal. 1908s # * 1908s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1908s # */ 1908s # 1908s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1908s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1908s # 1908s # static void 1908s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1908s # { 1908s # /* GObject signals for received D-Bus signals: */ 1908s # /** 1908s # * OrgProjectSignalingIface::signal-with-many-args: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_b: Argument. 1908s # * @arg_an_y: Argument. 1908s # * @arg_an_n: Argument. 1908s # * @arg_an_q: Argument. 1908s # * @arg_an_i: Argument. 1908s # * @arg_an_u: Argument. 1908s # * @arg_an_x: Argument. 1908s # * @arg_an_t: Argument. 1908s # * @arg_an_d: Argument. 1908s # * @arg_an_s: Argument. 1908s # * @arg_an_o: Argument. 1908s # * @arg_an_g: Argument. 1908s # * @arg_an_h: Argument. 1908s # * @arg_an_ay: Argument. 1908s # * @arg_an_as: Argument. 1908s # * @arg_an_ao: Argument. 1908s # * @arg_an_aay: Argument. 1908s # * @arg_an_asv: Argument. 1908s # * 1908s # * On the client-side, this signal is emitted whenever the D-Bus signal "SignalWithManyArgs" is received. 1908s # * 1908s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1908s # */ 1908s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS] = 1908s # g_signal_new ("signal-with-many-args", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, signal_with_many_args), 1908s # NULL, 1908s # NULL, 1908s # org_project_signaling_iface_signal_marshal_signal_with_many_args, 1908s # G_TYPE_NONE, 1908s # 18, G_TYPE_BOOLEAN, G_TYPE_UCHAR, G_TYPE_INT, G_TYPE_UINT, G_TYPE_INT, G_TYPE_UINT, G_TYPE_INT64, G_TYPE_UINT64, G_TYPE_DOUBLE, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_VARIANT, G_TYPE_STRING, G_TYPE_STRV, G_TYPE_STRV, G_TYPE_STRV, G_TYPE_VARIANT); 1908s # 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_emit_signal_with_many_args: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_b: Argument to pass with the signal. 1908s # * @arg_an_y: Argument to pass with the signal. 1908s # * @arg_an_n: Argument to pass with the signal. 1908s # * @arg_an_q: Argument to pass with the signal. 1908s # * @arg_an_i: Argument to pass with the signal. 1908s # * @arg_an_u: Argument to pass with the signal. 1908s # * @arg_an_x: Argument to pass with the signal. 1908s # * @arg_an_t: Argument to pass with the signal. 1908s # * @arg_an_d: Argument to pass with the signal. 1908s # * @arg_an_s: Argument to pass with the signal. 1908s # * @arg_an_o: Argument to pass with the signal. 1908s # * @arg_an_g: Argument to pass with the signal. 1908s # * @arg_an_h: Argument to pass with the signal. 1908s # * @arg_an_ay: Argument to pass with the signal. 1908s # * @arg_an_as: Argument to pass with the signal. 1908s # * @arg_an_ao: Argument to pass with the signal. 1908s # * @arg_an_aay: Argument to pass with the signal. 1908s # * @arg_an_asv: Argument to pass with the signal. 1908s # * 1908s # * Emits the "SignalWithManyArgs" D-Bus signal. 1908s # */ 1908s # void 1908s # org_project_signaling_iface_emit_signal_with_many_args ( 1908s # OrgProjectSignalingIface *object, 1908s # gboolean arg_an_b, 1908s # guchar arg_an_y, 1908s # gint16 arg_an_n, 1908s # guint16 arg_an_q, 1908s # gint arg_an_i, 1908s # guint arg_an_u, 1908s # gint64 arg_an_x, 1908s # guint64 arg_an_t, 1908s # gdouble arg_an_d, 1908s # const gchar *arg_an_s, 1908s # const gchar *arg_an_o, 1908s # const gchar *arg_an_g, 1908s # GVariant *arg_an_h, 1908s # const gchar *arg_an_ay, 1908s # const gchar *const *arg_an_as, 1908s # const gchar *const *arg_an_ao, 1908s # const gchar *const *arg_an_aay, 1908s # GVariant *arg_an_asv) 1908s # { 1908s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS], 0, arg_an_b, arg_an_y, arg_an_n, arg_an_q, arg_an_i, arg_an_u, arg_an_x, arg_an_t, arg_an_d, arg_an_s, arg_an_o, arg_an_g, arg_an_h, arg_an_ay, arg_an_as, arg_an_ao, arg_an_aay, arg_an_asv); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectSignalingIfaceProxy: 1908s # * 1908s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectSignalingIfaceProxyClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectSignalingIfaceProxy. 1908s # */ 1908s # 1908s # struct _OrgProjectSignalingIfaceProxyPrivate 1908s # { 1908s # GData *qdata; 1908s # }; 1908s # 1908s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_signaling_iface_proxy_finalize (GObject *object) 1908s # { 1908s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1908s # g_datalist_clear (&proxy->priv->qdata); 1908s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # const GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1908s # const gchar *sender_name G_GNUC_UNUSED, 1908s # const gchar *signal_name, 1908s # GVariant *parameters) 1908s # { 1908s # _ExtendedGDBusSignalInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # gsize n; 1908s # guint signal_id; 1908s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1908s # if (info == NULL) 1908s # return; 1908s # num_params = g_variant_n_children (parameters); 1908s # paramv = g_new0 (GValue, num_params + 1); 1908s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1908s # g_value_set_object (¶mv[0], proxy); 1908s # g_variant_iter_init (&iter, parameters); 1908s # n = 1; 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1908s # g_signal_emitv (paramv, signal_id, 0, NULL); 1908s # for (n = 0; n < num_params + 1; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static void 1908s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1908s # GVariant *changed_properties, 1908s # const gchar *const *invalidated_properties) 1908s # { 1908s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1908s # guint n; 1908s # const gchar *key; 1908s # GVariantIter *iter; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # g_variant_get (changed_properties, "a{sv}", &iter); 1908s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1908s # g_datalist_remove_data (&proxy->priv->qdata, key); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # g_variant_iter_free (iter); 1908s # for (n = 0; invalidated_properties[n] != NULL; n++) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1908s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # } 1908s # 1908s # static void 1908s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1908s # #else 1908s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1908s # #endif 1908s # 1908s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1908s # } 1908s # 1908s # static void 1908s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusProxyClass *proxy_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1908s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1908s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1908s # 1908s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1908s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1908s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_proxy_new: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_signaling_iface_proxy_new ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_proxy_new_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectSignalingIface * 1908s # org_project_signaling_iface_proxy_new_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_proxy_new_sync: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectSignalingIface * 1908s # org_project_signaling_iface_proxy_new_sync ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /** 1908s # * org_project_signaling_iface_proxy_new_for_bus: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_signaling_iface_proxy_new_for_bus ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectSignalingIface * 1908s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectSignalingIface * 1908s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectSignalingIfaceSkeleton: 1908s # * 1908s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectSignalingIfaceSkeletonClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1908s # */ 1908s # 1908s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1908s # { 1908s # GValue *properties; 1908s # GList *changed_properties; 1908s # GSource *changed_properties_idle_source; 1908s # GMainContext *context; 1908s # GMutex lock; 1908s # }; 1908s # 1908s # static void 1908s # _org_project_signaling_iface_skeleton_handle_method_call ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name, 1908s # const gchar *method_name, 1908s # GVariant *parameters, 1908s # GDBusMethodInvocation *invocation, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1908s # _ExtendedGDBusMethodInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # guint num_extra; 1908s # gsize n; 1908s # guint signal_id; 1908s # GValue return_value = G_VALUE_INIT; 1908s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1908s # g_assert (info != NULL); 1908s # num_params = g_variant_n_children (parameters); 1908s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1908s # n = 0; 1908s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1908s # g_value_set_object (¶mv[n++], skeleton); 1908s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1908s # g_value_set_object (¶mv[n++], invocation); 1908s # if (info->pass_fdlist) 1908s # { 1908s # #ifdef G_OS_UNIX 1908s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1908s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1908s # #else 1908s # g_assert_not_reached (); 1908s # #endif 1908s # } 1908s # g_variant_iter_init (&iter, parameters); 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1908s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1908s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1908s # if (!g_value_get_boolean (&return_value)) 1908s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1908s # g_value_unset (&return_value); 1908s # for (n = 0; n < num_params + num_extra; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static GVariant * 1908s # _org_project_signaling_iface_skeleton_handle_get_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # GVariant *ret; 1908s # ret = NULL; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # g_value_init (&value, pspec->value_type); 1908s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1908s # g_value_unset (&value); 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _org_project_signaling_iface_skeleton_handle_set_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GVariant *variant, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # gboolean ret; 1908s # ret = FALSE; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # if (info->use_gvariant) 1908s # g_value_set_variant (&value, variant); 1908s # else 1908s # g_dbus_gvariant_to_gvalue (variant, &value); 1908s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # g_value_unset (&value); 1908s # ret = TRUE; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1908s # { 1908s # _org_project_signaling_iface_skeleton_handle_method_call, 1908s # _org_project_signaling_iface_skeleton_handle_get_property, 1908s # _org_project_signaling_iface_skeleton_handle_set_property, 1908s # {NULL} 1908s # }; 1908s # 1908s # static GDBusInterfaceInfo * 1908s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return org_project_signaling_iface_interface_info (); 1908s # } 1908s # 1908s # static GDBusInterfaceVTable * 1908s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1908s # } 1908s # 1908s # static GVariant * 1908s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1908s # 1908s # GVariantBuilder builder; 1908s # guint n; 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1908s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #else 1908s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #endif 1908s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1908s # goto out; 1908s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1908s # { 1908s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1908s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1908s # { 1908s # GVariant *value; 1908s # value = _org_project_signaling_iface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", info->name, NULL, skeleton); 1908s # if (value != NULL) 1908s # { 1908s # g_variant_take_ref (value); 1908s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1908s # g_variant_unref (value); 1908s # } 1908s # } 1908s # } 1908s # out: 1908s # return g_variant_builder_end (&builder); 1908s # } 1908s # 1908s # static void 1908s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # _org_project_signaling_iface_on_signal_signal_with_many_args ( 1908s # OrgProjectSignalingIface *object, 1908s # gboolean arg_an_b, 1908s # guchar arg_an_y, 1908s # gint16 arg_an_n, 1908s # guint16 arg_an_q, 1908s # gint arg_an_i, 1908s # guint arg_an_u, 1908s # gint64 arg_an_x, 1908s # guint64 arg_an_t, 1908s # gdouble arg_an_d, 1908s # const gchar *arg_an_s, 1908s # const gchar *arg_an_o, 1908s # const gchar *arg_an_g, 1908s # GVariant *arg_an_h, 1908s # const gchar *arg_an_ay, 1908s # const gchar *const *arg_an_as, 1908s # const gchar *const *arg_an_ao, 1908s # const gchar *const *arg_an_aay, 1908s # GVariant *arg_an_asv) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1908s # 1908s # GList *connections, *l; 1908s # GVariant *signal_variant; 1908s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1908s # 1908s # signal_variant = g_variant_ref_sink (g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1908s # arg_an_b, 1908s # arg_an_y, 1908s # arg_an_n, 1908s # arg_an_q, 1908s # arg_an_i, 1908s # arg_an_u, 1908s # arg_an_x, 1908s # arg_an_t, 1908s # arg_an_d, 1908s # arg_an_s, 1908s # arg_an_o, 1908s # arg_an_g, 1908s # arg_an_h, 1908s # arg_an_ay, 1908s # arg_an_as, 1908s # arg_an_ao, 1908s # arg_an_aay, 1908s # arg_an_asv)); 1908s # for (l = connections; l != NULL; l = l->next) 1908s # { 1908s # GDBusConnection *connection = l->data; 1908s # g_dbus_connection_emit_signal (connection, 1908s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SignalWithManyArgs", 1908s # signal_variant, NULL); 1908s # } 1908s # g_variant_unref (signal_variant); 1908s # g_list_free_full (connections, g_object_unref); 1908s # } 1908s # 1908s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1908s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1908s # if (skeleton->priv->changed_properties_idle_source != NULL) 1908s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1908s # g_main_context_unref (skeleton->priv->context); 1908s # g_mutex_clear (&skeleton->priv->lock); 1908s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1908s # #else 1908s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1908s # #endif 1908s # 1908s # g_mutex_init (&skeleton->priv->lock); 1908s # skeleton->priv->context = g_main_context_ref_thread_default (); 1908s # } 1908s # 1908s # static void 1908s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusInterfaceSkeletonClass *skeleton_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1908s # 1908s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1908s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1908s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1908s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1908s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1908s # { 1908s # iface->signal_with_many_args = _org_project_signaling_iface_on_signal_signal_with_many_args; 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_skeleton_new: 1908s # * 1908s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1908s # */ 1908s # OrgProjectSignalingIface * 1908s # org_project_signaling_iface_skeleton_new (void) 1908s # { 1908s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1908s # } 1908s # Error: 1908s ok 20 __main__.TestCodegen.test_generate_signal_id_multiple_signals_types 1908s # gdbus-codegen: /usr/bin/gdbus-codegen 1908s # tmpdir: /tmp/tmp876nldij 1908s # /tmp/tmp876nldij/tmpi72j_veh.xml: 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp876nldij/tmpi72j_veh.xml', '--output', '-', '--body'] 1908s # Return code: 0 1908s # Output: 1908s # /* 1908s # * This file is generated by gdbus-codegen, do not modify it. 1908s # * 1908s # * The license of this code is the same as for the D-Bus interface description 1908s # * it was derived from. Note that it links to GLib, so must comply with the 1908s # * LGPL linking clauses. 1908s # */ 1908s # 1908s # #ifdef HAVE_CONFIG_H 1908s # # include "config.h" 1908s # #endif 1908s # 1908s # #include 1908s # #ifdef G_OS_UNIX 1908s # # include 1908s # #endif 1908s # 1908s # #ifdef G_ENABLE_DEBUG 1908s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1908s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1908s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1908s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1908s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1908s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1908s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1908s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1908s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1908s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1908s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1908s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1908s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1908s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1908s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1908s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1908s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1908s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1908s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1908s # #else /* !G_ENABLE_DEBUG */ 1908s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1908s # * Do not access GValues directly in your code. Instead, use the 1908s # * g_value_get_*() functions 1908s # */ 1908s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1908s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1908s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1908s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1908s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1908s # #endif /* !G_ENABLE_DEBUG */ 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusArgInfo parent_struct; 1908s # gboolean use_gvariant; 1908s # } _ExtendedGDBusArgInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusMethodInfo parent_struct; 1908s # const gchar *signal_name; 1908s # gboolean pass_fdlist; 1908s # } _ExtendedGDBusMethodInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusSignalInfo parent_struct; 1908s # const gchar *signal_name; 1908s # } _ExtendedGDBusSignalInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusPropertyInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # guint use_gvariant : 1; 1908s # guint emits_changed_signal : 1; 1908s # } _ExtendedGDBusPropertyInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusInterfaceInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # } _ExtendedGDBusInterfaceInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # const _ExtendedGDBusPropertyInfo *info; 1908s # guint prop_id; 1908s # GValue orig_value; /* the value before the change */ 1908s # } ChangedProperty; 1908s # 1908s # static void 1908s # _changed_property_free (ChangedProperty *data) 1908s # { 1908s # g_value_unset (&data->orig_value); 1908s # g_free (data); 1908s # } 1908s # 1908s # static gboolean 1908s # _g_strv_equal0 (gchar **a, gchar **b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # guint n; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # if (g_strv_length (a) != g_strv_length (b)) 1908s # goto out; 1908s # for (n = 0; a[n] != NULL; n++) 1908s # if (g_strcmp0 (a[n], b[n]) != 0) 1908s # goto out; 1908s # ret = TRUE; 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _g_variant_equal0 (GVariant *a, GVariant *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # ret = g_variant_equal (a, b); 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # G_GNUC_UNUSED static gboolean 1908s # _g_value_equal (const GValue *a, const GValue *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1908s # switch (G_VALUE_TYPE (a)) 1908s # { 1908s # case G_TYPE_BOOLEAN: 1908s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1908s # break; 1908s # case G_TYPE_UCHAR: 1908s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1908s # break; 1908s # case G_TYPE_INT: 1908s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1908s # break; 1908s # case G_TYPE_UINT: 1908s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1908s # break; 1908s # case G_TYPE_INT64: 1908s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1908s # break; 1908s # case G_TYPE_UINT64: 1908s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1908s # break; 1908s # case G_TYPE_DOUBLE: 1908s # { 1908s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1908s # gdouble da = g_value_get_double (a); 1908s # gdouble db = g_value_get_double (b); 1908s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1908s # } 1908s # break; 1908s # case G_TYPE_STRING: 1908s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1908s # break; 1908s # case G_TYPE_VARIANT: 1908s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1908s # break; 1908s # default: 1908s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1908s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1908s # else 1908s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1908s # break; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static void 1908s # _g_dbus_codegen_marshal_VOID__INT64 ( 1908s # GClosure *closure, 1908s # GValue *return_value G_GNUC_UNUSED, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint G_GNUC_UNUSED, 1908s # void *marshal_data) 1908s # { 1908s # typedef void (*_GDbusCodegenMarshalVoid_Int64Func) 1908s # (void *data1, 1908s # gint64 arg_an_x, 1908s # void *data2); 1908s # _GDbusCodegenMarshalVoid_Int64Func callback; 1908s # GCClosure *cc = (GCClosure*) closure; 1908s # void *data1, *data2; 1908s # 1908s # g_return_if_fail (n_param_values == 2); 1908s # 1908s # if (G_CCLOSURE_SWAP_DATA (closure)) 1908s # { 1908s # data1 = closure->data; 1908s # data2 = g_value_peek_pointer (param_values + 0); 1908s # } 1908s # else 1908s # { 1908s # data1 = g_value_peek_pointer (param_values + 0); 1908s # data2 = closure->data; 1908s # } 1908s # 1908s # callback = (_GDbusCodegenMarshalVoid_Int64Func) 1908s # (marshal_data ? marshal_data : cc->callback); 1908s # 1908s # callback (data1, 1908s # g_marshal_value_peek_int64 (param_values + 1), 1908s # data2); 1908s # } 1908s # 1908s # static void 1908s # _g_dbus_codegen_marshal_VOID__UINT64 ( 1908s # GClosure *closure, 1908s # GValue *return_value G_GNUC_UNUSED, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint G_GNUC_UNUSED, 1908s # void *marshal_data) 1908s # { 1908s # typedef void (*_GDbusCodegenMarshalVoid_Uint64Func) 1908s # (void *data1, 1908s # guint64 arg_an_t, 1908s # void *data2); 1908s # _GDbusCodegenMarshalVoid_Uint64Func callback; 1908s # GCClosure *cc = (GCClosure*) closure; 1908s # void *data1, *data2; 1908s # 1908s # g_return_if_fail (n_param_values == 2); 1908s # 1908s # if (G_CCLOSURE_SWAP_DATA (closure)) 1908s # { 1908s # data1 = closure->data; 1908s # data2 = g_value_peek_pointer (param_values + 0); 1908s # } 1908s # else 1908s # { 1908s # data1 = g_value_peek_pointer (param_values + 0); 1908s # data2 = closure->data; 1908s # } 1908s # 1908s # callback = (_GDbusCodegenMarshalVoid_Uint64Func) 1908s # (marshal_data ? marshal_data : cc->callback); 1908s # 1908s # callback (data1, 1908s # g_marshal_value_peek_uint64 (param_values + 1), 1908s # data2); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ 1908s # * Code for interface org.project.SignalingIface 1908s # * ------------------------------------------------------------------------ 1908s # */ 1908s # 1908s # /** 1908s # * SECTION:OrgProjectSignalingIface 1908s # * @title: OrgProjectSignalingIface 1908s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1908s # * 1908s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1908s # */ 1908s # 1908s # enum 1908s # { 1908s # _ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL, 1908s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B, 1908s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y, 1908s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N, 1908s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q, 1908s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I, 1908s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U, 1908s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X, 1908s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T, 1908s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D, 1908s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S, 1908s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O, 1908s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G, 1908s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H, 1908s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY, 1908s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS, 1908s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO, 1908s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY, 1908s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV, 1908s # }; 1908s # 1908s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[19] = { 0 }; 1908s # 1908s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1908s # 1908s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_no_arg_signal = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "NoArgSignal", 1908s # NULL, 1908s # NULL 1908s # }, 1908s # "no-arg-signal" 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_an_b = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_b", 1908s # (gchar *) "b", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers[] = 1908s # { 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_an_b.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_b = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SingleArgSignalB", 1908s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "single-arg-signal-b" 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_an_y = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_y", 1908s # (gchar *) "y", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers[] = 1908s # { 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_an_y.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_y = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SingleArgSignalY", 1908s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "single-arg-signal-y" 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_an_n = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_n", 1908s # (gchar *) "n", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers[] = 1908s # { 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_an_n.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_n = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SingleArgSignalN", 1908s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "single-arg-signal-n" 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_an_q = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_q", 1908s # (gchar *) "q", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers[] = 1908s # { 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_an_q.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_q = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SingleArgSignalQ", 1908s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "single-arg-signal-q" 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_an_i = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_i", 1908s # (gchar *) "i", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers[] = 1908s # { 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_an_i.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_i = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SingleArgSignalI", 1908s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "single-arg-signal-i" 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_an_u = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_u", 1908s # (gchar *) "u", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers[] = 1908s # { 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_an_u.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_u = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SingleArgSignalU", 1908s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "single-arg-signal-u" 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_an_x = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_x", 1908s # (gchar *) "x", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers[] = 1908s # { 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_an_x.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_x = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SingleArgSignalX", 1908s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "single-arg-signal-x" 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_an_t = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_t", 1908s # (gchar *) "t", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers[] = 1908s # { 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_an_t.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_t = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SingleArgSignalT", 1908s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "single-arg-signal-t" 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_an_d = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_d", 1908s # (gchar *) "d", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers[] = 1908s # { 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_an_d.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_d = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SingleArgSignalD", 1908s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "single-arg-signal-d" 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_an_s = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_s", 1908s # (gchar *) "s", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers[] = 1908s # { 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_an_s.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_s = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SingleArgSignalS", 1908s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "single-arg-signal-s" 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_an_o = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_o", 1908s # (gchar *) "o", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers[] = 1908s # { 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_an_o.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_o = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SingleArgSignalO", 1908s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "single-arg-signal-o" 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_an_g = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_g", 1908s # (gchar *) "g", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers[] = 1908s # { 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_an_g.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_g = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SingleArgSignalG", 1908s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "single-arg-signal-g" 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_an_h = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_h", 1908s # (gchar *) "h", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers[] = 1908s # { 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_an_h.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_h = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SingleArgSignalH", 1908s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "single-arg-signal-h" 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_an_ay = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_ay", 1908s # (gchar *) "ay", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers[] = 1908s # { 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_an_ay.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SingleArgSignalAY", 1908s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "single-arg-signal-ay" 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_an_as = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_as", 1908s # (gchar *) "as", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers[] = 1908s # { 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_an_as.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_as = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SingleArgSignalAS", 1908s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "single-arg-signal-as" 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_an_ao = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_ao", 1908s # (gchar *) "ao", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers[] = 1908s # { 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_an_ao.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SingleArgSignalAO", 1908s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "single-arg-signal-ao" 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_an_aay = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_aay", 1908s # (gchar *) "aay", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers[] = 1908s # { 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_an_aay.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SingleArgSignalAAY", 1908s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "single-arg-signal-aay" 1908s # }; 1908s # 1908s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_an_asv = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "an_asv", 1908s # (gchar *) "a{sv}", 1908s # NULL 1908s # }, 1908s # FALSE 1908s # }; 1908s # 1908s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers[] = 1908s # { 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_an_asv.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SingleArgSignalASV", 1908s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers, 1908s # NULL 1908s # }, 1908s # "single-arg-signal-asv" 1908s # }; 1908s # 1908s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1908s # { 1908s # &_org_project_signaling_iface_signal_info_no_arg_signal.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_b.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_y.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_n.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_q.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_i.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_u.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_x.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_t.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_d.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_s.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_o.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_g.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_h.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_as.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay.parent_struct, 1908s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "org.project.SignalingIface", 1908s # NULL, 1908s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1908s # NULL, 1908s # NULL 1908s # }, 1908s # "org-project-signaling-iface", 1908s # }; 1908s # 1908s # 1908s # /** 1908s # * org_project_signaling_iface_interface_info: 1908s # * 1908s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1908s # * 1908s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1908s # */ 1908s # GDBusInterfaceInfo * 1908s # org_project_signaling_iface_interface_info (void) 1908s # { 1908s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_override_properties: 1908s # * @klass: The class structure for a #GObject derived class. 1908s # * @property_id_begin: The property id to assign to the first overridden property. 1908s # * 1908s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1908s # * The properties are overridden in the order they are defined. 1908s # * 1908s # * Returns: The last property id. 1908s # */ 1908s # guint 1908s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1908s # { 1908s # return property_id_begin - 1; 1908s # } 1908s # 1908s # 1908s # inline static void 1908s # org_project_signaling_iface_signal_marshal_no_arg_signal ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # g_cclosure_marshal_VOID__VOID (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # inline static void 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_b ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # g_cclosure_marshal_VOID__BOOLEAN (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # inline static void 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_y ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # g_cclosure_marshal_VOID__UCHAR (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # inline static void 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_n ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # g_cclosure_marshal_VOID__INT (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # inline static void 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_q ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # g_cclosure_marshal_VOID__UINT (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # inline static void 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_i ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # g_cclosure_marshal_VOID__INT (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # inline static void 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_u ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # g_cclosure_marshal_VOID__UINT (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # inline static void 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_x ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # _g_dbus_codegen_marshal_VOID__INT64 (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # inline static void 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_t ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # _g_dbus_codegen_marshal_VOID__UINT64 (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # inline static void 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_d ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # g_cclosure_marshal_VOID__DOUBLE (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # inline static void 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_s ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # g_cclosure_marshal_VOID__STRING (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # inline static void 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_o ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # g_cclosure_marshal_VOID__STRING (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # inline static void 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_g ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # g_cclosure_marshal_VOID__STRING (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # inline static void 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_h ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # g_cclosure_marshal_VOID__VARIANT (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # inline static void 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # g_cclosure_marshal_VOID__STRING (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # inline static void 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_as ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # g_cclosure_marshal_VOID__BOXED (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # inline static void 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # g_cclosure_marshal_VOID__BOXED (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # inline static void 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # g_cclosure_marshal_VOID__BOXED (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # inline static void 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # g_cclosure_marshal_VOID__VARIANT (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # 1908s # /** 1908s # * OrgProjectSignalingIface: 1908s # * 1908s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectSignalingIfaceIface: 1908s # * @parent_iface: The parent interface. 1908s # * @no_arg_signal: Handler for the #OrgProjectSignalingIface::no-arg-signal signal. 1908s # * @single_arg_signal_aay: Handler for the #OrgProjectSignalingIface::single-arg-signal-aay signal. 1908s # * @single_arg_signal_ao: Handler for the #OrgProjectSignalingIface::single-arg-signal-ao signal. 1908s # * @single_arg_signal_as: Handler for the #OrgProjectSignalingIface::single-arg-signal-as signal. 1908s # * @single_arg_signal_asv: Handler for the #OrgProjectSignalingIface::single-arg-signal-asv signal. 1908s # * @single_arg_signal_ay: Handler for the #OrgProjectSignalingIface::single-arg-signal-ay signal. 1908s # * @single_arg_signal_b: Handler for the #OrgProjectSignalingIface::single-arg-signal-b signal. 1908s # * @single_arg_signal_d: Handler for the #OrgProjectSignalingIface::single-arg-signal-d signal. 1908s # * @single_arg_signal_g: Handler for the #OrgProjectSignalingIface::single-arg-signal-g signal. 1908s # * @single_arg_signal_h: Handler for the #OrgProjectSignalingIface::single-arg-signal-h signal. 1908s # * @single_arg_signal_i: Handler for the #OrgProjectSignalingIface::single-arg-signal-i signal. 1908s # * @single_arg_signal_n: Handler for the #OrgProjectSignalingIface::single-arg-signal-n signal. 1908s # * @single_arg_signal_o: Handler for the #OrgProjectSignalingIface::single-arg-signal-o signal. 1908s # * @single_arg_signal_q: Handler for the #OrgProjectSignalingIface::single-arg-signal-q signal. 1908s # * @single_arg_signal_s: Handler for the #OrgProjectSignalingIface::single-arg-signal-s signal. 1908s # * @single_arg_signal_t: Handler for the #OrgProjectSignalingIface::single-arg-signal-t signal. 1908s # * @single_arg_signal_u: Handler for the #OrgProjectSignalingIface::single-arg-signal-u signal. 1908s # * @single_arg_signal_x: Handler for the #OrgProjectSignalingIface::single-arg-signal-x signal. 1908s # * @single_arg_signal_y: Handler for the #OrgProjectSignalingIface::single-arg-signal-y signal. 1908s # * 1908s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1908s # */ 1908s # 1908s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1908s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1908s # 1908s # static void 1908s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1908s # { 1908s # /* GObject signals for received D-Bus signals: */ 1908s # /** 1908s # * OrgProjectSignalingIface::no-arg-signal: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * 1908s # * On the client-side, this signal is emitted whenever the D-Bus signal "NoArgSignal" is received. 1908s # * 1908s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1908s # */ 1908s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL] = 1908s # g_signal_new ("no-arg-signal", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, no_arg_signal), 1908s # NULL, 1908s # NULL, 1908s # org_project_signaling_iface_signal_marshal_no_arg_signal, 1908s # G_TYPE_NONE, 1908s # 0); 1908s # 1908s # /** 1908s # * OrgProjectSignalingIface::single-arg-signal-b: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_b: Argument. 1908s # * 1908s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalB" is received. 1908s # * 1908s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1908s # */ 1908s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B] = 1908s # g_signal_new ("single-arg-signal-b", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_b), 1908s # NULL, 1908s # NULL, 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_b, 1908s # G_TYPE_NONE, 1908s # 1, G_TYPE_BOOLEAN); 1908s # 1908s # /** 1908s # * OrgProjectSignalingIface::single-arg-signal-y: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_y: Argument. 1908s # * 1908s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalY" is received. 1908s # * 1908s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1908s # */ 1908s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y] = 1908s # g_signal_new ("single-arg-signal-y", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_y), 1908s # NULL, 1908s # NULL, 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_y, 1908s # G_TYPE_NONE, 1908s # 1, G_TYPE_UCHAR); 1908s # 1908s # /** 1908s # * OrgProjectSignalingIface::single-arg-signal-n: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_n: Argument. 1908s # * 1908s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalN" is received. 1908s # * 1908s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1908s # */ 1908s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N] = 1908s # g_signal_new ("single-arg-signal-n", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_n), 1908s # NULL, 1908s # NULL, 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_n, 1908s # G_TYPE_NONE, 1908s # 1, G_TYPE_INT); 1908s # 1908s # /** 1908s # * OrgProjectSignalingIface::single-arg-signal-q: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_q: Argument. 1908s # * 1908s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalQ" is received. 1908s # * 1908s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1908s # */ 1908s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q] = 1908s # g_signal_new ("single-arg-signal-q", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_q), 1908s # NULL, 1908s # NULL, 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_q, 1908s # G_TYPE_NONE, 1908s # 1, G_TYPE_UINT); 1908s # 1908s # /** 1908s # * OrgProjectSignalingIface::single-arg-signal-i: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_i: Argument. 1908s # * 1908s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalI" is received. 1908s # * 1908s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1908s # */ 1908s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I] = 1908s # g_signal_new ("single-arg-signal-i", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_i), 1908s # NULL, 1908s # NULL, 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_i, 1908s # G_TYPE_NONE, 1908s # 1, G_TYPE_INT); 1908s # 1908s # /** 1908s # * OrgProjectSignalingIface::single-arg-signal-u: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_u: Argument. 1908s # * 1908s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalU" is received. 1908s # * 1908s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1908s # */ 1908s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U] = 1908s # g_signal_new ("single-arg-signal-u", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_u), 1908s # NULL, 1908s # NULL, 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_u, 1908s # G_TYPE_NONE, 1908s # 1, G_TYPE_UINT); 1908s # 1908s # /** 1908s # * OrgProjectSignalingIface::single-arg-signal-x: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_x: Argument. 1908s # * 1908s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalX" is received. 1908s # * 1908s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1908s # */ 1908s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X] = 1908s # g_signal_new ("single-arg-signal-x", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_x), 1908s # NULL, 1908s # NULL, 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_x, 1908s # G_TYPE_NONE, 1908s # 1, G_TYPE_INT64); 1908s # 1908s # /** 1908s # * OrgProjectSignalingIface::single-arg-signal-t: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_t: Argument. 1908s # * 1908s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalT" is received. 1908s # * 1908s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1908s # */ 1908s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T] = 1908s # g_signal_new ("single-arg-signal-t", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_t), 1908s # NULL, 1908s # NULL, 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_t, 1908s # G_TYPE_NONE, 1908s # 1, G_TYPE_UINT64); 1908s # 1908s # /** 1908s # * OrgProjectSignalingIface::single-arg-signal-d: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_d: Argument. 1908s # * 1908s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalD" is received. 1908s # * 1908s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1908s # */ 1908s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D] = 1908s # g_signal_new ("single-arg-signal-d", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_d), 1908s # NULL, 1908s # NULL, 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_d, 1908s # G_TYPE_NONE, 1908s # 1, G_TYPE_DOUBLE); 1908s # 1908s # /** 1908s # * OrgProjectSignalingIface::single-arg-signal-s: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_s: Argument. 1908s # * 1908s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalS" is received. 1908s # * 1908s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1908s # */ 1908s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S] = 1908s # g_signal_new ("single-arg-signal-s", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_s), 1908s # NULL, 1908s # NULL, 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_s, 1908s # G_TYPE_NONE, 1908s # 1, G_TYPE_STRING); 1908s # 1908s # /** 1908s # * OrgProjectSignalingIface::single-arg-signal-o: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_o: Argument. 1908s # * 1908s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalO" is received. 1908s # * 1908s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1908s # */ 1908s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O] = 1908s # g_signal_new ("single-arg-signal-o", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_o), 1908s # NULL, 1908s # NULL, 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_o, 1908s # G_TYPE_NONE, 1908s # 1, G_TYPE_STRING); 1908s # 1908s # /** 1908s # * OrgProjectSignalingIface::single-arg-signal-g: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_g: Argument. 1908s # * 1908s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalG" is received. 1908s # * 1908s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1908s # */ 1908s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G] = 1908s # g_signal_new ("single-arg-signal-g", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_g), 1908s # NULL, 1908s # NULL, 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_g, 1908s # G_TYPE_NONE, 1908s # 1, G_TYPE_STRING); 1908s # 1908s # /** 1908s # * OrgProjectSignalingIface::single-arg-signal-h: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_h: Argument. 1908s # * 1908s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalH" is received. 1908s # * 1908s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1908s # */ 1908s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H] = 1908s # g_signal_new ("single-arg-signal-h", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_h), 1908s # NULL, 1908s # NULL, 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_h, 1908s # G_TYPE_NONE, 1908s # 1, G_TYPE_VARIANT); 1908s # 1908s # /** 1908s # * OrgProjectSignalingIface::single-arg-signal-ay: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_ay: Argument. 1908s # * 1908s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAY" is received. 1908s # * 1908s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1908s # */ 1908s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY] = 1908s # g_signal_new ("single-arg-signal-ay", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ay), 1908s # NULL, 1908s # NULL, 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay, 1908s # G_TYPE_NONE, 1908s # 1, G_TYPE_STRING); 1908s # 1908s # /** 1908s # * OrgProjectSignalingIface::single-arg-signal-as: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_as: Argument. 1908s # * 1908s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAS" is received. 1908s # * 1908s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1908s # */ 1908s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS] = 1908s # g_signal_new ("single-arg-signal-as", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_as), 1908s # NULL, 1908s # NULL, 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_as, 1908s # G_TYPE_NONE, 1908s # 1, G_TYPE_STRV); 1908s # 1908s # /** 1908s # * OrgProjectSignalingIface::single-arg-signal-ao: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_ao: Argument. 1908s # * 1908s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAO" is received. 1908s # * 1908s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1908s # */ 1908s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO] = 1908s # g_signal_new ("single-arg-signal-ao", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ao), 1908s # NULL, 1908s # NULL, 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao, 1908s # G_TYPE_NONE, 1908s # 1, G_TYPE_STRV); 1908s # 1908s # /** 1908s # * OrgProjectSignalingIface::single-arg-signal-aay: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_aay: Argument. 1908s # * 1908s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAAY" is received. 1908s # * 1908s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1908s # */ 1908s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY] = 1908s # g_signal_new ("single-arg-signal-aay", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_aay), 1908s # NULL, 1908s # NULL, 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay, 1908s # G_TYPE_NONE, 1908s # 1, G_TYPE_STRV); 1908s # 1908s # /** 1908s # * OrgProjectSignalingIface::single-arg-signal-asv: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_asv: Argument. 1908s # * 1908s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalASV" is received. 1908s # * 1908s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1908s # */ 1908s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV] = 1908s # g_signal_new ("single-arg-signal-asv", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_asv), 1908s # NULL, 1908s # NULL, 1908s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv, 1908s # G_TYPE_NONE, 1908s # 1, G_TYPE_VARIANT); 1908s # 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_emit_no_arg_signal: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * 1908s # * Emits the "NoArgSignal" D-Bus signal. 1908s # */ 1908s # void 1908s # org_project_signaling_iface_emit_no_arg_signal ( 1908s # OrgProjectSignalingIface *object) 1908s # { 1908s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL], 0); 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_emit_single_arg_signal_b: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_b: Argument to pass with the signal. 1908s # * 1908s # * Emits the "SingleArgSignalB" D-Bus signal. 1908s # */ 1908s # void 1908s # org_project_signaling_iface_emit_single_arg_signal_b ( 1908s # OrgProjectSignalingIface *object, 1908s # gboolean arg_an_b) 1908s # { 1908s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B], 0, arg_an_b); 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_emit_single_arg_signal_y: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_y: Argument to pass with the signal. 1908s # * 1908s # * Emits the "SingleArgSignalY" D-Bus signal. 1908s # */ 1908s # void 1908s # org_project_signaling_iface_emit_single_arg_signal_y ( 1908s # OrgProjectSignalingIface *object, 1908s # guchar arg_an_y) 1908s # { 1908s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y], 0, arg_an_y); 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_emit_single_arg_signal_n: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_n: Argument to pass with the signal. 1908s # * 1908s # * Emits the "SingleArgSignalN" D-Bus signal. 1908s # */ 1908s # void 1908s # org_project_signaling_iface_emit_single_arg_signal_n ( 1908s # OrgProjectSignalingIface *object, 1908s # gint16 arg_an_n) 1908s # { 1908s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N], 0, arg_an_n); 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_emit_single_arg_signal_q: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_q: Argument to pass with the signal. 1908s # * 1908s # * Emits the "SingleArgSignalQ" D-Bus signal. 1908s # */ 1908s # void 1908s # org_project_signaling_iface_emit_single_arg_signal_q ( 1908s # OrgProjectSignalingIface *object, 1908s # guint16 arg_an_q) 1908s # { 1908s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q], 0, arg_an_q); 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_emit_single_arg_signal_i: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_i: Argument to pass with the signal. 1908s # * 1908s # * Emits the "SingleArgSignalI" D-Bus signal. 1908s # */ 1908s # void 1908s # org_project_signaling_iface_emit_single_arg_signal_i ( 1908s # OrgProjectSignalingIface *object, 1908s # gint arg_an_i) 1908s # { 1908s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I], 0, arg_an_i); 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_emit_single_arg_signal_u: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_u: Argument to pass with the signal. 1908s # * 1908s # * Emits the "SingleArgSignalU" D-Bus signal. 1908s # */ 1908s # void 1908s # org_project_signaling_iface_emit_single_arg_signal_u ( 1908s # OrgProjectSignalingIface *object, 1908s # guint arg_an_u) 1908s # { 1908s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U], 0, arg_an_u); 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_emit_single_arg_signal_x: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_x: Argument to pass with the signal. 1908s # * 1908s # * Emits the "SingleArgSignalX" D-Bus signal. 1908s # */ 1908s # void 1908s # org_project_signaling_iface_emit_single_arg_signal_x ( 1908s # OrgProjectSignalingIface *object, 1908s # gint64 arg_an_x) 1908s # { 1908s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X], 0, arg_an_x); 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_emit_single_arg_signal_t: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_t: Argument to pass with the signal. 1908s # * 1908s # * Emits the "SingleArgSignalT" D-Bus signal. 1908s # */ 1908s # void 1908s # org_project_signaling_iface_emit_single_arg_signal_t ( 1908s # OrgProjectSignalingIface *object, 1908s # guint64 arg_an_t) 1908s # { 1908s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T], 0, arg_an_t); 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_emit_single_arg_signal_d: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_d: Argument to pass with the signal. 1908s # * 1908s # * Emits the "SingleArgSignalD" D-Bus signal. 1908s # */ 1908s # void 1908s # org_project_signaling_iface_emit_single_arg_signal_d ( 1908s # OrgProjectSignalingIface *object, 1908s # gdouble arg_an_d) 1908s # { 1908s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D], 0, arg_an_d); 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_emit_single_arg_signal_s: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_s: Argument to pass with the signal. 1908s # * 1908s # * Emits the "SingleArgSignalS" D-Bus signal. 1908s # */ 1908s # void 1908s # org_project_signaling_iface_emit_single_arg_signal_s ( 1908s # OrgProjectSignalingIface *object, 1908s # const gchar *arg_an_s) 1908s # { 1908s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S], 0, arg_an_s); 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_emit_single_arg_signal_o: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_o: Argument to pass with the signal. 1908s # * 1908s # * Emits the "SingleArgSignalO" D-Bus signal. 1908s # */ 1908s # void 1908s # org_project_signaling_iface_emit_single_arg_signal_o ( 1908s # OrgProjectSignalingIface *object, 1908s # const gchar *arg_an_o) 1908s # { 1908s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O], 0, arg_an_o); 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_emit_single_arg_signal_g: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_g: Argument to pass with the signal. 1908s # * 1908s # * Emits the "SingleArgSignalG" D-Bus signal. 1908s # */ 1908s # void 1908s # org_project_signaling_iface_emit_single_arg_signal_g ( 1908s # OrgProjectSignalingIface *object, 1908s # const gchar *arg_an_g) 1908s # { 1908s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G], 0, arg_an_g); 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_emit_single_arg_signal_h: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_h: Argument to pass with the signal. 1908s # * 1908s # * Emits the "SingleArgSignalH" D-Bus signal. 1908s # */ 1908s # void 1908s # org_project_signaling_iface_emit_single_arg_signal_h ( 1908s # OrgProjectSignalingIface *object, 1908s # GVariant *arg_an_h) 1908s # { 1908s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H], 0, arg_an_h); 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_emit_single_arg_signal_ay: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_ay: Argument to pass with the signal. 1908s # * 1908s # * Emits the "SingleArgSignalAY" D-Bus signal. 1908s # */ 1908s # void 1908s # org_project_signaling_iface_emit_single_arg_signal_ay ( 1908s # OrgProjectSignalingIface *object, 1908s # const gchar *arg_an_ay) 1908s # { 1908s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY], 0, arg_an_ay); 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_emit_single_arg_signal_as: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_as: Argument to pass with the signal. 1908s # * 1908s # * Emits the "SingleArgSignalAS" D-Bus signal. 1908s # */ 1908s # void 1908s # org_project_signaling_iface_emit_single_arg_signal_as ( 1908s # OrgProjectSignalingIface *object, 1908s # const gchar *const *arg_an_as) 1908s # { 1908s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS], 0, arg_an_as); 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_emit_single_arg_signal_ao: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_ao: Argument to pass with the signal. 1908s # * 1908s # * Emits the "SingleArgSignalAO" D-Bus signal. 1908s # */ 1908s # void 1908s # org_project_signaling_iface_emit_single_arg_signal_ao ( 1908s # OrgProjectSignalingIface *object, 1908s # const gchar *const *arg_an_ao) 1908s # { 1908s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO], 0, arg_an_ao); 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_emit_single_arg_signal_aay: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_aay: Argument to pass with the signal. 1908s # * 1908s # * Emits the "SingleArgSignalAAY" D-Bus signal. 1908s # */ 1908s # void 1908s # org_project_signaling_iface_emit_single_arg_signal_aay ( 1908s # OrgProjectSignalingIface *object, 1908s # const gchar *const *arg_an_aay) 1908s # { 1908s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY], 0, arg_an_aay); 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_emit_single_arg_signal_asv: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * @arg_an_asv: Argument to pass with the signal. 1908s # * 1908s # * Emits the "SingleArgSignalASV" D-Bus signal. 1908s # */ 1908s # void 1908s # org_project_signaling_iface_emit_single_arg_signal_asv ( 1908s # OrgProjectSignalingIface *object, 1908s # GVariant *arg_an_asv) 1908s # { 1908s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV], 0, arg_an_asv); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectSignalingIfaceProxy: 1908s # * 1908s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectSignalingIfaceProxyClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectSignalingIfaceProxy. 1908s # */ 1908s # 1908s # struct _OrgProjectSignalingIfaceProxyPrivate 1908s # { 1908s # GData *qdata; 1908s # }; 1908s # 1908s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_signaling_iface_proxy_finalize (GObject *object) 1908s # { 1908s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1908s # g_datalist_clear (&proxy->priv->qdata); 1908s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # const GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1908s # const gchar *sender_name G_GNUC_UNUSED, 1908s # const gchar *signal_name, 1908s # GVariant *parameters) 1908s # { 1908s # _ExtendedGDBusSignalInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # gsize n; 1908s # guint signal_id; 1908s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1908s # if (info == NULL) 1908s # return; 1908s # num_params = g_variant_n_children (parameters); 1908s # paramv = g_new0 (GValue, num_params + 1); 1908s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1908s # g_value_set_object (¶mv[0], proxy); 1908s # g_variant_iter_init (&iter, parameters); 1908s # n = 1; 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1908s # g_signal_emitv (paramv, signal_id, 0, NULL); 1908s # for (n = 0; n < num_params + 1; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static void 1908s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1908s # GVariant *changed_properties, 1908s # const gchar *const *invalidated_properties) 1908s # { 1908s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1908s # guint n; 1908s # const gchar *key; 1908s # GVariantIter *iter; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # g_variant_get (changed_properties, "a{sv}", &iter); 1908s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1908s # g_datalist_remove_data (&proxy->priv->qdata, key); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # g_variant_iter_free (iter); 1908s # for (n = 0; invalidated_properties[n] != NULL; n++) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1908s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # } 1908s # 1908s # static void 1908s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1908s # #else 1908s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1908s # #endif 1908s # 1908s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1908s # } 1908s # 1908s # static void 1908s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusProxyClass *proxy_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1908s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1908s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1908s # 1908s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1908s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1908s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_proxy_new: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_signaling_iface_proxy_new ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_proxy_new_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectSignalingIface * 1908s # org_project_signaling_iface_proxy_new_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_proxy_new_sync: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectSignalingIface * 1908s # org_project_signaling_iface_proxy_new_sync ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /** 1908s # * org_project_signaling_iface_proxy_new_for_bus: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_signaling_iface_proxy_new_for_bus ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectSignalingIface * 1908s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectSignalingIface * 1908s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectSignalingIfaceSkeleton: 1908s # * 1908s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectSignalingIfaceSkeletonClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1908s # */ 1908s # 1908s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1908s # { 1908s # GValue *properties; 1908s # GList *changed_properties; 1908s # GSource *changed_properties_idle_source; 1908s # GMainContext *context; 1908s # GMutex lock; 1908s # }; 1908s # 1908s # static void 1908s # _org_project_signaling_iface_skeleton_handle_method_call ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name, 1908s # const gchar *method_name, 1908s # GVariant *parameters, 1908s # GDBusMethodInvocation *invocation, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1908s # _ExtendedGDBusMethodInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # guint num_extra; 1908s # gsize n; 1908s # guint signal_id; 1908s # GValue return_value = G_VALUE_INIT; 1908s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1908s # g_assert (info != NULL); 1908s # num_params = g_variant_n_children (parameters); 1908s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1908s # n = 0; 1908s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1908s # g_value_set_object (¶mv[n++], skeleton); 1908s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1908s # g_value_set_object (¶mv[n++], invocation); 1908s # if (info->pass_fdlist) 1908s # { 1908s # #ifdef G_OS_UNIX 1908s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1908s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1908s # #else 1908s # g_assert_not_reached (); 1908s # #endif 1908s # } 1908s # g_variant_iter_init (&iter, parameters); 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1908s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1908s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1908s # if (!g_value_get_boolean (&return_value)) 1908s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1908s # g_value_unset (&return_value); 1908s # for (n = 0; n < num_params + num_extra; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static GVariant * 1908s # _org_project_signaling_iface_skeleton_handle_get_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # GVariant *ret; 1908s # ret = NULL; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # g_value_init (&value, pspec->value_type); 1908s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1908s # g_value_unset (&value); 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _org_project_signaling_iface_skeleton_handle_set_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GVariant *variant, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # gboolean ret; 1908s # ret = FALSE; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # if (info->use_gvariant) 1908s # g_value_set_variant (&value, variant); 1908s # else 1908s # g_dbus_gvariant_to_gvalue (variant, &value); 1908s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # g_value_unset (&value); 1908s # ret = TRUE; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1908s # { 1908s # _org_project_signaling_iface_skeleton_handle_method_call, 1908s # _org_project_signaling_iface_skeleton_handle_get_property, 1908s # _org_project_signaling_iface_skeleton_handle_set_property, 1908s # {NULL} 1908s # }; 1908s # 1908s # static GDBusInterfaceInfo * 1908s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return org_project_signaling_iface_interface_info (); 1908s # } 1908s # 1908s # static GDBusInterfaceVTable * 1908s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1908s # } 1908s # 1908s # static GVariant * 1908s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1908s # 1908s # GVariantBuilder builder; 1908s # guint n; 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1908s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #else 1908s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #endif 1908s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1908s # goto out; 1908s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1908s # { 1908s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1908s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1908s # { 1908s # GVariant *value; 1908s # value = _org_project_signaling_iface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", info->name, NULL, skeleton); 1908s # if (value != NULL) 1908s # { 1908s # g_variant_take_ref (value); 1908s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1908s # g_variant_unref (value); 1908s # } 1908s # } 1908s # } 1908s # out: 1908s # return g_variant_builder_end (&builder); 1908s # } 1908s # 1908s # static void 1908s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # _org_project_signaling_iface_on_signal_no_arg_signal ( 1908s # OrgProjectSignalingIface *object) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1908s # 1908s # GList *connections, *l; 1908s # GVariant *signal_variant; 1908s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1908s # 1908s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1908s # for (l = connections; l != NULL; l = l->next) 1908s # { 1908s # GDBusConnection *connection = l->data; 1908s # g_dbus_connection_emit_signal (connection, 1908s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "NoArgSignal", 1908s # signal_variant, NULL); 1908s # } 1908s # g_variant_unref (signal_variant); 1908s # g_list_free_full (connections, g_object_unref); 1908s # } 1908s # 1908s # static void 1908s # _org_project_signaling_iface_on_signal_single_arg_signal_b ( 1908s # OrgProjectSignalingIface *object, 1908s # gboolean arg_an_b) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1908s # 1908s # GList *connections, *l; 1908s # GVariant *signal_variant; 1908s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1908s # 1908s # signal_variant = g_variant_ref_sink (g_variant_new ("(b)", 1908s # arg_an_b)); 1908s # for (l = connections; l != NULL; l = l->next) 1908s # { 1908s # GDBusConnection *connection = l->data; 1908s # g_dbus_connection_emit_signal (connection, 1908s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalB", 1908s # signal_variant, NULL); 1908s # } 1908s # g_variant_unref (signal_variant); 1908s # g_list_free_full (connections, g_object_unref); 1908s # } 1908s # 1908s # static void 1908s # _org_project_signaling_iface_on_signal_single_arg_signal_y ( 1908s # OrgProjectSignalingIface *object, 1908s # guchar arg_an_y) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1908s # 1908s # GList *connections, *l; 1908s # GVariant *signal_variant; 1908s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1908s # 1908s # signal_variant = g_variant_ref_sink (g_variant_new ("(y)", 1908s # arg_an_y)); 1908s # for (l = connections; l != NULL; l = l->next) 1908s # { 1908s # GDBusConnection *connection = l->data; 1908s # g_dbus_connection_emit_signal (connection, 1908s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalY", 1908s # signal_variant, NULL); 1908s # } 1908s # g_variant_unref (signal_variant); 1908s # g_list_free_full (connections, g_object_unref); 1908s # } 1908s # 1908s # static void 1908s # _org_project_signaling_iface_on_signal_single_arg_signal_n ( 1908s # OrgProjectSignalingIface *object, 1908s # gint16 arg_an_n) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1908s # 1908s # GList *connections, *l; 1908s # GVariant *signal_variant; 1908s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1908s # 1908s # signal_variant = g_variant_ref_sink (g_variant_new ("(n)", 1908s # arg_an_n)); 1908s # for (l = connections; l != NULL; l = l->next) 1908s # { 1908s # GDBusConnection *connection = l->data; 1908s # g_dbus_connection_emit_signal (connection, 1908s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalN", 1908s # signal_variant, NULL); 1908s # } 1908s # g_variant_unref (signal_variant); 1908s # g_list_free_full (connections, g_object_unref); 1908s # } 1908s # 1908s # static void 1908s # _org_project_signaling_iface_on_signal_single_arg_signal_q ( 1908s # OrgProjectSignalingIface *object, 1908s # guint16 arg_an_q) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1908s # 1908s # GList *connections, *l; 1908s # GVariant *signal_variant; 1908s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1908s # 1908s # signal_variant = g_variant_ref_sink (g_variant_new ("(q)", 1908s # arg_an_q)); 1908s # for (l = connections; l != NULL; l = l->next) 1908s # { 1908s # GDBusConnection *connection = l->data; 1908s # g_dbus_connection_emit_signal (connection, 1908s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalQ", 1908s # signal_variant, NULL); 1908s # } 1908s # g_variant_unref (signal_variant); 1908s # g_list_free_full (connections, g_object_unref); 1908s # } 1908s # 1908s # static void 1908s # _org_project_signaling_iface_on_signal_single_arg_signal_i ( 1908s # OrgProjectSignalingIface *object, 1908s # gint arg_an_i) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1908s # 1908s # GList *connections, *l; 1908s # GVariant *signal_variant; 1908s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1908s # 1908s # signal_variant = g_variant_ref_sink (g_variant_new ("(i)", 1908s # arg_an_i)); 1908s # for (l = connections; l != NULL; l = l->next) 1908s # { 1908s # GDBusConnection *connection = l->data; 1908s # g_dbus_connection_emit_signal (connection, 1908s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalI", 1908s # signal_variant, NULL); 1908s # } 1908s # g_variant_unref (signal_variant); 1908s # g_list_free_full (connections, g_object_unref); 1908s # } 1908s # 1908s # static void 1908s # _org_project_signaling_iface_on_signal_single_arg_signal_u ( 1908s # OrgProjectSignalingIface *object, 1908s # guint arg_an_u) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1908s # 1908s # GList *connections, *l; 1908s # GVariant *signal_variant; 1908s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1908s # 1908s # signal_variant = g_variant_ref_sink (g_variant_new ("(u)", 1908s # arg_an_u)); 1908s # for (l = connections; l != NULL; l = l->next) 1908s # { 1908s # GDBusConnection *connection = l->data; 1908s # g_dbus_connection_emit_signal (connection, 1908s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalU", 1908s # signal_variant, NULL); 1908s # } 1908s # g_variant_unref (signal_variant); 1908s # g_list_free_full (connections, g_object_unref); 1908s # } 1908s # 1908s # static void 1908s # _org_project_signaling_iface_on_signal_single_arg_signal_x ( 1908s # OrgProjectSignalingIface *object, 1908s # gint64 arg_an_x) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1908s # 1908s # GList *connections, *l; 1908s # GVariant *signal_variant; 1908s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1908s # 1908s # signal_variant = g_variant_ref_sink (g_variant_new ("(x)", 1908s # arg_an_x)); 1908s # for (l = connections; l != NULL; l = l->next) 1908s # { 1908s # GDBusConnection *connection = l->data; 1908s # g_dbus_connection_emit_signal (connection, 1908s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalX", 1908s # signal_variant, NULL); 1908s # } 1908s # g_variant_unref (signal_variant); 1908s # g_list_free_full (connections, g_object_unref); 1908s # } 1908s # 1908s # static void 1908s # _org_project_signaling_iface_on_signal_single_arg_signal_t ( 1908s # OrgProjectSignalingIface *object, 1908s # guint64 arg_an_t) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1908s # 1908s # GList *connections, *l; 1908s # GVariant *signal_variant; 1908s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1908s # 1908s # signal_variant = g_variant_ref_sink (g_variant_new ("(t)", 1908s # arg_an_t)); 1908s # for (l = connections; l != NULL; l = l->next) 1908s # { 1908s # GDBusConnection *connection = l->data; 1908s # g_dbus_connection_emit_signal (connection, 1908s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalT", 1908s # signal_variant, NULL); 1908s # } 1908s # g_variant_unref (signal_variant); 1908s # g_list_free_full (connections, g_object_unref); 1908s # } 1908s # 1908s # static void 1908s # _org_project_signaling_iface_on_signal_single_arg_signal_d ( 1908s # OrgProjectSignalingIface *object, 1908s # gdouble arg_an_d) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1908s # 1908s # GList *connections, *l; 1908s # GVariant *signal_variant; 1908s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1908s # 1908s # signal_variant = g_variant_ref_sink (g_variant_new ("(d)", 1908s # arg_an_d)); 1908s # for (l = connections; l != NULL; l = l->next) 1908s # { 1908s # GDBusConnection *connection = l->data; 1908s # g_dbus_connection_emit_signal (connection, 1908s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalD", 1908s # signal_variant, NULL); 1908s # } 1908s # g_variant_unref (signal_variant); 1908s # g_list_free_full (connections, g_object_unref); 1908s # } 1908s # 1908s # static void 1908s # _org_project_signaling_iface_on_signal_single_arg_signal_s ( 1908s # OrgProjectSignalingIface *object, 1908s # const gchar *arg_an_s) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1908s # 1908s # GList *connections, *l; 1908s # GVariant *signal_variant; 1908s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1908s # 1908s # signal_variant = g_variant_ref_sink (g_variant_new ("(s)", 1908s # arg_an_s)); 1908s # for (l = connections; l != NULL; l = l->next) 1908s # { 1908s # GDBusConnection *connection = l->data; 1908s # g_dbus_connection_emit_signal (connection, 1908s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalS", 1908s # signal_variant, NULL); 1908s # } 1908s # g_variant_unref (signal_variant); 1908s # g_list_free_full (connections, g_object_unref); 1908s # } 1908s # 1908s # static void 1908s # _org_project_signaling_iface_on_signal_single_arg_signal_o ( 1908s # OrgProjectSignalingIface *object, 1908s # const gchar *arg_an_o) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1908s # 1908s # GList *connections, *l; 1908s # GVariant *signal_variant; 1908s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1908s # 1908s # signal_variant = g_variant_ref_sink (g_variant_new ("(o)", 1908s # arg_an_o)); 1908s # for (l = connections; l != NULL; l = l->next) 1908s # { 1908s # GDBusConnection *connection = l->data; 1908s # g_dbus_connection_emit_signal (connection, 1908s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalO", 1908s # signal_variant, NULL); 1908s # } 1908s # g_variant_unref (signal_variant); 1908s # g_list_free_full (connections, g_object_unref); 1908s # } 1908s # 1908s # static void 1908s # _org_project_signaling_iface_on_signal_single_arg_signal_g ( 1908s # OrgProjectSignalingIface *object, 1908s # const gchar *arg_an_g) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1908s # 1908s # GList *connections, *l; 1908s # GVariant *signal_variant; 1908s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1908s # 1908s # signal_variant = g_variant_ref_sink (g_variant_new ("(g)", 1908s # arg_an_g)); 1908s # for (l = connections; l != NULL; l = l->next) 1908s # { 1908s # GDBusConnection *connection = l->data; 1908s # g_dbus_connection_emit_signal (connection, 1908s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalG", 1908s # signal_variant, NULL); 1908s # } 1908s # g_variant_unref (signal_variant); 1908s # g_list_free_full (connections, g_object_unref); 1908s # } 1908s # 1908s # static void 1908s # _org_project_signaling_iface_on_signal_single_arg_signal_h ( 1908s # OrgProjectSignalingIface *object, 1908s # GVariant *arg_an_h) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1908s # 1908s # GList *connections, *l; 1908s # GVariant *signal_variant; 1908s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1908s # 1908s # signal_variant = g_variant_ref_sink (g_variant_new ("(@h)", 1908s # arg_an_h)); 1908s # for (l = connections; l != NULL; l = l->next) 1908s # { 1908s # GDBusConnection *connection = l->data; 1908s # g_dbus_connection_emit_signal (connection, 1908s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalH", 1908s # signal_variant, NULL); 1908s # } 1908s # g_variant_unref (signal_variant); 1908s # g_list_free_full (connections, g_object_unref); 1908s # } 1908s # 1908s # static void 1908s # _org_project_signaling_iface_on_signal_single_arg_signal_ay ( 1908s # OrgProjectSignalingIface *object, 1908s # const gchar *arg_an_ay) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1908s # 1908s # GList *connections, *l; 1908s # GVariant *signal_variant; 1908s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1908s # 1908s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ay)", 1908s # arg_an_ay)); 1908s # for (l = connections; l != NULL; l = l->next) 1908s # { 1908s # GDBusConnection *connection = l->data; 1908s # g_dbus_connection_emit_signal (connection, 1908s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAY", 1908s # signal_variant, NULL); 1908s # } 1908s # g_variant_unref (signal_variant); 1908s # g_list_free_full (connections, g_object_unref); 1908s # } 1908s # 1908s # static void 1908s # _org_project_signaling_iface_on_signal_single_arg_signal_as ( 1908s # OrgProjectSignalingIface *object, 1908s # const gchar *const *arg_an_as) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1908s # 1908s # GList *connections, *l; 1908s # GVariant *signal_variant; 1908s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1908s # 1908s # signal_variant = g_variant_ref_sink (g_variant_new ("(^as)", 1908s # arg_an_as)); 1908s # for (l = connections; l != NULL; l = l->next) 1908s # { 1908s # GDBusConnection *connection = l->data; 1908s # g_dbus_connection_emit_signal (connection, 1908s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAS", 1908s # signal_variant, NULL); 1908s # } 1908s # g_variant_unref (signal_variant); 1908s # g_list_free_full (connections, g_object_unref); 1908s # } 1908s # 1908s # static void 1908s # _org_project_signaling_iface_on_signal_single_arg_signal_ao ( 1908s # OrgProjectSignalingIface *object, 1908s # const gchar *const *arg_an_ao) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1908s # 1908s # GList *connections, *l; 1908s # GVariant *signal_variant; 1908s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1908s # 1908s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ao)", 1908s # arg_an_ao)); 1908s # for (l = connections; l != NULL; l = l->next) 1908s # { 1908s # GDBusConnection *connection = l->data; 1908s # g_dbus_connection_emit_signal (connection, 1908s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAO", 1908s # signal_variant, NULL); 1908s # } 1908s # g_variant_unref (signal_variant); 1908s # g_list_free_full (connections, g_object_unref); 1908s # } 1908s # 1908s # static void 1908s # _org_project_signaling_iface_on_signal_single_arg_signal_aay ( 1908s # OrgProjectSignalingIface *object, 1908s # const gchar *const *arg_an_aay) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1908s # 1908s # GList *connections, *l; 1908s # GVariant *signal_variant; 1908s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1908s # 1908s # signal_variant = g_variant_ref_sink (g_variant_new ("(^aay)", 1908s # arg_an_aay)); 1908s # for (l = connections; l != NULL; l = l->next) 1908s # { 1908s # GDBusConnection *connection = l->data; 1908s # g_dbus_connection_emit_signal (connection, 1908s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAAY", 1908s # signal_variant, NULL); 1908s # } 1908s # g_variant_unref (signal_variant); 1908s # g_list_free_full (connections, g_object_unref); 1908s # } 1908s # 1908s # static void 1908s # _org_project_signaling_iface_on_signal_single_arg_signal_asv ( 1908s # OrgProjectSignalingIface *object, 1908s # GVariant *arg_an_asv) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1908s # 1908s # GList *connections, *l; 1908s # GVariant *signal_variant; 1908s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1908s # 1908s # signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})", 1908s # arg_an_asv)); 1908s # for (l = connections; l != NULL; l = l->next) 1908s # { 1908s # GDBusConnection *connection = l->data; 1908s # g_dbus_connection_emit_signal (connection, 1908s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalASV", 1908s # signal_variant, NULL); 1908s # } 1908s # g_variant_unref (signal_variant); 1908s # g_list_free_full (connections, g_object_unref); 1908s # } 1908s # 1908s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1908s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1908s # if (skeleton->priv->changed_properties_idle_source != NULL) 1908s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1908s # g_main_context_unref (skeleton->priv->context); 1908s # g_mutex_clear (&skeleton->priv->lock); 1908s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1908s # #else 1908s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1908s # #endif 1908s # 1908s # g_mutex_init (&skeleton->priv->lock); 1908s # skeleton->priv->context = g_main_context_ref_thread_default (); 1908s # } 1908s # 1908s # static void 1908s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusInterfaceSkeletonClass *skeleton_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1908s # 1908s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1908s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1908s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1908s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1908s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1908s # { 1908s # iface->no_arg_signal = _org_project_signaling_iface_on_signal_no_arg_signal; 1908s # iface->single_arg_signal_b = _org_project_signaling_iface_on_signal_single_arg_signal_b; 1908s # iface->single_arg_signal_y = _org_project_signaling_iface_on_signal_single_arg_signal_y; 1908s # iface->single_arg_signal_n = _org_project_signaling_iface_on_signal_single_arg_signal_n; 1908s # iface->single_arg_signal_q = _org_project_signaling_iface_on_signal_single_arg_signal_q; 1908s # iface->single_arg_signal_i = _org_project_signaling_iface_on_signal_single_arg_signal_i; 1908s # iface->single_arg_signal_u = _org_project_signaling_iface_on_signal_single_arg_signal_u; 1908s # iface->single_arg_signal_x = _org_project_signaling_iface_on_signal_single_arg_signal_x; 1908s # iface->single_arg_signal_t = _org_project_signaling_iface_on_signal_single_arg_signal_t; 1908s # iface->single_arg_signal_d = _org_project_signaling_iface_on_signal_single_arg_signal_d; 1908s # iface->single_arg_signal_s = _org_project_signaling_iface_on_signal_single_arg_signal_s; 1908s # iface->single_arg_signal_o = _org_project_signaling_iface_on_signal_single_arg_signal_o; 1908s # iface->single_arg_signal_g = _org_project_signaling_iface_on_signal_single_arg_signal_g; 1908s # iface->single_arg_signal_h = _org_project_signaling_iface_on_signal_single_arg_signal_h; 1908s # iface->single_arg_signal_ay = _org_project_signaling_iface_on_signal_single_arg_signal_ay; 1908s # iface->single_arg_signal_as = _org_project_signaling_iface_on_signal_single_arg_signal_as; 1908s # iface->single_arg_signal_ao = _org_project_signaling_iface_on_signal_single_arg_signal_ao; 1908s # iface->single_arg_signal_aay = _org_project_signaling_iface_on_signal_single_arg_signal_aay; 1908s # iface->single_arg_signal_asv = _org_project_signaling_iface_on_signal_single_arg_signal_asv; 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_skeleton_new: 1908s # * 1908s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1908s # */ 1908s # OrgProjectSignalingIface * 1908s # org_project_signaling_iface_skeleton_new (void) 1908s # { 1908s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1908s # } 1908s # Error: 1908s ok 21 __main__.TestCodegen.test_generate_signal_id_simple_signal 1908s # gdbus-codegen: /usr/bin/gdbus-codegen 1908s # tmpdir: /tmp/tmplv9tmwsk 1908s # /tmp/tmplv9tmwsk/tmpq6pmkbqm.xml: 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplv9tmwsk/tmpq6pmkbqm.xml', '--output', '-', '--body'] 1908s # Return code: 0 1908s # Output: 1908s # /* 1908s # * This file is generated by gdbus-codegen, do not modify it. 1908s # * 1908s # * The license of this code is the same as for the D-Bus interface description 1908s # * it was derived from. Note that it links to GLib, so must comply with the 1908s # * LGPL linking clauses. 1908s # */ 1908s # 1908s # #ifdef HAVE_CONFIG_H 1908s # # include "config.h" 1908s # #endif 1908s # 1908s # #include 1908s # #ifdef G_OS_UNIX 1908s # # include 1908s # #endif 1908s # 1908s # #ifdef G_ENABLE_DEBUG 1908s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1908s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1908s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1908s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1908s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1908s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1908s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1908s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1908s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1908s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1908s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1908s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1908s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1908s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1908s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1908s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1908s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1908s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1908s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1908s # #else /* !G_ENABLE_DEBUG */ 1908s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1908s # * Do not access GValues directly in your code. Instead, use the 1908s # * g_value_get_*() functions 1908s # */ 1908s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1908s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1908s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1908s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1908s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1908s # #endif /* !G_ENABLE_DEBUG */ 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusArgInfo parent_struct; 1908s # gboolean use_gvariant; 1908s # } _ExtendedGDBusArgInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusMethodInfo parent_struct; 1908s # const gchar *signal_name; 1908s # gboolean pass_fdlist; 1908s # } _ExtendedGDBusMethodInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusSignalInfo parent_struct; 1908s # const gchar *signal_name; 1908s # } _ExtendedGDBusSignalInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusPropertyInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # guint use_gvariant : 1; 1908s # guint emits_changed_signal : 1; 1908s # } _ExtendedGDBusPropertyInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusInterfaceInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # } _ExtendedGDBusInterfaceInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # const _ExtendedGDBusPropertyInfo *info; 1908s # guint prop_id; 1908s # GValue orig_value; /* the value before the change */ 1908s # } ChangedProperty; 1908s # 1908s # static void 1908s # _changed_property_free (ChangedProperty *data) 1908s # { 1908s # g_value_unset (&data->orig_value); 1908s # g_free (data); 1908s # } 1908s # 1908s # static gboolean 1908s # _g_strv_equal0 (gchar **a, gchar **b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # guint n; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # if (g_strv_length (a) != g_strv_length (b)) 1908s # goto out; 1908s # for (n = 0; a[n] != NULL; n++) 1908s # if (g_strcmp0 (a[n], b[n]) != 0) 1908s # goto out; 1908s # ret = TRUE; 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _g_variant_equal0 (GVariant *a, GVariant *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # ret = g_variant_equal (a, b); 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # G_GNUC_UNUSED static gboolean 1908s # _g_value_equal (const GValue *a, const GValue *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1908s # switch (G_VALUE_TYPE (a)) 1908s # { 1908s # case G_TYPE_BOOLEAN: 1908s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1908s # break; 1908s # case G_TYPE_UCHAR: 1908s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1908s # break; 1908s # case G_TYPE_INT: 1908s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1908s # break; 1908s # case G_TYPE_UINT: 1908s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1908s # break; 1908s # case G_TYPE_INT64: 1908s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1908s # break; 1908s # case G_TYPE_UINT64: 1908s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1908s # break; 1908s # case G_TYPE_DOUBLE: 1908s # { 1908s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1908s # gdouble da = g_value_get_double (a); 1908s # gdouble db = g_value_get_double (b); 1908s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1908s # } 1908s # break; 1908s # case G_TYPE_STRING: 1908s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1908s # break; 1908s # case G_TYPE_VARIANT: 1908s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1908s # break; 1908s # default: 1908s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1908s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1908s # else 1908s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1908s # break; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ 1908s # * Code for interface org.project.UsefulInterface 1908s # * ------------------------------------------------------------------------ 1908s # */ 1908s # 1908s # /** 1908s # * SECTION:OrgProjectUsefulInterface 1908s # * @title: OrgProjectUsefulInterface 1908s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1908s # * 1908s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1908s # */ 1908s # 1908s # enum 1908s # { 1908s # _ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL, 1908s # }; 1908s # 1908s # static unsigned _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[1] = { 0 }; 1908s # 1908s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1908s # 1908s # static const _ExtendedGDBusSignalInfo _org_project_useful_interface_signal_info_simple_signal = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SimpleSignal", 1908s # NULL, 1908s # NULL 1908s # }, 1908s # "simple-signal" 1908s # }; 1908s # 1908s # static const GDBusSignalInfo * const _org_project_useful_interface_signal_info_pointers[] = 1908s # { 1908s # &_org_project_useful_interface_signal_info_simple_signal.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "org.project.UsefulInterface", 1908s # NULL, 1908s # (GDBusSignalInfo **) &_org_project_useful_interface_signal_info_pointers, 1908s # NULL, 1908s # NULL 1908s # }, 1908s # "org-project-useful-interface", 1908s # }; 1908s # 1908s # 1908s # /** 1908s # * org_project_useful_interface_interface_info: 1908s # * 1908s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1908s # * 1908s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1908s # */ 1908s # GDBusInterfaceInfo * 1908s # org_project_useful_interface_interface_info (void) 1908s # { 1908s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_override_properties: 1908s # * @klass: The class structure for a #GObject derived class. 1908s # * @property_id_begin: The property id to assign to the first overridden property. 1908s # * 1908s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1908s # * The properties are overridden in the order they are defined. 1908s # * 1908s # * Returns: The last property id. 1908s # */ 1908s # guint 1908s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1908s # { 1908s # return property_id_begin - 1; 1908s # } 1908s # 1908s # 1908s # inline static void 1908s # org_project_useful_interface_signal_marshal_simple_signal ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # g_cclosure_marshal_VOID__VOID (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterface: 1908s # * 1908s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceIface: 1908s # * @parent_iface: The parent interface. 1908s # * @simple_signal: Handler for the #OrgProjectUsefulInterface::simple-signal signal. 1908s # * 1908s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1908s # */ 1908s # 1908s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1908s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1908s # 1908s # static void 1908s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1908s # { 1908s # /* GObject signals for received D-Bus signals: */ 1908s # /** 1908s # * OrgProjectUsefulInterface::simple-signal: 1908s # * @object: A #OrgProjectUsefulInterface. 1908s # * 1908s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1908s # * 1908s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1908s # */ 1908s # _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[_ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL] = 1908s # g_signal_new ("simple-signal", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, simple_signal), 1908s # NULL, 1908s # NULL, 1908s # org_project_useful_interface_signal_marshal_simple_signal, 1908s # G_TYPE_NONE, 1908s # 0); 1908s # 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_emit_simple_signal: 1908s # * @object: A #OrgProjectUsefulInterface. 1908s # * 1908s # * Emits the "SimpleSignal" D-Bus signal. 1908s # */ 1908s # void 1908s # org_project_useful_interface_emit_simple_signal ( 1908s # OrgProjectUsefulInterface *object) 1908s # { 1908s # g_signal_emit (object, _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[_ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL], 0); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceProxy: 1908s # * 1908s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceProxyClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1908s # */ 1908s # 1908s # struct _OrgProjectUsefulInterfaceProxyPrivate 1908s # { 1908s # GData *qdata; 1908s # }; 1908s # 1908s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_useful_interface_proxy_finalize (GObject *object) 1908s # { 1908s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1908s # g_datalist_clear (&proxy->priv->qdata); 1908s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # const GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1908s # const gchar *sender_name G_GNUC_UNUSED, 1908s # const gchar *signal_name, 1908s # GVariant *parameters) 1908s # { 1908s # _ExtendedGDBusSignalInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # gsize n; 1908s # guint signal_id; 1908s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1908s # if (info == NULL) 1908s # return; 1908s # num_params = g_variant_n_children (parameters); 1908s # paramv = g_new0 (GValue, num_params + 1); 1908s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_set_object (¶mv[0], proxy); 1908s # g_variant_iter_init (&iter, parameters); 1908s # n = 1; 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_signal_emitv (paramv, signal_id, 0, NULL); 1908s # for (n = 0; n < num_params + 1; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1908s # GVariant *changed_properties, 1908s # const gchar *const *invalidated_properties) 1908s # { 1908s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1908s # guint n; 1908s # const gchar *key; 1908s # GVariantIter *iter; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # g_variant_get (changed_properties, "a{sv}", &iter); 1908s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1908s # g_datalist_remove_data (&proxy->priv->qdata, key); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # g_variant_iter_free (iter); 1908s # for (n = 0; invalidated_properties[n] != NULL; n++) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1908s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1908s # #else 1908s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1908s # #endif 1908s # 1908s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusProxyClass *proxy_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1908s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1908s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1908s # 1908s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1908s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1908s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_useful_interface_proxy_new ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_sync: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_sync ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_useful_interface_proxy_new_for_bus ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_for_bus_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_proxy_new_for_bus_sync: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_proxy_new_for_bus_sync ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.UsefulInterface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeleton: 1908s # * 1908s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectUsefulInterfaceSkeletonClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1908s # */ 1908s # 1908s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1908s # { 1908s # GValue *properties; 1908s # GList *changed_properties; 1908s # GSource *changed_properties_idle_source; 1908s # GMainContext *context; 1908s # GMutex lock; 1908s # }; 1908s # 1908s # static void 1908s # _org_project_useful_interface_skeleton_handle_method_call ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name, 1908s # const gchar *method_name, 1908s # GVariant *parameters, 1908s # GDBusMethodInvocation *invocation, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # _ExtendedGDBusMethodInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # guint num_extra; 1908s # gsize n; 1908s # guint signal_id; 1908s # GValue return_value = G_VALUE_INIT; 1908s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1908s # g_assert (info != NULL); 1908s # num_params = g_variant_n_children (parameters); 1908s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1908s # n = 0; 1908s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_set_object (¶mv[n++], skeleton); 1908s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1908s # g_value_set_object (¶mv[n++], invocation); 1908s # if (info->pass_fdlist) 1908s # { 1908s # #ifdef G_OS_UNIX 1908s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1908s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1908s # #else 1908s # g_assert_not_reached (); 1908s # #endif 1908s # } 1908s # g_variant_iter_init (&iter, parameters); 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1908s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1908s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1908s # if (!g_value_get_boolean (&return_value)) 1908s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1908s # g_value_unset (&return_value); 1908s # for (n = 0; n < num_params + num_extra; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static GVariant * 1908s # _org_project_useful_interface_skeleton_handle_get_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # GVariant *ret; 1908s # ret = NULL; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # g_value_init (&value, pspec->value_type); 1908s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1908s # g_value_unset (&value); 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _org_project_useful_interface_skeleton_handle_set_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GVariant *variant, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # gboolean ret; 1908s # ret = FALSE; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # if (info->use_gvariant) 1908s # g_value_set_variant (&value, variant); 1908s # else 1908s # g_dbus_gvariant_to_gvalue (variant, &value); 1908s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # g_value_unset (&value); 1908s # ret = TRUE; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1908s # { 1908s # _org_project_useful_interface_skeleton_handle_method_call, 1908s # _org_project_useful_interface_skeleton_handle_get_property, 1908s # _org_project_useful_interface_skeleton_handle_set_property, 1908s # {NULL} 1908s # }; 1908s # 1908s # static GDBusInterfaceInfo * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return org_project_useful_interface_interface_info (); 1908s # } 1908s # 1908s # static GDBusInterfaceVTable * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1908s # } 1908s # 1908s # static GVariant * 1908s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1908s # 1908s # GVariantBuilder builder; 1908s # guint n; 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1908s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #else 1908s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #endif 1908s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1908s # goto out; 1908s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1908s # { 1908s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1908s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1908s # { 1908s # GVariant *value; 1908s # value = _org_project_useful_interface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", info->name, NULL, skeleton); 1908s # if (value != NULL) 1908s # { 1908s # g_variant_take_ref (value); 1908s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1908s # g_variant_unref (value); 1908s # } 1908s # } 1908s # } 1908s # out: 1908s # return g_variant_builder_end (&builder); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # _org_project_useful_interface_on_signal_simple_signal ( 1908s # OrgProjectUsefulInterface *object) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1908s # 1908s # GList *connections, *l; 1908s # GVariant *signal_variant; 1908s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1908s # 1908s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1908s # for (l = connections; l != NULL; l = l->next) 1908s # { 1908s # GDBusConnection *connection = l->data; 1908s # g_dbus_connection_emit_signal (connection, 1908s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", "SimpleSignal", 1908s # signal_variant, NULL); 1908s # } 1908s # g_variant_unref (signal_variant); 1908s # g_list_free_full (connections, g_object_unref); 1908s # } 1908s # 1908s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_useful_interface_skeleton_finalize (GObject *object) 1908s # { 1908s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1908s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1908s # if (skeleton->priv->changed_properties_idle_source != NULL) 1908s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1908s # g_main_context_unref (skeleton->priv->context); 1908s # g_mutex_clear (&skeleton->priv->lock); 1908s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1908s # #else 1908s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1908s # #endif 1908s # 1908s # g_mutex_init (&skeleton->priv->lock); 1908s # skeleton->priv->context = g_main_context_ref_thread_default (); 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusInterfaceSkeletonClass *skeleton_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1908s # 1908s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1908s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1908s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1908s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1908s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface) 1908s # { 1908s # iface->simple_signal = _org_project_useful_interface_on_signal_simple_signal; 1908s # } 1908s # 1908s # /** 1908s # * org_project_useful_interface_skeleton_new: 1908s # * 1908s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1908s # */ 1908s # OrgProjectUsefulInterface * 1908s # org_project_useful_interface_skeleton_new (void) 1908s # { 1908s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ 1908s # * Code for interface org.project.OtherIface 1908s # * ------------------------------------------------------------------------ 1908s # */ 1908s # 1908s # /** 1908s # * SECTION:OrgProjectOtherIface 1908s # * @title: OrgProjectOtherIface 1908s # * @short_description: Generated C code for the org.project.OtherIface D-Bus interface 1908s # * 1908s # * This section contains code for working with the org.project.OtherIface D-Bus interface in C. 1908s # */ 1908s # 1908s # enum 1908s # { 1908s # _ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL, 1908s # }; 1908s # 1908s # static unsigned _ORG_PROJECT_OTHER_IFACE_SIGNALS[1] = { 0 }; 1908s # 1908s # /* ---- Introspection data for org.project.OtherIface ---- */ 1908s # 1908s # static const _ExtendedGDBusSignalInfo _org_project_other_iface_signal_info_simple_signal = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SimpleSignal", 1908s # NULL, 1908s # NULL 1908s # }, 1908s # "simple-signal" 1908s # }; 1908s # 1908s # static const GDBusSignalInfo * const _org_project_other_iface_signal_info_pointers[] = 1908s # { 1908s # &_org_project_other_iface_signal_info_simple_signal.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusInterfaceInfo _org_project_other_iface_interface_info = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "org.project.OtherIface", 1908s # NULL, 1908s # (GDBusSignalInfo **) &_org_project_other_iface_signal_info_pointers, 1908s # NULL, 1908s # NULL 1908s # }, 1908s # "org-project-other-iface", 1908s # }; 1908s # 1908s # 1908s # /** 1908s # * org_project_other_iface_interface_info: 1908s # * 1908s # * Gets a machine-readable description of the org.project.OtherIface D-Bus interface. 1908s # * 1908s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1908s # */ 1908s # GDBusInterfaceInfo * 1908s # org_project_other_iface_interface_info (void) 1908s # { 1908s # return (GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct; 1908s # } 1908s # 1908s # /** 1908s # * org_project_other_iface_override_properties: 1908s # * @klass: The class structure for a #GObject derived class. 1908s # * @property_id_begin: The property id to assign to the first overridden property. 1908s # * 1908s # * Overrides all #GObject properties in the #OrgProjectOtherIface interface for a concrete class. 1908s # * The properties are overridden in the order they are defined. 1908s # * 1908s # * Returns: The last property id. 1908s # */ 1908s # guint 1908s # org_project_other_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1908s # { 1908s # return property_id_begin - 1; 1908s # } 1908s # 1908s # 1908s # inline static void 1908s # org_project_other_iface_signal_marshal_simple_signal ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # g_cclosure_marshal_VOID__VOID (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # 1908s # /** 1908s # * OrgProjectOtherIface: 1908s # * 1908s # * Abstract interface type for the D-Bus interface org.project.OtherIface. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectOtherIfaceIface: 1908s # * @parent_iface: The parent interface. 1908s # * @simple_signal: Handler for the #OrgProjectOtherIface::simple-signal signal. 1908s # * 1908s # * Virtual table for the D-Bus interface org.project.OtherIface. 1908s # */ 1908s # 1908s # typedef OrgProjectOtherIfaceIface OrgProjectOtherIfaceInterface; 1908s # G_DEFINE_INTERFACE (OrgProjectOtherIface, org_project_other_iface, G_TYPE_OBJECT) 1908s # 1908s # static void 1908s # org_project_other_iface_default_init (OrgProjectOtherIfaceIface *iface) 1908s # { 1908s # /* GObject signals for received D-Bus signals: */ 1908s # /** 1908s # * OrgProjectOtherIface::simple-signal: 1908s # * @object: A #OrgProjectOtherIface. 1908s # * 1908s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1908s # * 1908s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1908s # */ 1908s # _ORG_PROJECT_OTHER_IFACE_SIGNALS[_ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL] = 1908s # g_signal_new ("simple-signal", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectOtherIfaceIface, simple_signal), 1908s # NULL, 1908s # NULL, 1908s # org_project_other_iface_signal_marshal_simple_signal, 1908s # G_TYPE_NONE, 1908s # 0); 1908s # 1908s # } 1908s # 1908s # /** 1908s # * org_project_other_iface_emit_simple_signal: 1908s # * @object: A #OrgProjectOtherIface. 1908s # * 1908s # * Emits the "SimpleSignal" D-Bus signal. 1908s # */ 1908s # void 1908s # org_project_other_iface_emit_simple_signal ( 1908s # OrgProjectOtherIface *object) 1908s # { 1908s # g_signal_emit (object, _ORG_PROJECT_OTHER_IFACE_SIGNALS[_ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL], 0); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectOtherIfaceProxy: 1908s # * 1908s # * The #OrgProjectOtherIfaceProxy structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectOtherIfaceProxyClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectOtherIfaceProxy. 1908s # */ 1908s # 1908s # struct _OrgProjectOtherIfaceProxyPrivate 1908s # { 1908s # GData *qdata; 1908s # }; 1908s # 1908s # static void org_project_other_iface_proxy_iface_init (OrgProjectOtherIfaceIface *iface); 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceProxy, org_project_other_iface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_ADD_PRIVATE (OrgProjectOtherIfaceProxy) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_proxy_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceProxy, org_project_other_iface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_proxy_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_other_iface_proxy_finalize (GObject *object) 1908s # { 1908s # OrgProjectOtherIfaceProxy *proxy = ORG_PROJECT_OTHER_IFACE_PROXY (object); 1908s # g_datalist_clear (&proxy->priv->qdata); 1908s # G_OBJECT_CLASS (org_project_other_iface_proxy_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_other_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_other_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # const GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_other_iface_proxy_g_signal (GDBusProxy *proxy, 1908s # const gchar *sender_name G_GNUC_UNUSED, 1908s # const gchar *signal_name, 1908s # GVariant *parameters) 1908s # { 1908s # _ExtendedGDBusSignalInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # gsize n; 1908s # guint signal_id; 1908s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, signal_name); 1908s # if (info == NULL) 1908s # return; 1908s # num_params = g_variant_n_children (parameters); 1908s # paramv = g_new0 (GValue, num_params + 1); 1908s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_IFACE); 1908s # g_value_set_object (¶mv[0], proxy); 1908s # g_variant_iter_init (&iter, parameters); 1908s # n = 1; 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_IFACE); 1908s # g_signal_emitv (paramv, signal_id, 0, NULL); 1908s # for (n = 0; n < num_params + 1; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static void 1908s # org_project_other_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1908s # GVariant *changed_properties, 1908s # const gchar *const *invalidated_properties) 1908s # { 1908s # OrgProjectOtherIfaceProxy *proxy = ORG_PROJECT_OTHER_IFACE_PROXY (_proxy); 1908s # guint n; 1908s # const gchar *key; 1908s # GVariantIter *iter; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # g_variant_get (changed_properties, "a{sv}", &iter); 1908s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, key); 1908s # g_datalist_remove_data (&proxy->priv->qdata, key); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # g_variant_iter_free (iter); 1908s # for (n = 0; invalidated_properties[n] != NULL; n++) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, invalidated_properties[n]); 1908s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # } 1908s # 1908s # static void 1908s # org_project_other_iface_proxy_init (OrgProjectOtherIfaceProxy *proxy) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # proxy->priv = org_project_other_iface_proxy_get_instance_private (proxy); 1908s # #else 1908s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_IFACE_PROXY, OrgProjectOtherIfaceProxyPrivate); 1908s # #endif 1908s # 1908s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_iface_interface_info ()); 1908s # } 1908s # 1908s # static void 1908s # org_project_other_iface_proxy_class_init (OrgProjectOtherIfaceProxyClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusProxyClass *proxy_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_other_iface_proxy_finalize; 1908s # gobject_class->get_property = org_project_other_iface_proxy_get_property; 1908s # gobject_class->set_property = org_project_other_iface_proxy_set_property; 1908s # 1908s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1908s # proxy_class->g_signal = org_project_other_iface_proxy_g_signal; 1908s # proxy_class->g_properties_changed = org_project_other_iface_proxy_g_properties_changed; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectOtherIfaceProxyPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_other_iface_proxy_iface_init (OrgProjectOtherIfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_other_iface_proxy_new: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherIface. See g_dbus_proxy_new() for more details. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_other_iface_proxy_new_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_other_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_other_iface_proxy_new ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_OTHER_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.OtherIface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_other_iface_proxy_new_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_iface_proxy_new(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_other_iface_proxy_new(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectOtherIface * 1908s # org_project_other_iface_proxy_new_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_OTHER_IFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_other_iface_proxy_new_sync: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherIface. See g_dbus_proxy_new_sync() for more details. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_other_iface_proxy_new() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectOtherIface * 1908s # org_project_other_iface_proxy_new_sync ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_OTHER_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.OtherIface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_OTHER_IFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /** 1908s # * org_project_other_iface_proxy_new_for_bus: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Like org_project_other_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_other_iface_proxy_new_for_bus_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_other_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_other_iface_proxy_new_for_bus ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_OTHER_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.OtherIface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_other_iface_proxy_new_for_bus_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_iface_proxy_new_for_bus(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_other_iface_proxy_new_for_bus(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectOtherIface * 1908s # org_project_other_iface_proxy_new_for_bus_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_OTHER_IFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_other_iface_proxy_new_for_bus_sync: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Like org_project_other_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_other_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectOtherIface * 1908s # org_project_other_iface_proxy_new_for_bus_sync ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_OTHER_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.OtherIface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_OTHER_IFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectOtherIfaceSkeleton: 1908s # * 1908s # * The #OrgProjectOtherIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectOtherIfaceSkeletonClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectOtherIfaceSkeleton. 1908s # */ 1908s # 1908s # struct _OrgProjectOtherIfaceSkeletonPrivate 1908s # { 1908s # GValue *properties; 1908s # GList *changed_properties; 1908s # GSource *changed_properties_idle_source; 1908s # GMainContext *context; 1908s # GMutex lock; 1908s # }; 1908s # 1908s # static void 1908s # _org_project_other_iface_skeleton_handle_method_call ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name, 1908s # const gchar *method_name, 1908s # GVariant *parameters, 1908s # GDBusMethodInvocation *invocation, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 1908s # _ExtendedGDBusMethodInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # guint num_extra; 1908s # gsize n; 1908s # guint signal_id; 1908s # GValue return_value = G_VALUE_INIT; 1908s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1908s # g_assert (info != NULL); 1908s # num_params = g_variant_n_children (parameters); 1908s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1908s # n = 0; 1908s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_IFACE); 1908s # g_value_set_object (¶mv[n++], skeleton); 1908s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1908s # g_value_set_object (¶mv[n++], invocation); 1908s # if (info->pass_fdlist) 1908s # { 1908s # #ifdef G_OS_UNIX 1908s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1908s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1908s # #else 1908s # g_assert_not_reached (); 1908s # #endif 1908s # } 1908s # g_variant_iter_init (&iter, parameters); 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_IFACE); 1908s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1908s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1908s # if (!g_value_get_boolean (&return_value)) 1908s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1908s # g_value_unset (&return_value); 1908s # for (n = 0; n < num_params + num_extra; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static GVariant * 1908s # _org_project_other_iface_skeleton_handle_get_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # GVariant *ret; 1908s # ret = NULL; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # g_value_init (&value, pspec->value_type); 1908s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1908s # g_value_unset (&value); 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _org_project_other_iface_skeleton_handle_set_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GVariant *variant, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # gboolean ret; 1908s # ret = FALSE; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # if (info->use_gvariant) 1908s # g_value_set_variant (&value, variant); 1908s # else 1908s # g_dbus_gvariant_to_gvalue (variant, &value); 1908s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # g_value_unset (&value); 1908s # ret = TRUE; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static const GDBusInterfaceVTable _org_project_other_iface_skeleton_vtable = 1908s # { 1908s # _org_project_other_iface_skeleton_handle_method_call, 1908s # _org_project_other_iface_skeleton_handle_get_property, 1908s # _org_project_other_iface_skeleton_handle_set_property, 1908s # {NULL} 1908s # }; 1908s # 1908s # static GDBusInterfaceInfo * 1908s # org_project_other_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return org_project_other_iface_interface_info (); 1908s # } 1908s # 1908s # static GDBusInterfaceVTable * 1908s # org_project_other_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return (GDBusInterfaceVTable *) &_org_project_other_iface_skeleton_vtable; 1908s # } 1908s # 1908s # static GVariant * 1908s # org_project_other_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1908s # { 1908s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (_skeleton); 1908s # 1908s # GVariantBuilder builder; 1908s # guint n; 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1908s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #else 1908s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #endif 1908s # if (_org_project_other_iface_interface_info.parent_struct.properties == NULL) 1908s # goto out; 1908s # for (n = 0; _org_project_other_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1908s # { 1908s # GDBusPropertyInfo *info = _org_project_other_iface_interface_info.parent_struct.properties[n]; 1908s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1908s # { 1908s # GVariant *value; 1908s # value = _org_project_other_iface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherIface", info->name, NULL, skeleton); 1908s # if (value != NULL) 1908s # { 1908s # g_variant_take_ref (value); 1908s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1908s # g_variant_unref (value); 1908s # } 1908s # } 1908s # } 1908s # out: 1908s # return g_variant_builder_end (&builder); 1908s # } 1908s # 1908s # static void 1908s # org_project_other_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # _org_project_other_iface_on_signal_simple_signal ( 1908s # OrgProjectOtherIface *object) 1908s # { 1908s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (object); 1908s # 1908s # GList *connections, *l; 1908s # GVariant *signal_variant; 1908s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1908s # 1908s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1908s # for (l = connections; l != NULL; l = l->next) 1908s # { 1908s # GDBusConnection *connection = l->data; 1908s # g_dbus_connection_emit_signal (connection, 1908s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherIface", "SimpleSignal", 1908s # signal_variant, NULL); 1908s # } 1908s # g_variant_unref (signal_variant); 1908s # g_list_free_full (connections, g_object_unref); 1908s # } 1908s # 1908s # static void org_project_other_iface_skeleton_iface_init (OrgProjectOtherIfaceIface *iface); 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceSkeleton, org_project_other_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_ADD_PRIVATE (OrgProjectOtherIfaceSkeleton) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_skeleton_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceSkeleton, org_project_other_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_skeleton_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_other_iface_skeleton_finalize (GObject *object) 1908s # { 1908s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (object); 1908s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1908s # if (skeleton->priv->changed_properties_idle_source != NULL) 1908s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1908s # g_main_context_unref (skeleton->priv->context); 1908s # g_mutex_clear (&skeleton->priv->lock); 1908s # G_OBJECT_CLASS (org_project_other_iface_skeleton_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_other_iface_skeleton_init (OrgProjectOtherIfaceSkeleton *skeleton) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # skeleton->priv = org_project_other_iface_skeleton_get_instance_private (skeleton); 1908s # #else 1908s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_IFACE_SKELETON, OrgProjectOtherIfaceSkeletonPrivate); 1908s # #endif 1908s # 1908s # g_mutex_init (&skeleton->priv->lock); 1908s # skeleton->priv->context = g_main_context_ref_thread_default (); 1908s # } 1908s # 1908s # static void 1908s # org_project_other_iface_skeleton_class_init (OrgProjectOtherIfaceSkeletonClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusInterfaceSkeletonClass *skeleton_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_other_iface_skeleton_finalize; 1908s # 1908s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1908s # skeleton_class->get_info = org_project_other_iface_skeleton_dbus_interface_get_info; 1908s # skeleton_class->get_properties = org_project_other_iface_skeleton_dbus_interface_get_properties; 1908s # skeleton_class->flush = org_project_other_iface_skeleton_dbus_interface_flush; 1908s # skeleton_class->get_vtable = org_project_other_iface_skeleton_dbus_interface_get_vtable; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectOtherIfaceSkeletonPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_other_iface_skeleton_iface_init (OrgProjectOtherIfaceIface *iface) 1908s # { 1908s # iface->simple_signal = _org_project_other_iface_on_signal_simple_signal; 1908s # } 1908s # 1908s # /** 1908s # * org_project_other_iface_skeleton_new: 1908s # * 1908s # * Creates a skeleton object for the D-Bus interface org.project.OtherIface. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectOtherIfaceSkeleton): The skeleton object. 1908s # */ 1908s # OrgProjectOtherIface * 1908s # org_project_other_iface_skeleton_new (void) 1908s # { 1908s # return ORG_PROJECT_OTHER_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_IFACE_SKELETON, NULL)); 1908s # } 1908s # Error: 1908s ok 22 __main__.TestCodegen.test_generate_signals_marshaller_simple_signal 1908s # gdbus-codegen: /usr/bin/gdbus-codegen 1908s # tmpdir: /tmp/tmp2sl8m6g3 1908s # /tmp/tmp2sl8m6g3/tmpw4i2u62f.xml: 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # 1908s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2sl8m6g3/tmpw4i2u62f.xml', '--output', '-', '--body'] 1908s # Return code: 0 1908s # Output: 1908s # /* 1908s # * This file is generated by gdbus-codegen, do not modify it. 1908s # * 1908s # * The license of this code is the same as for the D-Bus interface description 1908s # * it was derived from. Note that it links to GLib, so must comply with the 1908s # * LGPL linking clauses. 1908s # */ 1908s # 1908s # #ifdef HAVE_CONFIG_H 1908s # # include "config.h" 1908s # #endif 1908s # 1908s # #include 1908s # #ifdef G_OS_UNIX 1908s # # include 1908s # #endif 1908s # 1908s # #ifdef G_ENABLE_DEBUG 1908s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1908s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1908s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1908s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1908s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1908s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1908s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1908s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1908s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1908s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1908s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1908s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1908s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1908s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1908s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1908s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1908s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1908s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1908s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1908s # #else /* !G_ENABLE_DEBUG */ 1908s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1908s # * Do not access GValues directly in your code. Instead, use the 1908s # * g_value_get_*() functions 1908s # */ 1908s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1908s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1908s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1908s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1908s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1908s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1908s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1908s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1908s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1908s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1908s # #endif /* !G_ENABLE_DEBUG */ 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusArgInfo parent_struct; 1908s # gboolean use_gvariant; 1908s # } _ExtendedGDBusArgInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusMethodInfo parent_struct; 1908s # const gchar *signal_name; 1908s # gboolean pass_fdlist; 1908s # } _ExtendedGDBusMethodInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusSignalInfo parent_struct; 1908s # const gchar *signal_name; 1908s # } _ExtendedGDBusSignalInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusPropertyInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # guint use_gvariant : 1; 1908s # guint emits_changed_signal : 1; 1908s # } _ExtendedGDBusPropertyInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # GDBusInterfaceInfo parent_struct; 1908s # const gchar *hyphen_name; 1908s # } _ExtendedGDBusInterfaceInfo; 1908s # 1908s # typedef struct 1908s # { 1908s # const _ExtendedGDBusPropertyInfo *info; 1908s # guint prop_id; 1908s # GValue orig_value; /* the value before the change */ 1908s # } ChangedProperty; 1908s # 1908s # static void 1908s # _changed_property_free (ChangedProperty *data) 1908s # { 1908s # g_value_unset (&data->orig_value); 1908s # g_free (data); 1908s # } 1908s # 1908s # static gboolean 1908s # _g_strv_equal0 (gchar **a, gchar **b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # guint n; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # if (g_strv_length (a) != g_strv_length (b)) 1908s # goto out; 1908s # for (n = 0; a[n] != NULL; n++) 1908s # if (g_strcmp0 (a[n], b[n]) != 0) 1908s # goto out; 1908s # ret = TRUE; 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _g_variant_equal0 (GVariant *a, GVariant *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # if (a == NULL && b == NULL) 1908s # { 1908s # ret = TRUE; 1908s # goto out; 1908s # } 1908s # if (a == NULL || b == NULL) 1908s # goto out; 1908s # ret = g_variant_equal (a, b); 1908s # out: 1908s # return ret; 1908s # } 1908s # 1908s # G_GNUC_UNUSED static gboolean 1908s # _g_value_equal (const GValue *a, const GValue *b) 1908s # { 1908s # gboolean ret = FALSE; 1908s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1908s # switch (G_VALUE_TYPE (a)) 1908s # { 1908s # case G_TYPE_BOOLEAN: 1908s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1908s # break; 1908s # case G_TYPE_UCHAR: 1908s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1908s # break; 1908s # case G_TYPE_INT: 1908s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1908s # break; 1908s # case G_TYPE_UINT: 1908s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1908s # break; 1908s # case G_TYPE_INT64: 1908s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1908s # break; 1908s # case G_TYPE_UINT64: 1908s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1908s # break; 1908s # case G_TYPE_DOUBLE: 1908s # { 1908s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1908s # gdouble da = g_value_get_double (a); 1908s # gdouble db = g_value_get_double (b); 1908s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1908s # } 1908s # break; 1908s # case G_TYPE_STRING: 1908s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1908s # break; 1908s # case G_TYPE_VARIANT: 1908s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1908s # break; 1908s # default: 1908s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1908s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1908s # else 1908s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1908s # break; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ 1908s # * Code for interface org.project.SignalingIface 1908s # * ------------------------------------------------------------------------ 1908s # */ 1908s # 1908s # /** 1908s # * SECTION:OrgProjectSignalingIface 1908s # * @title: OrgProjectSignalingIface 1908s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1908s # * 1908s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1908s # */ 1908s # 1908s # enum 1908s # { 1908s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1908s # }; 1908s # 1908s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 1908s # 1908s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1908s # 1908s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SimpleSignal", 1908s # NULL, 1908s # NULL 1908s # }, 1908s # "simple-signal" 1908s # }; 1908s # 1908s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1908s # { 1908s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "org.project.SignalingIface", 1908s # NULL, 1908s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1908s # NULL, 1908s # NULL 1908s # }, 1908s # "org-project-signaling-iface", 1908s # }; 1908s # 1908s # 1908s # /** 1908s # * org_project_signaling_iface_interface_info: 1908s # * 1908s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1908s # * 1908s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1908s # */ 1908s # GDBusInterfaceInfo * 1908s # org_project_signaling_iface_interface_info (void) 1908s # { 1908s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_override_properties: 1908s # * @klass: The class structure for a #GObject derived class. 1908s # * @property_id_begin: The property id to assign to the first overridden property. 1908s # * 1908s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1908s # * The properties are overridden in the order they are defined. 1908s # * 1908s # * Returns: The last property id. 1908s # */ 1908s # guint 1908s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1908s # { 1908s # return property_id_begin - 1; 1908s # } 1908s # 1908s # 1908s # inline static void 1908s # org_project_signaling_iface_signal_marshal_simple_signal ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # g_cclosure_marshal_VOID__VOID (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # 1908s # /** 1908s # * OrgProjectSignalingIface: 1908s # * 1908s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectSignalingIfaceIface: 1908s # * @parent_iface: The parent interface. 1908s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1908s # * 1908s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1908s # */ 1908s # 1908s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1908s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1908s # 1908s # static void 1908s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1908s # { 1908s # /* GObject signals for received D-Bus signals: */ 1908s # /** 1908s # * OrgProjectSignalingIface::simple-signal: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * 1908s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1908s # * 1908s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1908s # */ 1908s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1908s # g_signal_new ("simple-signal", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1908s # NULL, 1908s # NULL, 1908s # org_project_signaling_iface_signal_marshal_simple_signal, 1908s # G_TYPE_NONE, 1908s # 0); 1908s # 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_emit_simple_signal: 1908s # * @object: A #OrgProjectSignalingIface. 1908s # * 1908s # * Emits the "SimpleSignal" D-Bus signal. 1908s # */ 1908s # void 1908s # org_project_signaling_iface_emit_simple_signal ( 1908s # OrgProjectSignalingIface *object) 1908s # { 1908s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectSignalingIfaceProxy: 1908s # * 1908s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectSignalingIfaceProxyClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectSignalingIfaceProxy. 1908s # */ 1908s # 1908s # struct _OrgProjectSignalingIfaceProxyPrivate 1908s # { 1908s # GData *qdata; 1908s # }; 1908s # 1908s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_signaling_iface_proxy_finalize (GObject *object) 1908s # { 1908s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1908s # g_datalist_clear (&proxy->priv->qdata); 1908s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # const GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1908s # const gchar *sender_name G_GNUC_UNUSED, 1908s # const gchar *signal_name, 1908s # GVariant *parameters) 1908s # { 1908s # _ExtendedGDBusSignalInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # gsize n; 1908s # guint signal_id; 1908s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1908s # if (info == NULL) 1908s # return; 1908s # num_params = g_variant_n_children (parameters); 1908s # paramv = g_new0 (GValue, num_params + 1); 1908s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1908s # g_value_set_object (¶mv[0], proxy); 1908s # g_variant_iter_init (&iter, parameters); 1908s # n = 1; 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1908s # g_signal_emitv (paramv, signal_id, 0, NULL); 1908s # for (n = 0; n < num_params + 1; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static void 1908s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1908s # GVariant *changed_properties, 1908s # const gchar *const *invalidated_properties) 1908s # { 1908s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1908s # guint n; 1908s # const gchar *key; 1908s # GVariantIter *iter; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # g_variant_get (changed_properties, "a{sv}", &iter); 1908s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1908s # g_datalist_remove_data (&proxy->priv->qdata, key); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # g_variant_iter_free (iter); 1908s # for (n = 0; invalidated_properties[n] != NULL; n++) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1908s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # } 1908s # 1908s # static void 1908s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1908s # #else 1908s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1908s # #endif 1908s # 1908s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1908s # } 1908s # 1908s # static void 1908s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusProxyClass *proxy_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1908s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1908s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1908s # 1908s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1908s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1908s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_proxy_new: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_signaling_iface_proxy_new ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_proxy_new_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectSignalingIface * 1908s # org_project_signaling_iface_proxy_new_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_proxy_new_sync: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectSignalingIface * 1908s # org_project_signaling_iface_proxy_new_sync ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /** 1908s # * org_project_signaling_iface_proxy_new_for_bus: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_signaling_iface_proxy_new_for_bus ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectSignalingIface * 1908s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectSignalingIface * 1908s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectSignalingIfaceSkeleton: 1908s # * 1908s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectSignalingIfaceSkeletonClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1908s # */ 1908s # 1908s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1908s # { 1908s # GValue *properties; 1908s # GList *changed_properties; 1908s # GSource *changed_properties_idle_source; 1908s # GMainContext *context; 1908s # GMutex lock; 1908s # }; 1908s # 1908s # static void 1908s # _org_project_signaling_iface_skeleton_handle_method_call ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name, 1908s # const gchar *method_name, 1908s # GVariant *parameters, 1908s # GDBusMethodInvocation *invocation, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1908s # _ExtendedGDBusMethodInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # guint num_extra; 1908s # gsize n; 1908s # guint signal_id; 1908s # GValue return_value = G_VALUE_INIT; 1908s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1908s # g_assert (info != NULL); 1908s # num_params = g_variant_n_children (parameters); 1908s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1908s # n = 0; 1908s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1908s # g_value_set_object (¶mv[n++], skeleton); 1908s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1908s # g_value_set_object (¶mv[n++], invocation); 1908s # if (info->pass_fdlist) 1908s # { 1908s # #ifdef G_OS_UNIX 1908s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1908s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1908s # #else 1908s # g_assert_not_reached (); 1908s # #endif 1908s # } 1908s # g_variant_iter_init (&iter, parameters); 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1908s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1908s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1908s # if (!g_value_get_boolean (&return_value)) 1908s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1908s # g_value_unset (&return_value); 1908s # for (n = 0; n < num_params + num_extra; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static GVariant * 1908s # _org_project_signaling_iface_skeleton_handle_get_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # GVariant *ret; 1908s # ret = NULL; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # g_value_init (&value, pspec->value_type); 1908s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1908s # g_value_unset (&value); 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _org_project_signaling_iface_skeleton_handle_set_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GVariant *variant, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # gboolean ret; 1908s # ret = FALSE; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # if (info->use_gvariant) 1908s # g_value_set_variant (&value, variant); 1908s # else 1908s # g_dbus_gvariant_to_gvalue (variant, &value); 1908s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # g_value_unset (&value); 1908s # ret = TRUE; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1908s # { 1908s # _org_project_signaling_iface_skeleton_handle_method_call, 1908s # _org_project_signaling_iface_skeleton_handle_get_property, 1908s # _org_project_signaling_iface_skeleton_handle_set_property, 1908s # {NULL} 1908s # }; 1908s # 1908s # static GDBusInterfaceInfo * 1908s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return org_project_signaling_iface_interface_info (); 1908s # } 1908s # 1908s # static GDBusInterfaceVTable * 1908s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1908s # } 1908s # 1908s # static GVariant * 1908s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1908s # 1908s # GVariantBuilder builder; 1908s # guint n; 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1908s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #else 1908s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #endif 1908s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1908s # goto out; 1908s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1908s # { 1908s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1908s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1908s # { 1908s # GVariant *value; 1908s # value = _org_project_signaling_iface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", info->name, NULL, skeleton); 1908s # if (value != NULL) 1908s # { 1908s # g_variant_take_ref (value); 1908s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1908s # g_variant_unref (value); 1908s # } 1908s # } 1908s # } 1908s # out: 1908s # return g_variant_builder_end (&builder); 1908s # } 1908s # 1908s # static void 1908s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # _org_project_signaling_iface_on_signal_simple_signal ( 1908s # OrgProjectSignalingIface *object) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1908s # 1908s # GList *connections, *l; 1908s # GVariant *signal_variant; 1908s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1908s # 1908s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1908s # for (l = connections; l != NULL; l = l->next) 1908s # { 1908s # GDBusConnection *connection = l->data; 1908s # g_dbus_connection_emit_signal (connection, 1908s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1908s # signal_variant, NULL); 1908s # } 1908s # g_variant_unref (signal_variant); 1908s # g_list_free_full (connections, g_object_unref); 1908s # } 1908s # 1908s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1908s # { 1908s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1908s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1908s # if (skeleton->priv->changed_properties_idle_source != NULL) 1908s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1908s # g_main_context_unref (skeleton->priv->context); 1908s # g_mutex_clear (&skeleton->priv->lock); 1908s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1908s # #else 1908s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1908s # #endif 1908s # 1908s # g_mutex_init (&skeleton->priv->lock); 1908s # skeleton->priv->context = g_main_context_ref_thread_default (); 1908s # } 1908s # 1908s # static void 1908s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusInterfaceSkeletonClass *skeleton_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1908s # 1908s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1908s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1908s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1908s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1908s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1908s # { 1908s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1908s # } 1908s # 1908s # /** 1908s # * org_project_signaling_iface_skeleton_new: 1908s # * 1908s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1908s # */ 1908s # OrgProjectSignalingIface * 1908s # org_project_signaling_iface_skeleton_new (void) 1908s # { 1908s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ 1908s # * Code for interface org.project.OtherSignalingIface 1908s # * ------------------------------------------------------------------------ 1908s # */ 1908s # 1908s # /** 1908s # * SECTION:OrgProjectOtherSignalingIface 1908s # * @title: OrgProjectOtherSignalingIface 1908s # * @short_description: Generated C code for the org.project.OtherSignalingIface D-Bus interface 1908s # * 1908s # * This section contains code for working with the org.project.OtherSignalingIface D-Bus interface in C. 1908s # */ 1908s # 1908s # enum 1908s # { 1908s # _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL, 1908s # }; 1908s # 1908s # static unsigned _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 1908s # 1908s # /* ---- Introspection data for org.project.OtherSignalingIface ---- */ 1908s # 1908s # static const _ExtendedGDBusSignalInfo _org_project_other_signaling_iface_signal_info_simple_signal = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "SimpleSignal", 1908s # NULL, 1908s # NULL 1908s # }, 1908s # "simple-signal" 1908s # }; 1908s # 1908s # static const GDBusSignalInfo * const _org_project_other_signaling_iface_signal_info_pointers[] = 1908s # { 1908s # &_org_project_other_signaling_iface_signal_info_simple_signal.parent_struct, 1908s # NULL 1908s # }; 1908s # 1908s # static const _ExtendedGDBusInterfaceInfo _org_project_other_signaling_iface_interface_info = 1908s # { 1908s # { 1908s # -1, 1908s # (gchar *) "org.project.OtherSignalingIface", 1908s # NULL, 1908s # (GDBusSignalInfo **) &_org_project_other_signaling_iface_signal_info_pointers, 1908s # NULL, 1908s # NULL 1908s # }, 1908s # "org-project-other-signaling-iface", 1908s # }; 1908s # 1908s # 1908s # /** 1908s # * org_project_other_signaling_iface_interface_info: 1908s # * 1908s # * Gets a machine-readable description of the org.project.OtherSignalingIface D-Bus interface. 1908s # * 1908s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1908s # */ 1908s # GDBusInterfaceInfo * 1908s # org_project_other_signaling_iface_interface_info (void) 1908s # { 1908s # return (GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct; 1908s # } 1908s # 1908s # /** 1908s # * org_project_other_signaling_iface_override_properties: 1908s # * @klass: The class structure for a #GObject derived class. 1908s # * @property_id_begin: The property id to assign to the first overridden property. 1908s # * 1908s # * Overrides all #GObject properties in the #OrgProjectOtherSignalingIface interface for a concrete class. 1908s # * The properties are overridden in the order they are defined. 1908s # * 1908s # * Returns: The last property id. 1908s # */ 1908s # guint 1908s # org_project_other_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1908s # { 1908s # return property_id_begin - 1; 1908s # } 1908s # 1908s # 1908s # inline static void 1908s # org_project_other_signaling_iface_signal_marshal_simple_signal ( 1908s # GClosure *closure, 1908s # GValue *return_value, 1908s # unsigned int n_param_values, 1908s # const GValue *param_values, 1908s # void *invocation_hint, 1908s # void *marshal_data) 1908s # { 1908s # g_cclosure_marshal_VOID__VOID (closure, 1908s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1908s # } 1908s # 1908s # 1908s # /** 1908s # * OrgProjectOtherSignalingIface: 1908s # * 1908s # * Abstract interface type for the D-Bus interface org.project.OtherSignalingIface. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectOtherSignalingIfaceIface: 1908s # * @parent_iface: The parent interface. 1908s # * @simple_signal: Handler for the #OrgProjectOtherSignalingIface::simple-signal signal. 1908s # * 1908s # * Virtual table for the D-Bus interface org.project.OtherSignalingIface. 1908s # */ 1908s # 1908s # typedef OrgProjectOtherSignalingIfaceIface OrgProjectOtherSignalingIfaceInterface; 1908s # G_DEFINE_INTERFACE (OrgProjectOtherSignalingIface, org_project_other_signaling_iface, G_TYPE_OBJECT) 1908s # 1908s # static void 1908s # org_project_other_signaling_iface_default_init (OrgProjectOtherSignalingIfaceIface *iface) 1908s # { 1908s # /* GObject signals for received D-Bus signals: */ 1908s # /** 1908s # * OrgProjectOtherSignalingIface::simple-signal: 1908s # * @object: A #OrgProjectOtherSignalingIface. 1908s # * 1908s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1908s # * 1908s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1908s # */ 1908s # _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1908s # g_signal_new ("simple-signal", 1908s # G_TYPE_FROM_INTERFACE (iface), 1908s # G_SIGNAL_RUN_LAST, 1908s # G_STRUCT_OFFSET (OrgProjectOtherSignalingIfaceIface, simple_signal), 1908s # NULL, 1908s # NULL, 1908s # org_project_other_signaling_iface_signal_marshal_simple_signal, 1908s # G_TYPE_NONE, 1908s # 0); 1908s # 1908s # } 1908s # 1908s # /** 1908s # * org_project_other_signaling_iface_emit_simple_signal: 1908s # * @object: A #OrgProjectOtherSignalingIface. 1908s # * 1908s # * Emits the "SimpleSignal" D-Bus signal. 1908s # */ 1908s # void 1908s # org_project_other_signaling_iface_emit_simple_signal ( 1908s # OrgProjectOtherSignalingIface *object) 1908s # { 1908s # g_signal_emit (object, _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1908s # } 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectOtherSignalingIfaceProxy: 1908s # * 1908s # * The #OrgProjectOtherSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectOtherSignalingIfaceProxyClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectOtherSignalingIfaceProxy. 1908s # */ 1908s # 1908s # struct _OrgProjectOtherSignalingIfaceProxyPrivate 1908s # { 1908s # GData *qdata; 1908s # }; 1908s # 1908s # static void org_project_other_signaling_iface_proxy_iface_init (OrgProjectOtherSignalingIfaceIface *iface); 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceProxy, org_project_other_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_ADD_PRIVATE (OrgProjectOtherSignalingIfaceProxy) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_proxy_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceProxy, org_project_other_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_proxy_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_other_signaling_iface_proxy_finalize (GObject *object) 1908s # { 1908s # OrgProjectOtherSignalingIfaceProxy *proxy = ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY (object); 1908s # g_datalist_clear (&proxy->priv->qdata); 1908s # G_OBJECT_CLASS (org_project_other_signaling_iface_proxy_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_other_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_other_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1908s # guint prop_id G_GNUC_UNUSED, 1908s # const GValue *value G_GNUC_UNUSED, 1908s # GParamSpec *pspec G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # org_project_other_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1908s # const gchar *sender_name G_GNUC_UNUSED, 1908s # const gchar *signal_name, 1908s # GVariant *parameters) 1908s # { 1908s # _ExtendedGDBusSignalInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # gsize n; 1908s # guint signal_id; 1908s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, signal_name); 1908s # if (info == NULL) 1908s # return; 1908s # num_params = g_variant_n_children (parameters); 1908s # paramv = g_new0 (GValue, num_params + 1); 1908s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1908s # g_value_set_object (¶mv[0], proxy); 1908s # g_variant_iter_init (&iter, parameters); 1908s # n = 1; 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1908s # g_signal_emitv (paramv, signal_id, 0, NULL); 1908s # for (n = 0; n < num_params + 1; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static void 1908s # org_project_other_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1908s # GVariant *changed_properties, 1908s # const gchar *const *invalidated_properties) 1908s # { 1908s # OrgProjectOtherSignalingIfaceProxy *proxy = ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY (_proxy); 1908s # guint n; 1908s # const gchar *key; 1908s # GVariantIter *iter; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # g_variant_get (changed_properties, "a{sv}", &iter); 1908s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, key); 1908s # g_datalist_remove_data (&proxy->priv->qdata, key); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # g_variant_iter_free (iter); 1908s # for (n = 0; invalidated_properties[n] != NULL; n++) 1908s # { 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1908s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1908s # if (info != NULL) 1908s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1908s # } 1908s # } 1908s # 1908s # static void 1908s # org_project_other_signaling_iface_proxy_init (OrgProjectOtherSignalingIfaceProxy *proxy) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # proxy->priv = org_project_other_signaling_iface_proxy_get_instance_private (proxy); 1908s # #else 1908s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY, OrgProjectOtherSignalingIfaceProxyPrivate); 1908s # #endif 1908s # 1908s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_signaling_iface_interface_info ()); 1908s # } 1908s # 1908s # static void 1908s # org_project_other_signaling_iface_proxy_class_init (OrgProjectOtherSignalingIfaceProxyClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusProxyClass *proxy_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_other_signaling_iface_proxy_finalize; 1908s # gobject_class->get_property = org_project_other_signaling_iface_proxy_get_property; 1908s # gobject_class->set_property = org_project_other_signaling_iface_proxy_set_property; 1908s # 1908s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1908s # proxy_class->g_signal = org_project_other_signaling_iface_proxy_g_signal; 1908s # proxy_class->g_properties_changed = org_project_other_signaling_iface_proxy_g_properties_changed; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectOtherSignalingIfaceProxyPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_other_signaling_iface_proxy_iface_init (OrgProjectOtherSignalingIfaceIface *iface G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # /** 1908s # * org_project_other_signaling_iface_proxy_new: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherSignalingIface. See g_dbus_proxy_new() for more details. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_other_signaling_iface_proxy_new_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_other_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_other_signaling_iface_proxy_new ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.OtherSignalingIface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_other_signaling_iface_proxy_new_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_signaling_iface_proxy_new(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_other_signaling_iface_proxy_new(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectOtherSignalingIface * 1908s # org_project_other_signaling_iface_proxy_new_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_other_signaling_iface_proxy_new_sync: 1908s # * @connection: A #GDBusConnection. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherSignalingIface. See g_dbus_proxy_new_sync() for more details. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_other_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectOtherSignalingIface * 1908s # org_project_other_signaling_iface_proxy_new_sync ( 1908s # GDBusConnection *connection, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.OtherSignalingIface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /** 1908s # * org_project_other_signaling_iface_proxy_new_for_bus: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1908s # * @user_data: User data to pass to @callback. 1908s # * 1908s # * Like org_project_other_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1908s # * You can then call org_project_other_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1908s # * 1908s # * See org_project_other_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1908s # */ 1908s # void 1908s # org_project_other_signaling_iface_proxy_new_for_bus ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GAsyncReadyCallback callback, 1908s # gpointer user_data) 1908s # { 1908s # g_async_initable_new_async (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.OtherSignalingIface", NULL); 1908s # } 1908s # 1908s # /** 1908s # * org_project_other_signaling_iface_proxy_new_for_bus_finish: 1908s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_signaling_iface_proxy_new_for_bus(). 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Finishes an operation started with org_project_other_signaling_iface_proxy_new_for_bus(). 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectOtherSignalingIface * 1908s # org_project_other_signaling_iface_proxy_new_for_bus_finish ( 1908s # GAsyncResult *res, 1908s # GError **error) 1908s # { 1908s # GObject *ret; 1908s # GObject *source_object; 1908s # source_object = g_async_result_get_source_object (res); 1908s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1908s # g_object_unref (source_object); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # /** 1908s # * org_project_other_signaling_iface_proxy_new_for_bus_sync: 1908s # * @bus_type: A #GBusType. 1908s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1908s # * @name: A bus name (well-known or unique). 1908s # * @object_path: An object path. 1908s # * @cancellable: (nullable): A #GCancellable or %NULL. 1908s # * @error: Return location for error or %NULL 1908s # * 1908s # * Like org_project_other_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1908s # * 1908s # * The calling thread is blocked until a reply is received. 1908s # * 1908s # * See org_project_other_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1908s # */ 1908s # OrgProjectOtherSignalingIface * 1908s # org_project_other_signaling_iface_proxy_new_for_bus_sync ( 1908s # GBusType bus_type, 1908s # GDBusProxyFlags flags, 1908s # const gchar *name, 1908s # const gchar *object_path, 1908s # GCancellable *cancellable, 1908s # GError **error) 1908s # { 1908s # GInitable *ret; 1908s # ret = g_initable_new (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.OtherSignalingIface", NULL); 1908s # if (ret != NULL) 1908s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1908s # else 1908s # return NULL; 1908s # } 1908s # 1908s # 1908s # /* ------------------------------------------------------------------------ */ 1908s # 1908s # /** 1908s # * OrgProjectOtherSignalingIfaceSkeleton: 1908s # * 1908s # * The #OrgProjectOtherSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1908s # */ 1908s # 1908s # /** 1908s # * OrgProjectOtherSignalingIfaceSkeletonClass: 1908s # * @parent_class: The parent class. 1908s # * 1908s # * Class structure for #OrgProjectOtherSignalingIfaceSkeleton. 1908s # */ 1908s # 1908s # struct _OrgProjectOtherSignalingIfaceSkeletonPrivate 1908s # { 1908s # GValue *properties; 1908s # GList *changed_properties; 1908s # GSource *changed_properties_idle_source; 1908s # GMainContext *context; 1908s # GMutex lock; 1908s # }; 1908s # 1908s # static void 1908s # _org_project_other_signaling_iface_skeleton_handle_method_call ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name, 1908s # const gchar *method_name, 1908s # GVariant *parameters, 1908s # GDBusMethodInvocation *invocation, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 1908s # _ExtendedGDBusMethodInfo *info; 1908s # GVariantIter iter; 1908s # GVariant *child; 1908s # GValue *paramv; 1908s # gsize num_params; 1908s # guint num_extra; 1908s # gsize n; 1908s # guint signal_id; 1908s # GValue return_value = G_VALUE_INIT; 1908s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1908s # g_assert (info != NULL); 1908s # num_params = g_variant_n_children (parameters); 1908s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1908s # n = 0; 1908s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1908s # g_value_set_object (¶mv[n++], skeleton); 1908s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1908s # g_value_set_object (¶mv[n++], invocation); 1908s # if (info->pass_fdlist) 1908s # { 1908s # #ifdef G_OS_UNIX 1908s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1908s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1908s # #else 1908s # g_assert_not_reached (); 1908s # #endif 1908s # } 1908s # g_variant_iter_init (&iter, parameters); 1908s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1908s # { 1908s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1908s # if (arg_info->use_gvariant) 1908s # { 1908s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1908s # g_value_set_variant (¶mv[n], child); 1908s # n++; 1908s # } 1908s # else 1908s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1908s # g_variant_unref (child); 1908s # } 1908s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1908s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1908s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1908s # if (!g_value_get_boolean (&return_value)) 1908s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1908s # g_value_unset (&return_value); 1908s # for (n = 0; n < num_params + num_extra; n++) 1908s # g_value_unset (¶mv[n]); 1908s # g_free (paramv); 1908s # } 1908s # 1908s # static GVariant * 1908s # _org_project_other_signaling_iface_skeleton_handle_get_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # GVariant *ret; 1908s # ret = NULL; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # g_value_init (&value, pspec->value_type); 1908s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1908s # g_value_unset (&value); 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static gboolean 1908s # _org_project_other_signaling_iface_skeleton_handle_set_property ( 1908s # GDBusConnection *connection G_GNUC_UNUSED, 1908s # const gchar *sender G_GNUC_UNUSED, 1908s # const gchar *object_path G_GNUC_UNUSED, 1908s # const gchar *interface_name G_GNUC_UNUSED, 1908s # const gchar *property_name, 1908s # GVariant *variant, 1908s # GError **error, 1908s # gpointer user_data) 1908s # { 1908s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 1908s # GValue value = G_VALUE_INIT; 1908s # GParamSpec *pspec; 1908s # _ExtendedGDBusPropertyInfo *info; 1908s # gboolean ret; 1908s # ret = FALSE; 1908s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, property_name); 1908s # g_assert (info != NULL); 1908s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1908s # if (pspec == NULL) 1908s # { 1908s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1908s # } 1908s # else 1908s # { 1908s # if (info->use_gvariant) 1908s # g_value_set_variant (&value, variant); 1908s # else 1908s # g_dbus_gvariant_to_gvalue (variant, &value); 1908s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1908s # g_value_unset (&value); 1908s # ret = TRUE; 1908s # } 1908s # return ret; 1908s # } 1908s # 1908s # static const GDBusInterfaceVTable _org_project_other_signaling_iface_skeleton_vtable = 1908s # { 1908s # _org_project_other_signaling_iface_skeleton_handle_method_call, 1908s # _org_project_other_signaling_iface_skeleton_handle_get_property, 1908s # _org_project_other_signaling_iface_skeleton_handle_set_property, 1908s # {NULL} 1908s # }; 1908s # 1908s # static GDBusInterfaceInfo * 1908s # org_project_other_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return org_project_other_signaling_iface_interface_info (); 1908s # } 1908s # 1908s # static GDBusInterfaceVTable * 1908s # org_project_other_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1908s # { 1908s # return (GDBusInterfaceVTable *) &_org_project_other_signaling_iface_skeleton_vtable; 1908s # } 1908s # 1908s # static GVariant * 1908s # org_project_other_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1908s # { 1908s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (_skeleton); 1908s # 1908s # GVariantBuilder builder; 1908s # guint n; 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1908s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #else 1908s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1908s # #endif 1908s # if (_org_project_other_signaling_iface_interface_info.parent_struct.properties == NULL) 1908s # goto out; 1908s # for (n = 0; _org_project_other_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1908s # { 1908s # GDBusPropertyInfo *info = _org_project_other_signaling_iface_interface_info.parent_struct.properties[n]; 1908s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1908s # { 1908s # GVariant *value; 1908s # value = _org_project_other_signaling_iface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherSignalingIface", info->name, NULL, skeleton); 1908s # if (value != NULL) 1908s # { 1908s # g_variant_take_ref (value); 1908s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1908s # g_variant_unref (value); 1908s # } 1908s # } 1908s # } 1908s # out: 1908s # return g_variant_builder_end (&builder); 1908s # } 1908s # 1908s # static void 1908s # org_project_other_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1908s # { 1908s # } 1908s # 1908s # static void 1908s # _org_project_other_signaling_iface_on_signal_simple_signal ( 1908s # OrgProjectOtherSignalingIface *object) 1908s # { 1908s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (object); 1908s # 1908s # GList *connections, *l; 1908s # GVariant *signal_variant; 1908s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1908s # 1908s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1908s # for (l = connections; l != NULL; l = l->next) 1908s # { 1908s # GDBusConnection *connection = l->data; 1908s # g_dbus_connection_emit_signal (connection, 1908s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherSignalingIface", "SimpleSignal", 1908s # signal_variant, NULL); 1908s # } 1908s # g_variant_unref (signal_variant); 1908s # g_list_free_full (connections, g_object_unref); 1908s # } 1908s # 1908s # static void org_project_other_signaling_iface_skeleton_iface_init (OrgProjectOtherSignalingIfaceIface *iface); 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceSkeleton, org_project_other_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_ADD_PRIVATE (OrgProjectOtherSignalingIfaceSkeleton) 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_skeleton_iface_init)) 1908s # 1908s # #else 1908s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceSkeleton, org_project_other_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1908s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_skeleton_iface_init)) 1908s # 1908s # #endif 1908s # static void 1908s # org_project_other_signaling_iface_skeleton_finalize (GObject *object) 1908s # { 1908s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (object); 1908s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1908s # if (skeleton->priv->changed_properties_idle_source != NULL) 1908s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1908s # g_main_context_unref (skeleton->priv->context); 1908s # g_mutex_clear (&skeleton->priv->lock); 1908s # G_OBJECT_CLASS (org_project_other_signaling_iface_skeleton_parent_class)->finalize (object); 1908s # } 1908s # 1908s # static void 1908s # org_project_other_signaling_iface_skeleton_init (OrgProjectOtherSignalingIfaceSkeleton *skeleton) 1908s # { 1908s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1908s # skeleton->priv = org_project_other_signaling_iface_skeleton_get_instance_private (skeleton); 1908s # #else 1908s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON, OrgProjectOtherSignalingIfaceSkeletonPrivate); 1908s # #endif 1908s # 1908s # g_mutex_init (&skeleton->priv->lock); 1908s # skeleton->priv->context = g_main_context_ref_thread_default (); 1908s # } 1908s # 1908s # static void 1908s # org_project_other_signaling_iface_skeleton_class_init (OrgProjectOtherSignalingIfaceSkeletonClass *klass) 1908s # { 1908s # GObjectClass *gobject_class; 1908s # GDBusInterfaceSkeletonClass *skeleton_class; 1908s # 1908s # gobject_class = G_OBJECT_CLASS (klass); 1908s # gobject_class->finalize = org_project_other_signaling_iface_skeleton_finalize; 1908s # 1908s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1908s # skeleton_class->get_info = org_project_other_signaling_iface_skeleton_dbus_interface_get_info; 1908s # skeleton_class->get_properties = org_project_other_signaling_iface_skeleton_dbus_interface_get_properties; 1908s # skeleton_class->flush = org_project_other_signaling_iface_skeleton_dbus_interface_flush; 1908s # skeleton_class->get_vtable = org_project_other_signaling_iface_skeleton_dbus_interface_get_vtable; 1908s # 1908s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1908s # g_type_class_add_private (klass, sizeof (OrgProjectOtherSignalingIfaceSkeletonPrivate)); 1908s # #endif 1908s # } 1908s # 1908s # static void 1908s # org_project_other_signaling_iface_skeleton_iface_init (OrgProjectOtherSignalingIfaceIface *iface) 1908s # { 1908s # iface->simple_signal = _org_project_other_signaling_iface_on_signal_simple_signal; 1908s # } 1908s # 1908s # /** 1908s # * org_project_other_signaling_iface_skeleton_new: 1908s # * 1908s # * Creates a skeleton object for the D-Bus interface org.project.OtherSignalingIface. 1908s # * 1908s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceSkeleton): The skeleton object. 1908s # */ 1908s # OrgProjectOtherSignalingIface * 1908s # org_project_other_signaling_iface_skeleton_new (void) 1908s # { 1908s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON, NULL)); 1908s # } 1908s # Error: 1910s ok 23 __main__.TestCodegen.test_generate_signals_marshaller_single_typed_args 1910s # gdbus-codegen: /usr/bin/gdbus-codegen 1910s # tmpdir: /tmp/tmp2qpmu6va 1910s # /tmp/tmp2qpmu6va/tmplrph8bjg.xml: 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2qpmu6va/tmplrph8bjg.xml', '--output', '-', '--body'] 1910s # Return code: 0 1910s # Output: 1910s # /* 1910s # * This file is generated by gdbus-codegen, do not modify it. 1910s # * 1910s # * The license of this code is the same as for the D-Bus interface description 1910s # * it was derived from. Note that it links to GLib, so must comply with the 1910s # * LGPL linking clauses. 1910s # */ 1910s # 1910s # #ifdef HAVE_CONFIG_H 1910s # # include "config.h" 1910s # #endif 1910s # 1910s # #include 1910s # #ifdef G_OS_UNIX 1910s # # include 1910s # #endif 1910s # 1910s # #ifdef G_ENABLE_DEBUG 1910s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1910s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1910s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1910s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1910s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1910s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1910s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1910s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1910s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1910s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1910s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1910s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1910s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1910s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1910s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1910s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1910s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1910s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1910s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1910s # #else /* !G_ENABLE_DEBUG */ 1910s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1910s # * Do not access GValues directly in your code. Instead, use the 1910s # * g_value_get_*() functions 1910s # */ 1910s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1910s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1910s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1910s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1910s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1910s # #endif /* !G_ENABLE_DEBUG */ 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusArgInfo parent_struct; 1910s # gboolean use_gvariant; 1910s # } _ExtendedGDBusArgInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusMethodInfo parent_struct; 1910s # const gchar *signal_name; 1910s # gboolean pass_fdlist; 1910s # } _ExtendedGDBusMethodInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusSignalInfo parent_struct; 1910s # const gchar *signal_name; 1910s # } _ExtendedGDBusSignalInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusPropertyInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # guint use_gvariant : 1; 1910s # guint emits_changed_signal : 1; 1910s # } _ExtendedGDBusPropertyInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusInterfaceInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # } _ExtendedGDBusInterfaceInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # const _ExtendedGDBusPropertyInfo *info; 1910s # guint prop_id; 1910s # GValue orig_value; /* the value before the change */ 1910s # } ChangedProperty; 1910s # 1910s # static void 1910s # _changed_property_free (ChangedProperty *data) 1910s # { 1910s # g_value_unset (&data->orig_value); 1910s # g_free (data); 1910s # } 1910s # 1910s # static gboolean 1910s # _g_strv_equal0 (gchar **a, gchar **b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # guint n; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # if (g_strv_length (a) != g_strv_length (b)) 1910s # goto out; 1910s # for (n = 0; a[n] != NULL; n++) 1910s # if (g_strcmp0 (a[n], b[n]) != 0) 1910s # goto out; 1910s # ret = TRUE; 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _g_variant_equal0 (GVariant *a, GVariant *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # ret = g_variant_equal (a, b); 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # G_GNUC_UNUSED static gboolean 1910s # _g_value_equal (const GValue *a, const GValue *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1910s # switch (G_VALUE_TYPE (a)) 1910s # { 1910s # case G_TYPE_BOOLEAN: 1910s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1910s # break; 1910s # case G_TYPE_UCHAR: 1910s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1910s # break; 1910s # case G_TYPE_INT: 1910s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1910s # break; 1910s # case G_TYPE_UINT: 1910s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1910s # break; 1910s # case G_TYPE_INT64: 1910s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1910s # break; 1910s # case G_TYPE_UINT64: 1910s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1910s # break; 1910s # case G_TYPE_DOUBLE: 1910s # { 1910s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1910s # gdouble da = g_value_get_double (a); 1910s # gdouble db = g_value_get_double (b); 1910s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1910s # } 1910s # break; 1910s # case G_TYPE_STRING: 1910s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1910s # break; 1910s # case G_TYPE_VARIANT: 1910s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1910s # break; 1910s # default: 1910s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1910s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1910s # else 1910s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1910s # break; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ 1910s # * Code for interface org.project.SignalingIface 1910s # * ------------------------------------------------------------------------ 1910s # */ 1910s # 1910s # /** 1910s # * SECTION:OrgProjectSignalingIface 1910s # * @title: OrgProjectSignalingIface 1910s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1910s # * 1910s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1910s # */ 1910s # 1910s # enum 1910s # { 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1910s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B, 1910s # }; 1910s # 1910s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1910s # 1910s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SimpleSignal", 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "simple-signal" 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_arg_b = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "arg_b", 1910s # (gchar *) "b", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_arg_b.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_b = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SingleArgSignalB", 1910s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers, 1910s # NULL 1910s # }, 1910s # "single-arg-signal-b" 1910s # }; 1910s # 1910s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_b.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "org.project.SignalingIface", 1910s # NULL, 1910s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "org-project-signaling-iface", 1910s # }; 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_interface_info: 1910s # * 1910s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1910s # * 1910s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1910s # */ 1910s # GDBusInterfaceInfo * 1910s # org_project_signaling_iface_interface_info (void) 1910s # { 1910s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_override_properties: 1910s # * @klass: The class structure for a #GObject derived class. 1910s # * @property_id_begin: The property id to assign to the first overridden property. 1910s # * 1910s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1910s # * The properties are overridden in the order they are defined. 1910s # * 1910s # * Returns: The last property id. 1910s # */ 1910s # guint 1910s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1910s # { 1910s # return property_id_begin - 1; 1910s # } 1910s # 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_simple_signal ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__VOID (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_b ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__BOOLEAN (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface: 1910s # * 1910s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceIface: 1910s # * @parent_iface: The parent interface. 1910s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1910s # * @single_arg_signal_b: Handler for the #OrgProjectSignalingIface::single-arg-signal-b signal. 1910s # * 1910s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1910s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1910s # 1910s # static void 1910s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # /* GObject signals for received D-Bus signals: */ 1910s # /** 1910s # * OrgProjectSignalingIface::simple-signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1910s # g_signal_new ("simple-signal", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_simple_signal, 1910s # G_TYPE_NONE, 1910s # 0); 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface::single-arg-signal-b: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_b: Argument. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalB" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B] = 1910s # g_signal_new ("single-arg-signal-b", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_b), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_b, 1910s # G_TYPE_NONE, 1910s # 1, G_TYPE_BOOLEAN); 1910s # 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_simple_signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * Emits the "SimpleSignal" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_single_arg_signal_b: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_b: Argument to pass with the signal. 1910s # * 1910s # * Emits the "SingleArgSignalB" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_single_arg_signal_b ( 1910s # OrgProjectSignalingIface *object, 1910s # gboolean arg_arg_b) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B], 0, arg_arg_b); 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxy: 1910s # * 1910s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxyClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceProxy. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceProxyPrivate 1910s # { 1910s # GData *qdata; 1910s # }; 1910s # 1910s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_proxy_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1910s # g_datalist_clear (&proxy->priv->qdata); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # const GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1910s # const gchar *sender_name G_GNUC_UNUSED, 1910s # const gchar *signal_name, 1910s # GVariant *parameters) 1910s # { 1910s # _ExtendedGDBusSignalInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # gsize n; 1910s # guint signal_id; 1910s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1910s # if (info == NULL) 1910s # return; 1910s # num_params = g_variant_n_children (parameters); 1910s # paramv = g_new0 (GValue, num_params + 1); 1910s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[0], proxy); 1910s # g_variant_iter_init (&iter, parameters); 1910s # n = 1; 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_signal_emitv (paramv, signal_id, 0, NULL); 1910s # for (n = 0; n < num_params + 1; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1910s # GVariant *changed_properties, 1910s # const gchar *const *invalidated_properties) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1910s # guint n; 1910s # const gchar *key; 1910s # GVariantIter *iter; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # g_variant_get (changed_properties, "a{sv}", &iter); 1910s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1910s # g_datalist_remove_data (&proxy->priv->qdata, key); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # g_variant_iter_free (iter); 1910s # for (n = 0; invalidated_properties[n] != NULL; n++) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1910s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1910s # #else 1910s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1910s # #endif 1910s # 1910s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusProxyClass *proxy_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1910s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1910s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1910s # 1910s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1910s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1910s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_sync: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_sync ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new_for_bus ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeleton: 1910s # * 1910s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeletonClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1910s # { 1910s # GValue *properties; 1910s # GList *changed_properties; 1910s # GSource *changed_properties_idle_source; 1910s # GMainContext *context; 1910s # GMutex lock; 1910s # }; 1910s # 1910s # static void 1910s # _org_project_signaling_iface_skeleton_handle_method_call ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name, 1910s # const gchar *method_name, 1910s # GVariant *parameters, 1910s # GDBusMethodInvocation *invocation, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # _ExtendedGDBusMethodInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # guint num_extra; 1910s # gsize n; 1910s # guint signal_id; 1910s # GValue return_value = G_VALUE_INIT; 1910s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1910s # g_assert (info != NULL); 1910s # num_params = g_variant_n_children (parameters); 1910s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1910s # n = 0; 1910s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[n++], skeleton); 1910s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1910s # g_value_set_object (¶mv[n++], invocation); 1910s # if (info->pass_fdlist) 1910s # { 1910s # #ifdef G_OS_UNIX 1910s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1910s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1910s # #else 1910s # g_assert_not_reached (); 1910s # #endif 1910s # } 1910s # g_variant_iter_init (&iter, parameters); 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1910s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1910s # if (!g_value_get_boolean (&return_value)) 1910s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1910s # g_value_unset (&return_value); 1910s # for (n = 0; n < num_params + num_extra; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static GVariant * 1910s # _org_project_signaling_iface_skeleton_handle_get_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # GVariant *ret; 1910s # ret = NULL; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # g_value_init (&value, pspec->value_type); 1910s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1910s # g_value_unset (&value); 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _org_project_signaling_iface_skeleton_handle_set_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GVariant *variant, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # gboolean ret; 1910s # ret = FALSE; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # if (info->use_gvariant) 1910s # g_value_set_variant (&value, variant); 1910s # else 1910s # g_dbus_gvariant_to_gvalue (variant, &value); 1910s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # g_value_unset (&value); 1910s # ret = TRUE; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1910s # { 1910s # _org_project_signaling_iface_skeleton_handle_method_call, 1910s # _org_project_signaling_iface_skeleton_handle_get_property, 1910s # _org_project_signaling_iface_skeleton_handle_set_property, 1910s # {NULL} 1910s # }; 1910s # 1910s # static GDBusInterfaceInfo * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return org_project_signaling_iface_interface_info (); 1910s # } 1910s # 1910s # static GDBusInterfaceVTable * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1910s # } 1910s # 1910s # static GVariant * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1910s # 1910s # GVariantBuilder builder; 1910s # guint n; 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1910s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #else 1910s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #endif 1910s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1910s # goto out; 1910s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1910s # { 1910s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1910s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1910s # { 1910s # GVariant *value; 1910s # value = _org_project_signaling_iface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", info->name, NULL, skeleton); 1910s # if (value != NULL) 1910s # { 1910s # g_variant_take_ref (value); 1910s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1910s # g_variant_unref (value); 1910s # } 1910s # } 1910s # } 1910s # out: 1910s # return g_variant_builder_end (&builder); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_single_arg_signal_b ( 1910s # OrgProjectSignalingIface *object, 1910s # gboolean arg_arg_b) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("(b)", 1910s # arg_arg_b)); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalB", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1910s # if (skeleton->priv->changed_properties_idle_source != NULL) 1910s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1910s # g_main_context_unref (skeleton->priv->context); 1910s # g_mutex_clear (&skeleton->priv->lock); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1910s # #else 1910s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1910s # #endif 1910s # 1910s # g_mutex_init (&skeleton->priv->lock); 1910s # skeleton->priv->context = g_main_context_ref_thread_default (); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusInterfaceSkeletonClass *skeleton_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1910s # 1910s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1910s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1910s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1910s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1910s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1910s # iface->single_arg_signal_b = _org_project_signaling_iface_on_signal_single_arg_signal_b; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_skeleton_new: 1910s # * 1910s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_skeleton_new (void) 1910s # { 1910s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1910s # } 1910s # Error: 1910s # 1910s # /tmp/tmp2qpmu6va/tmptn2tu8o7.xml: 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2qpmu6va/tmptn2tu8o7.xml', '--output', '-', '--body'] 1910s # Return code: 0 1910s # Output: 1910s # /* 1910s # * This file is generated by gdbus-codegen, do not modify it. 1910s # * 1910s # * The license of this code is the same as for the D-Bus interface description 1910s # * it was derived from. Note that it links to GLib, so must comply with the 1910s # * LGPL linking clauses. 1910s # */ 1910s # 1910s # #ifdef HAVE_CONFIG_H 1910s # # include "config.h" 1910s # #endif 1910s # 1910s # #include 1910s # #ifdef G_OS_UNIX 1910s # # include 1910s # #endif 1910s # 1910s # #ifdef G_ENABLE_DEBUG 1910s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1910s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1910s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1910s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1910s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1910s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1910s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1910s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1910s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1910s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1910s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1910s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1910s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1910s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1910s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1910s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1910s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1910s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1910s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1910s # #else /* !G_ENABLE_DEBUG */ 1910s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1910s # * Do not access GValues directly in your code. Instead, use the 1910s # * g_value_get_*() functions 1910s # */ 1910s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1910s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1910s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1910s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1910s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1910s # #endif /* !G_ENABLE_DEBUG */ 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusArgInfo parent_struct; 1910s # gboolean use_gvariant; 1910s # } _ExtendedGDBusArgInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusMethodInfo parent_struct; 1910s # const gchar *signal_name; 1910s # gboolean pass_fdlist; 1910s # } _ExtendedGDBusMethodInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusSignalInfo parent_struct; 1910s # const gchar *signal_name; 1910s # } _ExtendedGDBusSignalInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusPropertyInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # guint use_gvariant : 1; 1910s # guint emits_changed_signal : 1; 1910s # } _ExtendedGDBusPropertyInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusInterfaceInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # } _ExtendedGDBusInterfaceInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # const _ExtendedGDBusPropertyInfo *info; 1910s # guint prop_id; 1910s # GValue orig_value; /* the value before the change */ 1910s # } ChangedProperty; 1910s # 1910s # static void 1910s # _changed_property_free (ChangedProperty *data) 1910s # { 1910s # g_value_unset (&data->orig_value); 1910s # g_free (data); 1910s # } 1910s # 1910s # static gboolean 1910s # _g_strv_equal0 (gchar **a, gchar **b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # guint n; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # if (g_strv_length (a) != g_strv_length (b)) 1910s # goto out; 1910s # for (n = 0; a[n] != NULL; n++) 1910s # if (g_strcmp0 (a[n], b[n]) != 0) 1910s # goto out; 1910s # ret = TRUE; 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _g_variant_equal0 (GVariant *a, GVariant *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # ret = g_variant_equal (a, b); 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # G_GNUC_UNUSED static gboolean 1910s # _g_value_equal (const GValue *a, const GValue *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1910s # switch (G_VALUE_TYPE (a)) 1910s # { 1910s # case G_TYPE_BOOLEAN: 1910s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1910s # break; 1910s # case G_TYPE_UCHAR: 1910s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1910s # break; 1910s # case G_TYPE_INT: 1910s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1910s # break; 1910s # case G_TYPE_UINT: 1910s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1910s # break; 1910s # case G_TYPE_INT64: 1910s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1910s # break; 1910s # case G_TYPE_UINT64: 1910s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1910s # break; 1910s # case G_TYPE_DOUBLE: 1910s # { 1910s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1910s # gdouble da = g_value_get_double (a); 1910s # gdouble db = g_value_get_double (b); 1910s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1910s # } 1910s # break; 1910s # case G_TYPE_STRING: 1910s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1910s # break; 1910s # case G_TYPE_VARIANT: 1910s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1910s # break; 1910s # default: 1910s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1910s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1910s # else 1910s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1910s # break; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ 1910s # * Code for interface org.project.SignalingIface 1910s # * ------------------------------------------------------------------------ 1910s # */ 1910s # 1910s # /** 1910s # * SECTION:OrgProjectSignalingIface 1910s # * @title: OrgProjectSignalingIface 1910s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1910s # * 1910s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1910s # */ 1910s # 1910s # enum 1910s # { 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1910s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y, 1910s # }; 1910s # 1910s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1910s # 1910s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SimpleSignal", 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "simple-signal" 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_arg_y = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "arg_y", 1910s # (gchar *) "y", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_arg_y.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_y = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SingleArgSignalY", 1910s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers, 1910s # NULL 1910s # }, 1910s # "single-arg-signal-y" 1910s # }; 1910s # 1910s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_y.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "org.project.SignalingIface", 1910s # NULL, 1910s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "org-project-signaling-iface", 1910s # }; 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_interface_info: 1910s # * 1910s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1910s # * 1910s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1910s # */ 1910s # GDBusInterfaceInfo * 1910s # org_project_signaling_iface_interface_info (void) 1910s # { 1910s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_override_properties: 1910s # * @klass: The class structure for a #GObject derived class. 1910s # * @property_id_begin: The property id to assign to the first overridden property. 1910s # * 1910s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1910s # * The properties are overridden in the order they are defined. 1910s # * 1910s # * Returns: The last property id. 1910s # */ 1910s # guint 1910s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1910s # { 1910s # return property_id_begin - 1; 1910s # } 1910s # 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_simple_signal ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__VOID (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_y ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__UCHAR (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface: 1910s # * 1910s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceIface: 1910s # * @parent_iface: The parent interface. 1910s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1910s # * @single_arg_signal_y: Handler for the #OrgProjectSignalingIface::single-arg-signal-y signal. 1910s # * 1910s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1910s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1910s # 1910s # static void 1910s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # /* GObject signals for received D-Bus signals: */ 1910s # /** 1910s # * OrgProjectSignalingIface::simple-signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1910s # g_signal_new ("simple-signal", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_simple_signal, 1910s # G_TYPE_NONE, 1910s # 0); 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface::single-arg-signal-y: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_y: Argument. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalY" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y] = 1910s # g_signal_new ("single-arg-signal-y", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_y), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_y, 1910s # G_TYPE_NONE, 1910s # 1, G_TYPE_UCHAR); 1910s # 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_simple_signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * Emits the "SimpleSignal" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_single_arg_signal_y: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_y: Argument to pass with the signal. 1910s # * 1910s # * Emits the "SingleArgSignalY" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_single_arg_signal_y ( 1910s # OrgProjectSignalingIface *object, 1910s # guchar arg_arg_y) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y], 0, arg_arg_y); 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxy: 1910s # * 1910s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxyClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceProxy. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceProxyPrivate 1910s # { 1910s # GData *qdata; 1910s # }; 1910s # 1910s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_proxy_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1910s # g_datalist_clear (&proxy->priv->qdata); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # const GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1910s # const gchar *sender_name G_GNUC_UNUSED, 1910s # const gchar *signal_name, 1910s # GVariant *parameters) 1910s # { 1910s # _ExtendedGDBusSignalInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # gsize n; 1910s # guint signal_id; 1910s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1910s # if (info == NULL) 1910s # return; 1910s # num_params = g_variant_n_children (parameters); 1910s # paramv = g_new0 (GValue, num_params + 1); 1910s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[0], proxy); 1910s # g_variant_iter_init (&iter, parameters); 1910s # n = 1; 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_signal_emitv (paramv, signal_id, 0, NULL); 1910s # for (n = 0; n < num_params + 1; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1910s # GVariant *changed_properties, 1910s # const gchar *const *invalidated_properties) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1910s # guint n; 1910s # const gchar *key; 1910s # GVariantIter *iter; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # g_variant_get (changed_properties, "a{sv}", &iter); 1910s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1910s # g_datalist_remove_data (&proxy->priv->qdata, key); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # g_variant_iter_free (iter); 1910s # for (n = 0; invalidated_properties[n] != NULL; n++) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1910s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1910s # #else 1910s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1910s # #endif 1910s # 1910s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusProxyClass *proxy_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1910s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1910s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1910s # 1910s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1910s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1910s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_sync: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_sync ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new_for_bus ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeleton: 1910s # * 1910s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeletonClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1910s # { 1910s # GValue *properties; 1910s # GList *changed_properties; 1910s # GSource *changed_properties_idle_source; 1910s # GMainContext *context; 1910s # GMutex lock; 1910s # }; 1910s # 1910s # static void 1910s # _org_project_signaling_iface_skeleton_handle_method_call ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name, 1910s # const gchar *method_name, 1910s # GVariant *parameters, 1910s # GDBusMethodInvocation *invocation, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # _ExtendedGDBusMethodInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # guint num_extra; 1910s # gsize n; 1910s # guint signal_id; 1910s # GValue return_value = G_VALUE_INIT; 1910s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1910s # g_assert (info != NULL); 1910s # num_params = g_variant_n_children (parameters); 1910s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1910s # n = 0; 1910s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[n++], skeleton); 1910s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1910s # g_value_set_object (¶mv[n++], invocation); 1910s # if (info->pass_fdlist) 1910s # { 1910s # #ifdef G_OS_UNIX 1910s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1910s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1910s # #else 1910s # g_assert_not_reached (); 1910s # #endif 1910s # } 1910s # g_variant_iter_init (&iter, parameters); 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1910s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1910s # if (!g_value_get_boolean (&return_value)) 1910s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1910s # g_value_unset (&return_value); 1910s # for (n = 0; n < num_params + num_extra; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static GVariant * 1910s # _org_project_signaling_iface_skeleton_handle_get_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # GVariant *ret; 1910s # ret = NULL; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # g_value_init (&value, pspec->value_type); 1910s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1910s # g_value_unset (&value); 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _org_project_signaling_iface_skeleton_handle_set_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GVariant *variant, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # gboolean ret; 1910s # ret = FALSE; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # if (info->use_gvariant) 1910s # g_value_set_variant (&value, variant); 1910s # else 1910s # g_dbus_gvariant_to_gvalue (variant, &value); 1910s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # g_value_unset (&value); 1910s # ret = TRUE; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1910s # { 1910s # _org_project_signaling_iface_skeleton_handle_method_call, 1910s # _org_project_signaling_iface_skeleton_handle_get_property, 1910s # _org_project_signaling_iface_skeleton_handle_set_property, 1910s # {NULL} 1910s # }; 1910s # 1910s # static GDBusInterfaceInfo * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return org_project_signaling_iface_interface_info (); 1910s # } 1910s # 1910s # static GDBusInterfaceVTable * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1910s # } 1910s # 1910s # static GVariant * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1910s # 1910s # GVariantBuilder builder; 1910s # guint n; 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1910s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #else 1910s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #endif 1910s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1910s # goto out; 1910s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1910s # { 1910s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1910s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1910s # { 1910s # GVariant *value; 1910s # value = _org_project_signaling_iface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", info->name, NULL, skeleton); 1910s # if (value != NULL) 1910s # { 1910s # g_variant_take_ref (value); 1910s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1910s # g_variant_unref (value); 1910s # } 1910s # } 1910s # } 1910s # out: 1910s # return g_variant_builder_end (&builder); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_single_arg_signal_y ( 1910s # OrgProjectSignalingIface *object, 1910s # guchar arg_arg_y) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("(y)", 1910s # arg_arg_y)); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalY", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1910s # if (skeleton->priv->changed_properties_idle_source != NULL) 1910s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1910s # g_main_context_unref (skeleton->priv->context); 1910s # g_mutex_clear (&skeleton->priv->lock); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1910s # #else 1910s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1910s # #endif 1910s # 1910s # g_mutex_init (&skeleton->priv->lock); 1910s # skeleton->priv->context = g_main_context_ref_thread_default (); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusInterfaceSkeletonClass *skeleton_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1910s # 1910s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1910s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1910s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1910s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1910s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1910s # iface->single_arg_signal_y = _org_project_signaling_iface_on_signal_single_arg_signal_y; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_skeleton_new: 1910s # * 1910s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_skeleton_new (void) 1910s # { 1910s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1910s # } 1910s # Error: 1910s # 1910s # /tmp/tmp2qpmu6va/tmpxfqnjxvo.xml: 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2qpmu6va/tmpxfqnjxvo.xml', '--output', '-', '--body'] 1910s # Return code: 0 1910s # Output: 1910s # /* 1910s # * This file is generated by gdbus-codegen, do not modify it. 1910s # * 1910s # * The license of this code is the same as for the D-Bus interface description 1910s # * it was derived from. Note that it links to GLib, so must comply with the 1910s # * LGPL linking clauses. 1910s # */ 1910s # 1910s # #ifdef HAVE_CONFIG_H 1910s # # include "config.h" 1910s # #endif 1910s # 1910s # #include 1910s # #ifdef G_OS_UNIX 1910s # # include 1910s # #endif 1910s # 1910s # #ifdef G_ENABLE_DEBUG 1910s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1910s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1910s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1910s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1910s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1910s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1910s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1910s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1910s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1910s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1910s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1910s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1910s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1910s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1910s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1910s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1910s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1910s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1910s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1910s # #else /* !G_ENABLE_DEBUG */ 1910s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1910s # * Do not access GValues directly in your code. Instead, use the 1910s # * g_value_get_*() functions 1910s # */ 1910s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1910s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1910s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1910s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1910s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1910s # #endif /* !G_ENABLE_DEBUG */ 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusArgInfo parent_struct; 1910s # gboolean use_gvariant; 1910s # } _ExtendedGDBusArgInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusMethodInfo parent_struct; 1910s # const gchar *signal_name; 1910s # gboolean pass_fdlist; 1910s # } _ExtendedGDBusMethodInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusSignalInfo parent_struct; 1910s # const gchar *signal_name; 1910s # } _ExtendedGDBusSignalInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusPropertyInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # guint use_gvariant : 1; 1910s # guint emits_changed_signal : 1; 1910s # } _ExtendedGDBusPropertyInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusInterfaceInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # } _ExtendedGDBusInterfaceInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # const _ExtendedGDBusPropertyInfo *info; 1910s # guint prop_id; 1910s # GValue orig_value; /* the value before the change */ 1910s # } ChangedProperty; 1910s # 1910s # static void 1910s # _changed_property_free (ChangedProperty *data) 1910s # { 1910s # g_value_unset (&data->orig_value); 1910s # g_free (data); 1910s # } 1910s # 1910s # static gboolean 1910s # _g_strv_equal0 (gchar **a, gchar **b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # guint n; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # if (g_strv_length (a) != g_strv_length (b)) 1910s # goto out; 1910s # for (n = 0; a[n] != NULL; n++) 1910s # if (g_strcmp0 (a[n], b[n]) != 0) 1910s # goto out; 1910s # ret = TRUE; 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _g_variant_equal0 (GVariant *a, GVariant *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # ret = g_variant_equal (a, b); 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # G_GNUC_UNUSED static gboolean 1910s # _g_value_equal (const GValue *a, const GValue *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1910s # switch (G_VALUE_TYPE (a)) 1910s # { 1910s # case G_TYPE_BOOLEAN: 1910s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1910s # break; 1910s # case G_TYPE_UCHAR: 1910s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1910s # break; 1910s # case G_TYPE_INT: 1910s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1910s # break; 1910s # case G_TYPE_UINT: 1910s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1910s # break; 1910s # case G_TYPE_INT64: 1910s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1910s # break; 1910s # case G_TYPE_UINT64: 1910s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1910s # break; 1910s # case G_TYPE_DOUBLE: 1910s # { 1910s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1910s # gdouble da = g_value_get_double (a); 1910s # gdouble db = g_value_get_double (b); 1910s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1910s # } 1910s # break; 1910s # case G_TYPE_STRING: 1910s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1910s # break; 1910s # case G_TYPE_VARIANT: 1910s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1910s # break; 1910s # default: 1910s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1910s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1910s # else 1910s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1910s # break; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ 1910s # * Code for interface org.project.SignalingIface 1910s # * ------------------------------------------------------------------------ 1910s # */ 1910s # 1910s # /** 1910s # * SECTION:OrgProjectSignalingIface 1910s # * @title: OrgProjectSignalingIface 1910s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1910s # * 1910s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1910s # */ 1910s # 1910s # enum 1910s # { 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1910s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N, 1910s # }; 1910s # 1910s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1910s # 1910s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SimpleSignal", 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "simple-signal" 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_arg_n = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "arg_n", 1910s # (gchar *) "n", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_arg_n.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_n = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SingleArgSignalN", 1910s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers, 1910s # NULL 1910s # }, 1910s # "single-arg-signal-n" 1910s # }; 1910s # 1910s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_n.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "org.project.SignalingIface", 1910s # NULL, 1910s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "org-project-signaling-iface", 1910s # }; 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_interface_info: 1910s # * 1910s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1910s # * 1910s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1910s # */ 1910s # GDBusInterfaceInfo * 1910s # org_project_signaling_iface_interface_info (void) 1910s # { 1910s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_override_properties: 1910s # * @klass: The class structure for a #GObject derived class. 1910s # * @property_id_begin: The property id to assign to the first overridden property. 1910s # * 1910s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1910s # * The properties are overridden in the order they are defined. 1910s # * 1910s # * Returns: The last property id. 1910s # */ 1910s # guint 1910s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1910s # { 1910s # return property_id_begin - 1; 1910s # } 1910s # 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_simple_signal ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__VOID (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_n ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__INT (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface: 1910s # * 1910s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceIface: 1910s # * @parent_iface: The parent interface. 1910s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1910s # * @single_arg_signal_n: Handler for the #OrgProjectSignalingIface::single-arg-signal-n signal. 1910s # * 1910s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1910s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1910s # 1910s # static void 1910s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # /* GObject signals for received D-Bus signals: */ 1910s # /** 1910s # * OrgProjectSignalingIface::simple-signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1910s # g_signal_new ("simple-signal", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_simple_signal, 1910s # G_TYPE_NONE, 1910s # 0); 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface::single-arg-signal-n: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_n: Argument. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalN" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N] = 1910s # g_signal_new ("single-arg-signal-n", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_n), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_n, 1910s # G_TYPE_NONE, 1910s # 1, G_TYPE_INT); 1910s # 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_simple_signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * Emits the "SimpleSignal" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_single_arg_signal_n: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_n: Argument to pass with the signal. 1910s # * 1910s # * Emits the "SingleArgSignalN" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_single_arg_signal_n ( 1910s # OrgProjectSignalingIface *object, 1910s # gint16 arg_arg_n) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N], 0, arg_arg_n); 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxy: 1910s # * 1910s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxyClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceProxy. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceProxyPrivate 1910s # { 1910s # GData *qdata; 1910s # }; 1910s # 1910s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_proxy_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1910s # g_datalist_clear (&proxy->priv->qdata); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # const GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1910s # const gchar *sender_name G_GNUC_UNUSED, 1910s # const gchar *signal_name, 1910s # GVariant *parameters) 1910s # { 1910s # _ExtendedGDBusSignalInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # gsize n; 1910s # guint signal_id; 1910s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1910s # if (info == NULL) 1910s # return; 1910s # num_params = g_variant_n_children (parameters); 1910s # paramv = g_new0 (GValue, num_params + 1); 1910s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[0], proxy); 1910s # g_variant_iter_init (&iter, parameters); 1910s # n = 1; 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_signal_emitv (paramv, signal_id, 0, NULL); 1910s # for (n = 0; n < num_params + 1; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1910s # GVariant *changed_properties, 1910s # const gchar *const *invalidated_properties) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1910s # guint n; 1910s # const gchar *key; 1910s # GVariantIter *iter; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # g_variant_get (changed_properties, "a{sv}", &iter); 1910s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1910s # g_datalist_remove_data (&proxy->priv->qdata, key); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # g_variant_iter_free (iter); 1910s # for (n = 0; invalidated_properties[n] != NULL; n++) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1910s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1910s # #else 1910s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1910s # #endif 1910s # 1910s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusProxyClass *proxy_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1910s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1910s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1910s # 1910s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1910s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1910s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_sync: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_sync ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new_for_bus ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeleton: 1910s # * 1910s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeletonClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1910s # { 1910s # GValue *properties; 1910s # GList *changed_properties; 1910s # GSource *changed_properties_idle_source; 1910s # GMainContext *context; 1910s # GMutex lock; 1910s # }; 1910s # 1910s # static void 1910s # _org_project_signaling_iface_skeleton_handle_method_call ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name, 1910s # const gchar *method_name, 1910s # GVariant *parameters, 1910s # GDBusMethodInvocation *invocation, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # _ExtendedGDBusMethodInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # guint num_extra; 1910s # gsize n; 1910s # guint signal_id; 1910s # GValue return_value = G_VALUE_INIT; 1910s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1910s # g_assert (info != NULL); 1910s # num_params = g_variant_n_children (parameters); 1910s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1910s # n = 0; 1910s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[n++], skeleton); 1910s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1910s # g_value_set_object (¶mv[n++], invocation); 1910s # if (info->pass_fdlist) 1910s # { 1910s # #ifdef G_OS_UNIX 1910s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1910s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1910s # #else 1910s # g_assert_not_reached (); 1910s # #endif 1910s # } 1910s # g_variant_iter_init (&iter, parameters); 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1910s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1910s # if (!g_value_get_boolean (&return_value)) 1910s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1910s # g_value_unset (&return_value); 1910s # for (n = 0; n < num_params + num_extra; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static GVariant * 1910s # _org_project_signaling_iface_skeleton_handle_get_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # GVariant *ret; 1910s # ret = NULL; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # g_value_init (&value, pspec->value_type); 1910s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1910s # g_value_unset (&value); 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _org_project_signaling_iface_skeleton_handle_set_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GVariant *variant, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # gboolean ret; 1910s # ret = FALSE; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # if (info->use_gvariant) 1910s # g_value_set_variant (&value, variant); 1910s # else 1910s # g_dbus_gvariant_to_gvalue (variant, &value); 1910s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # g_value_unset (&value); 1910s # ret = TRUE; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1910s # { 1910s # _org_project_signaling_iface_skeleton_handle_method_call, 1910s # _org_project_signaling_iface_skeleton_handle_get_property, 1910s # _org_project_signaling_iface_skeleton_handle_set_property, 1910s # {NULL} 1910s # }; 1910s # 1910s # static GDBusInterfaceInfo * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return org_project_signaling_iface_interface_info (); 1910s # } 1910s # 1910s # static GDBusInterfaceVTable * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1910s # } 1910s # 1910s # static GVariant * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1910s # 1910s # GVariantBuilder builder; 1910s # guint n; 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1910s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #else 1910s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #endif 1910s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1910s # goto out; 1910s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1910s # { 1910s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1910s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1910s # { 1910s # GVariant *value; 1910s # value = _org_project_signaling_iface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", info->name, NULL, skeleton); 1910s # if (value != NULL) 1910s # { 1910s # g_variant_take_ref (value); 1910s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1910s # g_variant_unref (value); 1910s # } 1910s # } 1910s # } 1910s # out: 1910s # return g_variant_builder_end (&builder); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_single_arg_signal_n ( 1910s # OrgProjectSignalingIface *object, 1910s # gint16 arg_arg_n) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("(n)", 1910s # arg_arg_n)); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalN", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1910s # if (skeleton->priv->changed_properties_idle_source != NULL) 1910s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1910s # g_main_context_unref (skeleton->priv->context); 1910s # g_mutex_clear (&skeleton->priv->lock); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1910s # #else 1910s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1910s # #endif 1910s # 1910s # g_mutex_init (&skeleton->priv->lock); 1910s # skeleton->priv->context = g_main_context_ref_thread_default (); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusInterfaceSkeletonClass *skeleton_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1910s # 1910s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1910s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1910s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1910s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1910s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1910s # iface->single_arg_signal_n = _org_project_signaling_iface_on_signal_single_arg_signal_n; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_skeleton_new: 1910s # * 1910s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_skeleton_new (void) 1910s # { 1910s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1910s # } 1910s # Error: 1910s # 1910s # /tmp/tmp2qpmu6va/tmphicdc572.xml: 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2qpmu6va/tmphicdc572.xml', '--output', '-', '--body'] 1910s # Return code: 0 1910s # Output: 1910s # /* 1910s # * This file is generated by gdbus-codegen, do not modify it. 1910s # * 1910s # * The license of this code is the same as for the D-Bus interface description 1910s # * it was derived from. Note that it links to GLib, so must comply with the 1910s # * LGPL linking clauses. 1910s # */ 1910s # 1910s # #ifdef HAVE_CONFIG_H 1910s # # include "config.h" 1910s # #endif 1910s # 1910s # #include 1910s # #ifdef G_OS_UNIX 1910s # # include 1910s # #endif 1910s # 1910s # #ifdef G_ENABLE_DEBUG 1910s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1910s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1910s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1910s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1910s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1910s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1910s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1910s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1910s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1910s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1910s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1910s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1910s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1910s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1910s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1910s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1910s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1910s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1910s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1910s # #else /* !G_ENABLE_DEBUG */ 1910s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1910s # * Do not access GValues directly in your code. Instead, use the 1910s # * g_value_get_*() functions 1910s # */ 1910s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1910s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1910s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1910s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1910s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1910s # #endif /* !G_ENABLE_DEBUG */ 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusArgInfo parent_struct; 1910s # gboolean use_gvariant; 1910s # } _ExtendedGDBusArgInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusMethodInfo parent_struct; 1910s # const gchar *signal_name; 1910s # gboolean pass_fdlist; 1910s # } _ExtendedGDBusMethodInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusSignalInfo parent_struct; 1910s # const gchar *signal_name; 1910s # } _ExtendedGDBusSignalInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusPropertyInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # guint use_gvariant : 1; 1910s # guint emits_changed_signal : 1; 1910s # } _ExtendedGDBusPropertyInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusInterfaceInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # } _ExtendedGDBusInterfaceInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # const _ExtendedGDBusPropertyInfo *info; 1910s # guint prop_id; 1910s # GValue orig_value; /* the value before the change */ 1910s # } ChangedProperty; 1910s # 1910s # static void 1910s # _changed_property_free (ChangedProperty *data) 1910s # { 1910s # g_value_unset (&data->orig_value); 1910s # g_free (data); 1910s # } 1910s # 1910s # static gboolean 1910s # _g_strv_equal0 (gchar **a, gchar **b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # guint n; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # if (g_strv_length (a) != g_strv_length (b)) 1910s # goto out; 1910s # for (n = 0; a[n] != NULL; n++) 1910s # if (g_strcmp0 (a[n], b[n]) != 0) 1910s # goto out; 1910s # ret = TRUE; 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _g_variant_equal0 (GVariant *a, GVariant *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # ret = g_variant_equal (a, b); 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # G_GNUC_UNUSED static gboolean 1910s # _g_value_equal (const GValue *a, const GValue *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1910s # switch (G_VALUE_TYPE (a)) 1910s # { 1910s # case G_TYPE_BOOLEAN: 1910s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1910s # break; 1910s # case G_TYPE_UCHAR: 1910s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1910s # break; 1910s # case G_TYPE_INT: 1910s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1910s # break; 1910s # case G_TYPE_UINT: 1910s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1910s # break; 1910s # case G_TYPE_INT64: 1910s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1910s # break; 1910s # case G_TYPE_UINT64: 1910s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1910s # break; 1910s # case G_TYPE_DOUBLE: 1910s # { 1910s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1910s # gdouble da = g_value_get_double (a); 1910s # gdouble db = g_value_get_double (b); 1910s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1910s # } 1910s # break; 1910s # case G_TYPE_STRING: 1910s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1910s # break; 1910s # case G_TYPE_VARIANT: 1910s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1910s # break; 1910s # default: 1910s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1910s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1910s # else 1910s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1910s # break; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ 1910s # * Code for interface org.project.SignalingIface 1910s # * ------------------------------------------------------------------------ 1910s # */ 1910s # 1910s # /** 1910s # * SECTION:OrgProjectSignalingIface 1910s # * @title: OrgProjectSignalingIface 1910s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1910s # * 1910s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1910s # */ 1910s # 1910s # enum 1910s # { 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1910s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q, 1910s # }; 1910s # 1910s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1910s # 1910s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SimpleSignal", 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "simple-signal" 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_arg_q = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "arg_q", 1910s # (gchar *) "q", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_arg_q.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_q = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SingleArgSignalQ", 1910s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers, 1910s # NULL 1910s # }, 1910s # "single-arg-signal-q" 1910s # }; 1910s # 1910s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_q.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "org.project.SignalingIface", 1910s # NULL, 1910s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "org-project-signaling-iface", 1910s # }; 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_interface_info: 1910s # * 1910s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1910s # * 1910s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1910s # */ 1910s # GDBusInterfaceInfo * 1910s # org_project_signaling_iface_interface_info (void) 1910s # { 1910s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_override_properties: 1910s # * @klass: The class structure for a #GObject derived class. 1910s # * @property_id_begin: The property id to assign to the first overridden property. 1910s # * 1910s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1910s # * The properties are overridden in the order they are defined. 1910s # * 1910s # * Returns: The last property id. 1910s # */ 1910s # guint 1910s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1910s # { 1910s # return property_id_begin - 1; 1910s # } 1910s # 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_simple_signal ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__VOID (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_q ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__UINT (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface: 1910s # * 1910s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceIface: 1910s # * @parent_iface: The parent interface. 1910s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1910s # * @single_arg_signal_q: Handler for the #OrgProjectSignalingIface::single-arg-signal-q signal. 1910s # * 1910s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1910s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1910s # 1910s # static void 1910s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # /* GObject signals for received D-Bus signals: */ 1910s # /** 1910s # * OrgProjectSignalingIface::simple-signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1910s # g_signal_new ("simple-signal", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_simple_signal, 1910s # G_TYPE_NONE, 1910s # 0); 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface::single-arg-signal-q: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_q: Argument. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalQ" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q] = 1910s # g_signal_new ("single-arg-signal-q", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_q), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_q, 1910s # G_TYPE_NONE, 1910s # 1, G_TYPE_UINT); 1910s # 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_simple_signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * Emits the "SimpleSignal" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_single_arg_signal_q: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_q: Argument to pass with the signal. 1910s # * 1910s # * Emits the "SingleArgSignalQ" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_single_arg_signal_q ( 1910s # OrgProjectSignalingIface *object, 1910s # guint16 arg_arg_q) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q], 0, arg_arg_q); 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxy: 1910s # * 1910s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxyClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceProxy. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceProxyPrivate 1910s # { 1910s # GData *qdata; 1910s # }; 1910s # 1910s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_proxy_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1910s # g_datalist_clear (&proxy->priv->qdata); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # const GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1910s # const gchar *sender_name G_GNUC_UNUSED, 1910s # const gchar *signal_name, 1910s # GVariant *parameters) 1910s # { 1910s # _ExtendedGDBusSignalInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # gsize n; 1910s # guint signal_id; 1910s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1910s # if (info == NULL) 1910s # return; 1910s # num_params = g_variant_n_children (parameters); 1910s # paramv = g_new0 (GValue, num_params + 1); 1910s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[0], proxy); 1910s # g_variant_iter_init (&iter, parameters); 1910s # n = 1; 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_signal_emitv (paramv, signal_id, 0, NULL); 1910s # for (n = 0; n < num_params + 1; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1910s # GVariant *changed_properties, 1910s # const gchar *const *invalidated_properties) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1910s # guint n; 1910s # const gchar *key; 1910s # GVariantIter *iter; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # g_variant_get (changed_properties, "a{sv}", &iter); 1910s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1910s # g_datalist_remove_data (&proxy->priv->qdata, key); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # g_variant_iter_free (iter); 1910s # for (n = 0; invalidated_properties[n] != NULL; n++) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1910s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1910s # #else 1910s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1910s # #endif 1910s # 1910s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusProxyClass *proxy_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1910s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1910s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1910s # 1910s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1910s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1910s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_sync: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_sync ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new_for_bus ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeleton: 1910s # * 1910s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeletonClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1910s # { 1910s # GValue *properties; 1910s # GList *changed_properties; 1910s # GSource *changed_properties_idle_source; 1910s # GMainContext *context; 1910s # GMutex lock; 1910s # }; 1910s # 1910s # static void 1910s # _org_project_signaling_iface_skeleton_handle_method_call ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name, 1910s # const gchar *method_name, 1910s # GVariant *parameters, 1910s # GDBusMethodInvocation *invocation, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # _ExtendedGDBusMethodInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # guint num_extra; 1910s # gsize n; 1910s # guint signal_id; 1910s # GValue return_value = G_VALUE_INIT; 1910s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1910s # g_assert (info != NULL); 1910s # num_params = g_variant_n_children (parameters); 1910s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1910s # n = 0; 1910s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[n++], skeleton); 1910s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1910s # g_value_set_object (¶mv[n++], invocation); 1910s # if (info->pass_fdlist) 1910s # { 1910s # #ifdef G_OS_UNIX 1910s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1910s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1910s # #else 1910s # g_assert_not_reached (); 1910s # #endif 1910s # } 1910s # g_variant_iter_init (&iter, parameters); 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1910s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1910s # if (!g_value_get_boolean (&return_value)) 1910s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1910s # g_value_unset (&return_value); 1910s # for (n = 0; n < num_params + num_extra; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static GVariant * 1910s # _org_project_signaling_iface_skeleton_handle_get_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # GVariant *ret; 1910s # ret = NULL; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # g_value_init (&value, pspec->value_type); 1910s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1910s # g_value_unset (&value); 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _org_project_signaling_iface_skeleton_handle_set_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GVariant *variant, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # gboolean ret; 1910s # ret = FALSE; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # if (info->use_gvariant) 1910s # g_value_set_variant (&value, variant); 1910s # else 1910s # g_dbus_gvariant_to_gvalue (variant, &value); 1910s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # g_value_unset (&value); 1910s # ret = TRUE; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1910s # { 1910s # _org_project_signaling_iface_skeleton_handle_method_call, 1910s # _org_project_signaling_iface_skeleton_handle_get_property, 1910s # _org_project_signaling_iface_skeleton_handle_set_property, 1910s # {NULL} 1910s # }; 1910s # 1910s # static GDBusInterfaceInfo * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return org_project_signaling_iface_interface_info (); 1910s # } 1910s # 1910s # static GDBusInterfaceVTable * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1910s # } 1910s # 1910s # static GVariant * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1910s # 1910s # GVariantBuilder builder; 1910s # guint n; 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1910s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #else 1910s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #endif 1910s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1910s # goto out; 1910s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1910s # { 1910s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1910s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1910s # { 1910s # GVariant *value; 1910s # value = _org_project_signaling_iface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", info->name, NULL, skeleton); 1910s # if (value != NULL) 1910s # { 1910s # g_variant_take_ref (value); 1910s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1910s # g_variant_unref (value); 1910s # } 1910s # } 1910s # } 1910s # out: 1910s # return g_variant_builder_end (&builder); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_single_arg_signal_q ( 1910s # OrgProjectSignalingIface *object, 1910s # guint16 arg_arg_q) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("(q)", 1910s # arg_arg_q)); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalQ", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1910s # if (skeleton->priv->changed_properties_idle_source != NULL) 1910s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1910s # g_main_context_unref (skeleton->priv->context); 1910s # g_mutex_clear (&skeleton->priv->lock); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1910s # #else 1910s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1910s # #endif 1910s # 1910s # g_mutex_init (&skeleton->priv->lock); 1910s # skeleton->priv->context = g_main_context_ref_thread_default (); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusInterfaceSkeletonClass *skeleton_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1910s # 1910s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1910s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1910s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1910s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1910s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1910s # iface->single_arg_signal_q = _org_project_signaling_iface_on_signal_single_arg_signal_q; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_skeleton_new: 1910s # * 1910s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_skeleton_new (void) 1910s # { 1910s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1910s # } 1910s # Error: 1910s # 1910s # /tmp/tmp2qpmu6va/tmpxdvkzb1g.xml: 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2qpmu6va/tmpxdvkzb1g.xml', '--output', '-', '--body'] 1910s # Return code: 0 1910s # Output: 1910s # /* 1910s # * This file is generated by gdbus-codegen, do not modify it. 1910s # * 1910s # * The license of this code is the same as for the D-Bus interface description 1910s # * it was derived from. Note that it links to GLib, so must comply with the 1910s # * LGPL linking clauses. 1910s # */ 1910s # 1910s # #ifdef HAVE_CONFIG_H 1910s # # include "config.h" 1910s # #endif 1910s # 1910s # #include 1910s # #ifdef G_OS_UNIX 1910s # # include 1910s # #endif 1910s # 1910s # #ifdef G_ENABLE_DEBUG 1910s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1910s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1910s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1910s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1910s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1910s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1910s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1910s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1910s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1910s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1910s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1910s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1910s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1910s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1910s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1910s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1910s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1910s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1910s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1910s # #else /* !G_ENABLE_DEBUG */ 1910s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1910s # * Do not access GValues directly in your code. Instead, use the 1910s # * g_value_get_*() functions 1910s # */ 1910s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1910s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1910s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1910s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1910s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1910s # #endif /* !G_ENABLE_DEBUG */ 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusArgInfo parent_struct; 1910s # gboolean use_gvariant; 1910s # } _ExtendedGDBusArgInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusMethodInfo parent_struct; 1910s # const gchar *signal_name; 1910s # gboolean pass_fdlist; 1910s # } _ExtendedGDBusMethodInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusSignalInfo parent_struct; 1910s # const gchar *signal_name; 1910s # } _ExtendedGDBusSignalInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusPropertyInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # guint use_gvariant : 1; 1910s # guint emits_changed_signal : 1; 1910s # } _ExtendedGDBusPropertyInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusInterfaceInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # } _ExtendedGDBusInterfaceInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # const _ExtendedGDBusPropertyInfo *info; 1910s # guint prop_id; 1910s # GValue orig_value; /* the value before the change */ 1910s # } ChangedProperty; 1910s # 1910s # static void 1910s # _changed_property_free (ChangedProperty *data) 1910s # { 1910s # g_value_unset (&data->orig_value); 1910s # g_free (data); 1910s # } 1910s # 1910s # static gboolean 1910s # _g_strv_equal0 (gchar **a, gchar **b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # guint n; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # if (g_strv_length (a) != g_strv_length (b)) 1910s # goto out; 1910s # for (n = 0; a[n] != NULL; n++) 1910s # if (g_strcmp0 (a[n], b[n]) != 0) 1910s # goto out; 1910s # ret = TRUE; 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _g_variant_equal0 (GVariant *a, GVariant *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # ret = g_variant_equal (a, b); 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # G_GNUC_UNUSED static gboolean 1910s # _g_value_equal (const GValue *a, const GValue *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1910s # switch (G_VALUE_TYPE (a)) 1910s # { 1910s # case G_TYPE_BOOLEAN: 1910s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1910s # break; 1910s # case G_TYPE_UCHAR: 1910s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1910s # break; 1910s # case G_TYPE_INT: 1910s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1910s # break; 1910s # case G_TYPE_UINT: 1910s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1910s # break; 1910s # case G_TYPE_INT64: 1910s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1910s # break; 1910s # case G_TYPE_UINT64: 1910s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1910s # break; 1910s # case G_TYPE_DOUBLE: 1910s # { 1910s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1910s # gdouble da = g_value_get_double (a); 1910s # gdouble db = g_value_get_double (b); 1910s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1910s # } 1910s # break; 1910s # case G_TYPE_STRING: 1910s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1910s # break; 1910s # case G_TYPE_VARIANT: 1910s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1910s # break; 1910s # default: 1910s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1910s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1910s # else 1910s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1910s # break; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ 1910s # * Code for interface org.project.SignalingIface 1910s # * ------------------------------------------------------------------------ 1910s # */ 1910s # 1910s # /** 1910s # * SECTION:OrgProjectSignalingIface 1910s # * @title: OrgProjectSignalingIface 1910s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1910s # * 1910s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1910s # */ 1910s # 1910s # enum 1910s # { 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1910s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I, 1910s # }; 1910s # 1910s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1910s # 1910s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SimpleSignal", 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "simple-signal" 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_arg_i = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "arg_i", 1910s # (gchar *) "i", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_arg_i.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_i = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SingleArgSignalI", 1910s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers, 1910s # NULL 1910s # }, 1910s # "single-arg-signal-i" 1910s # }; 1910s # 1910s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_i.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "org.project.SignalingIface", 1910s # NULL, 1910s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "org-project-signaling-iface", 1910s # }; 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_interface_info: 1910s # * 1910s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1910s # * 1910s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1910s # */ 1910s # GDBusInterfaceInfo * 1910s # org_project_signaling_iface_interface_info (void) 1910s # { 1910s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_override_properties: 1910s # * @klass: The class structure for a #GObject derived class. 1910s # * @property_id_begin: The property id to assign to the first overridden property. 1910s # * 1910s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1910s # * The properties are overridden in the order they are defined. 1910s # * 1910s # * Returns: The last property id. 1910s # */ 1910s # guint 1910s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1910s # { 1910s # return property_id_begin - 1; 1910s # } 1910s # 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_simple_signal ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__VOID (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_i ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__INT (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface: 1910s # * 1910s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceIface: 1910s # * @parent_iface: The parent interface. 1910s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1910s # * @single_arg_signal_i: Handler for the #OrgProjectSignalingIface::single-arg-signal-i signal. 1910s # * 1910s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1910s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1910s # 1910s # static void 1910s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # /* GObject signals for received D-Bus signals: */ 1910s # /** 1910s # * OrgProjectSignalingIface::simple-signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1910s # g_signal_new ("simple-signal", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_simple_signal, 1910s # G_TYPE_NONE, 1910s # 0); 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface::single-arg-signal-i: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_i: Argument. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalI" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I] = 1910s # g_signal_new ("single-arg-signal-i", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_i), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_i, 1910s # G_TYPE_NONE, 1910s # 1, G_TYPE_INT); 1910s # 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_simple_signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * Emits the "SimpleSignal" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_single_arg_signal_i: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_i: Argument to pass with the signal. 1910s # * 1910s # * Emits the "SingleArgSignalI" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_single_arg_signal_i ( 1910s # OrgProjectSignalingIface *object, 1910s # gint arg_arg_i) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I], 0, arg_arg_i); 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxy: 1910s # * 1910s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxyClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceProxy. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceProxyPrivate 1910s # { 1910s # GData *qdata; 1910s # }; 1910s # 1910s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_proxy_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1910s # g_datalist_clear (&proxy->priv->qdata); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # const GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1910s # const gchar *sender_name G_GNUC_UNUSED, 1910s # const gchar *signal_name, 1910s # GVariant *parameters) 1910s # { 1910s # _ExtendedGDBusSignalInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # gsize n; 1910s # guint signal_id; 1910s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1910s # if (info == NULL) 1910s # return; 1910s # num_params = g_variant_n_children (parameters); 1910s # paramv = g_new0 (GValue, num_params + 1); 1910s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[0], proxy); 1910s # g_variant_iter_init (&iter, parameters); 1910s # n = 1; 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_signal_emitv (paramv, signal_id, 0, NULL); 1910s # for (n = 0; n < num_params + 1; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1910s # GVariant *changed_properties, 1910s # const gchar *const *invalidated_properties) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1910s # guint n; 1910s # const gchar *key; 1910s # GVariantIter *iter; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # g_variant_get (changed_properties, "a{sv}", &iter); 1910s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1910s # g_datalist_remove_data (&proxy->priv->qdata, key); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # g_variant_iter_free (iter); 1910s # for (n = 0; invalidated_properties[n] != NULL; n++) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1910s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1910s # #else 1910s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1910s # #endif 1910s # 1910s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusProxyClass *proxy_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1910s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1910s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1910s # 1910s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1910s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1910s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_sync: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_sync ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new_for_bus ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeleton: 1910s # * 1910s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeletonClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1910s # { 1910s # GValue *properties; 1910s # GList *changed_properties; 1910s # GSource *changed_properties_idle_source; 1910s # GMainContext *context; 1910s # GMutex lock; 1910s # }; 1910s # 1910s # static void 1910s # _org_project_signaling_iface_skeleton_handle_method_call ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name, 1910s # const gchar *method_name, 1910s # GVariant *parameters, 1910s # GDBusMethodInvocation *invocation, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # _ExtendedGDBusMethodInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # guint num_extra; 1910s # gsize n; 1910s # guint signal_id; 1910s # GValue return_value = G_VALUE_INIT; 1910s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1910s # g_assert (info != NULL); 1910s # num_params = g_variant_n_children (parameters); 1910s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1910s # n = 0; 1910s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[n++], skeleton); 1910s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1910s # g_value_set_object (¶mv[n++], invocation); 1910s # if (info->pass_fdlist) 1910s # { 1910s # #ifdef G_OS_UNIX 1910s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1910s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1910s # #else 1910s # g_assert_not_reached (); 1910s # #endif 1910s # } 1910s # g_variant_iter_init (&iter, parameters); 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1910s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1910s # if (!g_value_get_boolean (&return_value)) 1910s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1910s # g_value_unset (&return_value); 1910s # for (n = 0; n < num_params + num_extra; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static GVariant * 1910s # _org_project_signaling_iface_skeleton_handle_get_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # GVariant *ret; 1910s # ret = NULL; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # g_value_init (&value, pspec->value_type); 1910s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1910s # g_value_unset (&value); 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _org_project_signaling_iface_skeleton_handle_set_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GVariant *variant, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # gboolean ret; 1910s # ret = FALSE; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # if (info->use_gvariant) 1910s # g_value_set_variant (&value, variant); 1910s # else 1910s # g_dbus_gvariant_to_gvalue (variant, &value); 1910s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # g_value_unset (&value); 1910s # ret = TRUE; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1910s # { 1910s # _org_project_signaling_iface_skeleton_handle_method_call, 1910s # _org_project_signaling_iface_skeleton_handle_get_property, 1910s # _org_project_signaling_iface_skeleton_handle_set_property, 1910s # {NULL} 1910s # }; 1910s # 1910s # static GDBusInterfaceInfo * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return org_project_signaling_iface_interface_info (); 1910s # } 1910s # 1910s # static GDBusInterfaceVTable * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1910s # } 1910s # 1910s # static GVariant * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1910s # 1910s # GVariantBuilder builder; 1910s # guint n; 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1910s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #else 1910s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #endif 1910s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1910s # goto out; 1910s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1910s # { 1910s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1910s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1910s # { 1910s # GVariant *value; 1910s # value = _org_project_signaling_iface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", info->name, NULL, skeleton); 1910s # if (value != NULL) 1910s # { 1910s # g_variant_take_ref (value); 1910s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1910s # g_variant_unref (value); 1910s # } 1910s # } 1910s # } 1910s # out: 1910s # return g_variant_builder_end (&builder); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_single_arg_signal_i ( 1910s # OrgProjectSignalingIface *object, 1910s # gint arg_arg_i) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("(i)", 1910s # arg_arg_i)); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalI", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1910s # if (skeleton->priv->changed_properties_idle_source != NULL) 1910s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1910s # g_main_context_unref (skeleton->priv->context); 1910s # g_mutex_clear (&skeleton->priv->lock); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1910s # #else 1910s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1910s # #endif 1910s # 1910s # g_mutex_init (&skeleton->priv->lock); 1910s # skeleton->priv->context = g_main_context_ref_thread_default (); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusInterfaceSkeletonClass *skeleton_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1910s # 1910s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1910s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1910s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1910s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1910s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1910s # iface->single_arg_signal_i = _org_project_signaling_iface_on_signal_single_arg_signal_i; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_skeleton_new: 1910s # * 1910s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_skeleton_new (void) 1910s # { 1910s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1910s # } 1910s # Error: 1910s # 1910s # /tmp/tmp2qpmu6va/tmpi1tjdrng.xml: 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2qpmu6va/tmpi1tjdrng.xml', '--output', '-', '--body'] 1910s # Return code: 0 1910s # Output: 1910s # /* 1910s # * This file is generated by gdbus-codegen, do not modify it. 1910s # * 1910s # * The license of this code is the same as for the D-Bus interface description 1910s # * it was derived from. Note that it links to GLib, so must comply with the 1910s # * LGPL linking clauses. 1910s # */ 1910s # 1910s # #ifdef HAVE_CONFIG_H 1910s # # include "config.h" 1910s # #endif 1910s # 1910s # #include 1910s # #ifdef G_OS_UNIX 1910s # # include 1910s # #endif 1910s # 1910s # #ifdef G_ENABLE_DEBUG 1910s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1910s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1910s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1910s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1910s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1910s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1910s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1910s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1910s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1910s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1910s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1910s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1910s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1910s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1910s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1910s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1910s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1910s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1910s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1910s # #else /* !G_ENABLE_DEBUG */ 1910s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1910s # * Do not access GValues directly in your code. Instead, use the 1910s # * g_value_get_*() functions 1910s # */ 1910s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1910s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1910s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1910s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1910s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1910s # #endif /* !G_ENABLE_DEBUG */ 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusArgInfo parent_struct; 1910s # gboolean use_gvariant; 1910s # } _ExtendedGDBusArgInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusMethodInfo parent_struct; 1910s # const gchar *signal_name; 1910s # gboolean pass_fdlist; 1910s # } _ExtendedGDBusMethodInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusSignalInfo parent_struct; 1910s # const gchar *signal_name; 1910s # } _ExtendedGDBusSignalInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusPropertyInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # guint use_gvariant : 1; 1910s # guint emits_changed_signal : 1; 1910s # } _ExtendedGDBusPropertyInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusInterfaceInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # } _ExtendedGDBusInterfaceInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # const _ExtendedGDBusPropertyInfo *info; 1910s # guint prop_id; 1910s # GValue orig_value; /* the value before the change */ 1910s # } ChangedProperty; 1910s # 1910s # static void 1910s # _changed_property_free (ChangedProperty *data) 1910s # { 1910s # g_value_unset (&data->orig_value); 1910s # g_free (data); 1910s # } 1910s # 1910s # static gboolean 1910s # _g_strv_equal0 (gchar **a, gchar **b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # guint n; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # if (g_strv_length (a) != g_strv_length (b)) 1910s # goto out; 1910s # for (n = 0; a[n] != NULL; n++) 1910s # if (g_strcmp0 (a[n], b[n]) != 0) 1910s # goto out; 1910s # ret = TRUE; 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _g_variant_equal0 (GVariant *a, GVariant *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # ret = g_variant_equal (a, b); 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # G_GNUC_UNUSED static gboolean 1910s # _g_value_equal (const GValue *a, const GValue *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1910s # switch (G_VALUE_TYPE (a)) 1910s # { 1910s # case G_TYPE_BOOLEAN: 1910s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1910s # break; 1910s # case G_TYPE_UCHAR: 1910s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1910s # break; 1910s # case G_TYPE_INT: 1910s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1910s # break; 1910s # case G_TYPE_UINT: 1910s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1910s # break; 1910s # case G_TYPE_INT64: 1910s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1910s # break; 1910s # case G_TYPE_UINT64: 1910s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1910s # break; 1910s # case G_TYPE_DOUBLE: 1910s # { 1910s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1910s # gdouble da = g_value_get_double (a); 1910s # gdouble db = g_value_get_double (b); 1910s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1910s # } 1910s # break; 1910s # case G_TYPE_STRING: 1910s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1910s # break; 1910s # case G_TYPE_VARIANT: 1910s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1910s # break; 1910s # default: 1910s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1910s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1910s # else 1910s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1910s # break; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ 1910s # * Code for interface org.project.SignalingIface 1910s # * ------------------------------------------------------------------------ 1910s # */ 1910s # 1910s # /** 1910s # * SECTION:OrgProjectSignalingIface 1910s # * @title: OrgProjectSignalingIface 1910s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1910s # * 1910s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1910s # */ 1910s # 1910s # enum 1910s # { 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1910s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U, 1910s # }; 1910s # 1910s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1910s # 1910s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SimpleSignal", 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "simple-signal" 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_arg_u = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "arg_u", 1910s # (gchar *) "u", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_arg_u.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_u = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SingleArgSignalU", 1910s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers, 1910s # NULL 1910s # }, 1910s # "single-arg-signal-u" 1910s # }; 1910s # 1910s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_u.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "org.project.SignalingIface", 1910s # NULL, 1910s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "org-project-signaling-iface", 1910s # }; 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_interface_info: 1910s # * 1910s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1910s # * 1910s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1910s # */ 1910s # GDBusInterfaceInfo * 1910s # org_project_signaling_iface_interface_info (void) 1910s # { 1910s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_override_properties: 1910s # * @klass: The class structure for a #GObject derived class. 1910s # * @property_id_begin: The property id to assign to the first overridden property. 1910s # * 1910s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1910s # * The properties are overridden in the order they are defined. 1910s # * 1910s # * Returns: The last property id. 1910s # */ 1910s # guint 1910s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1910s # { 1910s # return property_id_begin - 1; 1910s # } 1910s # 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_simple_signal ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__VOID (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_u ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__UINT (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface: 1910s # * 1910s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceIface: 1910s # * @parent_iface: The parent interface. 1910s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1910s # * @single_arg_signal_u: Handler for the #OrgProjectSignalingIface::single-arg-signal-u signal. 1910s # * 1910s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1910s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1910s # 1910s # static void 1910s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # /* GObject signals for received D-Bus signals: */ 1910s # /** 1910s # * OrgProjectSignalingIface::simple-signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1910s # g_signal_new ("simple-signal", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_simple_signal, 1910s # G_TYPE_NONE, 1910s # 0); 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface::single-arg-signal-u: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_u: Argument. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalU" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U] = 1910s # g_signal_new ("single-arg-signal-u", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_u), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_u, 1910s # G_TYPE_NONE, 1910s # 1, G_TYPE_UINT); 1910s # 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_simple_signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * Emits the "SimpleSignal" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_single_arg_signal_u: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_u: Argument to pass with the signal. 1910s # * 1910s # * Emits the "SingleArgSignalU" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_single_arg_signal_u ( 1910s # OrgProjectSignalingIface *object, 1910s # guint arg_arg_u) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U], 0, arg_arg_u); 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxy: 1910s # * 1910s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxyClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceProxy. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceProxyPrivate 1910s # { 1910s # GData *qdata; 1910s # }; 1910s # 1910s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_proxy_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1910s # g_datalist_clear (&proxy->priv->qdata); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # const GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1910s # const gchar *sender_name G_GNUC_UNUSED, 1910s # const gchar *signal_name, 1910s # GVariant *parameters) 1910s # { 1910s # _ExtendedGDBusSignalInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # gsize n; 1910s # guint signal_id; 1910s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1910s # if (info == NULL) 1910s # return; 1910s # num_params = g_variant_n_children (parameters); 1910s # paramv = g_new0 (GValue, num_params + 1); 1910s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[0], proxy); 1910s # g_variant_iter_init (&iter, parameters); 1910s # n = 1; 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_signal_emitv (paramv, signal_id, 0, NULL); 1910s # for (n = 0; n < num_params + 1; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1910s # GVariant *changed_properties, 1910s # const gchar *const *invalidated_properties) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1910s # guint n; 1910s # const gchar *key; 1910s # GVariantIter *iter; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # g_variant_get (changed_properties, "a{sv}", &iter); 1910s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1910s # g_datalist_remove_data (&proxy->priv->qdata, key); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # g_variant_iter_free (iter); 1910s # for (n = 0; invalidated_properties[n] != NULL; n++) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1910s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1910s # #else 1910s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1910s # #endif 1910s # 1910s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusProxyClass *proxy_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1910s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1910s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1910s # 1910s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1910s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1910s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_sync: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_sync ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new_for_bus ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeleton: 1910s # * 1910s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeletonClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1910s # { 1910s # GValue *properties; 1910s # GList *changed_properties; 1910s # GSource *changed_properties_idle_source; 1910s # GMainContext *context; 1910s # GMutex lock; 1910s # }; 1910s # 1910s # static void 1910s # _org_project_signaling_iface_skeleton_handle_method_call ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name, 1910s # const gchar *method_name, 1910s # GVariant *parameters, 1910s # GDBusMethodInvocation *invocation, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # _ExtendedGDBusMethodInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # guint num_extra; 1910s # gsize n; 1910s # guint signal_id; 1910s # GValue return_value = G_VALUE_INIT; 1910s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1910s # g_assert (info != NULL); 1910s # num_params = g_variant_n_children (parameters); 1910s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1910s # n = 0; 1910s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[n++], skeleton); 1910s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1910s # g_value_set_object (¶mv[n++], invocation); 1910s # if (info->pass_fdlist) 1910s # { 1910s # #ifdef G_OS_UNIX 1910s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1910s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1910s # #else 1910s # g_assert_not_reached (); 1910s # #endif 1910s # } 1910s # g_variant_iter_init (&iter, parameters); 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1910s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1910s # if (!g_value_get_boolean (&return_value)) 1910s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1910s # g_value_unset (&return_value); 1910s # for (n = 0; n < num_params + num_extra; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static GVariant * 1910s # _org_project_signaling_iface_skeleton_handle_get_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # GVariant *ret; 1910s # ret = NULL; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # g_value_init (&value, pspec->value_type); 1910s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1910s # g_value_unset (&value); 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _org_project_signaling_iface_skeleton_handle_set_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GVariant *variant, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # gboolean ret; 1910s # ret = FALSE; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # if (info->use_gvariant) 1910s # g_value_set_variant (&value, variant); 1910s # else 1910s # g_dbus_gvariant_to_gvalue (variant, &value); 1910s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # g_value_unset (&value); 1910s # ret = TRUE; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1910s # { 1910s # _org_project_signaling_iface_skeleton_handle_method_call, 1910s # _org_project_signaling_iface_skeleton_handle_get_property, 1910s # _org_project_signaling_iface_skeleton_handle_set_property, 1910s # {NULL} 1910s # }; 1910s # 1910s # static GDBusInterfaceInfo * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return org_project_signaling_iface_interface_info (); 1910s # } 1910s # 1910s # static GDBusInterfaceVTable * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1910s # } 1910s # 1910s # static GVariant * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1910s # 1910s # GVariantBuilder builder; 1910s # guint n; 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1910s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #else 1910s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #endif 1910s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1910s # goto out; 1910s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1910s # { 1910s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1910s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1910s # { 1910s # GVariant *value; 1910s # value = _org_project_signaling_iface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", info->name, NULL, skeleton); 1910s # if (value != NULL) 1910s # { 1910s # g_variant_take_ref (value); 1910s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1910s # g_variant_unref (value); 1910s # } 1910s # } 1910s # } 1910s # out: 1910s # return g_variant_builder_end (&builder); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_single_arg_signal_u ( 1910s # OrgProjectSignalingIface *object, 1910s # guint arg_arg_u) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("(u)", 1910s # arg_arg_u)); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalU", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1910s # if (skeleton->priv->changed_properties_idle_source != NULL) 1910s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1910s # g_main_context_unref (skeleton->priv->context); 1910s # g_mutex_clear (&skeleton->priv->lock); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1910s # #else 1910s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1910s # #endif 1910s # 1910s # g_mutex_init (&skeleton->priv->lock); 1910s # skeleton->priv->context = g_main_context_ref_thread_default (); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusInterfaceSkeletonClass *skeleton_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1910s # 1910s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1910s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1910s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1910s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1910s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1910s # iface->single_arg_signal_u = _org_project_signaling_iface_on_signal_single_arg_signal_u; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_skeleton_new: 1910s # * 1910s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_skeleton_new (void) 1910s # { 1910s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1910s # } 1910s # Error: 1910s # 1910s # /tmp/tmp2qpmu6va/tmpxlhtscxn.xml: 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2qpmu6va/tmpxlhtscxn.xml', '--output', '-', '--body'] 1910s # Return code: 0 1910s # Output: 1910s # /* 1910s # * This file is generated by gdbus-codegen, do not modify it. 1910s # * 1910s # * The license of this code is the same as for the D-Bus interface description 1910s # * it was derived from. Note that it links to GLib, so must comply with the 1910s # * LGPL linking clauses. 1910s # */ 1910s # 1910s # #ifdef HAVE_CONFIG_H 1910s # # include "config.h" 1910s # #endif 1910s # 1910s # #include 1910s # #ifdef G_OS_UNIX 1910s # # include 1910s # #endif 1910s # 1910s # #ifdef G_ENABLE_DEBUG 1910s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1910s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1910s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1910s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1910s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1910s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1910s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1910s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1910s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1910s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1910s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1910s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1910s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1910s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1910s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1910s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1910s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1910s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1910s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1910s # #else /* !G_ENABLE_DEBUG */ 1910s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1910s # * Do not access GValues directly in your code. Instead, use the 1910s # * g_value_get_*() functions 1910s # */ 1910s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1910s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1910s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1910s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1910s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1910s # #endif /* !G_ENABLE_DEBUG */ 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusArgInfo parent_struct; 1910s # gboolean use_gvariant; 1910s # } _ExtendedGDBusArgInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusMethodInfo parent_struct; 1910s # const gchar *signal_name; 1910s # gboolean pass_fdlist; 1910s # } _ExtendedGDBusMethodInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusSignalInfo parent_struct; 1910s # const gchar *signal_name; 1910s # } _ExtendedGDBusSignalInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusPropertyInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # guint use_gvariant : 1; 1910s # guint emits_changed_signal : 1; 1910s # } _ExtendedGDBusPropertyInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusInterfaceInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # } _ExtendedGDBusInterfaceInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # const _ExtendedGDBusPropertyInfo *info; 1910s # guint prop_id; 1910s # GValue orig_value; /* the value before the change */ 1910s # } ChangedProperty; 1910s # 1910s # static void 1910s # _changed_property_free (ChangedProperty *data) 1910s # { 1910s # g_value_unset (&data->orig_value); 1910s # g_free (data); 1910s # } 1910s # 1910s # static gboolean 1910s # _g_strv_equal0 (gchar **a, gchar **b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # guint n; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # if (g_strv_length (a) != g_strv_length (b)) 1910s # goto out; 1910s # for (n = 0; a[n] != NULL; n++) 1910s # if (g_strcmp0 (a[n], b[n]) != 0) 1910s # goto out; 1910s # ret = TRUE; 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _g_variant_equal0 (GVariant *a, GVariant *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # ret = g_variant_equal (a, b); 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # G_GNUC_UNUSED static gboolean 1910s # _g_value_equal (const GValue *a, const GValue *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1910s # switch (G_VALUE_TYPE (a)) 1910s # { 1910s # case G_TYPE_BOOLEAN: 1910s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1910s # break; 1910s # case G_TYPE_UCHAR: 1910s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1910s # break; 1910s # case G_TYPE_INT: 1910s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1910s # break; 1910s # case G_TYPE_UINT: 1910s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1910s # break; 1910s # case G_TYPE_INT64: 1910s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1910s # break; 1910s # case G_TYPE_UINT64: 1910s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1910s # break; 1910s # case G_TYPE_DOUBLE: 1910s # { 1910s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1910s # gdouble da = g_value_get_double (a); 1910s # gdouble db = g_value_get_double (b); 1910s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1910s # } 1910s # break; 1910s # case G_TYPE_STRING: 1910s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1910s # break; 1910s # case G_TYPE_VARIANT: 1910s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1910s # break; 1910s # default: 1910s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1910s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1910s # else 1910s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1910s # break; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static void 1910s # _g_dbus_codegen_marshal_VOID__INT64 ( 1910s # GClosure *closure, 1910s # GValue *return_value G_GNUC_UNUSED, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint G_GNUC_UNUSED, 1910s # void *marshal_data) 1910s # { 1910s # typedef void (*_GDbusCodegenMarshalVoid_Int64Func) 1910s # (void *data1, 1910s # gint64 arg_arg_x, 1910s # void *data2); 1910s # _GDbusCodegenMarshalVoid_Int64Func callback; 1910s # GCClosure *cc = (GCClosure*) closure; 1910s # void *data1, *data2; 1910s # 1910s # g_return_if_fail (n_param_values == 2); 1910s # 1910s # if (G_CCLOSURE_SWAP_DATA (closure)) 1910s # { 1910s # data1 = closure->data; 1910s # data2 = g_value_peek_pointer (param_values + 0); 1910s # } 1910s # else 1910s # { 1910s # data1 = g_value_peek_pointer (param_values + 0); 1910s # data2 = closure->data; 1910s # } 1910s # 1910s # callback = (_GDbusCodegenMarshalVoid_Int64Func) 1910s # (marshal_data ? marshal_data : cc->callback); 1910s # 1910s # callback (data1, 1910s # g_marshal_value_peek_int64 (param_values + 1), 1910s # data2); 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ 1910s # * Code for interface org.project.SignalingIface 1910s # * ------------------------------------------------------------------------ 1910s # */ 1910s # 1910s # /** 1910s # * SECTION:OrgProjectSignalingIface 1910s # * @title: OrgProjectSignalingIface 1910s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1910s # * 1910s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1910s # */ 1910s # 1910s # enum 1910s # { 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1910s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X, 1910s # }; 1910s # 1910s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1910s # 1910s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SimpleSignal", 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "simple-signal" 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_arg_x = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "arg_x", 1910s # (gchar *) "x", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_arg_x.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_x = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SingleArgSignalX", 1910s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers, 1910s # NULL 1910s # }, 1910s # "single-arg-signal-x" 1910s # }; 1910s # 1910s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_x.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "org.project.SignalingIface", 1910s # NULL, 1910s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "org-project-signaling-iface", 1910s # }; 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_interface_info: 1910s # * 1910s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1910s # * 1910s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1910s # */ 1910s # GDBusInterfaceInfo * 1910s # org_project_signaling_iface_interface_info (void) 1910s # { 1910s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_override_properties: 1910s # * @klass: The class structure for a #GObject derived class. 1910s # * @property_id_begin: The property id to assign to the first overridden property. 1910s # * 1910s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1910s # * The properties are overridden in the order they are defined. 1910s # * 1910s # * Returns: The last property id. 1910s # */ 1910s # guint 1910s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1910s # { 1910s # return property_id_begin - 1; 1910s # } 1910s # 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_simple_signal ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__VOID (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_x ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # _g_dbus_codegen_marshal_VOID__INT64 (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface: 1910s # * 1910s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceIface: 1910s # * @parent_iface: The parent interface. 1910s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1910s # * @single_arg_signal_x: Handler for the #OrgProjectSignalingIface::single-arg-signal-x signal. 1910s # * 1910s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1910s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1910s # 1910s # static void 1910s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # /* GObject signals for received D-Bus signals: */ 1910s # /** 1910s # * OrgProjectSignalingIface::simple-signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1910s # g_signal_new ("simple-signal", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_simple_signal, 1910s # G_TYPE_NONE, 1910s # 0); 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface::single-arg-signal-x: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_x: Argument. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalX" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X] = 1910s # g_signal_new ("single-arg-signal-x", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_x), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_x, 1910s # G_TYPE_NONE, 1910s # 1, G_TYPE_INT64); 1910s # 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_simple_signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * Emits the "SimpleSignal" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_single_arg_signal_x: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_x: Argument to pass with the signal. 1910s # * 1910s # * Emits the "SingleArgSignalX" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_single_arg_signal_x ( 1910s # OrgProjectSignalingIface *object, 1910s # gint64 arg_arg_x) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X], 0, arg_arg_x); 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxy: 1910s # * 1910s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxyClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceProxy. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceProxyPrivate 1910s # { 1910s # GData *qdata; 1910s # }; 1910s # 1910s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_proxy_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1910s # g_datalist_clear (&proxy->priv->qdata); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # const GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1910s # const gchar *sender_name G_GNUC_UNUSED, 1910s # const gchar *signal_name, 1910s # GVariant *parameters) 1910s # { 1910s # _ExtendedGDBusSignalInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # gsize n; 1910s # guint signal_id; 1910s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1910s # if (info == NULL) 1910s # return; 1910s # num_params = g_variant_n_children (parameters); 1910s # paramv = g_new0 (GValue, num_params + 1); 1910s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[0], proxy); 1910s # g_variant_iter_init (&iter, parameters); 1910s # n = 1; 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_signal_emitv (paramv, signal_id, 0, NULL); 1910s # for (n = 0; n < num_params + 1; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1910s # GVariant *changed_properties, 1910s # const gchar *const *invalidated_properties) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1910s # guint n; 1910s # const gchar *key; 1910s # GVariantIter *iter; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # g_variant_get (changed_properties, "a{sv}", &iter); 1910s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1910s # g_datalist_remove_data (&proxy->priv->qdata, key); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # g_variant_iter_free (iter); 1910s # for (n = 0; invalidated_properties[n] != NULL; n++) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1910s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1910s # #else 1910s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1910s # #endif 1910s # 1910s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusProxyClass *proxy_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1910s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1910s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1910s # 1910s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1910s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1910s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_sync: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_sync ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new_for_bus ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeleton: 1910s # * 1910s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeletonClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1910s # { 1910s # GValue *properties; 1910s # GList *changed_properties; 1910s # GSource *changed_properties_idle_source; 1910s # GMainContext *context; 1910s # GMutex lock; 1910s # }; 1910s # 1910s # static void 1910s # _org_project_signaling_iface_skeleton_handle_method_call ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name, 1910s # const gchar *method_name, 1910s # GVariant *parameters, 1910s # GDBusMethodInvocation *invocation, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # _ExtendedGDBusMethodInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # guint num_extra; 1910s # gsize n; 1910s # guint signal_id; 1910s # GValue return_value = G_VALUE_INIT; 1910s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1910s # g_assert (info != NULL); 1910s # num_params = g_variant_n_children (parameters); 1910s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1910s # n = 0; 1910s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[n++], skeleton); 1910s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1910s # g_value_set_object (¶mv[n++], invocation); 1910s # if (info->pass_fdlist) 1910s # { 1910s # #ifdef G_OS_UNIX 1910s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1910s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1910s # #else 1910s # g_assert_not_reached (); 1910s # #endif 1910s # } 1910s # g_variant_iter_init (&iter, parameters); 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1910s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1910s # if (!g_value_get_boolean (&return_value)) 1910s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1910s # g_value_unset (&return_value); 1910s # for (n = 0; n < num_params + num_extra; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static GVariant * 1910s # _org_project_signaling_iface_skeleton_handle_get_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # GVariant *ret; 1910s # ret = NULL; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # g_value_init (&value, pspec->value_type); 1910s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1910s # g_value_unset (&value); 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _org_project_signaling_iface_skeleton_handle_set_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GVariant *variant, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # gboolean ret; 1910s # ret = FALSE; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # if (info->use_gvariant) 1910s # g_value_set_variant (&value, variant); 1910s # else 1910s # g_dbus_gvariant_to_gvalue (variant, &value); 1910s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # g_value_unset (&value); 1910s # ret = TRUE; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1910s # { 1910s # _org_project_signaling_iface_skeleton_handle_method_call, 1910s # _org_project_signaling_iface_skeleton_handle_get_property, 1910s # _org_project_signaling_iface_skeleton_handle_set_property, 1910s # {NULL} 1910s # }; 1910s # 1910s # static GDBusInterfaceInfo * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return org_project_signaling_iface_interface_info (); 1910s # } 1910s # 1910s # static GDBusInterfaceVTable * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1910s # } 1910s # 1910s # static GVariant * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1910s # 1910s # GVariantBuilder builder; 1910s # guint n; 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1910s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #else 1910s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #endif 1910s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1910s # goto out; 1910s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1910s # { 1910s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1910s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1910s # { 1910s # GVariant *value; 1910s # value = _org_project_signaling_iface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", info->name, NULL, skeleton); 1910s # if (value != NULL) 1910s # { 1910s # g_variant_take_ref (value); 1910s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1910s # g_variant_unref (value); 1910s # } 1910s # } 1910s # } 1910s # out: 1910s # return g_variant_builder_end (&builder); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_single_arg_signal_x ( 1910s # OrgProjectSignalingIface *object, 1910s # gint64 arg_arg_x) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("(x)", 1910s # arg_arg_x)); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalX", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1910s # if (skeleton->priv->changed_properties_idle_source != NULL) 1910s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1910s # g_main_context_unref (skeleton->priv->context); 1910s # g_mutex_clear (&skeleton->priv->lock); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1910s # #else 1910s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1910s # #endif 1910s # 1910s # g_mutex_init (&skeleton->priv->lock); 1910s # skeleton->priv->context = g_main_context_ref_thread_default (); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusInterfaceSkeletonClass *skeleton_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1910s # 1910s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1910s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1910s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1910s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1910s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1910s # iface->single_arg_signal_x = _org_project_signaling_iface_on_signal_single_arg_signal_x; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_skeleton_new: 1910s # * 1910s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_skeleton_new (void) 1910s # { 1910s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1910s # } 1910s # Error: 1910s # 1910s # /tmp/tmp2qpmu6va/tmpdphwi4to.xml: 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2qpmu6va/tmpdphwi4to.xml', '--output', '-', '--body'] 1910s # Return code: 0 1910s # Output: 1910s # /* 1910s # * This file is generated by gdbus-codegen, do not modify it. 1910s # * 1910s # * The license of this code is the same as for the D-Bus interface description 1910s # * it was derived from. Note that it links to GLib, so must comply with the 1910s # * LGPL linking clauses. 1910s # */ 1910s # 1910s # #ifdef HAVE_CONFIG_H 1910s # # include "config.h" 1910s # #endif 1910s # 1910s # #include 1910s # #ifdef G_OS_UNIX 1910s # # include 1910s # #endif 1910s # 1910s # #ifdef G_ENABLE_DEBUG 1910s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1910s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1910s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1910s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1910s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1910s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1910s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1910s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1910s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1910s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1910s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1910s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1910s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1910s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1910s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1910s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1910s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1910s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1910s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1910s # #else /* !G_ENABLE_DEBUG */ 1910s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1910s # * Do not access GValues directly in your code. Instead, use the 1910s # * g_value_get_*() functions 1910s # */ 1910s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1910s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1910s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1910s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1910s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1910s # #endif /* !G_ENABLE_DEBUG */ 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusArgInfo parent_struct; 1910s # gboolean use_gvariant; 1910s # } _ExtendedGDBusArgInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusMethodInfo parent_struct; 1910s # const gchar *signal_name; 1910s # gboolean pass_fdlist; 1910s # } _ExtendedGDBusMethodInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusSignalInfo parent_struct; 1910s # const gchar *signal_name; 1910s # } _ExtendedGDBusSignalInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusPropertyInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # guint use_gvariant : 1; 1910s # guint emits_changed_signal : 1; 1910s # } _ExtendedGDBusPropertyInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusInterfaceInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # } _ExtendedGDBusInterfaceInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # const _ExtendedGDBusPropertyInfo *info; 1910s # guint prop_id; 1910s # GValue orig_value; /* the value before the change */ 1910s # } ChangedProperty; 1910s # 1910s # static void 1910s # _changed_property_free (ChangedProperty *data) 1910s # { 1910s # g_value_unset (&data->orig_value); 1910s # g_free (data); 1910s # } 1910s # 1910s # static gboolean 1910s # _g_strv_equal0 (gchar **a, gchar **b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # guint n; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # if (g_strv_length (a) != g_strv_length (b)) 1910s # goto out; 1910s # for (n = 0; a[n] != NULL; n++) 1910s # if (g_strcmp0 (a[n], b[n]) != 0) 1910s # goto out; 1910s # ret = TRUE; 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _g_variant_equal0 (GVariant *a, GVariant *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # ret = g_variant_equal (a, b); 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # G_GNUC_UNUSED static gboolean 1910s # _g_value_equal (const GValue *a, const GValue *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1910s # switch (G_VALUE_TYPE (a)) 1910s # { 1910s # case G_TYPE_BOOLEAN: 1910s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1910s # break; 1910s # case G_TYPE_UCHAR: 1910s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1910s # break; 1910s # case G_TYPE_INT: 1910s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1910s # break; 1910s # case G_TYPE_UINT: 1910s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1910s # break; 1910s # case G_TYPE_INT64: 1910s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1910s # break; 1910s # case G_TYPE_UINT64: 1910s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1910s # break; 1910s # case G_TYPE_DOUBLE: 1910s # { 1910s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1910s # gdouble da = g_value_get_double (a); 1910s # gdouble db = g_value_get_double (b); 1910s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1910s # } 1910s # break; 1910s # case G_TYPE_STRING: 1910s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1910s # break; 1910s # case G_TYPE_VARIANT: 1910s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1910s # break; 1910s # default: 1910s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1910s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1910s # else 1910s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1910s # break; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static void 1910s # _g_dbus_codegen_marshal_VOID__UINT64 ( 1910s # GClosure *closure, 1910s # GValue *return_value G_GNUC_UNUSED, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint G_GNUC_UNUSED, 1910s # void *marshal_data) 1910s # { 1910s # typedef void (*_GDbusCodegenMarshalVoid_Uint64Func) 1910s # (void *data1, 1910s # guint64 arg_arg_t, 1910s # void *data2); 1910s # _GDbusCodegenMarshalVoid_Uint64Func callback; 1910s # GCClosure *cc = (GCClosure*) closure; 1910s # void *data1, *data2; 1910s # 1910s # g_return_if_fail (n_param_values == 2); 1910s # 1910s # if (G_CCLOSURE_SWAP_DATA (closure)) 1910s # { 1910s # data1 = closure->data; 1910s # data2 = g_value_peek_pointer (param_values + 0); 1910s # } 1910s # else 1910s # { 1910s # data1 = g_value_peek_pointer (param_values + 0); 1910s # data2 = closure->data; 1910s # } 1910s # 1910s # callback = (_GDbusCodegenMarshalVoid_Uint64Func) 1910s # (marshal_data ? marshal_data : cc->callback); 1910s # 1910s # callback (data1, 1910s # g_marshal_value_peek_uint64 (param_values + 1), 1910s # data2); 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ 1910s # * Code for interface org.project.SignalingIface 1910s # * ------------------------------------------------------------------------ 1910s # */ 1910s # 1910s # /** 1910s # * SECTION:OrgProjectSignalingIface 1910s # * @title: OrgProjectSignalingIface 1910s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1910s # * 1910s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1910s # */ 1910s # 1910s # enum 1910s # { 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1910s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T, 1910s # }; 1910s # 1910s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1910s # 1910s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SimpleSignal", 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "simple-signal" 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_arg_t = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "arg_t", 1910s # (gchar *) "t", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_arg_t.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_t = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SingleArgSignalT", 1910s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers, 1910s # NULL 1910s # }, 1910s # "single-arg-signal-t" 1910s # }; 1910s # 1910s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_t.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "org.project.SignalingIface", 1910s # NULL, 1910s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "org-project-signaling-iface", 1910s # }; 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_interface_info: 1910s # * 1910s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1910s # * 1910s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1910s # */ 1910s # GDBusInterfaceInfo * 1910s # org_project_signaling_iface_interface_info (void) 1910s # { 1910s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_override_properties: 1910s # * @klass: The class structure for a #GObject derived class. 1910s # * @property_id_begin: The property id to assign to the first overridden property. 1910s # * 1910s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1910s # * The properties are overridden in the order they are defined. 1910s # * 1910s # * Returns: The last property id. 1910s # */ 1910s # guint 1910s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1910s # { 1910s # return property_id_begin - 1; 1910s # } 1910s # 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_simple_signal ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__VOID (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_t ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # _g_dbus_codegen_marshal_VOID__UINT64 (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface: 1910s # * 1910s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceIface: 1910s # * @parent_iface: The parent interface. 1910s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1910s # * @single_arg_signal_t: Handler for the #OrgProjectSignalingIface::single-arg-signal-t signal. 1910s # * 1910s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1910s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1910s # 1910s # static void 1910s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # /* GObject signals for received D-Bus signals: */ 1910s # /** 1910s # * OrgProjectSignalingIface::simple-signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1910s # g_signal_new ("simple-signal", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_simple_signal, 1910s # G_TYPE_NONE, 1910s # 0); 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface::single-arg-signal-t: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_t: Argument. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalT" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T] = 1910s # g_signal_new ("single-arg-signal-t", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_t), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_t, 1910s # G_TYPE_NONE, 1910s # 1, G_TYPE_UINT64); 1910s # 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_simple_signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * Emits the "SimpleSignal" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_single_arg_signal_t: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_t: Argument to pass with the signal. 1910s # * 1910s # * Emits the "SingleArgSignalT" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_single_arg_signal_t ( 1910s # OrgProjectSignalingIface *object, 1910s # guint64 arg_arg_t) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T], 0, arg_arg_t); 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxy: 1910s # * 1910s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxyClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceProxy. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceProxyPrivate 1910s # { 1910s # GData *qdata; 1910s # }; 1910s # 1910s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_proxy_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1910s # g_datalist_clear (&proxy->priv->qdata); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # const GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1910s # const gchar *sender_name G_GNUC_UNUSED, 1910s # const gchar *signal_name, 1910s # GVariant *parameters) 1910s # { 1910s # _ExtendedGDBusSignalInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # gsize n; 1910s # guint signal_id; 1910s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1910s # if (info == NULL) 1910s # return; 1910s # num_params = g_variant_n_children (parameters); 1910s # paramv = g_new0 (GValue, num_params + 1); 1910s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[0], proxy); 1910s # g_variant_iter_init (&iter, parameters); 1910s # n = 1; 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_signal_emitv (paramv, signal_id, 0, NULL); 1910s # for (n = 0; n < num_params + 1; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1910s # GVariant *changed_properties, 1910s # const gchar *const *invalidated_properties) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1910s # guint n; 1910s # const gchar *key; 1910s # GVariantIter *iter; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # g_variant_get (changed_properties, "a{sv}", &iter); 1910s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1910s # g_datalist_remove_data (&proxy->priv->qdata, key); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # g_variant_iter_free (iter); 1910s # for (n = 0; invalidated_properties[n] != NULL; n++) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1910s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1910s # #else 1910s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1910s # #endif 1910s # 1910s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusProxyClass *proxy_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1910s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1910s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1910s # 1910s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1910s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1910s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_sync: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_sync ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new_for_bus ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeleton: 1910s # * 1910s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeletonClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1910s # { 1910s # GValue *properties; 1910s # GList *changed_properties; 1910s # GSource *changed_properties_idle_source; 1910s # GMainContext *context; 1910s # GMutex lock; 1910s # }; 1910s # 1910s # static void 1910s # _org_project_signaling_iface_skeleton_handle_method_call ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name, 1910s # const gchar *method_name, 1910s # GVariant *parameters, 1910s # GDBusMethodInvocation *invocation, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # _ExtendedGDBusMethodInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # guint num_extra; 1910s # gsize n; 1910s # guint signal_id; 1910s # GValue return_value = G_VALUE_INIT; 1910s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1910s # g_assert (info != NULL); 1910s # num_params = g_variant_n_children (parameters); 1910s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1910s # n = 0; 1910s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[n++], skeleton); 1910s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1910s # g_value_set_object (¶mv[n++], invocation); 1910s # if (info->pass_fdlist) 1910s # { 1910s # #ifdef G_OS_UNIX 1910s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1910s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1910s # #else 1910s # g_assert_not_reached (); 1910s # #endif 1910s # } 1910s # g_variant_iter_init (&iter, parameters); 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1910s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1910s # if (!g_value_get_boolean (&return_value)) 1910s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1910s # g_value_unset (&return_value); 1910s # for (n = 0; n < num_params + num_extra; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static GVariant * 1910s # _org_project_signaling_iface_skeleton_handle_get_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # GVariant *ret; 1910s # ret = NULL; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # g_value_init (&value, pspec->value_type); 1910s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1910s # g_value_unset (&value); 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _org_project_signaling_iface_skeleton_handle_set_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GVariant *variant, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # gboolean ret; 1910s # ret = FALSE; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # if (info->use_gvariant) 1910s # g_value_set_variant (&value, variant); 1910s # else 1910s # g_dbus_gvariant_to_gvalue (variant, &value); 1910s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # g_value_unset (&value); 1910s # ret = TRUE; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1910s # { 1910s # _org_project_signaling_iface_skeleton_handle_method_call, 1910s # _org_project_signaling_iface_skeleton_handle_get_property, 1910s # _org_project_signaling_iface_skeleton_handle_set_property, 1910s # {NULL} 1910s # }; 1910s # 1910s # static GDBusInterfaceInfo * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return org_project_signaling_iface_interface_info (); 1910s # } 1910s # 1910s # static GDBusInterfaceVTable * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1910s # } 1910s # 1910s # static GVariant * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1910s # 1910s # GVariantBuilder builder; 1910s # guint n; 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1910s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #else 1910s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #endif 1910s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1910s # goto out; 1910s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1910s # { 1910s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1910s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1910s # { 1910s # GVariant *value; 1910s # value = _org_project_signaling_iface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", info->name, NULL, skeleton); 1910s # if (value != NULL) 1910s # { 1910s # g_variant_take_ref (value); 1910s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1910s # g_variant_unref (value); 1910s # } 1910s # } 1910s # } 1910s # out: 1910s # return g_variant_builder_end (&builder); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_single_arg_signal_t ( 1910s # OrgProjectSignalingIface *object, 1910s # guint64 arg_arg_t) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("(t)", 1910s # arg_arg_t)); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalT", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1910s # if (skeleton->priv->changed_properties_idle_source != NULL) 1910s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1910s # g_main_context_unref (skeleton->priv->context); 1910s # g_mutex_clear (&skeleton->priv->lock); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1910s # #else 1910s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1910s # #endif 1910s # 1910s # g_mutex_init (&skeleton->priv->lock); 1910s # skeleton->priv->context = g_main_context_ref_thread_default (); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusInterfaceSkeletonClass *skeleton_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1910s # 1910s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1910s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1910s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1910s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1910s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1910s # iface->single_arg_signal_t = _org_project_signaling_iface_on_signal_single_arg_signal_t; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_skeleton_new: 1910s # * 1910s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_skeleton_new (void) 1910s # { 1910s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1910s # } 1910s # Error: 1910s # 1910s # /tmp/tmp2qpmu6va/tmpfn_myk_j.xml: 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2qpmu6va/tmpfn_myk_j.xml', '--output', '-', '--body'] 1910s # Return code: 0 1910s # Output: 1910s # /* 1910s # * This file is generated by gdbus-codegen, do not modify it. 1910s # * 1910s # * The license of this code is the same as for the D-Bus interface description 1910s # * it was derived from. Note that it links to GLib, so must comply with the 1910s # * LGPL linking clauses. 1910s # */ 1910s # 1910s # #ifdef HAVE_CONFIG_H 1910s # # include "config.h" 1910s # #endif 1910s # 1910s # #include 1910s # #ifdef G_OS_UNIX 1910s # # include 1910s # #endif 1910s # 1910s # #ifdef G_ENABLE_DEBUG 1910s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1910s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1910s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1910s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1910s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1910s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1910s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1910s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1910s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1910s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1910s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1910s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1910s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1910s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1910s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1910s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1910s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1910s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1910s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1910s # #else /* !G_ENABLE_DEBUG */ 1910s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1910s # * Do not access GValues directly in your code. Instead, use the 1910s # * g_value_get_*() functions 1910s # */ 1910s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1910s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1910s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1910s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1910s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1910s # #endif /* !G_ENABLE_DEBUG */ 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusArgInfo parent_struct; 1910s # gboolean use_gvariant; 1910s # } _ExtendedGDBusArgInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusMethodInfo parent_struct; 1910s # const gchar *signal_name; 1910s # gboolean pass_fdlist; 1910s # } _ExtendedGDBusMethodInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusSignalInfo parent_struct; 1910s # const gchar *signal_name; 1910s # } _ExtendedGDBusSignalInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusPropertyInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # guint use_gvariant : 1; 1910s # guint emits_changed_signal : 1; 1910s # } _ExtendedGDBusPropertyInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusInterfaceInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # } _ExtendedGDBusInterfaceInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # const _ExtendedGDBusPropertyInfo *info; 1910s # guint prop_id; 1910s # GValue orig_value; /* the value before the change */ 1910s # } ChangedProperty; 1910s # 1910s # static void 1910s # _changed_property_free (ChangedProperty *data) 1910s # { 1910s # g_value_unset (&data->orig_value); 1910s # g_free (data); 1910s # } 1910s # 1910s # static gboolean 1910s # _g_strv_equal0 (gchar **a, gchar **b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # guint n; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # if (g_strv_length (a) != g_strv_length (b)) 1910s # goto out; 1910s # for (n = 0; a[n] != NULL; n++) 1910s # if (g_strcmp0 (a[n], b[n]) != 0) 1910s # goto out; 1910s # ret = TRUE; 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _g_variant_equal0 (GVariant *a, GVariant *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # ret = g_variant_equal (a, b); 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # G_GNUC_UNUSED static gboolean 1910s # _g_value_equal (const GValue *a, const GValue *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1910s # switch (G_VALUE_TYPE (a)) 1910s # { 1910s # case G_TYPE_BOOLEAN: 1910s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1910s # break; 1910s # case G_TYPE_UCHAR: 1910s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1910s # break; 1910s # case G_TYPE_INT: 1910s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1910s # break; 1910s # case G_TYPE_UINT: 1910s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1910s # break; 1910s # case G_TYPE_INT64: 1910s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1910s # break; 1910s # case G_TYPE_UINT64: 1910s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1910s # break; 1910s # case G_TYPE_DOUBLE: 1910s # { 1910s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1910s # gdouble da = g_value_get_double (a); 1910s # gdouble db = g_value_get_double (b); 1910s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1910s # } 1910s # break; 1910s # case G_TYPE_STRING: 1910s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1910s # break; 1910s # case G_TYPE_VARIANT: 1910s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1910s # break; 1910s # default: 1910s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1910s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1910s # else 1910s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1910s # break; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ 1910s # * Code for interface org.project.SignalingIface 1910s # * ------------------------------------------------------------------------ 1910s # */ 1910s # 1910s # /** 1910s # * SECTION:OrgProjectSignalingIface 1910s # * @title: OrgProjectSignalingIface 1910s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1910s # * 1910s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1910s # */ 1910s # 1910s # enum 1910s # { 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1910s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D, 1910s # }; 1910s # 1910s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1910s # 1910s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SimpleSignal", 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "simple-signal" 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_arg_d = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "arg_d", 1910s # (gchar *) "d", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_arg_d.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_d = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SingleArgSignalD", 1910s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers, 1910s # NULL 1910s # }, 1910s # "single-arg-signal-d" 1910s # }; 1910s # 1910s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_d.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "org.project.SignalingIface", 1910s # NULL, 1910s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "org-project-signaling-iface", 1910s # }; 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_interface_info: 1910s # * 1910s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1910s # * 1910s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1910s # */ 1910s # GDBusInterfaceInfo * 1910s # org_project_signaling_iface_interface_info (void) 1910s # { 1910s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_override_properties: 1910s # * @klass: The class structure for a #GObject derived class. 1910s # * @property_id_begin: The property id to assign to the first overridden property. 1910s # * 1910s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1910s # * The properties are overridden in the order they are defined. 1910s # * 1910s # * Returns: The last property id. 1910s # */ 1910s # guint 1910s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1910s # { 1910s # return property_id_begin - 1; 1910s # } 1910s # 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_simple_signal ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__VOID (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_d ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__DOUBLE (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface: 1910s # * 1910s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceIface: 1910s # * @parent_iface: The parent interface. 1910s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1910s # * @single_arg_signal_d: Handler for the #OrgProjectSignalingIface::single-arg-signal-d signal. 1910s # * 1910s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1910s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1910s # 1910s # static void 1910s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # /* GObject signals for received D-Bus signals: */ 1910s # /** 1910s # * OrgProjectSignalingIface::simple-signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1910s # g_signal_new ("simple-signal", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_simple_signal, 1910s # G_TYPE_NONE, 1910s # 0); 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface::single-arg-signal-d: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_d: Argument. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalD" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D] = 1910s # g_signal_new ("single-arg-signal-d", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_d), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_d, 1910s # G_TYPE_NONE, 1910s # 1, G_TYPE_DOUBLE); 1910s # 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_simple_signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * Emits the "SimpleSignal" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_single_arg_signal_d: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_d: Argument to pass with the signal. 1910s # * 1910s # * Emits the "SingleArgSignalD" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_single_arg_signal_d ( 1910s # OrgProjectSignalingIface *object, 1910s # gdouble arg_arg_d) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D], 0, arg_arg_d); 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxy: 1910s # * 1910s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxyClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceProxy. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceProxyPrivate 1910s # { 1910s # GData *qdata; 1910s # }; 1910s # 1910s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_proxy_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1910s # g_datalist_clear (&proxy->priv->qdata); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # const GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1910s # const gchar *sender_name G_GNUC_UNUSED, 1910s # const gchar *signal_name, 1910s # GVariant *parameters) 1910s # { 1910s # _ExtendedGDBusSignalInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # gsize n; 1910s # guint signal_id; 1910s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1910s # if (info == NULL) 1910s # return; 1910s # num_params = g_variant_n_children (parameters); 1910s # paramv = g_new0 (GValue, num_params + 1); 1910s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[0], proxy); 1910s # g_variant_iter_init (&iter, parameters); 1910s # n = 1; 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_signal_emitv (paramv, signal_id, 0, NULL); 1910s # for (n = 0; n < num_params + 1; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1910s # GVariant *changed_properties, 1910s # const gchar *const *invalidated_properties) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1910s # guint n; 1910s # const gchar *key; 1910s # GVariantIter *iter; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # g_variant_get (changed_properties, "a{sv}", &iter); 1910s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1910s # g_datalist_remove_data (&proxy->priv->qdata, key); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # g_variant_iter_free (iter); 1910s # for (n = 0; invalidated_properties[n] != NULL; n++) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1910s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1910s # #else 1910s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1910s # #endif 1910s # 1910s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusProxyClass *proxy_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1910s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1910s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1910s # 1910s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1910s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1910s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_sync: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_sync ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new_for_bus ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeleton: 1910s # * 1910s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeletonClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1910s # { 1910s # GValue *properties; 1910s # GList *changed_properties; 1910s # GSource *changed_properties_idle_source; 1910s # GMainContext *context; 1910s # GMutex lock; 1910s # }; 1910s # 1910s # static void 1910s # _org_project_signaling_iface_skeleton_handle_method_call ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name, 1910s # const gchar *method_name, 1910s # GVariant *parameters, 1910s # GDBusMethodInvocation *invocation, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # _ExtendedGDBusMethodInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # guint num_extra; 1910s # gsize n; 1910s # guint signal_id; 1910s # GValue return_value = G_VALUE_INIT; 1910s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1910s # g_assert (info != NULL); 1910s # num_params = g_variant_n_children (parameters); 1910s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1910s # n = 0; 1910s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[n++], skeleton); 1910s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1910s # g_value_set_object (¶mv[n++], invocation); 1910s # if (info->pass_fdlist) 1910s # { 1910s # #ifdef G_OS_UNIX 1910s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1910s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1910s # #else 1910s # g_assert_not_reached (); 1910s # #endif 1910s # } 1910s # g_variant_iter_init (&iter, parameters); 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1910s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1910s # if (!g_value_get_boolean (&return_value)) 1910s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1910s # g_value_unset (&return_value); 1910s # for (n = 0; n < num_params + num_extra; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static GVariant * 1910s # _org_project_signaling_iface_skeleton_handle_get_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # GVariant *ret; 1910s # ret = NULL; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # g_value_init (&value, pspec->value_type); 1910s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1910s # g_value_unset (&value); 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _org_project_signaling_iface_skeleton_handle_set_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GVariant *variant, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # gboolean ret; 1910s # ret = FALSE; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # if (info->use_gvariant) 1910s # g_value_set_variant (&value, variant); 1910s # else 1910s # g_dbus_gvariant_to_gvalue (variant, &value); 1910s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # g_value_unset (&value); 1910s # ret = TRUE; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1910s # { 1910s # _org_project_signaling_iface_skeleton_handle_method_call, 1910s # _org_project_signaling_iface_skeleton_handle_get_property, 1910s # _org_project_signaling_iface_skeleton_handle_set_property, 1910s # {NULL} 1910s # }; 1910s # 1910s # static GDBusInterfaceInfo * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return org_project_signaling_iface_interface_info (); 1910s # } 1910s # 1910s # static GDBusInterfaceVTable * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1910s # } 1910s # 1910s # static GVariant * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1910s # 1910s # GVariantBuilder builder; 1910s # guint n; 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1910s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #else 1910s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #endif 1910s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1910s # goto out; 1910s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1910s # { 1910s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1910s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1910s # { 1910s # GVariant *value; 1910s # value = _org_project_signaling_iface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", info->name, NULL, skeleton); 1910s # if (value != NULL) 1910s # { 1910s # g_variant_take_ref (value); 1910s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1910s # g_variant_unref (value); 1910s # } 1910s # } 1910s # } 1910s # out: 1910s # return g_variant_builder_end (&builder); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_single_arg_signal_d ( 1910s # OrgProjectSignalingIface *object, 1910s # gdouble arg_arg_d) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("(d)", 1910s # arg_arg_d)); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalD", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1910s # if (skeleton->priv->changed_properties_idle_source != NULL) 1910s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1910s # g_main_context_unref (skeleton->priv->context); 1910s # g_mutex_clear (&skeleton->priv->lock); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1910s # #else 1910s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1910s # #endif 1910s # 1910s # g_mutex_init (&skeleton->priv->lock); 1910s # skeleton->priv->context = g_main_context_ref_thread_default (); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusInterfaceSkeletonClass *skeleton_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1910s # 1910s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1910s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1910s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1910s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1910s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1910s # iface->single_arg_signal_d = _org_project_signaling_iface_on_signal_single_arg_signal_d; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_skeleton_new: 1910s # * 1910s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_skeleton_new (void) 1910s # { 1910s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1910s # } 1910s # Error: 1910s # 1910s # /tmp/tmp2qpmu6va/tmpx2dd6flk.xml: 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2qpmu6va/tmpx2dd6flk.xml', '--output', '-', '--body'] 1910s # Return code: 0 1910s # Output: 1910s # /* 1910s # * This file is generated by gdbus-codegen, do not modify it. 1910s # * 1910s # * The license of this code is the same as for the D-Bus interface description 1910s # * it was derived from. Note that it links to GLib, so must comply with the 1910s # * LGPL linking clauses. 1910s # */ 1910s # 1910s # #ifdef HAVE_CONFIG_H 1910s # # include "config.h" 1910s # #endif 1910s # 1910s # #include 1910s # #ifdef G_OS_UNIX 1910s # # include 1910s # #endif 1910s # 1910s # #ifdef G_ENABLE_DEBUG 1910s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1910s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1910s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1910s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1910s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1910s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1910s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1910s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1910s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1910s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1910s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1910s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1910s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1910s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1910s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1910s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1910s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1910s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1910s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1910s # #else /* !G_ENABLE_DEBUG */ 1910s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1910s # * Do not access GValues directly in your code. Instead, use the 1910s # * g_value_get_*() functions 1910s # */ 1910s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1910s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1910s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1910s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1910s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1910s # #endif /* !G_ENABLE_DEBUG */ 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusArgInfo parent_struct; 1910s # gboolean use_gvariant; 1910s # } _ExtendedGDBusArgInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusMethodInfo parent_struct; 1910s # const gchar *signal_name; 1910s # gboolean pass_fdlist; 1910s # } _ExtendedGDBusMethodInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusSignalInfo parent_struct; 1910s # const gchar *signal_name; 1910s # } _ExtendedGDBusSignalInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusPropertyInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # guint use_gvariant : 1; 1910s # guint emits_changed_signal : 1; 1910s # } _ExtendedGDBusPropertyInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusInterfaceInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # } _ExtendedGDBusInterfaceInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # const _ExtendedGDBusPropertyInfo *info; 1910s # guint prop_id; 1910s # GValue orig_value; /* the value before the change */ 1910s # } ChangedProperty; 1910s # 1910s # static void 1910s # _changed_property_free (ChangedProperty *data) 1910s # { 1910s # g_value_unset (&data->orig_value); 1910s # g_free (data); 1910s # } 1910s # 1910s # static gboolean 1910s # _g_strv_equal0 (gchar **a, gchar **b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # guint n; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # if (g_strv_length (a) != g_strv_length (b)) 1910s # goto out; 1910s # for (n = 0; a[n] != NULL; n++) 1910s # if (g_strcmp0 (a[n], b[n]) != 0) 1910s # goto out; 1910s # ret = TRUE; 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _g_variant_equal0 (GVariant *a, GVariant *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # ret = g_variant_equal (a, b); 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # G_GNUC_UNUSED static gboolean 1910s # _g_value_equal (const GValue *a, const GValue *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1910s # switch (G_VALUE_TYPE (a)) 1910s # { 1910s # case G_TYPE_BOOLEAN: 1910s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1910s # break; 1910s # case G_TYPE_UCHAR: 1910s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1910s # break; 1910s # case G_TYPE_INT: 1910s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1910s # break; 1910s # case G_TYPE_UINT: 1910s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1910s # break; 1910s # case G_TYPE_INT64: 1910s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1910s # break; 1910s # case G_TYPE_UINT64: 1910s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1910s # break; 1910s # case G_TYPE_DOUBLE: 1910s # { 1910s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1910s # gdouble da = g_value_get_double (a); 1910s # gdouble db = g_value_get_double (b); 1910s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1910s # } 1910s # break; 1910s # case G_TYPE_STRING: 1910s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1910s # break; 1910s # case G_TYPE_VARIANT: 1910s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1910s # break; 1910s # default: 1910s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1910s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1910s # else 1910s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1910s # break; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ 1910s # * Code for interface org.project.SignalingIface 1910s # * ------------------------------------------------------------------------ 1910s # */ 1910s # 1910s # /** 1910s # * SECTION:OrgProjectSignalingIface 1910s # * @title: OrgProjectSignalingIface 1910s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1910s # * 1910s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1910s # */ 1910s # 1910s # enum 1910s # { 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1910s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S, 1910s # }; 1910s # 1910s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1910s # 1910s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SimpleSignal", 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "simple-signal" 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_arg_s = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "arg_s", 1910s # (gchar *) "s", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_arg_s.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_s = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SingleArgSignalS", 1910s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers, 1910s # NULL 1910s # }, 1910s # "single-arg-signal-s" 1910s # }; 1910s # 1910s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_s.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "org.project.SignalingIface", 1910s # NULL, 1910s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "org-project-signaling-iface", 1910s # }; 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_interface_info: 1910s # * 1910s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1910s # * 1910s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1910s # */ 1910s # GDBusInterfaceInfo * 1910s # org_project_signaling_iface_interface_info (void) 1910s # { 1910s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_override_properties: 1910s # * @klass: The class structure for a #GObject derived class. 1910s # * @property_id_begin: The property id to assign to the first overridden property. 1910s # * 1910s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1910s # * The properties are overridden in the order they are defined. 1910s # * 1910s # * Returns: The last property id. 1910s # */ 1910s # guint 1910s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1910s # { 1910s # return property_id_begin - 1; 1910s # } 1910s # 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_simple_signal ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__VOID (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_s ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__STRING (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface: 1910s # * 1910s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceIface: 1910s # * @parent_iface: The parent interface. 1910s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1910s # * @single_arg_signal_s: Handler for the #OrgProjectSignalingIface::single-arg-signal-s signal. 1910s # * 1910s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1910s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1910s # 1910s # static void 1910s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # /* GObject signals for received D-Bus signals: */ 1910s # /** 1910s # * OrgProjectSignalingIface::simple-signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1910s # g_signal_new ("simple-signal", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_simple_signal, 1910s # G_TYPE_NONE, 1910s # 0); 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface::single-arg-signal-s: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_s: Argument. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalS" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S] = 1910s # g_signal_new ("single-arg-signal-s", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_s), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_s, 1910s # G_TYPE_NONE, 1910s # 1, G_TYPE_STRING); 1910s # 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_simple_signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * Emits the "SimpleSignal" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_single_arg_signal_s: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_s: Argument to pass with the signal. 1910s # * 1910s # * Emits the "SingleArgSignalS" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_single_arg_signal_s ( 1910s # OrgProjectSignalingIface *object, 1910s # const gchar *arg_arg_s) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S], 0, arg_arg_s); 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxy: 1910s # * 1910s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxyClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceProxy. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceProxyPrivate 1910s # { 1910s # GData *qdata; 1910s # }; 1910s # 1910s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_proxy_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1910s # g_datalist_clear (&proxy->priv->qdata); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # const GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1910s # const gchar *sender_name G_GNUC_UNUSED, 1910s # const gchar *signal_name, 1910s # GVariant *parameters) 1910s # { 1910s # _ExtendedGDBusSignalInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # gsize n; 1910s # guint signal_id; 1910s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1910s # if (info == NULL) 1910s # return; 1910s # num_params = g_variant_n_children (parameters); 1910s # paramv = g_new0 (GValue, num_params + 1); 1910s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[0], proxy); 1910s # g_variant_iter_init (&iter, parameters); 1910s # n = 1; 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_signal_emitv (paramv, signal_id, 0, NULL); 1910s # for (n = 0; n < num_params + 1; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1910s # GVariant *changed_properties, 1910s # const gchar *const *invalidated_properties) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1910s # guint n; 1910s # const gchar *key; 1910s # GVariantIter *iter; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # g_variant_get (changed_properties, "a{sv}", &iter); 1910s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1910s # g_datalist_remove_data (&proxy->priv->qdata, key); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # g_variant_iter_free (iter); 1910s # for (n = 0; invalidated_properties[n] != NULL; n++) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1910s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1910s # #else 1910s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1910s # #endif 1910s # 1910s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusProxyClass *proxy_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1910s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1910s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1910s # 1910s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1910s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1910s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_sync: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_sync ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new_for_bus ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeleton: 1910s # * 1910s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeletonClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1910s # { 1910s # GValue *properties; 1910s # GList *changed_properties; 1910s # GSource *changed_properties_idle_source; 1910s # GMainContext *context; 1910s # GMutex lock; 1910s # }; 1910s # 1910s # static void 1910s # _org_project_signaling_iface_skeleton_handle_method_call ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name, 1910s # const gchar *method_name, 1910s # GVariant *parameters, 1910s # GDBusMethodInvocation *invocation, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # _ExtendedGDBusMethodInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # guint num_extra; 1910s # gsize n; 1910s # guint signal_id; 1910s # GValue return_value = G_VALUE_INIT; 1910s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1910s # g_assert (info != NULL); 1910s # num_params = g_variant_n_children (parameters); 1910s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1910s # n = 0; 1910s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[n++], skeleton); 1910s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1910s # g_value_set_object (¶mv[n++], invocation); 1910s # if (info->pass_fdlist) 1910s # { 1910s # #ifdef G_OS_UNIX 1910s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1910s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1910s # #else 1910s # g_assert_not_reached (); 1910s # #endif 1910s # } 1910s # g_variant_iter_init (&iter, parameters); 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1910s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1910s # if (!g_value_get_boolean (&return_value)) 1910s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1910s # g_value_unset (&return_value); 1910s # for (n = 0; n < num_params + num_extra; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static GVariant * 1910s # _org_project_signaling_iface_skeleton_handle_get_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # GVariant *ret; 1910s # ret = NULL; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # g_value_init (&value, pspec->value_type); 1910s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1910s # g_value_unset (&value); 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _org_project_signaling_iface_skeleton_handle_set_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GVariant *variant, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # gboolean ret; 1910s # ret = FALSE; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # if (info->use_gvariant) 1910s # g_value_set_variant (&value, variant); 1910s # else 1910s # g_dbus_gvariant_to_gvalue (variant, &value); 1910s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # g_value_unset (&value); 1910s # ret = TRUE; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1910s # { 1910s # _org_project_signaling_iface_skeleton_handle_method_call, 1910s # _org_project_signaling_iface_skeleton_handle_get_property, 1910s # _org_project_signaling_iface_skeleton_handle_set_property, 1910s # {NULL} 1910s # }; 1910s # 1910s # static GDBusInterfaceInfo * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return org_project_signaling_iface_interface_info (); 1910s # } 1910s # 1910s # static GDBusInterfaceVTable * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1910s # } 1910s # 1910s # static GVariant * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1910s # 1910s # GVariantBuilder builder; 1910s # guint n; 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1910s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #else 1910s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #endif 1910s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1910s # goto out; 1910s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1910s # { 1910s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1910s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1910s # { 1910s # GVariant *value; 1910s # value = _org_project_signaling_iface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", info->name, NULL, skeleton); 1910s # if (value != NULL) 1910s # { 1910s # g_variant_take_ref (value); 1910s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1910s # g_variant_unref (value); 1910s # } 1910s # } 1910s # } 1910s # out: 1910s # return g_variant_builder_end (&builder); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_single_arg_signal_s ( 1910s # OrgProjectSignalingIface *object, 1910s # const gchar *arg_arg_s) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("(s)", 1910s # arg_arg_s)); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalS", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1910s # if (skeleton->priv->changed_properties_idle_source != NULL) 1910s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1910s # g_main_context_unref (skeleton->priv->context); 1910s # g_mutex_clear (&skeleton->priv->lock); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1910s # #else 1910s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1910s # #endif 1910s # 1910s # g_mutex_init (&skeleton->priv->lock); 1910s # skeleton->priv->context = g_main_context_ref_thread_default (); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusInterfaceSkeletonClass *skeleton_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1910s # 1910s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1910s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1910s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1910s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1910s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1910s # iface->single_arg_signal_s = _org_project_signaling_iface_on_signal_single_arg_signal_s; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_skeleton_new: 1910s # * 1910s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_skeleton_new (void) 1910s # { 1910s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1910s # } 1910s # Error: 1910s # 1910s # /tmp/tmp2qpmu6va/tmp2aruzneu.xml: 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2qpmu6va/tmp2aruzneu.xml', '--output', '-', '--body'] 1910s # Return code: 0 1910s # Output: 1910s # /* 1910s # * This file is generated by gdbus-codegen, do not modify it. 1910s # * 1910s # * The license of this code is the same as for the D-Bus interface description 1910s # * it was derived from. Note that it links to GLib, so must comply with the 1910s # * LGPL linking clauses. 1910s # */ 1910s # 1910s # #ifdef HAVE_CONFIG_H 1910s # # include "config.h" 1910s # #endif 1910s # 1910s # #include 1910s # #ifdef G_OS_UNIX 1910s # # include 1910s # #endif 1910s # 1910s # #ifdef G_ENABLE_DEBUG 1910s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1910s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1910s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1910s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1910s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1910s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1910s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1910s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1910s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1910s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1910s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1910s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1910s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1910s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1910s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1910s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1910s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1910s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1910s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1910s # #else /* !G_ENABLE_DEBUG */ 1910s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1910s # * Do not access GValues directly in your code. Instead, use the 1910s # * g_value_get_*() functions 1910s # */ 1910s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1910s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1910s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1910s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1910s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1910s # #endif /* !G_ENABLE_DEBUG */ 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusArgInfo parent_struct; 1910s # gboolean use_gvariant; 1910s # } _ExtendedGDBusArgInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusMethodInfo parent_struct; 1910s # const gchar *signal_name; 1910s # gboolean pass_fdlist; 1910s # } _ExtendedGDBusMethodInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusSignalInfo parent_struct; 1910s # const gchar *signal_name; 1910s # } _ExtendedGDBusSignalInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusPropertyInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # guint use_gvariant : 1; 1910s # guint emits_changed_signal : 1; 1910s # } _ExtendedGDBusPropertyInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusInterfaceInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # } _ExtendedGDBusInterfaceInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # const _ExtendedGDBusPropertyInfo *info; 1910s # guint prop_id; 1910s # GValue orig_value; /* the value before the change */ 1910s # } ChangedProperty; 1910s # 1910s # static void 1910s # _changed_property_free (ChangedProperty *data) 1910s # { 1910s # g_value_unset (&data->orig_value); 1910s # g_free (data); 1910s # } 1910s # 1910s # static gboolean 1910s # _g_strv_equal0 (gchar **a, gchar **b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # guint n; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # if (g_strv_length (a) != g_strv_length (b)) 1910s # goto out; 1910s # for (n = 0; a[n] != NULL; n++) 1910s # if (g_strcmp0 (a[n], b[n]) != 0) 1910s # goto out; 1910s # ret = TRUE; 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _g_variant_equal0 (GVariant *a, GVariant *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # ret = g_variant_equal (a, b); 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # G_GNUC_UNUSED static gboolean 1910s # _g_value_equal (const GValue *a, const GValue *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1910s # switch (G_VALUE_TYPE (a)) 1910s # { 1910s # case G_TYPE_BOOLEAN: 1910s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1910s # break; 1910s # case G_TYPE_UCHAR: 1910s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1910s # break; 1910s # case G_TYPE_INT: 1910s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1910s # break; 1910s # case G_TYPE_UINT: 1910s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1910s # break; 1910s # case G_TYPE_INT64: 1910s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1910s # break; 1910s # case G_TYPE_UINT64: 1910s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1910s # break; 1910s # case G_TYPE_DOUBLE: 1910s # { 1910s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1910s # gdouble da = g_value_get_double (a); 1910s # gdouble db = g_value_get_double (b); 1910s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1910s # } 1910s # break; 1910s # case G_TYPE_STRING: 1910s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1910s # break; 1910s # case G_TYPE_VARIANT: 1910s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1910s # break; 1910s # default: 1910s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1910s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1910s # else 1910s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1910s # break; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ 1910s # * Code for interface org.project.SignalingIface 1910s # * ------------------------------------------------------------------------ 1910s # */ 1910s # 1910s # /** 1910s # * SECTION:OrgProjectSignalingIface 1910s # * @title: OrgProjectSignalingIface 1910s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1910s # * 1910s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1910s # */ 1910s # 1910s # enum 1910s # { 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1910s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O, 1910s # }; 1910s # 1910s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1910s # 1910s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SimpleSignal", 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "simple-signal" 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_arg_o = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "arg_o", 1910s # (gchar *) "o", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_arg_o.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_o = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SingleArgSignalO", 1910s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers, 1910s # NULL 1910s # }, 1910s # "single-arg-signal-o" 1910s # }; 1910s # 1910s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_o.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "org.project.SignalingIface", 1910s # NULL, 1910s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "org-project-signaling-iface", 1910s # }; 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_interface_info: 1910s # * 1910s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1910s # * 1910s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1910s # */ 1910s # GDBusInterfaceInfo * 1910s # org_project_signaling_iface_interface_info (void) 1910s # { 1910s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_override_properties: 1910s # * @klass: The class structure for a #GObject derived class. 1910s # * @property_id_begin: The property id to assign to the first overridden property. 1910s # * 1910s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1910s # * The properties are overridden in the order they are defined. 1910s # * 1910s # * Returns: The last property id. 1910s # */ 1910s # guint 1910s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1910s # { 1910s # return property_id_begin - 1; 1910s # } 1910s # 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_simple_signal ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__VOID (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_o ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__STRING (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface: 1910s # * 1910s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceIface: 1910s # * @parent_iface: The parent interface. 1910s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1910s # * @single_arg_signal_o: Handler for the #OrgProjectSignalingIface::single-arg-signal-o signal. 1910s # * 1910s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1910s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1910s # 1910s # static void 1910s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # /* GObject signals for received D-Bus signals: */ 1910s # /** 1910s # * OrgProjectSignalingIface::simple-signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1910s # g_signal_new ("simple-signal", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_simple_signal, 1910s # G_TYPE_NONE, 1910s # 0); 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface::single-arg-signal-o: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_o: Argument. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalO" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O] = 1910s # g_signal_new ("single-arg-signal-o", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_o), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_o, 1910s # G_TYPE_NONE, 1910s # 1, G_TYPE_STRING); 1910s # 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_simple_signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * Emits the "SimpleSignal" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_single_arg_signal_o: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_o: Argument to pass with the signal. 1910s # * 1910s # * Emits the "SingleArgSignalO" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_single_arg_signal_o ( 1910s # OrgProjectSignalingIface *object, 1910s # const gchar *arg_arg_o) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O], 0, arg_arg_o); 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxy: 1910s # * 1910s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxyClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceProxy. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceProxyPrivate 1910s # { 1910s # GData *qdata; 1910s # }; 1910s # 1910s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_proxy_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1910s # g_datalist_clear (&proxy->priv->qdata); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # const GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1910s # const gchar *sender_name G_GNUC_UNUSED, 1910s # const gchar *signal_name, 1910s # GVariant *parameters) 1910s # { 1910s # _ExtendedGDBusSignalInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # gsize n; 1910s # guint signal_id; 1910s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1910s # if (info == NULL) 1910s # return; 1910s # num_params = g_variant_n_children (parameters); 1910s # paramv = g_new0 (GValue, num_params + 1); 1910s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[0], proxy); 1910s # g_variant_iter_init (&iter, parameters); 1910s # n = 1; 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_signal_emitv (paramv, signal_id, 0, NULL); 1910s # for (n = 0; n < num_params + 1; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1910s # GVariant *changed_properties, 1910s # const gchar *const *invalidated_properties) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1910s # guint n; 1910s # const gchar *key; 1910s # GVariantIter *iter; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # g_variant_get (changed_properties, "a{sv}", &iter); 1910s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1910s # g_datalist_remove_data (&proxy->priv->qdata, key); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # g_variant_iter_free (iter); 1910s # for (n = 0; invalidated_properties[n] != NULL; n++) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1910s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1910s # #else 1910s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1910s # #endif 1910s # 1910s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusProxyClass *proxy_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1910s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1910s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1910s # 1910s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1910s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1910s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_sync: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_sync ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new_for_bus ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeleton: 1910s # * 1910s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeletonClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1910s # { 1910s # GValue *properties; 1910s # GList *changed_properties; 1910s # GSource *changed_properties_idle_source; 1910s # GMainContext *context; 1910s # GMutex lock; 1910s # }; 1910s # 1910s # static void 1910s # _org_project_signaling_iface_skeleton_handle_method_call ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name, 1910s # const gchar *method_name, 1910s # GVariant *parameters, 1910s # GDBusMethodInvocation *invocation, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # _ExtendedGDBusMethodInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # guint num_extra; 1910s # gsize n; 1910s # guint signal_id; 1910s # GValue return_value = G_VALUE_INIT; 1910s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1910s # g_assert (info != NULL); 1910s # num_params = g_variant_n_children (parameters); 1910s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1910s # n = 0; 1910s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[n++], skeleton); 1910s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1910s # g_value_set_object (¶mv[n++], invocation); 1910s # if (info->pass_fdlist) 1910s # { 1910s # #ifdef G_OS_UNIX 1910s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1910s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1910s # #else 1910s # g_assert_not_reached (); 1910s # #endif 1910s # } 1910s # g_variant_iter_init (&iter, parameters); 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1910s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1910s # if (!g_value_get_boolean (&return_value)) 1910s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1910s # g_value_unset (&return_value); 1910s # for (n = 0; n < num_params + num_extra; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static GVariant * 1910s # _org_project_signaling_iface_skeleton_handle_get_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # GVariant *ret; 1910s # ret = NULL; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # g_value_init (&value, pspec->value_type); 1910s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1910s # g_value_unset (&value); 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _org_project_signaling_iface_skeleton_handle_set_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GVariant *variant, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # gboolean ret; 1910s # ret = FALSE; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # if (info->use_gvariant) 1910s # g_value_set_variant (&value, variant); 1910s # else 1910s # g_dbus_gvariant_to_gvalue (variant, &value); 1910s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # g_value_unset (&value); 1910s # ret = TRUE; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1910s # { 1910s # _org_project_signaling_iface_skeleton_handle_method_call, 1910s # _org_project_signaling_iface_skeleton_handle_get_property, 1910s # _org_project_signaling_iface_skeleton_handle_set_property, 1910s # {NULL} 1910s # }; 1910s # 1910s # static GDBusInterfaceInfo * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return org_project_signaling_iface_interface_info (); 1910s # } 1910s # 1910s # static GDBusInterfaceVTable * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1910s # } 1910s # 1910s # static GVariant * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1910s # 1910s # GVariantBuilder builder; 1910s # guint n; 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1910s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #else 1910s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #endif 1910s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1910s # goto out; 1910s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1910s # { 1910s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1910s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1910s # { 1910s # GVariant *value; 1910s # value = _org_project_signaling_iface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", info->name, NULL, skeleton); 1910s # if (value != NULL) 1910s # { 1910s # g_variant_take_ref (value); 1910s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1910s # g_variant_unref (value); 1910s # } 1910s # } 1910s # } 1910s # out: 1910s # return g_variant_builder_end (&builder); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_single_arg_signal_o ( 1910s # OrgProjectSignalingIface *object, 1910s # const gchar *arg_arg_o) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("(o)", 1910s # arg_arg_o)); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalO", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1910s # if (skeleton->priv->changed_properties_idle_source != NULL) 1910s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1910s # g_main_context_unref (skeleton->priv->context); 1910s # g_mutex_clear (&skeleton->priv->lock); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1910s # #else 1910s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1910s # #endif 1910s # 1910s # g_mutex_init (&skeleton->priv->lock); 1910s # skeleton->priv->context = g_main_context_ref_thread_default (); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusInterfaceSkeletonClass *skeleton_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1910s # 1910s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1910s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1910s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1910s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1910s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1910s # iface->single_arg_signal_o = _org_project_signaling_iface_on_signal_single_arg_signal_o; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_skeleton_new: 1910s # * 1910s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_skeleton_new (void) 1910s # { 1910s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1910s # } 1910s # Error: 1910s # 1910s # /tmp/tmp2qpmu6va/tmpz1imws70.xml: 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2qpmu6va/tmpz1imws70.xml', '--output', '-', '--body'] 1910s # Return code: 0 1910s # Output: 1910s # /* 1910s # * This file is generated by gdbus-codegen, do not modify it. 1910s # * 1910s # * The license of this code is the same as for the D-Bus interface description 1910s # * it was derived from. Note that it links to GLib, so must comply with the 1910s # * LGPL linking clauses. 1910s # */ 1910s # 1910s # #ifdef HAVE_CONFIG_H 1910s # # include "config.h" 1910s # #endif 1910s # 1910s # #include 1910s # #ifdef G_OS_UNIX 1910s # # include 1910s # #endif 1910s # 1910s # #ifdef G_ENABLE_DEBUG 1910s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1910s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1910s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1910s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1910s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1910s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1910s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1910s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1910s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1910s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1910s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1910s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1910s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1910s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1910s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1910s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1910s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1910s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1910s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1910s # #else /* !G_ENABLE_DEBUG */ 1910s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1910s # * Do not access GValues directly in your code. Instead, use the 1910s # * g_value_get_*() functions 1910s # */ 1910s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1910s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1910s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1910s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1910s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1910s # #endif /* !G_ENABLE_DEBUG */ 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusArgInfo parent_struct; 1910s # gboolean use_gvariant; 1910s # } _ExtendedGDBusArgInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusMethodInfo parent_struct; 1910s # const gchar *signal_name; 1910s # gboolean pass_fdlist; 1910s # } _ExtendedGDBusMethodInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusSignalInfo parent_struct; 1910s # const gchar *signal_name; 1910s # } _ExtendedGDBusSignalInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusPropertyInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # guint use_gvariant : 1; 1910s # guint emits_changed_signal : 1; 1910s # } _ExtendedGDBusPropertyInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusInterfaceInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # } _ExtendedGDBusInterfaceInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # const _ExtendedGDBusPropertyInfo *info; 1910s # guint prop_id; 1910s # GValue orig_value; /* the value before the change */ 1910s # } ChangedProperty; 1910s # 1910s # static void 1910s # _changed_property_free (ChangedProperty *data) 1910s # { 1910s # g_value_unset (&data->orig_value); 1910s # g_free (data); 1910s # } 1910s # 1910s # static gboolean 1910s # _g_strv_equal0 (gchar **a, gchar **b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # guint n; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # if (g_strv_length (a) != g_strv_length (b)) 1910s # goto out; 1910s # for (n = 0; a[n] != NULL; n++) 1910s # if (g_strcmp0 (a[n], b[n]) != 0) 1910s # goto out; 1910s # ret = TRUE; 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _g_variant_equal0 (GVariant *a, GVariant *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # ret = g_variant_equal (a, b); 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # G_GNUC_UNUSED static gboolean 1910s # _g_value_equal (const GValue *a, const GValue *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1910s # switch (G_VALUE_TYPE (a)) 1910s # { 1910s # case G_TYPE_BOOLEAN: 1910s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1910s # break; 1910s # case G_TYPE_UCHAR: 1910s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1910s # break; 1910s # case G_TYPE_INT: 1910s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1910s # break; 1910s # case G_TYPE_UINT: 1910s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1910s # break; 1910s # case G_TYPE_INT64: 1910s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1910s # break; 1910s # case G_TYPE_UINT64: 1910s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1910s # break; 1910s # case G_TYPE_DOUBLE: 1910s # { 1910s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1910s # gdouble da = g_value_get_double (a); 1910s # gdouble db = g_value_get_double (b); 1910s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1910s # } 1910s # break; 1910s # case G_TYPE_STRING: 1910s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1910s # break; 1910s # case G_TYPE_VARIANT: 1910s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1910s # break; 1910s # default: 1910s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1910s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1910s # else 1910s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1910s # break; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ 1910s # * Code for interface org.project.SignalingIface 1910s # * ------------------------------------------------------------------------ 1910s # */ 1910s # 1910s # /** 1910s # * SECTION:OrgProjectSignalingIface 1910s # * @title: OrgProjectSignalingIface 1910s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1910s # * 1910s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1910s # */ 1910s # 1910s # enum 1910s # { 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1910s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G, 1910s # }; 1910s # 1910s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1910s # 1910s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SimpleSignal", 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "simple-signal" 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_arg_g = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "arg_g", 1910s # (gchar *) "g", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_arg_g.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_g = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SingleArgSignalG", 1910s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers, 1910s # NULL 1910s # }, 1910s # "single-arg-signal-g" 1910s # }; 1910s # 1910s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_g.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "org.project.SignalingIface", 1910s # NULL, 1910s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "org-project-signaling-iface", 1910s # }; 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_interface_info: 1910s # * 1910s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1910s # * 1910s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1910s # */ 1910s # GDBusInterfaceInfo * 1910s # org_project_signaling_iface_interface_info (void) 1910s # { 1910s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_override_properties: 1910s # * @klass: The class structure for a #GObject derived class. 1910s # * @property_id_begin: The property id to assign to the first overridden property. 1910s # * 1910s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1910s # * The properties are overridden in the order they are defined. 1910s # * 1910s # * Returns: The last property id. 1910s # */ 1910s # guint 1910s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1910s # { 1910s # return property_id_begin - 1; 1910s # } 1910s # 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_simple_signal ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__VOID (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_g ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__STRING (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface: 1910s # * 1910s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceIface: 1910s # * @parent_iface: The parent interface. 1910s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1910s # * @single_arg_signal_g: Handler for the #OrgProjectSignalingIface::single-arg-signal-g signal. 1910s # * 1910s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1910s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1910s # 1910s # static void 1910s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # /* GObject signals for received D-Bus signals: */ 1910s # /** 1910s # * OrgProjectSignalingIface::simple-signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1910s # g_signal_new ("simple-signal", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_simple_signal, 1910s # G_TYPE_NONE, 1910s # 0); 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface::single-arg-signal-g: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_g: Argument. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalG" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G] = 1910s # g_signal_new ("single-arg-signal-g", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_g), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_g, 1910s # G_TYPE_NONE, 1910s # 1, G_TYPE_STRING); 1910s # 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_simple_signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * Emits the "SimpleSignal" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_single_arg_signal_g: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_g: Argument to pass with the signal. 1910s # * 1910s # * Emits the "SingleArgSignalG" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_single_arg_signal_g ( 1910s # OrgProjectSignalingIface *object, 1910s # const gchar *arg_arg_g) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G], 0, arg_arg_g); 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxy: 1910s # * 1910s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxyClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceProxy. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceProxyPrivate 1910s # { 1910s # GData *qdata; 1910s # }; 1910s # 1910s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_proxy_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1910s # g_datalist_clear (&proxy->priv->qdata); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # const GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1910s # const gchar *sender_name G_GNUC_UNUSED, 1910s # const gchar *signal_name, 1910s # GVariant *parameters) 1910s # { 1910s # _ExtendedGDBusSignalInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # gsize n; 1910s # guint signal_id; 1910s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1910s # if (info == NULL) 1910s # return; 1910s # num_params = g_variant_n_children (parameters); 1910s # paramv = g_new0 (GValue, num_params + 1); 1910s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[0], proxy); 1910s # g_variant_iter_init (&iter, parameters); 1910s # n = 1; 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_signal_emitv (paramv, signal_id, 0, NULL); 1910s # for (n = 0; n < num_params + 1; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1910s # GVariant *changed_properties, 1910s # const gchar *const *invalidated_properties) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1910s # guint n; 1910s # const gchar *key; 1910s # GVariantIter *iter; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # g_variant_get (changed_properties, "a{sv}", &iter); 1910s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1910s # g_datalist_remove_data (&proxy->priv->qdata, key); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # g_variant_iter_free (iter); 1910s # for (n = 0; invalidated_properties[n] != NULL; n++) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1910s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1910s # #else 1910s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1910s # #endif 1910s # 1910s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusProxyClass *proxy_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1910s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1910s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1910s # 1910s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1910s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1910s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_sync: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_sync ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new_for_bus ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeleton: 1910s # * 1910s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeletonClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1910s # { 1910s # GValue *properties; 1910s # GList *changed_properties; 1910s # GSource *changed_properties_idle_source; 1910s # GMainContext *context; 1910s # GMutex lock; 1910s # }; 1910s # 1910s # static void 1910s # _org_project_signaling_iface_skeleton_handle_method_call ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name, 1910s # const gchar *method_name, 1910s # GVariant *parameters, 1910s # GDBusMethodInvocation *invocation, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # _ExtendedGDBusMethodInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # guint num_extra; 1910s # gsize n; 1910s # guint signal_id; 1910s # GValue return_value = G_VALUE_INIT; 1910s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1910s # g_assert (info != NULL); 1910s # num_params = g_variant_n_children (parameters); 1910s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1910s # n = 0; 1910s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[n++], skeleton); 1910s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1910s # g_value_set_object (¶mv[n++], invocation); 1910s # if (info->pass_fdlist) 1910s # { 1910s # #ifdef G_OS_UNIX 1910s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1910s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1910s # #else 1910s # g_assert_not_reached (); 1910s # #endif 1910s # } 1910s # g_variant_iter_init (&iter, parameters); 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1910s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1910s # if (!g_value_get_boolean (&return_value)) 1910s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1910s # g_value_unset (&return_value); 1910s # for (n = 0; n < num_params + num_extra; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static GVariant * 1910s # _org_project_signaling_iface_skeleton_handle_get_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # GVariant *ret; 1910s # ret = NULL; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # g_value_init (&value, pspec->value_type); 1910s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1910s # g_value_unset (&value); 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _org_project_signaling_iface_skeleton_handle_set_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GVariant *variant, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # gboolean ret; 1910s # ret = FALSE; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # if (info->use_gvariant) 1910s # g_value_set_variant (&value, variant); 1910s # else 1910s # g_dbus_gvariant_to_gvalue (variant, &value); 1910s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # g_value_unset (&value); 1910s # ret = TRUE; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1910s # { 1910s # _org_project_signaling_iface_skeleton_handle_method_call, 1910s # _org_project_signaling_iface_skeleton_handle_get_property, 1910s # _org_project_signaling_iface_skeleton_handle_set_property, 1910s # {NULL} 1910s # }; 1910s # 1910s # static GDBusInterfaceInfo * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return org_project_signaling_iface_interface_info (); 1910s # } 1910s # 1910s # static GDBusInterfaceVTable * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1910s # } 1910s # 1910s # static GVariant * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1910s # 1910s # GVariantBuilder builder; 1910s # guint n; 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1910s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #else 1910s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #endif 1910s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1910s # goto out; 1910s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1910s # { 1910s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1910s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1910s # { 1910s # GVariant *value; 1910s # value = _org_project_signaling_iface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", info->name, NULL, skeleton); 1910s # if (value != NULL) 1910s # { 1910s # g_variant_take_ref (value); 1910s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1910s # g_variant_unref (value); 1910s # } 1910s # } 1910s # } 1910s # out: 1910s # return g_variant_builder_end (&builder); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_single_arg_signal_g ( 1910s # OrgProjectSignalingIface *object, 1910s # const gchar *arg_arg_g) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("(g)", 1910s # arg_arg_g)); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalG", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1910s # if (skeleton->priv->changed_properties_idle_source != NULL) 1910s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1910s # g_main_context_unref (skeleton->priv->context); 1910s # g_mutex_clear (&skeleton->priv->lock); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1910s # #else 1910s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1910s # #endif 1910s # 1910s # g_mutex_init (&skeleton->priv->lock); 1910s # skeleton->priv->context = g_main_context_ref_thread_default (); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusInterfaceSkeletonClass *skeleton_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1910s # 1910s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1910s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1910s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1910s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1910s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1910s # iface->single_arg_signal_g = _org_project_signaling_iface_on_signal_single_arg_signal_g; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_skeleton_new: 1910s # * 1910s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_skeleton_new (void) 1910s # { 1910s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1910s # } 1910s # Error: 1910s # 1910s # /tmp/tmp2qpmu6va/tmpyzpua4bs.xml: 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2qpmu6va/tmpyzpua4bs.xml', '--output', '-', '--body'] 1910s # Return code: 0 1910s # Output: 1910s # /* 1910s # * This file is generated by gdbus-codegen, do not modify it. 1910s # * 1910s # * The license of this code is the same as for the D-Bus interface description 1910s # * it was derived from. Note that it links to GLib, so must comply with the 1910s # * LGPL linking clauses. 1910s # */ 1910s # 1910s # #ifdef HAVE_CONFIG_H 1910s # # include "config.h" 1910s # #endif 1910s # 1910s # #include 1910s # #ifdef G_OS_UNIX 1910s # # include 1910s # #endif 1910s # 1910s # #ifdef G_ENABLE_DEBUG 1910s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1910s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1910s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1910s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1910s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1910s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1910s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1910s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1910s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1910s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1910s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1910s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1910s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1910s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1910s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1910s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1910s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1910s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1910s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1910s # #else /* !G_ENABLE_DEBUG */ 1910s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1910s # * Do not access GValues directly in your code. Instead, use the 1910s # * g_value_get_*() functions 1910s # */ 1910s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1910s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1910s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1910s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1910s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1910s # #endif /* !G_ENABLE_DEBUG */ 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusArgInfo parent_struct; 1910s # gboolean use_gvariant; 1910s # } _ExtendedGDBusArgInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusMethodInfo parent_struct; 1910s # const gchar *signal_name; 1910s # gboolean pass_fdlist; 1910s # } _ExtendedGDBusMethodInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusSignalInfo parent_struct; 1910s # const gchar *signal_name; 1910s # } _ExtendedGDBusSignalInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusPropertyInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # guint use_gvariant : 1; 1910s # guint emits_changed_signal : 1; 1910s # } _ExtendedGDBusPropertyInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusInterfaceInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # } _ExtendedGDBusInterfaceInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # const _ExtendedGDBusPropertyInfo *info; 1910s # guint prop_id; 1910s # GValue orig_value; /* the value before the change */ 1910s # } ChangedProperty; 1910s # 1910s # static void 1910s # _changed_property_free (ChangedProperty *data) 1910s # { 1910s # g_value_unset (&data->orig_value); 1910s # g_free (data); 1910s # } 1910s # 1910s # static gboolean 1910s # _g_strv_equal0 (gchar **a, gchar **b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # guint n; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # if (g_strv_length (a) != g_strv_length (b)) 1910s # goto out; 1910s # for (n = 0; a[n] != NULL; n++) 1910s # if (g_strcmp0 (a[n], b[n]) != 0) 1910s # goto out; 1910s # ret = TRUE; 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _g_variant_equal0 (GVariant *a, GVariant *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # ret = g_variant_equal (a, b); 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # G_GNUC_UNUSED static gboolean 1910s # _g_value_equal (const GValue *a, const GValue *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1910s # switch (G_VALUE_TYPE (a)) 1910s # { 1910s # case G_TYPE_BOOLEAN: 1910s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1910s # break; 1910s # case G_TYPE_UCHAR: 1910s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1910s # break; 1910s # case G_TYPE_INT: 1910s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1910s # break; 1910s # case G_TYPE_UINT: 1910s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1910s # break; 1910s # case G_TYPE_INT64: 1910s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1910s # break; 1910s # case G_TYPE_UINT64: 1910s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1910s # break; 1910s # case G_TYPE_DOUBLE: 1910s # { 1910s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1910s # gdouble da = g_value_get_double (a); 1910s # gdouble db = g_value_get_double (b); 1910s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1910s # } 1910s # break; 1910s # case G_TYPE_STRING: 1910s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1910s # break; 1910s # case G_TYPE_VARIANT: 1910s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1910s # break; 1910s # default: 1910s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1910s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1910s # else 1910s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1910s # break; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ 1910s # * Code for interface org.project.SignalingIface 1910s # * ------------------------------------------------------------------------ 1910s # */ 1910s # 1910s # /** 1910s # * SECTION:OrgProjectSignalingIface 1910s # * @title: OrgProjectSignalingIface 1910s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1910s # * 1910s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1910s # */ 1910s # 1910s # enum 1910s # { 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1910s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H, 1910s # }; 1910s # 1910s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1910s # 1910s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SimpleSignal", 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "simple-signal" 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_arg_h = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "arg_h", 1910s # (gchar *) "h", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_arg_h.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_h = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SingleArgSignalH", 1910s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers, 1910s # NULL 1910s # }, 1910s # "single-arg-signal-h" 1910s # }; 1910s # 1910s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_h.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "org.project.SignalingIface", 1910s # NULL, 1910s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "org-project-signaling-iface", 1910s # }; 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_interface_info: 1910s # * 1910s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1910s # * 1910s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1910s # */ 1910s # GDBusInterfaceInfo * 1910s # org_project_signaling_iface_interface_info (void) 1910s # { 1910s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_override_properties: 1910s # * @klass: The class structure for a #GObject derived class. 1910s # * @property_id_begin: The property id to assign to the first overridden property. 1910s # * 1910s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1910s # * The properties are overridden in the order they are defined. 1910s # * 1910s # * Returns: The last property id. 1910s # */ 1910s # guint 1910s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1910s # { 1910s # return property_id_begin - 1; 1910s # } 1910s # 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_simple_signal ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__VOID (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_h ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__VARIANT (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface: 1910s # * 1910s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceIface: 1910s # * @parent_iface: The parent interface. 1910s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1910s # * @single_arg_signal_h: Handler for the #OrgProjectSignalingIface::single-arg-signal-h signal. 1910s # * 1910s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1910s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1910s # 1910s # static void 1910s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # /* GObject signals for received D-Bus signals: */ 1910s # /** 1910s # * OrgProjectSignalingIface::simple-signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1910s # g_signal_new ("simple-signal", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_simple_signal, 1910s # G_TYPE_NONE, 1910s # 0); 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface::single-arg-signal-h: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_h: Argument. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalH" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H] = 1910s # g_signal_new ("single-arg-signal-h", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_h), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_h, 1910s # G_TYPE_NONE, 1910s # 1, G_TYPE_VARIANT); 1910s # 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_simple_signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * Emits the "SimpleSignal" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_single_arg_signal_h: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_h: Argument to pass with the signal. 1910s # * 1910s # * Emits the "SingleArgSignalH" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_single_arg_signal_h ( 1910s # OrgProjectSignalingIface *object, 1910s # GVariant *arg_arg_h) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H], 0, arg_arg_h); 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxy: 1910s # * 1910s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxyClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceProxy. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceProxyPrivate 1910s # { 1910s # GData *qdata; 1910s # }; 1910s # 1910s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_proxy_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1910s # g_datalist_clear (&proxy->priv->qdata); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # const GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1910s # const gchar *sender_name G_GNUC_UNUSED, 1910s # const gchar *signal_name, 1910s # GVariant *parameters) 1910s # { 1910s # _ExtendedGDBusSignalInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # gsize n; 1910s # guint signal_id; 1910s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1910s # if (info == NULL) 1910s # return; 1910s # num_params = g_variant_n_children (parameters); 1910s # paramv = g_new0 (GValue, num_params + 1); 1910s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[0], proxy); 1910s # g_variant_iter_init (&iter, parameters); 1910s # n = 1; 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_signal_emitv (paramv, signal_id, 0, NULL); 1910s # for (n = 0; n < num_params + 1; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1910s # GVariant *changed_properties, 1910s # const gchar *const *invalidated_properties) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1910s # guint n; 1910s # const gchar *key; 1910s # GVariantIter *iter; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # g_variant_get (changed_properties, "a{sv}", &iter); 1910s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1910s # g_datalist_remove_data (&proxy->priv->qdata, key); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # g_variant_iter_free (iter); 1910s # for (n = 0; invalidated_properties[n] != NULL; n++) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1910s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1910s # #else 1910s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1910s # #endif 1910s # 1910s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusProxyClass *proxy_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1910s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1910s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1910s # 1910s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1910s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1910s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_sync: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_sync ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new_for_bus ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeleton: 1910s # * 1910s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeletonClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1910s # { 1910s # GValue *properties; 1910s # GList *changed_properties; 1910s # GSource *changed_properties_idle_source; 1910s # GMainContext *context; 1910s # GMutex lock; 1910s # }; 1910s # 1910s # static void 1910s # _org_project_signaling_iface_skeleton_handle_method_call ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name, 1910s # const gchar *method_name, 1910s # GVariant *parameters, 1910s # GDBusMethodInvocation *invocation, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # _ExtendedGDBusMethodInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # guint num_extra; 1910s # gsize n; 1910s # guint signal_id; 1910s # GValue return_value = G_VALUE_INIT; 1910s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1910s # g_assert (info != NULL); 1910s # num_params = g_variant_n_children (parameters); 1910s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1910s # n = 0; 1910s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[n++], skeleton); 1910s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1910s # g_value_set_object (¶mv[n++], invocation); 1910s # if (info->pass_fdlist) 1910s # { 1910s # #ifdef G_OS_UNIX 1910s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1910s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1910s # #else 1910s # g_assert_not_reached (); 1910s # #endif 1910s # } 1910s # g_variant_iter_init (&iter, parameters); 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1910s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1910s # if (!g_value_get_boolean (&return_value)) 1910s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1910s # g_value_unset (&return_value); 1910s # for (n = 0; n < num_params + num_extra; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static GVariant * 1910s # _org_project_signaling_iface_skeleton_handle_get_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # GVariant *ret; 1910s # ret = NULL; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # g_value_init (&value, pspec->value_type); 1910s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1910s # g_value_unset (&value); 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _org_project_signaling_iface_skeleton_handle_set_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GVariant *variant, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # gboolean ret; 1910s # ret = FALSE; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # if (info->use_gvariant) 1910s # g_value_set_variant (&value, variant); 1910s # else 1910s # g_dbus_gvariant_to_gvalue (variant, &value); 1910s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # g_value_unset (&value); 1910s # ret = TRUE; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1910s # { 1910s # _org_project_signaling_iface_skeleton_handle_method_call, 1910s # _org_project_signaling_iface_skeleton_handle_get_property, 1910s # _org_project_signaling_iface_skeleton_handle_set_property, 1910s # {NULL} 1910s # }; 1910s # 1910s # static GDBusInterfaceInfo * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return org_project_signaling_iface_interface_info (); 1910s # } 1910s # 1910s # static GDBusInterfaceVTable * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1910s # } 1910s # 1910s # static GVariant * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1910s # 1910s # GVariantBuilder builder; 1910s # guint n; 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1910s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #else 1910s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #endif 1910s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1910s # goto out; 1910s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1910s # { 1910s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1910s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1910s # { 1910s # GVariant *value; 1910s # value = _org_project_signaling_iface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", info->name, NULL, skeleton); 1910s # if (value != NULL) 1910s # { 1910s # g_variant_take_ref (value); 1910s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1910s # g_variant_unref (value); 1910s # } 1910s # } 1910s # } 1910s # out: 1910s # return g_variant_builder_end (&builder); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_single_arg_signal_h ( 1910s # OrgProjectSignalingIface *object, 1910s # GVariant *arg_arg_h) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("(@h)", 1910s # arg_arg_h)); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalH", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1910s # if (skeleton->priv->changed_properties_idle_source != NULL) 1910s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1910s # g_main_context_unref (skeleton->priv->context); 1910s # g_mutex_clear (&skeleton->priv->lock); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1910s # #else 1910s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1910s # #endif 1910s # 1910s # g_mutex_init (&skeleton->priv->lock); 1910s # skeleton->priv->context = g_main_context_ref_thread_default (); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusInterfaceSkeletonClass *skeleton_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1910s # 1910s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1910s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1910s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1910s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1910s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1910s # iface->single_arg_signal_h = _org_project_signaling_iface_on_signal_single_arg_signal_h; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_skeleton_new: 1910s # * 1910s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_skeleton_new (void) 1910s # { 1910s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1910s # } 1910s # Error: 1910s # 1910s # /tmp/tmp2qpmu6va/tmpoqs0xlm1.xml: 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2qpmu6va/tmpoqs0xlm1.xml', '--output', '-', '--body'] 1910s # Return code: 0 1910s # Output: 1910s # /* 1910s # * This file is generated by gdbus-codegen, do not modify it. 1910s # * 1910s # * The license of this code is the same as for the D-Bus interface description 1910s # * it was derived from. Note that it links to GLib, so must comply with the 1910s # * LGPL linking clauses. 1910s # */ 1910s # 1910s # #ifdef HAVE_CONFIG_H 1910s # # include "config.h" 1910s # #endif 1910s # 1910s # #include 1910s # #ifdef G_OS_UNIX 1910s # # include 1910s # #endif 1910s # 1910s # #ifdef G_ENABLE_DEBUG 1910s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1910s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1910s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1910s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1910s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1910s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1910s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1910s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1910s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1910s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1910s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1910s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1910s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1910s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1910s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1910s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1910s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1910s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1910s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1910s # #else /* !G_ENABLE_DEBUG */ 1910s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1910s # * Do not access GValues directly in your code. Instead, use the 1910s # * g_value_get_*() functions 1910s # */ 1910s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1910s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1910s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1910s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1910s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1910s # #endif /* !G_ENABLE_DEBUG */ 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusArgInfo parent_struct; 1910s # gboolean use_gvariant; 1910s # } _ExtendedGDBusArgInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusMethodInfo parent_struct; 1910s # const gchar *signal_name; 1910s # gboolean pass_fdlist; 1910s # } _ExtendedGDBusMethodInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusSignalInfo parent_struct; 1910s # const gchar *signal_name; 1910s # } _ExtendedGDBusSignalInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusPropertyInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # guint use_gvariant : 1; 1910s # guint emits_changed_signal : 1; 1910s # } _ExtendedGDBusPropertyInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusInterfaceInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # } _ExtendedGDBusInterfaceInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # const _ExtendedGDBusPropertyInfo *info; 1910s # guint prop_id; 1910s # GValue orig_value; /* the value before the change */ 1910s # } ChangedProperty; 1910s # 1910s # static void 1910s # _changed_property_free (ChangedProperty *data) 1910s # { 1910s # g_value_unset (&data->orig_value); 1910s # g_free (data); 1910s # } 1910s # 1910s # static gboolean 1910s # _g_strv_equal0 (gchar **a, gchar **b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # guint n; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # if (g_strv_length (a) != g_strv_length (b)) 1910s # goto out; 1910s # for (n = 0; a[n] != NULL; n++) 1910s # if (g_strcmp0 (a[n], b[n]) != 0) 1910s # goto out; 1910s # ret = TRUE; 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _g_variant_equal0 (GVariant *a, GVariant *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # ret = g_variant_equal (a, b); 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # G_GNUC_UNUSED static gboolean 1910s # _g_value_equal (const GValue *a, const GValue *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1910s # switch (G_VALUE_TYPE (a)) 1910s # { 1910s # case G_TYPE_BOOLEAN: 1910s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1910s # break; 1910s # case G_TYPE_UCHAR: 1910s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1910s # break; 1910s # case G_TYPE_INT: 1910s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1910s # break; 1910s # case G_TYPE_UINT: 1910s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1910s # break; 1910s # case G_TYPE_INT64: 1910s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1910s # break; 1910s # case G_TYPE_UINT64: 1910s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1910s # break; 1910s # case G_TYPE_DOUBLE: 1910s # { 1910s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1910s # gdouble da = g_value_get_double (a); 1910s # gdouble db = g_value_get_double (b); 1910s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1910s # } 1910s # break; 1910s # case G_TYPE_STRING: 1910s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1910s # break; 1910s # case G_TYPE_VARIANT: 1910s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1910s # break; 1910s # default: 1910s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1910s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1910s # else 1910s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1910s # break; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ 1910s # * Code for interface org.project.SignalingIface 1910s # * ------------------------------------------------------------------------ 1910s # */ 1910s # 1910s # /** 1910s # * SECTION:OrgProjectSignalingIface 1910s # * @title: OrgProjectSignalingIface 1910s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1910s # * 1910s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1910s # */ 1910s # 1910s # enum 1910s # { 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1910s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY, 1910s # }; 1910s # 1910s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1910s # 1910s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SimpleSignal", 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "simple-signal" 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_arg_ay = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "arg_ay", 1910s # (gchar *) "ay", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_arg_ay.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SingleArgSignalAy", 1910s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers, 1910s # NULL 1910s # }, 1910s # "single-arg-signal-ay" 1910s # }; 1910s # 1910s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "org.project.SignalingIface", 1910s # NULL, 1910s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "org-project-signaling-iface", 1910s # }; 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_interface_info: 1910s # * 1910s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1910s # * 1910s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1910s # */ 1910s # GDBusInterfaceInfo * 1910s # org_project_signaling_iface_interface_info (void) 1910s # { 1910s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_override_properties: 1910s # * @klass: The class structure for a #GObject derived class. 1910s # * @property_id_begin: The property id to assign to the first overridden property. 1910s # * 1910s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1910s # * The properties are overridden in the order they are defined. 1910s # * 1910s # * Returns: The last property id. 1910s # */ 1910s # guint 1910s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1910s # { 1910s # return property_id_begin - 1; 1910s # } 1910s # 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_simple_signal ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__VOID (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__STRING (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface: 1910s # * 1910s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceIface: 1910s # * @parent_iface: The parent interface. 1910s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1910s # * @single_arg_signal_ay: Handler for the #OrgProjectSignalingIface::single-arg-signal-ay signal. 1910s # * 1910s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1910s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1910s # 1910s # static void 1910s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # /* GObject signals for received D-Bus signals: */ 1910s # /** 1910s # * OrgProjectSignalingIface::simple-signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1910s # g_signal_new ("simple-signal", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_simple_signal, 1910s # G_TYPE_NONE, 1910s # 0); 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface::single-arg-signal-ay: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_ay: Argument. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAy" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY] = 1910s # g_signal_new ("single-arg-signal-ay", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ay), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay, 1910s # G_TYPE_NONE, 1910s # 1, G_TYPE_STRING); 1910s # 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_simple_signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * Emits the "SimpleSignal" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_single_arg_signal_ay: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_ay: Argument to pass with the signal. 1910s # * 1910s # * Emits the "SingleArgSignalAy" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_single_arg_signal_ay ( 1910s # OrgProjectSignalingIface *object, 1910s # const gchar *arg_arg_ay) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY], 0, arg_arg_ay); 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxy: 1910s # * 1910s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxyClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceProxy. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceProxyPrivate 1910s # { 1910s # GData *qdata; 1910s # }; 1910s # 1910s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_proxy_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1910s # g_datalist_clear (&proxy->priv->qdata); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # const GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1910s # const gchar *sender_name G_GNUC_UNUSED, 1910s # const gchar *signal_name, 1910s # GVariant *parameters) 1910s # { 1910s # _ExtendedGDBusSignalInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # gsize n; 1910s # guint signal_id; 1910s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1910s # if (info == NULL) 1910s # return; 1910s # num_params = g_variant_n_children (parameters); 1910s # paramv = g_new0 (GValue, num_params + 1); 1910s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[0], proxy); 1910s # g_variant_iter_init (&iter, parameters); 1910s # n = 1; 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_signal_emitv (paramv, signal_id, 0, NULL); 1910s # for (n = 0; n < num_params + 1; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1910s # GVariant *changed_properties, 1910s # const gchar *const *invalidated_properties) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1910s # guint n; 1910s # const gchar *key; 1910s # GVariantIter *iter; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # g_variant_get (changed_properties, "a{sv}", &iter); 1910s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1910s # g_datalist_remove_data (&proxy->priv->qdata, key); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # g_variant_iter_free (iter); 1910s # for (n = 0; invalidated_properties[n] != NULL; n++) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1910s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1910s # #else 1910s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1910s # #endif 1910s # 1910s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusProxyClass *proxy_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1910s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1910s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1910s # 1910s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1910s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1910s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_sync: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_sync ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new_for_bus ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeleton: 1910s # * 1910s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeletonClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1910s # { 1910s # GValue *properties; 1910s # GList *changed_properties; 1910s # GSource *changed_properties_idle_source; 1910s # GMainContext *context; 1910s # GMutex lock; 1910s # }; 1910s # 1910s # static void 1910s # _org_project_signaling_iface_skeleton_handle_method_call ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name, 1910s # const gchar *method_name, 1910s # GVariant *parameters, 1910s # GDBusMethodInvocation *invocation, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # _ExtendedGDBusMethodInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # guint num_extra; 1910s # gsize n; 1910s # guint signal_id; 1910s # GValue return_value = G_VALUE_INIT; 1910s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1910s # g_assert (info != NULL); 1910s # num_params = g_variant_n_children (parameters); 1910s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1910s # n = 0; 1910s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[n++], skeleton); 1910s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1910s # g_value_set_object (¶mv[n++], invocation); 1910s # if (info->pass_fdlist) 1910s # { 1910s # #ifdef G_OS_UNIX 1910s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1910s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1910s # #else 1910s # g_assert_not_reached (); 1910s # #endif 1910s # } 1910s # g_variant_iter_init (&iter, parameters); 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1910s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1910s # if (!g_value_get_boolean (&return_value)) 1910s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1910s # g_value_unset (&return_value); 1910s # for (n = 0; n < num_params + num_extra; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static GVariant * 1910s # _org_project_signaling_iface_skeleton_handle_get_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # GVariant *ret; 1910s # ret = NULL; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # g_value_init (&value, pspec->value_type); 1910s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1910s # g_value_unset (&value); 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _org_project_signaling_iface_skeleton_handle_set_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GVariant *variant, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # gboolean ret; 1910s # ret = FALSE; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # if (info->use_gvariant) 1910s # g_value_set_variant (&value, variant); 1910s # else 1910s # g_dbus_gvariant_to_gvalue (variant, &value); 1910s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # g_value_unset (&value); 1910s # ret = TRUE; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1910s # { 1910s # _org_project_signaling_iface_skeleton_handle_method_call, 1910s # _org_project_signaling_iface_skeleton_handle_get_property, 1910s # _org_project_signaling_iface_skeleton_handle_set_property, 1910s # {NULL} 1910s # }; 1910s # 1910s # static GDBusInterfaceInfo * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return org_project_signaling_iface_interface_info (); 1910s # } 1910s # 1910s # static GDBusInterfaceVTable * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1910s # } 1910s # 1910s # static GVariant * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1910s # 1910s # GVariantBuilder builder; 1910s # guint n; 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1910s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #else 1910s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #endif 1910s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1910s # goto out; 1910s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1910s # { 1910s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1910s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1910s # { 1910s # GVariant *value; 1910s # value = _org_project_signaling_iface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", info->name, NULL, skeleton); 1910s # if (value != NULL) 1910s # { 1910s # g_variant_take_ref (value); 1910s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1910s # g_variant_unref (value); 1910s # } 1910s # } 1910s # } 1910s # out: 1910s # return g_variant_builder_end (&builder); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_single_arg_signal_ay ( 1910s # OrgProjectSignalingIface *object, 1910s # const gchar *arg_arg_ay) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ay)", 1910s # arg_arg_ay)); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAy", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1910s # if (skeleton->priv->changed_properties_idle_source != NULL) 1910s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1910s # g_main_context_unref (skeleton->priv->context); 1910s # g_mutex_clear (&skeleton->priv->lock); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1910s # #else 1910s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1910s # #endif 1910s # 1910s # g_mutex_init (&skeleton->priv->lock); 1910s # skeleton->priv->context = g_main_context_ref_thread_default (); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusInterfaceSkeletonClass *skeleton_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1910s # 1910s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1910s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1910s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1910s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1910s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1910s # iface->single_arg_signal_ay = _org_project_signaling_iface_on_signal_single_arg_signal_ay; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_skeleton_new: 1910s # * 1910s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_skeleton_new (void) 1910s # { 1910s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1910s # } 1910s # Error: 1910s # 1910s # /tmp/tmp2qpmu6va/tmpdrcxd_lp.xml: 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2qpmu6va/tmpdrcxd_lp.xml', '--output', '-', '--body'] 1910s # Return code: 0 1910s # Output: 1910s # /* 1910s # * This file is generated by gdbus-codegen, do not modify it. 1910s # * 1910s # * The license of this code is the same as for the D-Bus interface description 1910s # * it was derived from. Note that it links to GLib, so must comply with the 1910s # * LGPL linking clauses. 1910s # */ 1910s # 1910s # #ifdef HAVE_CONFIG_H 1910s # # include "config.h" 1910s # #endif 1910s # 1910s # #include 1910s # #ifdef G_OS_UNIX 1910s # # include 1910s # #endif 1910s # 1910s # #ifdef G_ENABLE_DEBUG 1910s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1910s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1910s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1910s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1910s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1910s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1910s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1910s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1910s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1910s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1910s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1910s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1910s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1910s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1910s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1910s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1910s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1910s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1910s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1910s # #else /* !G_ENABLE_DEBUG */ 1910s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1910s # * Do not access GValues directly in your code. Instead, use the 1910s # * g_value_get_*() functions 1910s # */ 1910s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1910s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1910s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1910s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1910s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1910s # #endif /* !G_ENABLE_DEBUG */ 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusArgInfo parent_struct; 1910s # gboolean use_gvariant; 1910s # } _ExtendedGDBusArgInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusMethodInfo parent_struct; 1910s # const gchar *signal_name; 1910s # gboolean pass_fdlist; 1910s # } _ExtendedGDBusMethodInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusSignalInfo parent_struct; 1910s # const gchar *signal_name; 1910s # } _ExtendedGDBusSignalInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusPropertyInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # guint use_gvariant : 1; 1910s # guint emits_changed_signal : 1; 1910s # } _ExtendedGDBusPropertyInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusInterfaceInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # } _ExtendedGDBusInterfaceInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # const _ExtendedGDBusPropertyInfo *info; 1910s # guint prop_id; 1910s # GValue orig_value; /* the value before the change */ 1910s # } ChangedProperty; 1910s # 1910s # static void 1910s # _changed_property_free (ChangedProperty *data) 1910s # { 1910s # g_value_unset (&data->orig_value); 1910s # g_free (data); 1910s # } 1910s # 1910s # static gboolean 1910s # _g_strv_equal0 (gchar **a, gchar **b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # guint n; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # if (g_strv_length (a) != g_strv_length (b)) 1910s # goto out; 1910s # for (n = 0; a[n] != NULL; n++) 1910s # if (g_strcmp0 (a[n], b[n]) != 0) 1910s # goto out; 1910s # ret = TRUE; 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _g_variant_equal0 (GVariant *a, GVariant *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # ret = g_variant_equal (a, b); 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # G_GNUC_UNUSED static gboolean 1910s # _g_value_equal (const GValue *a, const GValue *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1910s # switch (G_VALUE_TYPE (a)) 1910s # { 1910s # case G_TYPE_BOOLEAN: 1910s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1910s # break; 1910s # case G_TYPE_UCHAR: 1910s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1910s # break; 1910s # case G_TYPE_INT: 1910s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1910s # break; 1910s # case G_TYPE_UINT: 1910s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1910s # break; 1910s # case G_TYPE_INT64: 1910s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1910s # break; 1910s # case G_TYPE_UINT64: 1910s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1910s # break; 1910s # case G_TYPE_DOUBLE: 1910s # { 1910s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1910s # gdouble da = g_value_get_double (a); 1910s # gdouble db = g_value_get_double (b); 1910s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1910s # } 1910s # break; 1910s # case G_TYPE_STRING: 1910s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1910s # break; 1910s # case G_TYPE_VARIANT: 1910s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1910s # break; 1910s # default: 1910s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1910s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1910s # else 1910s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1910s # break; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ 1910s # * Code for interface org.project.SignalingIface 1910s # * ------------------------------------------------------------------------ 1910s # */ 1910s # 1910s # /** 1910s # * SECTION:OrgProjectSignalingIface 1910s # * @title: OrgProjectSignalingIface 1910s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1910s # * 1910s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1910s # */ 1910s # 1910s # enum 1910s # { 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1910s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS, 1910s # }; 1910s # 1910s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1910s # 1910s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SimpleSignal", 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "simple-signal" 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_arg_as = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "arg_as", 1910s # (gchar *) "as", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_arg_as.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_as = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SingleArgSignalAs", 1910s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers, 1910s # NULL 1910s # }, 1910s # "single-arg-signal-as" 1910s # }; 1910s # 1910s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_as.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "org.project.SignalingIface", 1910s # NULL, 1910s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "org-project-signaling-iface", 1910s # }; 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_interface_info: 1910s # * 1910s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1910s # * 1910s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1910s # */ 1910s # GDBusInterfaceInfo * 1910s # org_project_signaling_iface_interface_info (void) 1910s # { 1910s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_override_properties: 1910s # * @klass: The class structure for a #GObject derived class. 1910s # * @property_id_begin: The property id to assign to the first overridden property. 1910s # * 1910s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1910s # * The properties are overridden in the order they are defined. 1910s # * 1910s # * Returns: The last property id. 1910s # */ 1910s # guint 1910s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1910s # { 1910s # return property_id_begin - 1; 1910s # } 1910s # 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_simple_signal ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__VOID (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_as ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__BOXED (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface: 1910s # * 1910s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceIface: 1910s # * @parent_iface: The parent interface. 1910s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1910s # * @single_arg_signal_as: Handler for the #OrgProjectSignalingIface::single-arg-signal-as signal. 1910s # * 1910s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1910s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1910s # 1910s # static void 1910s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # /* GObject signals for received D-Bus signals: */ 1910s # /** 1910s # * OrgProjectSignalingIface::simple-signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1910s # g_signal_new ("simple-signal", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_simple_signal, 1910s # G_TYPE_NONE, 1910s # 0); 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface::single-arg-signal-as: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_as: Argument. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAs" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS] = 1910s # g_signal_new ("single-arg-signal-as", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_as), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_as, 1910s # G_TYPE_NONE, 1910s # 1, G_TYPE_STRV); 1910s # 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_simple_signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * Emits the "SimpleSignal" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_single_arg_signal_as: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_as: Argument to pass with the signal. 1910s # * 1910s # * Emits the "SingleArgSignalAs" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_single_arg_signal_as ( 1910s # OrgProjectSignalingIface *object, 1910s # const gchar *const *arg_arg_as) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS], 0, arg_arg_as); 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxy: 1910s # * 1910s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxyClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceProxy. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceProxyPrivate 1910s # { 1910s # GData *qdata; 1910s # }; 1910s # 1910s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_proxy_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1910s # g_datalist_clear (&proxy->priv->qdata); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # const GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1910s # const gchar *sender_name G_GNUC_UNUSED, 1910s # const gchar *signal_name, 1910s # GVariant *parameters) 1910s # { 1910s # _ExtendedGDBusSignalInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # gsize n; 1910s # guint signal_id; 1910s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1910s # if (info == NULL) 1910s # return; 1910s # num_params = g_variant_n_children (parameters); 1910s # paramv = g_new0 (GValue, num_params + 1); 1910s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[0], proxy); 1910s # g_variant_iter_init (&iter, parameters); 1910s # n = 1; 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_signal_emitv (paramv, signal_id, 0, NULL); 1910s # for (n = 0; n < num_params + 1; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1910s # GVariant *changed_properties, 1910s # const gchar *const *invalidated_properties) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1910s # guint n; 1910s # const gchar *key; 1910s # GVariantIter *iter; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # g_variant_get (changed_properties, "a{sv}", &iter); 1910s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1910s # g_datalist_remove_data (&proxy->priv->qdata, key); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # g_variant_iter_free (iter); 1910s # for (n = 0; invalidated_properties[n] != NULL; n++) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1910s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1910s # #else 1910s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1910s # #endif 1910s # 1910s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusProxyClass *proxy_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1910s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1910s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1910s # 1910s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1910s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1910s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_sync: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_sync ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new_for_bus ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeleton: 1910s # * 1910s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeletonClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1910s # { 1910s # GValue *properties; 1910s # GList *changed_properties; 1910s # GSource *changed_properties_idle_source; 1910s # GMainContext *context; 1910s # GMutex lock; 1910s # }; 1910s # 1910s # static void 1910s # _org_project_signaling_iface_skeleton_handle_method_call ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name, 1910s # const gchar *method_name, 1910s # GVariant *parameters, 1910s # GDBusMethodInvocation *invocation, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # _ExtendedGDBusMethodInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # guint num_extra; 1910s # gsize n; 1910s # guint signal_id; 1910s # GValue return_value = G_VALUE_INIT; 1910s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1910s # g_assert (info != NULL); 1910s # num_params = g_variant_n_children (parameters); 1910s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1910s # n = 0; 1910s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[n++], skeleton); 1910s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1910s # g_value_set_object (¶mv[n++], invocation); 1910s # if (info->pass_fdlist) 1910s # { 1910s # #ifdef G_OS_UNIX 1910s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1910s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1910s # #else 1910s # g_assert_not_reached (); 1910s # #endif 1910s # } 1910s # g_variant_iter_init (&iter, parameters); 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1910s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1910s # if (!g_value_get_boolean (&return_value)) 1910s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1910s # g_value_unset (&return_value); 1910s # for (n = 0; n < num_params + num_extra; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static GVariant * 1910s # _org_project_signaling_iface_skeleton_handle_get_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # GVariant *ret; 1910s # ret = NULL; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # g_value_init (&value, pspec->value_type); 1910s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1910s # g_value_unset (&value); 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _org_project_signaling_iface_skeleton_handle_set_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GVariant *variant, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # gboolean ret; 1910s # ret = FALSE; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # if (info->use_gvariant) 1910s # g_value_set_variant (&value, variant); 1910s # else 1910s # g_dbus_gvariant_to_gvalue (variant, &value); 1910s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # g_value_unset (&value); 1910s # ret = TRUE; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1910s # { 1910s # _org_project_signaling_iface_skeleton_handle_method_call, 1910s # _org_project_signaling_iface_skeleton_handle_get_property, 1910s # _org_project_signaling_iface_skeleton_handle_set_property, 1910s # {NULL} 1910s # }; 1910s # 1910s # static GDBusInterfaceInfo * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return org_project_signaling_iface_interface_info (); 1910s # } 1910s # 1910s # static GDBusInterfaceVTable * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1910s # } 1910s # 1910s # static GVariant * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1910s # 1910s # GVariantBuilder builder; 1910s # guint n; 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1910s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #else 1910s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #endif 1910s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1910s # goto out; 1910s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1910s # { 1910s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1910s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1910s # { 1910s # GVariant *value; 1910s # value = _org_project_signaling_iface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", info->name, NULL, skeleton); 1910s # if (value != NULL) 1910s # { 1910s # g_variant_take_ref (value); 1910s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1910s # g_variant_unref (value); 1910s # } 1910s # } 1910s # } 1910s # out: 1910s # return g_variant_builder_end (&builder); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_single_arg_signal_as ( 1910s # OrgProjectSignalingIface *object, 1910s # const gchar *const *arg_arg_as) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("(^as)", 1910s # arg_arg_as)); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAs", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1910s # if (skeleton->priv->changed_properties_idle_source != NULL) 1910s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1910s # g_main_context_unref (skeleton->priv->context); 1910s # g_mutex_clear (&skeleton->priv->lock); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1910s # #else 1910s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1910s # #endif 1910s # 1910s # g_mutex_init (&skeleton->priv->lock); 1910s # skeleton->priv->context = g_main_context_ref_thread_default (); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusInterfaceSkeletonClass *skeleton_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1910s # 1910s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1910s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1910s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1910s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1910s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1910s # iface->single_arg_signal_as = _org_project_signaling_iface_on_signal_single_arg_signal_as; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_skeleton_new: 1910s # * 1910s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_skeleton_new (void) 1910s # { 1910s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1910s # } 1910s # Error: 1910s # 1910s # /tmp/tmp2qpmu6va/tmpo927ltz9.xml: 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2qpmu6va/tmpo927ltz9.xml', '--output', '-', '--body'] 1910s # Return code: 0 1910s # Output: 1910s # /* 1910s # * This file is generated by gdbus-codegen, do not modify it. 1910s # * 1910s # * The license of this code is the same as for the D-Bus interface description 1910s # * it was derived from. Note that it links to GLib, so must comply with the 1910s # * LGPL linking clauses. 1910s # */ 1910s # 1910s # #ifdef HAVE_CONFIG_H 1910s # # include "config.h" 1910s # #endif 1910s # 1910s # #include 1910s # #ifdef G_OS_UNIX 1910s # # include 1910s # #endif 1910s # 1910s # #ifdef G_ENABLE_DEBUG 1910s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1910s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1910s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1910s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1910s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1910s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1910s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1910s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1910s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1910s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1910s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1910s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1910s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1910s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1910s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1910s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1910s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1910s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1910s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1910s # #else /* !G_ENABLE_DEBUG */ 1910s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1910s # * Do not access GValues directly in your code. Instead, use the 1910s # * g_value_get_*() functions 1910s # */ 1910s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1910s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1910s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1910s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1910s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1910s # #endif /* !G_ENABLE_DEBUG */ 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusArgInfo parent_struct; 1910s # gboolean use_gvariant; 1910s # } _ExtendedGDBusArgInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusMethodInfo parent_struct; 1910s # const gchar *signal_name; 1910s # gboolean pass_fdlist; 1910s # } _ExtendedGDBusMethodInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusSignalInfo parent_struct; 1910s # const gchar *signal_name; 1910s # } _ExtendedGDBusSignalInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusPropertyInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # guint use_gvariant : 1; 1910s # guint emits_changed_signal : 1; 1910s # } _ExtendedGDBusPropertyInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusInterfaceInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # } _ExtendedGDBusInterfaceInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # const _ExtendedGDBusPropertyInfo *info; 1910s # guint prop_id; 1910s # GValue orig_value; /* the value before the change */ 1910s # } ChangedProperty; 1910s # 1910s # static void 1910s # _changed_property_free (ChangedProperty *data) 1910s # { 1910s # g_value_unset (&data->orig_value); 1910s # g_free (data); 1910s # } 1910s # 1910s # static gboolean 1910s # _g_strv_equal0 (gchar **a, gchar **b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # guint n; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # if (g_strv_length (a) != g_strv_length (b)) 1910s # goto out; 1910s # for (n = 0; a[n] != NULL; n++) 1910s # if (g_strcmp0 (a[n], b[n]) != 0) 1910s # goto out; 1910s # ret = TRUE; 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _g_variant_equal0 (GVariant *a, GVariant *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # ret = g_variant_equal (a, b); 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # G_GNUC_UNUSED static gboolean 1910s # _g_value_equal (const GValue *a, const GValue *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1910s # switch (G_VALUE_TYPE (a)) 1910s # { 1910s # case G_TYPE_BOOLEAN: 1910s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1910s # break; 1910s # case G_TYPE_UCHAR: 1910s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1910s # break; 1910s # case G_TYPE_INT: 1910s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1910s # break; 1910s # case G_TYPE_UINT: 1910s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1910s # break; 1910s # case G_TYPE_INT64: 1910s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1910s # break; 1910s # case G_TYPE_UINT64: 1910s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1910s # break; 1910s # case G_TYPE_DOUBLE: 1910s # { 1910s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1910s # gdouble da = g_value_get_double (a); 1910s # gdouble db = g_value_get_double (b); 1910s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1910s # } 1910s # break; 1910s # case G_TYPE_STRING: 1910s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1910s # break; 1910s # case G_TYPE_VARIANT: 1910s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1910s # break; 1910s # default: 1910s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1910s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1910s # else 1910s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1910s # break; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ 1910s # * Code for interface org.project.SignalingIface 1910s # * ------------------------------------------------------------------------ 1910s # */ 1910s # 1910s # /** 1910s # * SECTION:OrgProjectSignalingIface 1910s # * @title: OrgProjectSignalingIface 1910s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1910s # * 1910s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1910s # */ 1910s # 1910s # enum 1910s # { 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1910s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO, 1910s # }; 1910s # 1910s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1910s # 1910s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SimpleSignal", 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "simple-signal" 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_arg_ao = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "arg_ao", 1910s # (gchar *) "ao", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_arg_ao.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SingleArgSignalAo", 1910s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers, 1910s # NULL 1910s # }, 1910s # "single-arg-signal-ao" 1910s # }; 1910s # 1910s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "org.project.SignalingIface", 1910s # NULL, 1910s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "org-project-signaling-iface", 1910s # }; 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_interface_info: 1910s # * 1910s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1910s # * 1910s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1910s # */ 1910s # GDBusInterfaceInfo * 1910s # org_project_signaling_iface_interface_info (void) 1910s # { 1910s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_override_properties: 1910s # * @klass: The class structure for a #GObject derived class. 1910s # * @property_id_begin: The property id to assign to the first overridden property. 1910s # * 1910s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1910s # * The properties are overridden in the order they are defined. 1910s # * 1910s # * Returns: The last property id. 1910s # */ 1910s # guint 1910s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1910s # { 1910s # return property_id_begin - 1; 1910s # } 1910s # 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_simple_signal ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__VOID (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__BOXED (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface: 1910s # * 1910s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceIface: 1910s # * @parent_iface: The parent interface. 1910s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1910s # * @single_arg_signal_ao: Handler for the #OrgProjectSignalingIface::single-arg-signal-ao signal. 1910s # * 1910s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1910s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1910s # 1910s # static void 1910s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # /* GObject signals for received D-Bus signals: */ 1910s # /** 1910s # * OrgProjectSignalingIface::simple-signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1910s # g_signal_new ("simple-signal", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_simple_signal, 1910s # G_TYPE_NONE, 1910s # 0); 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface::single-arg-signal-ao: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_ao: Argument. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAo" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO] = 1910s # g_signal_new ("single-arg-signal-ao", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ao), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao, 1910s # G_TYPE_NONE, 1910s # 1, G_TYPE_STRV); 1910s # 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_simple_signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * Emits the "SimpleSignal" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_single_arg_signal_ao: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_ao: Argument to pass with the signal. 1910s # * 1910s # * Emits the "SingleArgSignalAo" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_single_arg_signal_ao ( 1910s # OrgProjectSignalingIface *object, 1910s # const gchar *const *arg_arg_ao) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO], 0, arg_arg_ao); 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxy: 1910s # * 1910s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxyClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceProxy. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceProxyPrivate 1910s # { 1910s # GData *qdata; 1910s # }; 1910s # 1910s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_proxy_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1910s # g_datalist_clear (&proxy->priv->qdata); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # const GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1910s # const gchar *sender_name G_GNUC_UNUSED, 1910s # const gchar *signal_name, 1910s # GVariant *parameters) 1910s # { 1910s # _ExtendedGDBusSignalInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # gsize n; 1910s # guint signal_id; 1910s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1910s # if (info == NULL) 1910s # return; 1910s # num_params = g_variant_n_children (parameters); 1910s # paramv = g_new0 (GValue, num_params + 1); 1910s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[0], proxy); 1910s # g_variant_iter_init (&iter, parameters); 1910s # n = 1; 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_signal_emitv (paramv, signal_id, 0, NULL); 1910s # for (n = 0; n < num_params + 1; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1910s # GVariant *changed_properties, 1910s # const gchar *const *invalidated_properties) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1910s # guint n; 1910s # const gchar *key; 1910s # GVariantIter *iter; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # g_variant_get (changed_properties, "a{sv}", &iter); 1910s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1910s # g_datalist_remove_data (&proxy->priv->qdata, key); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # g_variant_iter_free (iter); 1910s # for (n = 0; invalidated_properties[n] != NULL; n++) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1910s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1910s # #else 1910s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1910s # #endif 1910s # 1910s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusProxyClass *proxy_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1910s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1910s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1910s # 1910s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1910s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1910s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_sync: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_sync ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new_for_bus ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeleton: 1910s # * 1910s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeletonClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1910s # { 1910s # GValue *properties; 1910s # GList *changed_properties; 1910s # GSource *changed_properties_idle_source; 1910s # GMainContext *context; 1910s # GMutex lock; 1910s # }; 1910s # 1910s # static void 1910s # _org_project_signaling_iface_skeleton_handle_method_call ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name, 1910s # const gchar *method_name, 1910s # GVariant *parameters, 1910s # GDBusMethodInvocation *invocation, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # _ExtendedGDBusMethodInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # guint num_extra; 1910s # gsize n; 1910s # guint signal_id; 1910s # GValue return_value = G_VALUE_INIT; 1910s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1910s # g_assert (info != NULL); 1910s # num_params = g_variant_n_children (parameters); 1910s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1910s # n = 0; 1910s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[n++], skeleton); 1910s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1910s # g_value_set_object (¶mv[n++], invocation); 1910s # if (info->pass_fdlist) 1910s # { 1910s # #ifdef G_OS_UNIX 1910s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1910s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1910s # #else 1910s # g_assert_not_reached (); 1910s # #endif 1910s # } 1910s # g_variant_iter_init (&iter, parameters); 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1910s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1910s # if (!g_value_get_boolean (&return_value)) 1910s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1910s # g_value_unset (&return_value); 1910s # for (n = 0; n < num_params + num_extra; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static GVariant * 1910s # _org_project_signaling_iface_skeleton_handle_get_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # GVariant *ret; 1910s # ret = NULL; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # g_value_init (&value, pspec->value_type); 1910s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1910s # g_value_unset (&value); 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _org_project_signaling_iface_skeleton_handle_set_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GVariant *variant, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # gboolean ret; 1910s # ret = FALSE; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # if (info->use_gvariant) 1910s # g_value_set_variant (&value, variant); 1910s # else 1910s # g_dbus_gvariant_to_gvalue (variant, &value); 1910s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # g_value_unset (&value); 1910s # ret = TRUE; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1910s # { 1910s # _org_project_signaling_iface_skeleton_handle_method_call, 1910s # _org_project_signaling_iface_skeleton_handle_get_property, 1910s # _org_project_signaling_iface_skeleton_handle_set_property, 1910s # {NULL} 1910s # }; 1910s # 1910s # static GDBusInterfaceInfo * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return org_project_signaling_iface_interface_info (); 1910s # } 1910s # 1910s # static GDBusInterfaceVTable * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1910s # } 1910s # 1910s # static GVariant * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1910s # 1910s # GVariantBuilder builder; 1910s # guint n; 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1910s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #else 1910s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #endif 1910s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1910s # goto out; 1910s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1910s # { 1910s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1910s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1910s # { 1910s # GVariant *value; 1910s # value = _org_project_signaling_iface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", info->name, NULL, skeleton); 1910s # if (value != NULL) 1910s # { 1910s # g_variant_take_ref (value); 1910s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1910s # g_variant_unref (value); 1910s # } 1910s # } 1910s # } 1910s # out: 1910s # return g_variant_builder_end (&builder); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_single_arg_signal_ao ( 1910s # OrgProjectSignalingIface *object, 1910s # const gchar *const *arg_arg_ao) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ao)", 1910s # arg_arg_ao)); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAo", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1910s # if (skeleton->priv->changed_properties_idle_source != NULL) 1910s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1910s # g_main_context_unref (skeleton->priv->context); 1910s # g_mutex_clear (&skeleton->priv->lock); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1910s # #else 1910s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1910s # #endif 1910s # 1910s # g_mutex_init (&skeleton->priv->lock); 1910s # skeleton->priv->context = g_main_context_ref_thread_default (); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusInterfaceSkeletonClass *skeleton_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1910s # 1910s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1910s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1910s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1910s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1910s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1910s # iface->single_arg_signal_ao = _org_project_signaling_iface_on_signal_single_arg_signal_ao; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_skeleton_new: 1910s # * 1910s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_skeleton_new (void) 1910s # { 1910s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1910s # } 1910s # Error: 1910s # 1910s # /tmp/tmp2qpmu6va/tmp3p7oakfz.xml: 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2qpmu6va/tmp3p7oakfz.xml', '--output', '-', '--body'] 1910s # Return code: 0 1910s # Output: 1910s # /* 1910s # * This file is generated by gdbus-codegen, do not modify it. 1910s # * 1910s # * The license of this code is the same as for the D-Bus interface description 1910s # * it was derived from. Note that it links to GLib, so must comply with the 1910s # * LGPL linking clauses. 1910s # */ 1910s # 1910s # #ifdef HAVE_CONFIG_H 1910s # # include "config.h" 1910s # #endif 1910s # 1910s # #include 1910s # #ifdef G_OS_UNIX 1910s # # include 1910s # #endif 1910s # 1910s # #ifdef G_ENABLE_DEBUG 1910s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1910s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1910s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1910s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1910s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1910s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1910s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1910s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1910s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1910s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1910s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1910s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1910s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1910s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1910s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1910s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1910s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1910s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1910s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1910s # #else /* !G_ENABLE_DEBUG */ 1910s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1910s # * Do not access GValues directly in your code. Instead, use the 1910s # * g_value_get_*() functions 1910s # */ 1910s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1910s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1910s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1910s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1910s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1910s # #endif /* !G_ENABLE_DEBUG */ 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusArgInfo parent_struct; 1910s # gboolean use_gvariant; 1910s # } _ExtendedGDBusArgInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusMethodInfo parent_struct; 1910s # const gchar *signal_name; 1910s # gboolean pass_fdlist; 1910s # } _ExtendedGDBusMethodInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusSignalInfo parent_struct; 1910s # const gchar *signal_name; 1910s # } _ExtendedGDBusSignalInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusPropertyInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # guint use_gvariant : 1; 1910s # guint emits_changed_signal : 1; 1910s # } _ExtendedGDBusPropertyInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusInterfaceInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # } _ExtendedGDBusInterfaceInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # const _ExtendedGDBusPropertyInfo *info; 1910s # guint prop_id; 1910s # GValue orig_value; /* the value before the change */ 1910s # } ChangedProperty; 1910s # 1910s # static void 1910s # _changed_property_free (ChangedProperty *data) 1910s # { 1910s # g_value_unset (&data->orig_value); 1910s # g_free (data); 1910s # } 1910s # 1910s # static gboolean 1910s # _g_strv_equal0 (gchar **a, gchar **b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # guint n; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # if (g_strv_length (a) != g_strv_length (b)) 1910s # goto out; 1910s # for (n = 0; a[n] != NULL; n++) 1910s # if (g_strcmp0 (a[n], b[n]) != 0) 1910s # goto out; 1910s # ret = TRUE; 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _g_variant_equal0 (GVariant *a, GVariant *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # ret = g_variant_equal (a, b); 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # G_GNUC_UNUSED static gboolean 1910s # _g_value_equal (const GValue *a, const GValue *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1910s # switch (G_VALUE_TYPE (a)) 1910s # { 1910s # case G_TYPE_BOOLEAN: 1910s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1910s # break; 1910s # case G_TYPE_UCHAR: 1910s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1910s # break; 1910s # case G_TYPE_INT: 1910s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1910s # break; 1910s # case G_TYPE_UINT: 1910s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1910s # break; 1910s # case G_TYPE_INT64: 1910s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1910s # break; 1910s # case G_TYPE_UINT64: 1910s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1910s # break; 1910s # case G_TYPE_DOUBLE: 1910s # { 1910s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1910s # gdouble da = g_value_get_double (a); 1910s # gdouble db = g_value_get_double (b); 1910s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1910s # } 1910s # break; 1910s # case G_TYPE_STRING: 1910s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1910s # break; 1910s # case G_TYPE_VARIANT: 1910s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1910s # break; 1910s # default: 1910s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1910s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1910s # else 1910s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1910s # break; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ 1910s # * Code for interface org.project.SignalingIface 1910s # * ------------------------------------------------------------------------ 1910s # */ 1910s # 1910s # /** 1910s # * SECTION:OrgProjectSignalingIface 1910s # * @title: OrgProjectSignalingIface 1910s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1910s # * 1910s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1910s # */ 1910s # 1910s # enum 1910s # { 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1910s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY, 1910s # }; 1910s # 1910s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1910s # 1910s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SimpleSignal", 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "simple-signal" 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_arg_aay = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "arg_aay", 1910s # (gchar *) "aay", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_arg_aay.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SingleArgSignalAay", 1910s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers, 1910s # NULL 1910s # }, 1910s # "single-arg-signal-aay" 1910s # }; 1910s # 1910s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "org.project.SignalingIface", 1910s # NULL, 1910s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "org-project-signaling-iface", 1910s # }; 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_interface_info: 1910s # * 1910s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1910s # * 1910s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1910s # */ 1910s # GDBusInterfaceInfo * 1910s # org_project_signaling_iface_interface_info (void) 1910s # { 1910s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_override_properties: 1910s # * @klass: The class structure for a #GObject derived class. 1910s # * @property_id_begin: The property id to assign to the first overridden property. 1910s # * 1910s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1910s # * The properties are overridden in the order they are defined. 1910s # * 1910s # * Returns: The last property id. 1910s # */ 1910s # guint 1910s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1910s # { 1910s # return property_id_begin - 1; 1910s # } 1910s # 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_simple_signal ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__VOID (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__BOXED (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface: 1910s # * 1910s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceIface: 1910s # * @parent_iface: The parent interface. 1910s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1910s # * @single_arg_signal_aay: Handler for the #OrgProjectSignalingIface::single-arg-signal-aay signal. 1910s # * 1910s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1910s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1910s # 1910s # static void 1910s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # /* GObject signals for received D-Bus signals: */ 1910s # /** 1910s # * OrgProjectSignalingIface::simple-signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1910s # g_signal_new ("simple-signal", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_simple_signal, 1910s # G_TYPE_NONE, 1910s # 0); 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface::single-arg-signal-aay: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_aay: Argument. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAay" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY] = 1910s # g_signal_new ("single-arg-signal-aay", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_aay), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay, 1910s # G_TYPE_NONE, 1910s # 1, G_TYPE_STRV); 1910s # 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_simple_signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * Emits the "SimpleSignal" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_single_arg_signal_aay: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_aay: Argument to pass with the signal. 1910s # * 1910s # * Emits the "SingleArgSignalAay" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_single_arg_signal_aay ( 1910s # OrgProjectSignalingIface *object, 1910s # const gchar *const *arg_arg_aay) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY], 0, arg_arg_aay); 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxy: 1910s # * 1910s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxyClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceProxy. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceProxyPrivate 1910s # { 1910s # GData *qdata; 1910s # }; 1910s # 1910s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_proxy_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1910s # g_datalist_clear (&proxy->priv->qdata); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # const GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1910s # const gchar *sender_name G_GNUC_UNUSED, 1910s # const gchar *signal_name, 1910s # GVariant *parameters) 1910s # { 1910s # _ExtendedGDBusSignalInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # gsize n; 1910s # guint signal_id; 1910s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1910s # if (info == NULL) 1910s # return; 1910s # num_params = g_variant_n_children (parameters); 1910s # paramv = g_new0 (GValue, num_params + 1); 1910s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[0], proxy); 1910s # g_variant_iter_init (&iter, parameters); 1910s # n = 1; 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_signal_emitv (paramv, signal_id, 0, NULL); 1910s # for (n = 0; n < num_params + 1; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1910s # GVariant *changed_properties, 1910s # const gchar *const *invalidated_properties) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1910s # guint n; 1910s # const gchar *key; 1910s # GVariantIter *iter; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # g_variant_get (changed_properties, "a{sv}", &iter); 1910s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1910s # g_datalist_remove_data (&proxy->priv->qdata, key); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # g_variant_iter_free (iter); 1910s # for (n = 0; invalidated_properties[n] != NULL; n++) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1910s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1910s # #else 1910s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1910s # #endif 1910s # 1910s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusProxyClass *proxy_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1910s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1910s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1910s # 1910s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1910s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1910s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_sync: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_sync ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new_for_bus ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeleton: 1910s # * 1910s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeletonClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1910s # { 1910s # GValue *properties; 1910s # GList *changed_properties; 1910s # GSource *changed_properties_idle_source; 1910s # GMainContext *context; 1910s # GMutex lock; 1910s # }; 1910s # 1910s # static void 1910s # _org_project_signaling_iface_skeleton_handle_method_call ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name, 1910s # const gchar *method_name, 1910s # GVariant *parameters, 1910s # GDBusMethodInvocation *invocation, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # _ExtendedGDBusMethodInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # guint num_extra; 1910s # gsize n; 1910s # guint signal_id; 1910s # GValue return_value = G_VALUE_INIT; 1910s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1910s # g_assert (info != NULL); 1910s # num_params = g_variant_n_children (parameters); 1910s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1910s # n = 0; 1910s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[n++], skeleton); 1910s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1910s # g_value_set_object (¶mv[n++], invocation); 1910s # if (info->pass_fdlist) 1910s # { 1910s # #ifdef G_OS_UNIX 1910s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1910s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1910s # #else 1910s # g_assert_not_reached (); 1910s # #endif 1910s # } 1910s # g_variant_iter_init (&iter, parameters); 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1910s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1910s # if (!g_value_get_boolean (&return_value)) 1910s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1910s # g_value_unset (&return_value); 1910s # for (n = 0; n < num_params + num_extra; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static GVariant * 1910s # _org_project_signaling_iface_skeleton_handle_get_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # GVariant *ret; 1910s # ret = NULL; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # g_value_init (&value, pspec->value_type); 1910s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1910s # g_value_unset (&value); 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _org_project_signaling_iface_skeleton_handle_set_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GVariant *variant, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # gboolean ret; 1910s # ret = FALSE; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # if (info->use_gvariant) 1910s # g_value_set_variant (&value, variant); 1910s # else 1910s # g_dbus_gvariant_to_gvalue (variant, &value); 1910s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # g_value_unset (&value); 1910s # ret = TRUE; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1910s # { 1910s # _org_project_signaling_iface_skeleton_handle_method_call, 1910s # _org_project_signaling_iface_skeleton_handle_get_property, 1910s # _org_project_signaling_iface_skeleton_handle_set_property, 1910s # {NULL} 1910s # }; 1910s # 1910s # static GDBusInterfaceInfo * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return org_project_signaling_iface_interface_info (); 1910s # } 1910s # 1910s # static GDBusInterfaceVTable * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1910s # } 1910s # 1910s # static GVariant * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1910s # 1910s # GVariantBuilder builder; 1910s # guint n; 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1910s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #else 1910s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #endif 1910s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1910s # goto out; 1910s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1910s # { 1910s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1910s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1910s # { 1910s # GVariant *value; 1910s # value = _org_project_signaling_iface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", info->name, NULL, skeleton); 1910s # if (value != NULL) 1910s # { 1910s # g_variant_take_ref (value); 1910s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1910s # g_variant_unref (value); 1910s # } 1910s # } 1910s # } 1910s # out: 1910s # return g_variant_builder_end (&builder); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_single_arg_signal_aay ( 1910s # OrgProjectSignalingIface *object, 1910s # const gchar *const *arg_arg_aay) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("(^aay)", 1910s # arg_arg_aay)); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAay", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1910s # if (skeleton->priv->changed_properties_idle_source != NULL) 1910s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1910s # g_main_context_unref (skeleton->priv->context); 1910s # g_mutex_clear (&skeleton->priv->lock); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1910s # #else 1910s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1910s # #endif 1910s # 1910s # g_mutex_init (&skeleton->priv->lock); 1910s # skeleton->priv->context = g_main_context_ref_thread_default (); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusInterfaceSkeletonClass *skeleton_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1910s # 1910s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1910s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1910s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1910s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1910s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1910s # iface->single_arg_signal_aay = _org_project_signaling_iface_on_signal_single_arg_signal_aay; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_skeleton_new: 1910s # * 1910s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_skeleton_new (void) 1910s # { 1910s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1910s # } 1910s # Error: 1910s # 1910s # /tmp/tmp2qpmu6va/tmpad0l4llm.xml: 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2qpmu6va/tmpad0l4llm.xml', '--output', '-', '--body'] 1910s # Return code: 0 1910s # Output: 1910s # /* 1910s # * This file is generated by gdbus-codegen, do not modify it. 1910s # * 1910s # * The license of this code is the same as for the D-Bus interface description 1910s # * it was derived from. Note that it links to GLib, so must comply with the 1910s # * LGPL linking clauses. 1910s # */ 1910s # 1910s # #ifdef HAVE_CONFIG_H 1910s # # include "config.h" 1910s # #endif 1910s # 1910s # #include 1910s # #ifdef G_OS_UNIX 1910s # # include 1910s # #endif 1910s # 1910s # #ifdef G_ENABLE_DEBUG 1910s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1910s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1910s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1910s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1910s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1910s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1910s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1910s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1910s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1910s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1910s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1910s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1910s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1910s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1910s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1910s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1910s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1910s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1910s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1910s # #else /* !G_ENABLE_DEBUG */ 1910s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1910s # * Do not access GValues directly in your code. Instead, use the 1910s # * g_value_get_*() functions 1910s # */ 1910s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1910s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1910s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1910s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1910s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1910s # #endif /* !G_ENABLE_DEBUG */ 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusArgInfo parent_struct; 1910s # gboolean use_gvariant; 1910s # } _ExtendedGDBusArgInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusMethodInfo parent_struct; 1910s # const gchar *signal_name; 1910s # gboolean pass_fdlist; 1910s # } _ExtendedGDBusMethodInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusSignalInfo parent_struct; 1910s # const gchar *signal_name; 1910s # } _ExtendedGDBusSignalInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusPropertyInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # guint use_gvariant : 1; 1910s # guint emits_changed_signal : 1; 1910s # } _ExtendedGDBusPropertyInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusInterfaceInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # } _ExtendedGDBusInterfaceInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # const _ExtendedGDBusPropertyInfo *info; 1910s # guint prop_id; 1910s # GValue orig_value; /* the value before the change */ 1910s # } ChangedProperty; 1910s # 1910s # static void 1910s # _changed_property_free (ChangedProperty *data) 1910s # { 1910s # g_value_unset (&data->orig_value); 1910s # g_free (data); 1910s # } 1910s # 1910s # static gboolean 1910s # _g_strv_equal0 (gchar **a, gchar **b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # guint n; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # if (g_strv_length (a) != g_strv_length (b)) 1910s # goto out; 1910s # for (n = 0; a[n] != NULL; n++) 1910s # if (g_strcmp0 (a[n], b[n]) != 0) 1910s # goto out; 1910s # ret = TRUE; 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _g_variant_equal0 (GVariant *a, GVariant *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # ret = g_variant_equal (a, b); 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # G_GNUC_UNUSED static gboolean 1910s # _g_value_equal (const GValue *a, const GValue *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1910s # switch (G_VALUE_TYPE (a)) 1910s # { 1910s # case G_TYPE_BOOLEAN: 1910s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1910s # break; 1910s # case G_TYPE_UCHAR: 1910s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1910s # break; 1910s # case G_TYPE_INT: 1910s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1910s # break; 1910s # case G_TYPE_UINT: 1910s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1910s # break; 1910s # case G_TYPE_INT64: 1910s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1910s # break; 1910s # case G_TYPE_UINT64: 1910s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1910s # break; 1910s # case G_TYPE_DOUBLE: 1910s # { 1910s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1910s # gdouble da = g_value_get_double (a); 1910s # gdouble db = g_value_get_double (b); 1910s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1910s # } 1910s # break; 1910s # case G_TYPE_STRING: 1910s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1910s # break; 1910s # case G_TYPE_VARIANT: 1910s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1910s # break; 1910s # default: 1910s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1910s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1910s # else 1910s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1910s # break; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ 1910s # * Code for interface org.project.SignalingIface 1910s # * ------------------------------------------------------------------------ 1910s # */ 1910s # 1910s # /** 1910s # * SECTION:OrgProjectSignalingIface 1910s # * @title: OrgProjectSignalingIface 1910s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1910s # * 1910s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1910s # */ 1910s # 1910s # enum 1910s # { 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1910s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV, 1910s # }; 1910s # 1910s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1910s # 1910s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SimpleSignal", 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "simple-signal" 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_arg_asv = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "arg_asv", 1910s # (gchar *) "a{sv}", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_arg_asv.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SingleArgSignalAsv", 1910s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers, 1910s # NULL 1910s # }, 1910s # "single-arg-signal-asv" 1910s # }; 1910s # 1910s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "org.project.SignalingIface", 1910s # NULL, 1910s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "org-project-signaling-iface", 1910s # }; 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_interface_info: 1910s # * 1910s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1910s # * 1910s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1910s # */ 1910s # GDBusInterfaceInfo * 1910s # org_project_signaling_iface_interface_info (void) 1910s # { 1910s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_override_properties: 1910s # * @klass: The class structure for a #GObject derived class. 1910s # * @property_id_begin: The property id to assign to the first overridden property. 1910s # * 1910s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1910s # * The properties are overridden in the order they are defined. 1910s # * 1910s # * Returns: The last property id. 1910s # */ 1910s # guint 1910s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1910s # { 1910s # return property_id_begin - 1; 1910s # } 1910s # 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_simple_signal ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__VOID (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__VARIANT (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface: 1910s # * 1910s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceIface: 1910s # * @parent_iface: The parent interface. 1910s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1910s # * @single_arg_signal_asv: Handler for the #OrgProjectSignalingIface::single-arg-signal-asv signal. 1910s # * 1910s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1910s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1910s # 1910s # static void 1910s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # /* GObject signals for received D-Bus signals: */ 1910s # /** 1910s # * OrgProjectSignalingIface::simple-signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1910s # g_signal_new ("simple-signal", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_simple_signal, 1910s # G_TYPE_NONE, 1910s # 0); 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface::single-arg-signal-asv: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_asv: Argument. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAsv" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV] = 1910s # g_signal_new ("single-arg-signal-asv", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_asv), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv, 1910s # G_TYPE_NONE, 1910s # 1, G_TYPE_VARIANT); 1910s # 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_simple_signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * Emits the "SimpleSignal" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_single_arg_signal_asv: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_arg_asv: Argument to pass with the signal. 1910s # * 1910s # * Emits the "SingleArgSignalAsv" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_single_arg_signal_asv ( 1910s # OrgProjectSignalingIface *object, 1910s # GVariant *arg_arg_asv) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV], 0, arg_arg_asv); 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxy: 1910s # * 1910s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxyClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceProxy. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceProxyPrivate 1910s # { 1910s # GData *qdata; 1910s # }; 1910s # 1910s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_proxy_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1910s # g_datalist_clear (&proxy->priv->qdata); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # const GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1910s # const gchar *sender_name G_GNUC_UNUSED, 1910s # const gchar *signal_name, 1910s # GVariant *parameters) 1910s # { 1910s # _ExtendedGDBusSignalInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # gsize n; 1910s # guint signal_id; 1910s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1910s # if (info == NULL) 1910s # return; 1910s # num_params = g_variant_n_children (parameters); 1910s # paramv = g_new0 (GValue, num_params + 1); 1910s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[0], proxy); 1910s # g_variant_iter_init (&iter, parameters); 1910s # n = 1; 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_signal_emitv (paramv, signal_id, 0, NULL); 1910s # for (n = 0; n < num_params + 1; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1910s # GVariant *changed_properties, 1910s # const gchar *const *invalidated_properties) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1910s # guint n; 1910s # const gchar *key; 1910s # GVariantIter *iter; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # g_variant_get (changed_properties, "a{sv}", &iter); 1910s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1910s # g_datalist_remove_data (&proxy->priv->qdata, key); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # g_variant_iter_free (iter); 1910s # for (n = 0; invalidated_properties[n] != NULL; n++) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1910s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1910s # #else 1910s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1910s # #endif 1910s # 1910s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusProxyClass *proxy_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1910s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1910s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1910s # 1910s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1910s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1910s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_sync: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_sync ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new_for_bus ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeleton: 1910s # * 1910s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeletonClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1910s # { 1910s # GValue *properties; 1910s # GList *changed_properties; 1910s # GSource *changed_properties_idle_source; 1910s # GMainContext *context; 1910s # GMutex lock; 1910s # }; 1910s # 1910s # static void 1910s # _org_project_signaling_iface_skeleton_handle_method_call ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name, 1910s # const gchar *method_name, 1910s # GVariant *parameters, 1910s # GDBusMethodInvocation *invocation, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # _ExtendedGDBusMethodInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # guint num_extra; 1910s # gsize n; 1910s # guint signal_id; 1910s # GValue return_value = G_VALUE_INIT; 1910s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1910s # g_assert (info != NULL); 1910s # num_params = g_variant_n_children (parameters); 1910s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1910s # n = 0; 1910s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[n++], skeleton); 1910s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1910s # g_value_set_object (¶mv[n++], invocation); 1910s # if (info->pass_fdlist) 1910s # { 1910s # #ifdef G_OS_UNIX 1910s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1910s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1910s # #else 1910s # g_assert_not_reached (); 1910s # #endif 1910s # } 1910s # g_variant_iter_init (&iter, parameters); 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1910s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1910s # if (!g_value_get_boolean (&return_value)) 1910s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1910s # g_value_unset (&return_value); 1910s # for (n = 0; n < num_params + num_extra; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static GVariant * 1910s # _org_project_signaling_iface_skeleton_handle_get_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # GVariant *ret; 1910s # ret = NULL; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # g_value_init (&value, pspec->value_type); 1910s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1910s # g_value_unset (&value); 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _org_project_signaling_iface_skeleton_handle_set_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GVariant *variant, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # gboolean ret; 1910s # ret = FALSE; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # if (info->use_gvariant) 1910s # g_value_set_variant (&value, variant); 1910s # else 1910s # g_dbus_gvariant_to_gvalue (variant, &value); 1910s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # g_value_unset (&value); 1910s # ret = TRUE; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1910s # { 1910s # _org_project_signaling_iface_skeleton_handle_method_call, 1910s # _org_project_signaling_iface_skeleton_handle_get_property, 1910s # _org_project_signaling_iface_skeleton_handle_set_property, 1910s # {NULL} 1910s # }; 1910s # 1910s # static GDBusInterfaceInfo * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return org_project_signaling_iface_interface_info (); 1910s # } 1910s # 1910s # static GDBusInterfaceVTable * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1910s # } 1910s # 1910s # static GVariant * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1910s # 1910s # GVariantBuilder builder; 1910s # guint n; 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1910s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #else 1910s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #endif 1910s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1910s # goto out; 1910s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1910s # { 1910s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1910s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1910s # { 1910s # GVariant *value; 1910s # value = _org_project_signaling_iface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", info->name, NULL, skeleton); 1910s # if (value != NULL) 1910s # { 1910s # g_variant_take_ref (value); 1910s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1910s # g_variant_unref (value); 1910s # } 1910s # } 1910s # } 1910s # out: 1910s # return g_variant_builder_end (&builder); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_single_arg_signal_asv ( 1910s # OrgProjectSignalingIface *object, 1910s # GVariant *arg_arg_asv) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})", 1910s # arg_arg_asv)); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAsv", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1910s # if (skeleton->priv->changed_properties_idle_source != NULL) 1910s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1910s # g_main_context_unref (skeleton->priv->context); 1910s # g_mutex_clear (&skeleton->priv->lock); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1910s # #else 1910s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1910s # #endif 1910s # 1910s # g_mutex_init (&skeleton->priv->lock); 1910s # skeleton->priv->context = g_main_context_ref_thread_default (); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusInterfaceSkeletonClass *skeleton_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1910s # 1910s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1910s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1910s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1910s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1910s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1910s # iface->single_arg_signal_asv = _org_project_signaling_iface_on_signal_single_arg_signal_asv; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_skeleton_new: 1910s # * 1910s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_skeleton_new (void) 1910s # { 1910s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1910s # } 1910s # Error: 1910s ok 24 __main__.TestCodegen.test_generate_signals_marshallers_multiple_args 1910s # gdbus-codegen: /usr/bin/gdbus-codegen 1910s # tmpdir: /tmp/tmph0g_n01y 1910s # /tmp/tmph0g_n01y/tmpdz929yyc.xml: 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmph0g_n01y/tmpdz929yyc.xml', '--output', '-', '--body'] 1910s # Return code: 0 1910s # Output: 1910s # /* 1910s # * This file is generated by gdbus-codegen, do not modify it. 1910s # * 1910s # * The license of this code is the same as for the D-Bus interface description 1910s # * it was derived from. Note that it links to GLib, so must comply with the 1910s # * LGPL linking clauses. 1910s # */ 1910s # 1910s # #ifdef HAVE_CONFIG_H 1910s # # include "config.h" 1910s # #endif 1910s # 1910s # #include 1910s # #ifdef G_OS_UNIX 1910s # # include 1910s # #endif 1910s # 1910s # #ifdef G_ENABLE_DEBUG 1910s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1910s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1910s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1910s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1910s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1910s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1910s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1910s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1910s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1910s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1910s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1910s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1910s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1910s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1910s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1910s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1910s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1910s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1910s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1910s # #else /* !G_ENABLE_DEBUG */ 1910s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1910s # * Do not access GValues directly in your code. Instead, use the 1910s # * g_value_get_*() functions 1910s # */ 1910s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1910s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1910s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1910s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1910s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1910s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1910s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1910s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1910s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1910s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1910s # #endif /* !G_ENABLE_DEBUG */ 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusArgInfo parent_struct; 1910s # gboolean use_gvariant; 1910s # } _ExtendedGDBusArgInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusMethodInfo parent_struct; 1910s # const gchar *signal_name; 1910s # gboolean pass_fdlist; 1910s # } _ExtendedGDBusMethodInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusSignalInfo parent_struct; 1910s # const gchar *signal_name; 1910s # } _ExtendedGDBusSignalInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusPropertyInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # guint use_gvariant : 1; 1910s # guint emits_changed_signal : 1; 1910s # } _ExtendedGDBusPropertyInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # GDBusInterfaceInfo parent_struct; 1910s # const gchar *hyphen_name; 1910s # } _ExtendedGDBusInterfaceInfo; 1910s # 1910s # typedef struct 1910s # { 1910s # const _ExtendedGDBusPropertyInfo *info; 1910s # guint prop_id; 1910s # GValue orig_value; /* the value before the change */ 1910s # } ChangedProperty; 1910s # 1910s # static void 1910s # _changed_property_free (ChangedProperty *data) 1910s # { 1910s # g_value_unset (&data->orig_value); 1910s # g_free (data); 1910s # } 1910s # 1910s # static gboolean 1910s # _g_strv_equal0 (gchar **a, gchar **b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # guint n; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # if (g_strv_length (a) != g_strv_length (b)) 1910s # goto out; 1910s # for (n = 0; a[n] != NULL; n++) 1910s # if (g_strcmp0 (a[n], b[n]) != 0) 1910s # goto out; 1910s # ret = TRUE; 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _g_variant_equal0 (GVariant *a, GVariant *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # if (a == NULL && b == NULL) 1910s # { 1910s # ret = TRUE; 1910s # goto out; 1910s # } 1910s # if (a == NULL || b == NULL) 1910s # goto out; 1910s # ret = g_variant_equal (a, b); 1910s # out: 1910s # return ret; 1910s # } 1910s # 1910s # G_GNUC_UNUSED static gboolean 1910s # _g_value_equal (const GValue *a, const GValue *b) 1910s # { 1910s # gboolean ret = FALSE; 1910s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1910s # switch (G_VALUE_TYPE (a)) 1910s # { 1910s # case G_TYPE_BOOLEAN: 1910s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1910s # break; 1910s # case G_TYPE_UCHAR: 1910s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1910s # break; 1910s # case G_TYPE_INT: 1910s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1910s # break; 1910s # case G_TYPE_UINT: 1910s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1910s # break; 1910s # case G_TYPE_INT64: 1910s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1910s # break; 1910s # case G_TYPE_UINT64: 1910s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1910s # break; 1910s # case G_TYPE_DOUBLE: 1910s # { 1910s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1910s # gdouble da = g_value_get_double (a); 1910s # gdouble db = g_value_get_double (b); 1910s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1910s # } 1910s # break; 1910s # case G_TYPE_STRING: 1910s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1910s # break; 1910s # case G_TYPE_VARIANT: 1910s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1910s # break; 1910s # default: 1910s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1910s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1910s # else 1910s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1910s # break; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static void 1910s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 1910s # GClosure *closure, 1910s # GValue *return_value G_GNUC_UNUSED, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint G_GNUC_UNUSED, 1910s # void *marshal_data) 1910s # { 1910s # typedef void (*_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1910s # (void *data1, 1910s # gboolean arg_an_b, 1910s # guchar arg_an_y, 1910s # gint16 arg_an_n, 1910s # guint16 arg_an_q, 1910s # gint arg_an_i, 1910s # guint arg_an_u, 1910s # gint64 arg_an_x, 1910s # guint64 arg_an_t, 1910s # gdouble arg_an_d, 1910s # const gchar *arg_an_s, 1910s # const gchar *arg_an_o, 1910s # const gchar *arg_an_g, 1910s # GVariant *arg_an_h, 1910s # const gchar *arg_an_ay, 1910s # const gchar *const *arg_an_as, 1910s # const gchar *const *arg_an_ao, 1910s # const gchar *const *arg_an_aay, 1910s # GVariant *arg_an_asv, 1910s # void *data2); 1910s # _GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 1910s # GCClosure *cc = (GCClosure*) closure; 1910s # void *data1, *data2; 1910s # 1910s # g_return_if_fail (n_param_values == 19); 1910s # 1910s # if (G_CCLOSURE_SWAP_DATA (closure)) 1910s # { 1910s # data1 = closure->data; 1910s # data2 = g_value_peek_pointer (param_values + 0); 1910s # } 1910s # else 1910s # { 1910s # data1 = g_value_peek_pointer (param_values + 0); 1910s # data2 = closure->data; 1910s # } 1910s # 1910s # callback = (_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1910s # (marshal_data ? marshal_data : cc->callback); 1910s # 1910s # callback (data1, 1910s # g_marshal_value_peek_boolean (param_values + 1), 1910s # g_marshal_value_peek_uchar (param_values + 2), 1910s # g_marshal_value_peek_int (param_values + 3), 1910s # g_marshal_value_peek_uint (param_values + 4), 1910s # g_marshal_value_peek_int (param_values + 5), 1910s # g_marshal_value_peek_uint (param_values + 6), 1910s # g_marshal_value_peek_int64 (param_values + 7), 1910s # g_marshal_value_peek_uint64 (param_values + 8), 1910s # g_marshal_value_peek_double (param_values + 9), 1910s # g_marshal_value_peek_string (param_values + 10), 1910s # g_marshal_value_peek_string (param_values + 11), 1910s # g_marshal_value_peek_string (param_values + 12), 1910s # g_marshal_value_peek_variant (param_values + 13), 1910s # g_marshal_value_peek_string (param_values + 14), 1910s # g_marshal_value_peek_boxed (param_values + 15), 1910s # g_marshal_value_peek_boxed (param_values + 16), 1910s # g_marshal_value_peek_boxed (param_values + 17), 1910s # g_marshal_value_peek_variant (param_values + 18), 1910s # data2); 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ 1910s # * Code for interface org.project.SignalingIface 1910s # * ------------------------------------------------------------------------ 1910s # */ 1910s # 1910s # /** 1910s # * SECTION:OrgProjectSignalingIface 1910s # * @title: OrgProjectSignalingIface 1910s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1910s # * 1910s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1910s # */ 1910s # 1910s # enum 1910s # { 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS, 1910s # }; 1910s # 1910s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1910s # 1910s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SimpleSignal", 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "simple-signal" 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "an_b", 1910s # (gchar *) "b", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "an_y", 1910s # (gchar *) "y", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "an_n", 1910s # (gchar *) "n", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "an_q", 1910s # (gchar *) "q", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "an_i", 1910s # (gchar *) "i", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "an_u", 1910s # (gchar *) "u", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "an_x", 1910s # (gchar *) "x", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "an_t", 1910s # (gchar *) "t", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "an_d", 1910s # (gchar *) "d", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "an_s", 1910s # (gchar *) "s", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "an_o", 1910s # (gchar *) "o", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "an_g", 1910s # (gchar *) "g", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "an_h", 1910s # (gchar *) "h", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "an_ay", 1910s # (gchar *) "ay", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "an_as", 1910s # (gchar *) "as", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "an_ao", 1910s # (gchar *) "ao", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "an_aay", 1910s # (gchar *) "aay", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "an_asv", 1910s # (gchar *) "a{sv}", 1910s # NULL 1910s # }, 1910s # FALSE 1910s # }; 1910s # 1910s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_signal_with_many_args = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "SignalWithManyArgs", 1910s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers, 1910s # NULL 1910s # }, 1910s # "signal-with-many-args" 1910s # }; 1910s # 1910s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1910s # { 1910s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1910s # &_org_project_signaling_iface_signal_info_signal_with_many_args.parent_struct, 1910s # NULL 1910s # }; 1910s # 1910s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1910s # { 1910s # { 1910s # -1, 1910s # (gchar *) "org.project.SignalingIface", 1910s # NULL, 1910s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1910s # NULL, 1910s # NULL 1910s # }, 1910s # "org-project-signaling-iface", 1910s # }; 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_interface_info: 1910s # * 1910s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1910s # * 1910s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1910s # */ 1910s # GDBusInterfaceInfo * 1910s # org_project_signaling_iface_interface_info (void) 1910s # { 1910s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_override_properties: 1910s # * @klass: The class structure for a #GObject derived class. 1910s # * @property_id_begin: The property id to assign to the first overridden property. 1910s # * 1910s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1910s # * The properties are overridden in the order they are defined. 1910s # * 1910s # * Returns: The last property id. 1910s # */ 1910s # guint 1910s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1910s # { 1910s # return property_id_begin - 1; 1910s # } 1910s # 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_simple_signal ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # g_cclosure_marshal_VOID__VOID (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # inline static void 1910s # org_project_signaling_iface_signal_marshal_signal_with_many_args ( 1910s # GClosure *closure, 1910s # GValue *return_value, 1910s # unsigned int n_param_values, 1910s # const GValue *param_values, 1910s # void *invocation_hint, 1910s # void *marshal_data) 1910s # { 1910s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT (closure, 1910s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1910s # } 1910s # 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface: 1910s # * 1910s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceIface: 1910s # * @parent_iface: The parent interface. 1910s # * @signal_with_many_args: Handler for the #OrgProjectSignalingIface::signal-with-many-args signal. 1910s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1910s # * 1910s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1910s # */ 1910s # 1910s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1910s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1910s # 1910s # static void 1910s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # /* GObject signals for received D-Bus signals: */ 1910s # /** 1910s # * OrgProjectSignalingIface::simple-signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1910s # g_signal_new ("simple-signal", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_simple_signal, 1910s # G_TYPE_NONE, 1910s # 0); 1910s # 1910s # /** 1910s # * OrgProjectSignalingIface::signal-with-many-args: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_an_b: Argument. 1910s # * @arg_an_y: Argument. 1910s # * @arg_an_n: Argument. 1910s # * @arg_an_q: Argument. 1910s # * @arg_an_i: Argument. 1910s # * @arg_an_u: Argument. 1910s # * @arg_an_x: Argument. 1910s # * @arg_an_t: Argument. 1910s # * @arg_an_d: Argument. 1910s # * @arg_an_s: Argument. 1910s # * @arg_an_o: Argument. 1910s # * @arg_an_g: Argument. 1910s # * @arg_an_h: Argument. 1910s # * @arg_an_ay: Argument. 1910s # * @arg_an_as: Argument. 1910s # * @arg_an_ao: Argument. 1910s # * @arg_an_aay: Argument. 1910s # * @arg_an_asv: Argument. 1910s # * 1910s # * On the client-side, this signal is emitted whenever the D-Bus signal "SignalWithManyArgs" is received. 1910s # * 1910s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1910s # */ 1910s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS] = 1910s # g_signal_new ("signal-with-many-args", 1910s # G_TYPE_FROM_INTERFACE (iface), 1910s # G_SIGNAL_RUN_LAST, 1910s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, signal_with_many_args), 1910s # NULL, 1910s # NULL, 1910s # org_project_signaling_iface_signal_marshal_signal_with_many_args, 1910s # G_TYPE_NONE, 1910s # 18, G_TYPE_BOOLEAN, G_TYPE_UCHAR, G_TYPE_INT, G_TYPE_UINT, G_TYPE_INT, G_TYPE_UINT, G_TYPE_INT64, G_TYPE_UINT64, G_TYPE_DOUBLE, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_VARIANT, G_TYPE_STRING, G_TYPE_STRV, G_TYPE_STRV, G_TYPE_STRV, G_TYPE_VARIANT); 1910s # 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_simple_signal: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * 1910s # * Emits the "SimpleSignal" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_emit_signal_with_many_args: 1910s # * @object: A #OrgProjectSignalingIface. 1910s # * @arg_an_b: Argument to pass with the signal. 1910s # * @arg_an_y: Argument to pass with the signal. 1910s # * @arg_an_n: Argument to pass with the signal. 1910s # * @arg_an_q: Argument to pass with the signal. 1910s # * @arg_an_i: Argument to pass with the signal. 1910s # * @arg_an_u: Argument to pass with the signal. 1910s # * @arg_an_x: Argument to pass with the signal. 1910s # * @arg_an_t: Argument to pass with the signal. 1910s # * @arg_an_d: Argument to pass with the signal. 1910s # * @arg_an_s: Argument to pass with the signal. 1910s # * @arg_an_o: Argument to pass with the signal. 1910s # * @arg_an_g: Argument to pass with the signal. 1910s # * @arg_an_h: Argument to pass with the signal. 1910s # * @arg_an_ay: Argument to pass with the signal. 1910s # * @arg_an_as: Argument to pass with the signal. 1910s # * @arg_an_ao: Argument to pass with the signal. 1910s # * @arg_an_aay: Argument to pass with the signal. 1910s # * @arg_an_asv: Argument to pass with the signal. 1910s # * 1910s # * Emits the "SignalWithManyArgs" D-Bus signal. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_emit_signal_with_many_args ( 1910s # OrgProjectSignalingIface *object, 1910s # gboolean arg_an_b, 1910s # guchar arg_an_y, 1910s # gint16 arg_an_n, 1910s # guint16 arg_an_q, 1910s # gint arg_an_i, 1910s # guint arg_an_u, 1910s # gint64 arg_an_x, 1910s # guint64 arg_an_t, 1910s # gdouble arg_an_d, 1910s # const gchar *arg_an_s, 1910s # const gchar *arg_an_o, 1910s # const gchar *arg_an_g, 1910s # GVariant *arg_an_h, 1910s # const gchar *arg_an_ay, 1910s # const gchar *const *arg_an_as, 1910s # const gchar *const *arg_an_ao, 1910s # const gchar *const *arg_an_aay, 1910s # GVariant *arg_an_asv) 1910s # { 1910s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS], 0, arg_an_b, arg_an_y, arg_an_n, arg_an_q, arg_an_i, arg_an_u, arg_an_x, arg_an_t, arg_an_d, arg_an_s, arg_an_o, arg_an_g, arg_an_h, arg_an_ay, arg_an_as, arg_an_ao, arg_an_aay, arg_an_asv); 1910s # } 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxy: 1910s # * 1910s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceProxyClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceProxy. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceProxyPrivate 1910s # { 1910s # GData *qdata; 1910s # }; 1910s # 1910s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_proxy_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1910s # g_datalist_clear (&proxy->priv->qdata); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1910s # guint prop_id G_GNUC_UNUSED, 1910s # const GValue *value G_GNUC_UNUSED, 1910s # GParamSpec *pspec G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1910s # const gchar *sender_name G_GNUC_UNUSED, 1910s # const gchar *signal_name, 1910s # GVariant *parameters) 1910s # { 1910s # _ExtendedGDBusSignalInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # gsize n; 1910s # guint signal_id; 1910s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1910s # if (info == NULL) 1910s # return; 1910s # num_params = g_variant_n_children (parameters); 1910s # paramv = g_new0 (GValue, num_params + 1); 1910s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[0], proxy); 1910s # g_variant_iter_init (&iter, parameters); 1910s # n = 1; 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_signal_emitv (paramv, signal_id, 0, NULL); 1910s # for (n = 0; n < num_params + 1; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1910s # GVariant *changed_properties, 1910s # const gchar *const *invalidated_properties) 1910s # { 1910s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1910s # guint n; 1910s # const gchar *key; 1910s # GVariantIter *iter; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # g_variant_get (changed_properties, "a{sv}", &iter); 1910s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1910s # g_datalist_remove_data (&proxy->priv->qdata, key); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # g_variant_iter_free (iter); 1910s # for (n = 0; invalidated_properties[n] != NULL; n++) 1910s # { 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1910s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1910s # if (info != NULL) 1910s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1910s # } 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1910s # #else 1910s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1910s # #endif 1910s # 1910s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusProxyClass *proxy_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1910s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1910s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1910s # 1910s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1910s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1910s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_sync: 1910s # * @connection: A #GDBusConnection. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_sync ( 1910s # GDBusConnection *connection, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1910s # * @user_data: User data to pass to @callback. 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1910s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1910s # */ 1910s # void 1910s # org_project_signaling_iface_proxy_new_for_bus ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GAsyncReadyCallback callback, 1910s # gpointer user_data) 1910s # { 1910s # g_async_initable_new_async (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1910s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1910s # GAsyncResult *res, 1910s # GError **error) 1910s # { 1910s # GObject *ret; 1910s # GObject *source_object; 1910s # source_object = g_async_result_get_source_object (res); 1910s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1910s # g_object_unref (source_object); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1910s # * @bus_type: A #GBusType. 1910s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1910s # * @name: A bus name (well-known or unique). 1910s # * @object_path: An object path. 1910s # * @cancellable: (nullable): A #GCancellable or %NULL. 1910s # * @error: Return location for error or %NULL 1910s # * 1910s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1910s # * 1910s # * The calling thread is blocked until a reply is received. 1910s # * 1910s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1910s # GBusType bus_type, 1910s # GDBusProxyFlags flags, 1910s # const gchar *name, 1910s # const gchar *object_path, 1910s # GCancellable *cancellable, 1910s # GError **error) 1910s # { 1910s # GInitable *ret; 1910s # ret = g_initable_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.SignalingIface", NULL); 1910s # if (ret != NULL) 1910s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1910s # else 1910s # return NULL; 1910s # } 1910s # 1910s # 1910s # /* ------------------------------------------------------------------------ */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeleton: 1910s # * 1910s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1910s # */ 1910s # 1910s # /** 1910s # * OrgProjectSignalingIfaceSkeletonClass: 1910s # * @parent_class: The parent class. 1910s # * 1910s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1910s # */ 1910s # 1910s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1910s # { 1910s # GValue *properties; 1910s # GList *changed_properties; 1910s # GSource *changed_properties_idle_source; 1910s # GMainContext *context; 1910s # GMutex lock; 1910s # }; 1910s # 1910s # static void 1910s # _org_project_signaling_iface_skeleton_handle_method_call ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name, 1910s # const gchar *method_name, 1910s # GVariant *parameters, 1910s # GDBusMethodInvocation *invocation, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # _ExtendedGDBusMethodInfo *info; 1910s # GVariantIter iter; 1910s # GVariant *child; 1910s # GValue *paramv; 1910s # gsize num_params; 1910s # guint num_extra; 1910s # gsize n; 1910s # guint signal_id; 1910s # GValue return_value = G_VALUE_INIT; 1910s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1910s # g_assert (info != NULL); 1910s # num_params = g_variant_n_children (parameters); 1910s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1910s # n = 0; 1910s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_set_object (¶mv[n++], skeleton); 1910s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1910s # g_value_set_object (¶mv[n++], invocation); 1910s # if (info->pass_fdlist) 1910s # { 1910s # #ifdef G_OS_UNIX 1910s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1910s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1910s # #else 1910s # g_assert_not_reached (); 1910s # #endif 1910s # } 1910s # g_variant_iter_init (&iter, parameters); 1910s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1910s # { 1910s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1910s # if (arg_info->use_gvariant) 1910s # { 1910s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1910s # g_value_set_variant (¶mv[n], child); 1910s # n++; 1910s # } 1910s # else 1910s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1910s # g_variant_unref (child); 1910s # } 1910s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1910s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1910s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1910s # if (!g_value_get_boolean (&return_value)) 1910s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1910s # g_value_unset (&return_value); 1910s # for (n = 0; n < num_params + num_extra; n++) 1910s # g_value_unset (¶mv[n]); 1910s # g_free (paramv); 1910s # } 1910s # 1910s # static GVariant * 1910s # _org_project_signaling_iface_skeleton_handle_get_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # GVariant *ret; 1910s # ret = NULL; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # g_value_init (&value, pspec->value_type); 1910s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1910s # g_value_unset (&value); 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static gboolean 1910s # _org_project_signaling_iface_skeleton_handle_set_property ( 1910s # GDBusConnection *connection G_GNUC_UNUSED, 1910s # const gchar *sender G_GNUC_UNUSED, 1910s # const gchar *object_path G_GNUC_UNUSED, 1910s # const gchar *interface_name G_GNUC_UNUSED, 1910s # const gchar *property_name, 1910s # GVariant *variant, 1910s # GError **error, 1910s # gpointer user_data) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1910s # GValue value = G_VALUE_INIT; 1910s # GParamSpec *pspec; 1910s # _ExtendedGDBusPropertyInfo *info; 1910s # gboolean ret; 1910s # ret = FALSE; 1910s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1910s # g_assert (info != NULL); 1910s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1910s # if (pspec == NULL) 1910s # { 1910s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1910s # } 1910s # else 1910s # { 1910s # if (info->use_gvariant) 1910s # g_value_set_variant (&value, variant); 1910s # else 1910s # g_dbus_gvariant_to_gvalue (variant, &value); 1910s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1910s # g_value_unset (&value); 1910s # ret = TRUE; 1910s # } 1910s # return ret; 1910s # } 1910s # 1910s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1910s # { 1910s # _org_project_signaling_iface_skeleton_handle_method_call, 1910s # _org_project_signaling_iface_skeleton_handle_get_property, 1910s # _org_project_signaling_iface_skeleton_handle_set_property, 1910s # {NULL} 1910s # }; 1910s # 1910s # static GDBusInterfaceInfo * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return org_project_signaling_iface_interface_info (); 1910s # } 1910s # 1910s # static GDBusInterfaceVTable * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1910s # { 1910s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1910s # } 1910s # 1910s # static GVariant * 1910s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1910s # 1910s # GVariantBuilder builder; 1910s # guint n; 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1910s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #else 1910s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1910s # #endif 1910s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1910s # goto out; 1910s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1910s # { 1910s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1910s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1910s # { 1910s # GVariant *value; 1910s # value = _org_project_signaling_iface_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", info->name, NULL, skeleton); 1910s # if (value != NULL) 1910s # { 1910s # g_variant_take_ref (value); 1910s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1910s # g_variant_unref (value); 1910s # } 1910s # } 1910s # } 1910s # out: 1910s # return g_variant_builder_end (&builder); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1910s # { 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_simple_signal ( 1910s # OrgProjectSignalingIface *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void 1910s # _org_project_signaling_iface_on_signal_signal_with_many_args ( 1910s # OrgProjectSignalingIface *object, 1910s # gboolean arg_an_b, 1910s # guchar arg_an_y, 1910s # gint16 arg_an_n, 1910s # guint16 arg_an_q, 1910s # gint arg_an_i, 1910s # guint arg_an_u, 1910s # gint64 arg_an_x, 1910s # guint64 arg_an_t, 1910s # gdouble arg_an_d, 1910s # const gchar *arg_an_s, 1910s # const gchar *arg_an_o, 1910s # const gchar *arg_an_g, 1910s # GVariant *arg_an_h, 1910s # const gchar *arg_an_ay, 1910s # const gchar *const *arg_an_as, 1910s # const gchar *const *arg_an_ao, 1910s # const gchar *const *arg_an_aay, 1910s # GVariant *arg_an_asv) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # 1910s # GList *connections, *l; 1910s # GVariant *signal_variant; 1910s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1910s # 1910s # signal_variant = g_variant_ref_sink (g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1910s # arg_an_b, 1910s # arg_an_y, 1910s # arg_an_n, 1910s # arg_an_q, 1910s # arg_an_i, 1910s # arg_an_u, 1910s # arg_an_x, 1910s # arg_an_t, 1910s # arg_an_d, 1910s # arg_an_s, 1910s # arg_an_o, 1910s # arg_an_g, 1910s # arg_an_h, 1910s # arg_an_ay, 1910s # arg_an_as, 1910s # arg_an_ao, 1910s # arg_an_aay, 1910s # arg_an_asv)); 1910s # for (l = connections; l != NULL; l = l->next) 1910s # { 1910s # GDBusConnection *connection = l->data; 1910s # g_dbus_connection_emit_signal (connection, 1910s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SignalWithManyArgs", 1910s # signal_variant, NULL); 1910s # } 1910s # g_variant_unref (signal_variant); 1910s # g_list_free_full (connections, g_object_unref); 1910s # } 1910s # 1910s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #else 1910s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1910s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1910s # 1910s # #endif 1910s # static void 1910s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1910s # { 1910s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1910s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1910s # if (skeleton->priv->changed_properties_idle_source != NULL) 1910s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1910s # g_main_context_unref (skeleton->priv->context); 1910s # g_mutex_clear (&skeleton->priv->lock); 1910s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1910s # { 1910s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1910s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1910s # #else 1910s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1910s # #endif 1910s # 1910s # g_mutex_init (&skeleton->priv->lock); 1910s # skeleton->priv->context = g_main_context_ref_thread_default (); 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1910s # { 1910s # GObjectClass *gobject_class; 1910s # GDBusInterfaceSkeletonClass *skeleton_class; 1910s # 1910s # gobject_class = G_OBJECT_CLASS (klass); 1910s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1910s # 1910s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1910s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1910s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1910s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1910s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1910s # 1910s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1910s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1910s # #endif 1910s # } 1910s # 1910s # static void 1910s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1910s # { 1910s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1910s # iface->signal_with_many_args = _org_project_signaling_iface_on_signal_signal_with_many_args; 1910s # } 1910s # 1910s # /** 1910s # * org_project_signaling_iface_skeleton_new: 1910s # * 1910s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1910s # * 1910s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1910s # */ 1910s # OrgProjectSignalingIface * 1910s # org_project_signaling_iface_skeleton_new (void) 1910s # { 1910s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1910s # } 1910s # Error: 1910s ok 25 __main__.TestCodegen.test_generate_valid_docbook 1910s # gdbus-codegen: /usr/bin/gdbus-codegen 1910s # tmpdir: /tmp/tmpar8htxh1 1910s # /tmp/tmpar8htxh1/tmpy6zh8kmi.xml: 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # 1910s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpar8htxh1/tmpy6zh8kmi.xml', '--generate-docbook', 'test'] 1910s # Return code: 0 1910s # Output: 1910s # 1910s # Error: 1910s ok 26 __main__.TestCodegen.test_glib_max_allowed_less_than_min_required 1910s # gdbus-codegen: /usr/bin/gdbus-codegen 1910s # tmpdir: /tmp/tmprx4p0woq 1910s # /tmp/tmprx4p0woq/tmp2p7tkh4z.xml: 1910s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmprx4p0woq/tmp2p7tkh4z.xml', '--output', '-', '--body', '--glib-max-allowed', '2.62', '--glib-min-required', '2.64'] 1910s # Return code: 1 1910s # Output: 1910s # 1910s # Error: 1910s # ERROR: Invalid versions: --glib-min-required ((2, 64)) must be less than or equal to --glib-max-allowed ((2, 62)) 1910s ok 27 __main__.TestCodegen.test_glib_max_allowed_major_only 1910s # gdbus-codegen: /usr/bin/gdbus-codegen 1910s # tmpdir: /tmp/tmp49vw1hmf 1910s # /tmp/tmp49vw1hmf/tmpq7n_kpdn.xml: 1910s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp49vw1hmf/tmpq7n_kpdn.xml', '--output', '-', '--header', '--glib-max-allowed', '3'] 1910s # Return code: 0 1910s # Output: 1910s # /* 1910s # * This file is generated by gdbus-codegen, do not modify it. 1910s # * 1910s # * The license of this code is the same as for the D-Bus interface description 1910s # * it was derived from. Note that it links to GLib, so must comply with the 1910s # * LGPL linking clauses. 1910s # */ 1910s # 1910s # #ifndef __STDOUT__ 1910s # #define __STDOUT__ 1910s # 1910s # #include 1910s # 1910s # G_BEGIN_DECLS 1910s # 1910s # 1910s # G_END_DECLS 1910s # 1910s # #endif /* __STDOUT__ */ 1910s # Error: 1910s ok 28 __main__.TestCodegen.test_glib_max_allowed_too_low 1910s # gdbus-codegen: /usr/bin/gdbus-codegen 1910s # tmpdir: /tmp/tmpiy8pcp2k 1910s # /tmp/tmpiy8pcp2k/tmpvj4tlce6.xml: 1910s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpiy8pcp2k/tmpvj4tlce6.xml', '--output', '-', '--body', '--glib-max-allowed', '2.6'] 1910s # Return code: 1 1910s # Output: 1910s # 1910s # Error: 1910s # ERROR: Invalid versions: --glib-min-required ((2, 30)) must be less than or equal to --glib-max-allowed ((2, 6)) 1910s ok 29 __main__.TestCodegen.test_glib_max_allowed_unstable 1910s # gdbus-codegen: /usr/bin/gdbus-codegen 1910s # tmpdir: /tmp/tmp7tfyet90 1910s # /tmp/tmp7tfyet90/tmp5fnn318u.xml: 1910s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7tfyet90/tmp5fnn318u.xml', '--output', '-', '--header', '--glib-max-allowed', '2.63', '--glib-min-required', '2.64'] 1910s # Return code: 0 1910s # Output: 1910s # /* 1910s # * This file is generated by gdbus-codegen, do not modify it. 1910s # * 1910s # * The license of this code is the same as for the D-Bus interface description 1910s # * it was derived from. Note that it links to GLib, so must comply with the 1910s # * LGPL linking clauses. 1910s # */ 1910s # 1910s # #ifndef __STDOUT__ 1910s # #define __STDOUT__ 1910s # 1910s # #include 1910s # 1910s # G_BEGIN_DECLS 1910s # 1910s # 1910s # G_END_DECLS 1910s # 1910s # #endif /* __STDOUT__ */ 1910s # Error: 1910s ok 30 __main__.TestCodegen.test_glib_max_allowed_with_micro 1910s # gdbus-codegen: /usr/bin/gdbus-codegen 1910s # tmpdir: /tmp/tmp_pp6a6b1 1910s # /tmp/tmp_pp6a6b1/tmpyjhk3z4s.xml: 1910s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp_pp6a6b1/tmpyjhk3z4s.xml', '--output', '-', '--header', '--glib-max-allowed', '2.46.2'] 1910s # Return code: 0 1910s # Output: 1910s # /* 1910s # * This file is generated by gdbus-codegen, do not modify it. 1910s # * 1910s # * The license of this code is the same as for the D-Bus interface description 1910s # * it was derived from. Note that it links to GLib, so must comply with the 1910s # * LGPL linking clauses. 1910s # */ 1910s # 1910s # #ifndef __STDOUT__ 1910s # #define __STDOUT__ 1910s # 1910s # #include 1910s # 1910s # G_BEGIN_DECLS 1910s # 1910s # 1910s # G_END_DECLS 1910s # 1910s # #endif /* __STDOUT__ */ 1910s # Error: 1910s ok 31 __main__.TestCodegen.test_glib_min_required_invalid 1910s # gdbus-codegen: /usr/bin/gdbus-codegen 1910s # tmpdir: /tmp/tmpyv9t9wn4 1910s # /tmp/tmpyv9t9wn4/tmpb7i__ose.xml: 1910s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpyv9t9wn4/tmpb7i__ose.xml', '--output', '-', '--body', '--glib-min-required', 'hello mum'] 1910s # Return code: 1 1910s # Output: 1910s # 1910s # Error: 1910s # ERROR: Unrecognized --glib-min-required string ‘hello mum’ 1910s ok 32 __main__.TestCodegen.test_glib_min_required_major_only 1910s # gdbus-codegen: /usr/bin/gdbus-codegen 1910s # tmpdir: /tmp/tmpp9op2bgq 1910s # /tmp/tmpp9op2bgq/tmpmhitvglm.xml: 1910s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpp9op2bgq/tmpmhitvglm.xml', '--output', '-', '--header', '--glib-min-required', '3', '--glib-max-allowed', '3.2'] 1910s # Return code: 0 1910s # Output: 1910s # /* 1910s # * This file is generated by gdbus-codegen, do not modify it. 1910s # * 1910s # * The license of this code is the same as for the D-Bus interface description 1910s # * it was derived from. Note that it links to GLib, so must comply with the 1910s # * LGPL linking clauses. 1910s # */ 1910s # 1910s # #ifndef __STDOUT__ 1910s # #define __STDOUT__ 1910s # 1910s # #include 1910s # 1910s # G_BEGIN_DECLS 1910s # 1910s # 1910s # G_END_DECLS 1910s # 1910s # #endif /* __STDOUT__ */ 1910s # Error: 1910s ok 33 __main__.TestCodegen.test_glib_min_required_too_low 1910s # gdbus-codegen: /usr/bin/gdbus-codegen 1910s # tmpdir: /tmp/tmphnimlsa0 1910s # /tmp/tmphnimlsa0/tmp9op8y5m7.xml: 1910s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphnimlsa0/tmp9op8y5m7.xml', '--output', '-', '--body', '--glib-min-required', '2.6'] 1910s # Return code: 1 1910s # Output: 1910s # 1910s # Error: 1910s # ERROR: Invalid --glib-min-required string ‘2.6’: minimum version is 2.30 1910s ok 34 __main__.TestCodegen.test_glib_min_required_with_micro 1910s # gdbus-codegen: /usr/bin/gdbus-codegen 1910s # tmpdir: /tmp/tmp8xsbkzvo 1910s # /tmp/tmp8xsbkzvo/tmphwyf0vu2.xml: 1910s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8xsbkzvo/tmphwyf0vu2.xml', '--output', '-', '--header', '--glib-min-required', '2.46.2'] 1910s # Return code: 0 1910s # Output: 1910s # /* 1910s # * This file is generated by gdbus-codegen, do not modify it. 1910s # * 1910s # * The license of this code is the same as for the D-Bus interface description 1910s # * it was derived from. Note that it links to GLib, so must comply with the 1910s # * LGPL linking clauses. 1910s # */ 1910s # 1910s # #ifndef __STDOUT__ 1910s # #define __STDOUT__ 1910s # 1910s # #include 1910s # 1910s # G_BEGIN_DECLS 1910s # 1910s # 1910s # G_END_DECLS 1910s # 1910s # #endif /* __STDOUT__ */ 1910s # Error: 1910s ok 35 __main__.TestCodegen.test_help 1910s # gdbus-codegen: /usr/bin/gdbus-codegen 1910s # tmpdir: /tmp/tmpcew1nfrs 1910s # Running: ['/usr/bin/gdbus-codegen', '--help'] 1910s # Return code: 0 1910s # Output: 1910s # usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 1910s # [--c-namespace NAMESPACE] [--c-generate-object-manager] 1910s # [--c-generate-autocleanup {none,objects,all}] 1910s # [--generate-docbook OUTFILES] [--generate-md OUTFILES] 1910s # [--generate-rst OUTFILES] [--pragma-once] 1910s # [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 1910s # [--glib-min-required VERSION] 1910s # [--glib-max-allowed VERSION] 1910s # [--symbol-decorator SYMBOL_DECORATOR] 1910s # [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 1910s # [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 1910s # [--generate-c-code OUTFILES | --header | --body | 1910s # --interface-info-header | --interface-info-body] 1910s # [--output FILE | --output-directory OUTDIR] 1910s # FILE [FILE ...] 1910s # 1910s # D-Bus code and documentation generator 1910s # 1910s # positional arguments: 1910s # FILE D-Bus introspection XML file 1910s # 1910s # options: 1910s # -h, --help show this help message and exit 1910s # --interface-prefix PREFIX 1910s # String to strip from D-Bus interface names for code 1910s # and docs 1910s # --c-namespace NAMESPACE 1910s # The namespace to use for generated C code 1910s # --c-generate-object-manager 1910s # Generate a GDBusObjectManagerClient subclass when 1910s # generating C code 1910s # --c-generate-autocleanup {none,objects,all} 1910s # Generate autocleanup support 1910s # --generate-docbook OUTFILES 1910s # Generate Docbook in OUTFILES-org.Project.IFace.xml 1910s # --generate-md OUTFILES 1910s # Generate Markdown in OUTFILES-org.Project.IFace.md 1910s # --generate-rst OUTFILES 1910s # Generate reStructuredText in OUTFILES- 1910s # org.Project.IFace.rst 1910s # --pragma-once Use "pragma once" as the inclusion guard 1910s # --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 1910s # Add annotation (may be used several times) 1910s # --glib-min-required VERSION 1910s # Minimum version of GLib to be supported by the 1910s # outputted code (default: 2.30) 1910s # --glib-max-allowed VERSION 1910s # Maximum version of GLib to be used by the outputted 1910s # code (default: current GLib version) 1910s # --symbol-decorator SYMBOL_DECORATOR 1910s # Macro used to decorate a symbol in the outputted 1910s # header, possibly to export symbols 1910s # --symbol-decorator-header SYMBOL_DECORATOR_HEADER 1910s # Additional header required for decorator specified by 1910s # --symbol-decorator 1910s # --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 1910s # Additional define required for decorator specified by 1910s # --symbol-decorator 1910s # --generate-c-code OUTFILES 1910s # Generate C code in OUTFILES.[ch] 1910s # --header Generate C headers 1910s # --body Generate C code 1910s # --interface-info-header 1910s # Generate GDBusInterfaceInfo C header 1910s # --interface-info-body 1910s # Generate GDBusInterfaceInfo C code 1910s # --output FILE Write output into the specified file 1910s # --output-directory OUTDIR 1910s # Location to output generated files 1910s # Error: 1911s ok 36 __main__.TestCodegen.test_indentation_preservation_in_comments 1911s # gdbus-codegen: /usr/bin/gdbus-codegen 1911s # tmpdir: /tmp/tmpskc8ibuo 1911s # /tmp/tmpskc8ibuo/tmptwabr0iu.xml: 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpskc8ibuo/tmptwabr0iu.xml', '--generate-rst', 'test'] 1911s # Return code: 0 1911s # Output: 1911s # 1911s # Error: 1911s # 1911s # /tmp/tmpskc8ibuo/tmp64iz7kue.xml: 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpskc8ibuo/tmp64iz7kue.xml', '--generate-md', 'test'] 1911s # Return code: 0 1911s # Output: 1911s # 1911s # Error: 1911s # 1911s # /tmp/tmpskc8ibuo/tmp6i608tc3.xml: 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpskc8ibuo/tmp6i608tc3.xml', '--generate-docbook', 'test'] 1911s # Return code: 0 1911s # Output: 1911s # 1911s # Error: 1911s ok 37 __main__.TestCodegen.test_no_args 1911s # gdbus-codegen: /usr/bin/gdbus-codegen 1911s # tmpdir: /tmp/tmpc_3_e31f 1911s # Running: ['/usr/bin/gdbus-codegen'] 1911s # Return code: 2 1911s # Output: 1911s # 1911s # Error: 1911s # usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 1911s # [--c-namespace NAMESPACE] [--c-generate-object-manager] 1911s # [--c-generate-autocleanup {none,objects,all}] 1911s # [--generate-docbook OUTFILES] [--generate-md OUTFILES] 1911s # [--generate-rst OUTFILES] [--pragma-once] 1911s # [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 1911s # [--glib-min-required VERSION] 1911s # [--glib-max-allowed VERSION] 1911s # [--symbol-decorator SYMBOL_DECORATOR] 1911s # [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 1911s # [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 1911s # [--generate-c-code OUTFILES | --header | --body | 1911s # --interface-info-header | --interface-info-body] 1911s # [--output FILE | --output-directory OUTDIR] 1911s # FILE [FILE ...] 1911s # gdbus-codegen: error: the following arguments are required: FILE 1911s ok 38 __main__.TestCodegen.test_reproducible 1911s # gdbus-codegen: /usr/bin/gdbus-codegen 1911s # tmpdir: /tmp/tmpzugf51zh 1911s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpzugf51zh/tmpu98yfgad1.xml', '/tmp/tmpzugf51zh/tmpw1ynnn032.xml', '--output', '-', '--header'] 1911s # Return code: 0 1911s # Output: 1911s # /* 1911s # * This file is generated by gdbus-codegen, do not modify it. 1911s # * 1911s # * The license of this code is the same as for the D-Bus interface description 1911s # * it was derived from. Note that it links to GLib, so must comply with the 1911s # * LGPL linking clauses. 1911s # */ 1911s # 1911s # #ifndef __STDOUT__ 1911s # #define __STDOUT__ 1911s # 1911s # #include 1911s # 1911s # G_BEGIN_DECLS 1911s # 1911s # 1911s # /* ------------------------------------------------------------------------ */ 1911s # /* Declarations for com.acme.Coyote */ 1911s # 1911s # #define TYPE_COM_ACME_COYOTE (com_acme_coyote_get_type ()) 1911s # #define COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyote)) 1911s # #define IS_COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE)) 1911s # #define COM_ACME_COYOTE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyoteIface)) 1911s # 1911s # struct _ComAcmeCoyote; 1911s # typedef struct _ComAcmeCoyote ComAcmeCoyote; 1911s # typedef struct _ComAcmeCoyoteIface ComAcmeCoyoteIface; 1911s # 1911s # struct _ComAcmeCoyoteIface 1911s # { 1911s # GTypeInterface parent_iface; 1911s # 1911s # 1911s # 1911s # gboolean (*handle_attack) ( 1911s # ComAcmeCoyote *object, 1911s # GDBusMethodInvocation *invocation); 1911s # 1911s # gboolean (*handle_run) ( 1911s # ComAcmeCoyote *object, 1911s # GDBusMethodInvocation *invocation); 1911s # 1911s # gboolean (*handle_sleep) ( 1911s # ComAcmeCoyote *object, 1911s # GDBusMethodInvocation *invocation); 1911s # 1911s # const gchar * (*get_mood) (ComAcmeCoyote *object); 1911s # 1911s # void (*surprised) ( 1911s # ComAcmeCoyote *object); 1911s # 1911s # }; 1911s # 1911s # GType com_acme_coyote_get_type (void) G_GNUC_CONST; 1911s # 1911s # GDBusInterfaceInfo *com_acme_coyote_interface_info (void); 1911s # guint com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin); 1911s # 1911s # 1911s # /* D-Bus method call completion functions: */ 1911s # void com_acme_coyote_complete_run ( 1911s # ComAcmeCoyote *object, 1911s # GDBusMethodInvocation *invocation); 1911s # 1911s # void com_acme_coyote_complete_sleep ( 1911s # ComAcmeCoyote *object, 1911s # GDBusMethodInvocation *invocation); 1911s # 1911s # void com_acme_coyote_complete_attack ( 1911s # ComAcmeCoyote *object, 1911s # GDBusMethodInvocation *invocation); 1911s # 1911s # 1911s # 1911s # /* D-Bus signal emissions functions: */ 1911s # void com_acme_coyote_emit_surprised ( 1911s # ComAcmeCoyote *object); 1911s # 1911s # 1911s # 1911s # /* D-Bus method calls: */ 1911s # void com_acme_coyote_call_run ( 1911s # ComAcmeCoyote *proxy, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data); 1911s # 1911s # gboolean com_acme_coyote_call_run_finish ( 1911s # ComAcmeCoyote *proxy, 1911s # GAsyncResult *res, 1911s # GError **error); 1911s # 1911s # gboolean com_acme_coyote_call_run_sync ( 1911s # ComAcmeCoyote *proxy, 1911s # GCancellable *cancellable, 1911s # GError **error); 1911s # 1911s # void com_acme_coyote_call_sleep ( 1911s # ComAcmeCoyote *proxy, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data); 1911s # 1911s # gboolean com_acme_coyote_call_sleep_finish ( 1911s # ComAcmeCoyote *proxy, 1911s # GAsyncResult *res, 1911s # GError **error); 1911s # 1911s # gboolean com_acme_coyote_call_sleep_sync ( 1911s # ComAcmeCoyote *proxy, 1911s # GCancellable *cancellable, 1911s # GError **error); 1911s # 1911s # void com_acme_coyote_call_attack ( 1911s # ComAcmeCoyote *proxy, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data); 1911s # 1911s # gboolean com_acme_coyote_call_attack_finish ( 1911s # ComAcmeCoyote *proxy, 1911s # GAsyncResult *res, 1911s # GError **error); 1911s # 1911s # gboolean com_acme_coyote_call_attack_sync ( 1911s # ComAcmeCoyote *proxy, 1911s # GCancellable *cancellable, 1911s # GError **error); 1911s # 1911s # 1911s # 1911s # /* D-Bus property accessors: */ 1911s # const gchar *com_acme_coyote_get_mood (ComAcmeCoyote *object); 1911s # gchar *com_acme_coyote_dup_mood (ComAcmeCoyote *object); 1911s # void com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value); 1911s # 1911s # 1911s # /* ---- */ 1911s # 1911s # #define TYPE_COM_ACME_COYOTE_PROXY (com_acme_coyote_proxy_get_type ()) 1911s # #define COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxy)) 1911s # #define COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1911s # #define COM_ACME_COYOTE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1911s # #define IS_COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_PROXY)) 1911s # #define IS_COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_PROXY)) 1911s # 1911s # typedef struct _ComAcmeCoyoteProxy ComAcmeCoyoteProxy; 1911s # typedef struct _ComAcmeCoyoteProxyClass ComAcmeCoyoteProxyClass; 1911s # typedef struct _ComAcmeCoyoteProxyPrivate ComAcmeCoyoteProxyPrivate; 1911s # 1911s # struct _ComAcmeCoyoteProxy 1911s # { 1911s # /*< private >*/ 1911s # GDBusProxy parent_instance; 1911s # ComAcmeCoyoteProxyPrivate *priv; 1911s # }; 1911s # 1911s # struct _ComAcmeCoyoteProxyClass 1911s # { 1911s # GDBusProxyClass parent_class; 1911s # }; 1911s # 1911s # GType com_acme_coyote_proxy_get_type (void) G_GNUC_CONST; 1911s # 1911s # #if GLIB_CHECK_VERSION(2, 44, 0) 1911s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteProxy, g_object_unref) 1911s # #endif 1911s # 1911s # void com_acme_coyote_proxy_new ( 1911s # GDBusConnection *connection, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data); 1911s # ComAcmeCoyote *com_acme_coyote_proxy_new_finish ( 1911s # GAsyncResult *res, 1911s # GError **error); 1911s # ComAcmeCoyote *com_acme_coyote_proxy_new_sync ( 1911s # GDBusConnection *connection, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GError **error); 1911s # 1911s # void com_acme_coyote_proxy_new_for_bus ( 1911s # GBusType bus_type, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data); 1911s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_finish ( 1911s # GAsyncResult *res, 1911s # GError **error); 1911s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_sync ( 1911s # GBusType bus_type, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GError **error); 1911s # 1911s # 1911s # /* ---- */ 1911s # 1911s # #define TYPE_COM_ACME_COYOTE_SKELETON (com_acme_coyote_skeleton_get_type ()) 1911s # #define COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeleton)) 1911s # #define COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1911s # #define COM_ACME_COYOTE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1911s # #define IS_COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_SKELETON)) 1911s # #define IS_COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_SKELETON)) 1911s # 1911s # typedef struct _ComAcmeCoyoteSkeleton ComAcmeCoyoteSkeleton; 1911s # typedef struct _ComAcmeCoyoteSkeletonClass ComAcmeCoyoteSkeletonClass; 1911s # typedef struct _ComAcmeCoyoteSkeletonPrivate ComAcmeCoyoteSkeletonPrivate; 1911s # 1911s # struct _ComAcmeCoyoteSkeleton 1911s # { 1911s # /*< private >*/ 1911s # GDBusInterfaceSkeleton parent_instance; 1911s # ComAcmeCoyoteSkeletonPrivate *priv; 1911s # }; 1911s # 1911s # struct _ComAcmeCoyoteSkeletonClass 1911s # { 1911s # GDBusInterfaceSkeletonClass parent_class; 1911s # }; 1911s # 1911s # GType com_acme_coyote_skeleton_get_type (void) G_GNUC_CONST; 1911s # 1911s # #if GLIB_CHECK_VERSION(2, 44, 0) 1911s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteSkeleton, g_object_unref) 1911s # #endif 1911s # 1911s # ComAcmeCoyote *com_acme_coyote_skeleton_new (void); 1911s # 1911s # 1911s # /* ------------------------------------------------------------------------ */ 1911s # /* Declarations for org.project.Bar.Frobnicator */ 1911s # 1911s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR (org_project_bar_frobnicator_get_type ()) 1911s # #define ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicator)) 1911s # #define IS_ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR)) 1911s # #define ORG_PROJECT_BAR_FROBNICATOR_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicatorIface)) 1911s # 1911s # struct _OrgProjectBarFrobnicator; 1911s # typedef struct _OrgProjectBarFrobnicator OrgProjectBarFrobnicator; 1911s # typedef struct _OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorIface; 1911s # 1911s # struct _OrgProjectBarFrobnicatorIface 1911s # { 1911s # GTypeInterface parent_iface; 1911s # 1911s # gboolean (*handle_random_method) ( 1911s # OrgProjectBarFrobnicator *object, 1911s # GDBusMethodInvocation *invocation); 1911s # 1911s # }; 1911s # 1911s # GType org_project_bar_frobnicator_get_type (void) G_GNUC_CONST; 1911s # 1911s # GDBusInterfaceInfo *org_project_bar_frobnicator_interface_info (void); 1911s # guint org_project_bar_frobnicator_override_properties (GObjectClass *klass, guint property_id_begin); 1911s # 1911s # 1911s # /* D-Bus method call completion functions: */ 1911s # void org_project_bar_frobnicator_complete_random_method ( 1911s # OrgProjectBarFrobnicator *object, 1911s # GDBusMethodInvocation *invocation); 1911s # 1911s # 1911s # 1911s # /* D-Bus method calls: */ 1911s # void org_project_bar_frobnicator_call_random_method ( 1911s # OrgProjectBarFrobnicator *proxy, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data); 1911s # 1911s # gboolean org_project_bar_frobnicator_call_random_method_finish ( 1911s # OrgProjectBarFrobnicator *proxy, 1911s # GAsyncResult *res, 1911s # GError **error); 1911s # 1911s # gboolean org_project_bar_frobnicator_call_random_method_sync ( 1911s # OrgProjectBarFrobnicator *proxy, 1911s # GCancellable *cancellable, 1911s # GError **error); 1911s # 1911s # 1911s # 1911s # /* ---- */ 1911s # 1911s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY (org_project_bar_frobnicator_proxy_get_type ()) 1911s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxy)) 1911s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1911s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1911s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1911s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1911s # 1911s # typedef struct _OrgProjectBarFrobnicatorProxy OrgProjectBarFrobnicatorProxy; 1911s # typedef struct _OrgProjectBarFrobnicatorProxyClass OrgProjectBarFrobnicatorProxyClass; 1911s # typedef struct _OrgProjectBarFrobnicatorProxyPrivate OrgProjectBarFrobnicatorProxyPrivate; 1911s # 1911s # struct _OrgProjectBarFrobnicatorProxy 1911s # { 1911s # /*< private >*/ 1911s # GDBusProxy parent_instance; 1911s # OrgProjectBarFrobnicatorProxyPrivate *priv; 1911s # }; 1911s # 1911s # struct _OrgProjectBarFrobnicatorProxyClass 1911s # { 1911s # GDBusProxyClass parent_class; 1911s # }; 1911s # 1911s # GType org_project_bar_frobnicator_proxy_get_type (void) G_GNUC_CONST; 1911s # 1911s # #if GLIB_CHECK_VERSION(2, 44, 0) 1911s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorProxy, g_object_unref) 1911s # #endif 1911s # 1911s # void org_project_bar_frobnicator_proxy_new ( 1911s # GDBusConnection *connection, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data); 1911s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_finish ( 1911s # GAsyncResult *res, 1911s # GError **error); 1911s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_sync ( 1911s # GDBusConnection *connection, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GError **error); 1911s # 1911s # void org_project_bar_frobnicator_proxy_new_for_bus ( 1911s # GBusType bus_type, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data); 1911s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1911s # GAsyncResult *res, 1911s # GError **error); 1911s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1911s # GBusType bus_type, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GError **error); 1911s # 1911s # 1911s # /* ---- */ 1911s # 1911s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON (org_project_bar_frobnicator_skeleton_get_type ()) 1911s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeleton)) 1911s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1911s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1911s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1911s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1911s # 1911s # typedef struct _OrgProjectBarFrobnicatorSkeleton OrgProjectBarFrobnicatorSkeleton; 1911s # typedef struct _OrgProjectBarFrobnicatorSkeletonClass OrgProjectBarFrobnicatorSkeletonClass; 1911s # typedef struct _OrgProjectBarFrobnicatorSkeletonPrivate OrgProjectBarFrobnicatorSkeletonPrivate; 1911s # 1911s # struct _OrgProjectBarFrobnicatorSkeleton 1911s # { 1911s # /*< private >*/ 1911s # GDBusInterfaceSkeleton parent_instance; 1911s # OrgProjectBarFrobnicatorSkeletonPrivate *priv; 1911s # }; 1911s # 1911s # struct _OrgProjectBarFrobnicatorSkeletonClass 1911s # { 1911s # GDBusInterfaceSkeletonClass parent_class; 1911s # }; 1911s # 1911s # GType org_project_bar_frobnicator_skeleton_get_type (void) G_GNUC_CONST; 1911s # 1911s # #if GLIB_CHECK_VERSION(2, 44, 0) 1911s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorSkeleton, g_object_unref) 1911s # #endif 1911s # 1911s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_skeleton_new (void); 1911s # 1911s # 1911s # G_END_DECLS 1911s # 1911s # #endif /* __STDOUT__ */ 1911s # Error: 1911s # 1911s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpzugf51zh/tmpw1ynnn032.xml', '/tmp/tmpzugf51zh/tmpu98yfgad1.xml', '--output', '-', '--header'] 1911s # Return code: 0 1911s # Output: 1911s # /* 1911s # * This file is generated by gdbus-codegen, do not modify it. 1911s # * 1911s # * The license of this code is the same as for the D-Bus interface description 1911s # * it was derived from. Note that it links to GLib, so must comply with the 1911s # * LGPL linking clauses. 1911s # */ 1911s # 1911s # #ifndef __STDOUT__ 1911s # #define __STDOUT__ 1911s # 1911s # #include 1911s # 1911s # G_BEGIN_DECLS 1911s # 1911s # 1911s # /* ------------------------------------------------------------------------ */ 1911s # /* Declarations for com.acme.Coyote */ 1911s # 1911s # #define TYPE_COM_ACME_COYOTE (com_acme_coyote_get_type ()) 1911s # #define COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyote)) 1911s # #define IS_COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE)) 1911s # #define COM_ACME_COYOTE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyoteIface)) 1911s # 1911s # struct _ComAcmeCoyote; 1911s # typedef struct _ComAcmeCoyote ComAcmeCoyote; 1911s # typedef struct _ComAcmeCoyoteIface ComAcmeCoyoteIface; 1911s # 1911s # struct _ComAcmeCoyoteIface 1911s # { 1911s # GTypeInterface parent_iface; 1911s # 1911s # 1911s # 1911s # gboolean (*handle_attack) ( 1911s # ComAcmeCoyote *object, 1911s # GDBusMethodInvocation *invocation); 1911s # 1911s # gboolean (*handle_run) ( 1911s # ComAcmeCoyote *object, 1911s # GDBusMethodInvocation *invocation); 1911s # 1911s # gboolean (*handle_sleep) ( 1911s # ComAcmeCoyote *object, 1911s # GDBusMethodInvocation *invocation); 1911s # 1911s # const gchar * (*get_mood) (ComAcmeCoyote *object); 1911s # 1911s # void (*surprised) ( 1911s # ComAcmeCoyote *object); 1911s # 1911s # }; 1911s # 1911s # GType com_acme_coyote_get_type (void) G_GNUC_CONST; 1911s # 1911s # GDBusInterfaceInfo *com_acme_coyote_interface_info (void); 1911s # guint com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin); 1911s # 1911s # 1911s # /* D-Bus method call completion functions: */ 1911s # void com_acme_coyote_complete_run ( 1911s # ComAcmeCoyote *object, 1911s # GDBusMethodInvocation *invocation); 1911s # 1911s # void com_acme_coyote_complete_sleep ( 1911s # ComAcmeCoyote *object, 1911s # GDBusMethodInvocation *invocation); 1911s # 1911s # void com_acme_coyote_complete_attack ( 1911s # ComAcmeCoyote *object, 1911s # GDBusMethodInvocation *invocation); 1911s # 1911s # 1911s # 1911s # /* D-Bus signal emissions functions: */ 1911s # void com_acme_coyote_emit_surprised ( 1911s # ComAcmeCoyote *object); 1911s # 1911s # 1911s # 1911s # /* D-Bus method calls: */ 1911s # void com_acme_coyote_call_run ( 1911s # ComAcmeCoyote *proxy, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data); 1911s # 1911s # gboolean com_acme_coyote_call_run_finish ( 1911s # ComAcmeCoyote *proxy, 1911s # GAsyncResult *res, 1911s # GError **error); 1911s # 1911s # gboolean com_acme_coyote_call_run_sync ( 1911s # ComAcmeCoyote *proxy, 1911s # GCancellable *cancellable, 1911s # GError **error); 1911s # 1911s # void com_acme_coyote_call_sleep ( 1911s # ComAcmeCoyote *proxy, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data); 1911s # 1911s # gboolean com_acme_coyote_call_sleep_finish ( 1911s # ComAcmeCoyote *proxy, 1911s # GAsyncResult *res, 1911s # GError **error); 1911s # 1911s # gboolean com_acme_coyote_call_sleep_sync ( 1911s # ComAcmeCoyote *proxy, 1911s # GCancellable *cancellable, 1911s # GError **error); 1911s # 1911s # void com_acme_coyote_call_attack ( 1911s # ComAcmeCoyote *proxy, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data); 1911s # 1911s # gboolean com_acme_coyote_call_attack_finish ( 1911s # ComAcmeCoyote *proxy, 1911s # GAsyncResult *res, 1911s # GError **error); 1911s # 1911s # gboolean com_acme_coyote_call_attack_sync ( 1911s # ComAcmeCoyote *proxy, 1911s # GCancellable *cancellable, 1911s # GError **error); 1911s # 1911s # 1911s # 1911s # /* D-Bus property accessors: */ 1911s # const gchar *com_acme_coyote_get_mood (ComAcmeCoyote *object); 1911s # gchar *com_acme_coyote_dup_mood (ComAcmeCoyote *object); 1911s # void com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value); 1911s # 1911s # 1911s # /* ---- */ 1911s # 1911s # #define TYPE_COM_ACME_COYOTE_PROXY (com_acme_coyote_proxy_get_type ()) 1911s # #define COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxy)) 1911s # #define COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1911s # #define COM_ACME_COYOTE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1911s # #define IS_COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_PROXY)) 1911s # #define IS_COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_PROXY)) 1911s # 1911s # typedef struct _ComAcmeCoyoteProxy ComAcmeCoyoteProxy; 1911s # typedef struct _ComAcmeCoyoteProxyClass ComAcmeCoyoteProxyClass; 1911s # typedef struct _ComAcmeCoyoteProxyPrivate ComAcmeCoyoteProxyPrivate; 1911s # 1911s # struct _ComAcmeCoyoteProxy 1911s # { 1911s # /*< private >*/ 1911s # GDBusProxy parent_instance; 1911s # ComAcmeCoyoteProxyPrivate *priv; 1911s # }; 1911s # 1911s # struct _ComAcmeCoyoteProxyClass 1911s # { 1911s # GDBusProxyClass parent_class; 1911s # }; 1911s # 1911s # GType com_acme_coyote_proxy_get_type (void) G_GNUC_CONST; 1911s # 1911s # #if GLIB_CHECK_VERSION(2, 44, 0) 1911s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteProxy, g_object_unref) 1911s # #endif 1911s # 1911s # void com_acme_coyote_proxy_new ( 1911s # GDBusConnection *connection, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data); 1911s # ComAcmeCoyote *com_acme_coyote_proxy_new_finish ( 1911s # GAsyncResult *res, 1911s # GError **error); 1911s # ComAcmeCoyote *com_acme_coyote_proxy_new_sync ( 1911s # GDBusConnection *connection, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GError **error); 1911s # 1911s # void com_acme_coyote_proxy_new_for_bus ( 1911s # GBusType bus_type, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data); 1911s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_finish ( 1911s # GAsyncResult *res, 1911s # GError **error); 1911s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_sync ( 1911s # GBusType bus_type, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GError **error); 1911s # 1911s # 1911s # /* ---- */ 1911s # 1911s # #define TYPE_COM_ACME_COYOTE_SKELETON (com_acme_coyote_skeleton_get_type ()) 1911s # #define COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeleton)) 1911s # #define COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1911s # #define COM_ACME_COYOTE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1911s # #define IS_COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_SKELETON)) 1911s # #define IS_COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_SKELETON)) 1911s # 1911s # typedef struct _ComAcmeCoyoteSkeleton ComAcmeCoyoteSkeleton; 1911s # typedef struct _ComAcmeCoyoteSkeletonClass ComAcmeCoyoteSkeletonClass; 1911s # typedef struct _ComAcmeCoyoteSkeletonPrivate ComAcmeCoyoteSkeletonPrivate; 1911s # 1911s # struct _ComAcmeCoyoteSkeleton 1911s # { 1911s # /*< private >*/ 1911s # GDBusInterfaceSkeleton parent_instance; 1911s # ComAcmeCoyoteSkeletonPrivate *priv; 1911s # }; 1911s # 1911s # struct _ComAcmeCoyoteSkeletonClass 1911s # { 1911s # GDBusInterfaceSkeletonClass parent_class; 1911s # }; 1911s # 1911s # GType com_acme_coyote_skeleton_get_type (void) G_GNUC_CONST; 1911s # 1911s # #if GLIB_CHECK_VERSION(2, 44, 0) 1911s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteSkeleton, g_object_unref) 1911s # #endif 1911s # 1911s # ComAcmeCoyote *com_acme_coyote_skeleton_new (void); 1911s # 1911s # 1911s # /* ------------------------------------------------------------------------ */ 1911s # /* Declarations for org.project.Bar.Frobnicator */ 1911s # 1911s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR (org_project_bar_frobnicator_get_type ()) 1911s # #define ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicator)) 1911s # #define IS_ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR)) 1911s # #define ORG_PROJECT_BAR_FROBNICATOR_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicatorIface)) 1911s # 1911s # struct _OrgProjectBarFrobnicator; 1911s # typedef struct _OrgProjectBarFrobnicator OrgProjectBarFrobnicator; 1911s # typedef struct _OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorIface; 1911s # 1911s # struct _OrgProjectBarFrobnicatorIface 1911s # { 1911s # GTypeInterface parent_iface; 1911s # 1911s # gboolean (*handle_random_method) ( 1911s # OrgProjectBarFrobnicator *object, 1911s # GDBusMethodInvocation *invocation); 1911s # 1911s # }; 1911s # 1911s # GType org_project_bar_frobnicator_get_type (void) G_GNUC_CONST; 1911s # 1911s # GDBusInterfaceInfo *org_project_bar_frobnicator_interface_info (void); 1911s # guint org_project_bar_frobnicator_override_properties (GObjectClass *klass, guint property_id_begin); 1911s # 1911s # 1911s # /* D-Bus method call completion functions: */ 1911s # void org_project_bar_frobnicator_complete_random_method ( 1911s # OrgProjectBarFrobnicator *object, 1911s # GDBusMethodInvocation *invocation); 1911s # 1911s # 1911s # 1911s # /* D-Bus method calls: */ 1911s # void org_project_bar_frobnicator_call_random_method ( 1911s # OrgProjectBarFrobnicator *proxy, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data); 1911s # 1911s # gboolean org_project_bar_frobnicator_call_random_method_finish ( 1911s # OrgProjectBarFrobnicator *proxy, 1911s # GAsyncResult *res, 1911s # GError **error); 1911s # 1911s # gboolean org_project_bar_frobnicator_call_random_method_sync ( 1911s # OrgProjectBarFrobnicator *proxy, 1911s # GCancellable *cancellable, 1911s # GError **error); 1911s # 1911s # 1911s # 1911s # /* ---- */ 1911s # 1911s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY (org_project_bar_frobnicator_proxy_get_type ()) 1911s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxy)) 1911s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1911s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1911s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1911s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1911s # 1911s # typedef struct _OrgProjectBarFrobnicatorProxy OrgProjectBarFrobnicatorProxy; 1911s # typedef struct _OrgProjectBarFrobnicatorProxyClass OrgProjectBarFrobnicatorProxyClass; 1911s # typedef struct _OrgProjectBarFrobnicatorProxyPrivate OrgProjectBarFrobnicatorProxyPrivate; 1911s # 1911s # struct _OrgProjectBarFrobnicatorProxy 1911s # { 1911s # /*< private >*/ 1911s # GDBusProxy parent_instance; 1911s # OrgProjectBarFrobnicatorProxyPrivate *priv; 1911s # }; 1911s # 1911s # struct _OrgProjectBarFrobnicatorProxyClass 1911s # { 1911s # GDBusProxyClass parent_class; 1911s # }; 1911s # 1911s # GType org_project_bar_frobnicator_proxy_get_type (void) G_GNUC_CONST; 1911s # 1911s # #if GLIB_CHECK_VERSION(2, 44, 0) 1911s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorProxy, g_object_unref) 1911s # #endif 1911s # 1911s # void org_project_bar_frobnicator_proxy_new ( 1911s # GDBusConnection *connection, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data); 1911s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_finish ( 1911s # GAsyncResult *res, 1911s # GError **error); 1911s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_sync ( 1911s # GDBusConnection *connection, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GError **error); 1911s # 1911s # void org_project_bar_frobnicator_proxy_new_for_bus ( 1911s # GBusType bus_type, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data); 1911s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1911s # GAsyncResult *res, 1911s # GError **error); 1911s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1911s # GBusType bus_type, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GError **error); 1911s # 1911s # 1911s # /* ---- */ 1911s # 1911s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON (org_project_bar_frobnicator_skeleton_get_type ()) 1911s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeleton)) 1911s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1911s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1911s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1911s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1911s # 1911s # typedef struct _OrgProjectBarFrobnicatorSkeleton OrgProjectBarFrobnicatorSkeleton; 1911s # typedef struct _OrgProjectBarFrobnicatorSkeletonClass OrgProjectBarFrobnicatorSkeletonClass; 1911s # typedef struct _OrgProjectBarFrobnicatorSkeletonPrivate OrgProjectBarFrobnicatorSkeletonPrivate; 1911s # 1911s # struct _OrgProjectBarFrobnicatorSkeleton 1911s # { 1911s # /*< private >*/ 1911s # GDBusInterfaceSkeleton parent_instance; 1911s # OrgProjectBarFrobnicatorSkeletonPrivate *priv; 1911s # }; 1911s # 1911s # struct _OrgProjectBarFrobnicatorSkeletonClass 1911s # { 1911s # GDBusInterfaceSkeletonClass parent_class; 1911s # }; 1911s # 1911s # GType org_project_bar_frobnicator_skeleton_get_type (void) G_GNUC_CONST; 1911s # 1911s # #if GLIB_CHECK_VERSION(2, 44, 0) 1911s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorSkeleton, g_object_unref) 1911s # #endif 1911s # 1911s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_skeleton_new (void); 1911s # 1911s # 1911s # G_END_DECLS 1911s # 1911s # #endif /* __STDOUT__ */ 1911s # Error: 1911s # 1911s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpzugf51zh/tmpu98yfgad1.xml', '/tmp/tmpzugf51zh/tmpw1ynnn032.xml', '--output', '-', '--body'] 1911s # Return code: 0 1911s # Output: 1911s # /* 1911s # * This file is generated by gdbus-codegen, do not modify it. 1911s # * 1911s # * The license of this code is the same as for the D-Bus interface description 1911s # * it was derived from. Note that it links to GLib, so must comply with the 1911s # * LGPL linking clauses. 1911s # */ 1911s # 1911s # #ifdef HAVE_CONFIG_H 1911s # # include "config.h" 1911s # #endif 1911s # 1911s # #include 1911s # #ifdef G_OS_UNIX 1911s # # include 1911s # #endif 1911s # 1911s # #ifdef G_ENABLE_DEBUG 1911s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1911s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1911s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1911s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1911s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1911s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1911s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1911s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1911s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1911s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1911s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1911s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1911s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1911s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1911s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1911s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1911s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1911s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1911s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1911s # #else /* !G_ENABLE_DEBUG */ 1911s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1911s # * Do not access GValues directly in your code. Instead, use the 1911s # * g_value_get_*() functions 1911s # */ 1911s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1911s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1911s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1911s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1911s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1911s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1911s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1911s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1911s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1911s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1911s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1911s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1911s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1911s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1911s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1911s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1911s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1911s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1911s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1911s # #endif /* !G_ENABLE_DEBUG */ 1911s # 1911s # typedef struct 1911s # { 1911s # GDBusArgInfo parent_struct; 1911s # gboolean use_gvariant; 1911s # } _ExtendedGDBusArgInfo; 1911s # 1911s # typedef struct 1911s # { 1911s # GDBusMethodInfo parent_struct; 1911s # const gchar *signal_name; 1911s # gboolean pass_fdlist; 1911s # } _ExtendedGDBusMethodInfo; 1911s # 1911s # typedef struct 1911s # { 1911s # GDBusSignalInfo parent_struct; 1911s # const gchar *signal_name; 1911s # } _ExtendedGDBusSignalInfo; 1911s # 1911s # typedef struct 1911s # { 1911s # GDBusPropertyInfo parent_struct; 1911s # const gchar *hyphen_name; 1911s # guint use_gvariant : 1; 1911s # guint emits_changed_signal : 1; 1911s # } _ExtendedGDBusPropertyInfo; 1911s # 1911s # typedef struct 1911s # { 1911s # GDBusInterfaceInfo parent_struct; 1911s # const gchar *hyphen_name; 1911s # } _ExtendedGDBusInterfaceInfo; 1911s # 1911s # typedef struct 1911s # { 1911s # const _ExtendedGDBusPropertyInfo *info; 1911s # guint prop_id; 1911s # GValue orig_value; /* the value before the change */ 1911s # } ChangedProperty; 1911s # 1911s # static void 1911s # _changed_property_free (ChangedProperty *data) 1911s # { 1911s # g_value_unset (&data->orig_value); 1911s # g_free (data); 1911s # } 1911s # 1911s # static gboolean 1911s # _g_strv_equal0 (gchar **a, gchar **b) 1911s # { 1911s # gboolean ret = FALSE; 1911s # guint n; 1911s # if (a == NULL && b == NULL) 1911s # { 1911s # ret = TRUE; 1911s # goto out; 1911s # } 1911s # if (a == NULL || b == NULL) 1911s # goto out; 1911s # if (g_strv_length (a) != g_strv_length (b)) 1911s # goto out; 1911s # for (n = 0; a[n] != NULL; n++) 1911s # if (g_strcmp0 (a[n], b[n]) != 0) 1911s # goto out; 1911s # ret = TRUE; 1911s # out: 1911s # return ret; 1911s # } 1911s # 1911s # static gboolean 1911s # _g_variant_equal0 (GVariant *a, GVariant *b) 1911s # { 1911s # gboolean ret = FALSE; 1911s # if (a == NULL && b == NULL) 1911s # { 1911s # ret = TRUE; 1911s # goto out; 1911s # } 1911s # if (a == NULL || b == NULL) 1911s # goto out; 1911s # ret = g_variant_equal (a, b); 1911s # out: 1911s # return ret; 1911s # } 1911s # 1911s # G_GNUC_UNUSED static gboolean 1911s # _g_value_equal (const GValue *a, const GValue *b) 1911s # { 1911s # gboolean ret = FALSE; 1911s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1911s # switch (G_VALUE_TYPE (a)) 1911s # { 1911s # case G_TYPE_BOOLEAN: 1911s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1911s # break; 1911s # case G_TYPE_UCHAR: 1911s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1911s # break; 1911s # case G_TYPE_INT: 1911s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1911s # break; 1911s # case G_TYPE_UINT: 1911s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1911s # break; 1911s # case G_TYPE_INT64: 1911s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1911s # break; 1911s # case G_TYPE_UINT64: 1911s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1911s # break; 1911s # case G_TYPE_DOUBLE: 1911s # { 1911s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1911s # gdouble da = g_value_get_double (a); 1911s # gdouble db = g_value_get_double (b); 1911s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1911s # } 1911s # break; 1911s # case G_TYPE_STRING: 1911s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1911s # break; 1911s # case G_TYPE_VARIANT: 1911s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1911s # break; 1911s # default: 1911s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1911s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1911s # else 1911s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1911s # break; 1911s # } 1911s # return ret; 1911s # } 1911s # 1911s # static void 1911s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1911s # GClosure *closure, 1911s # GValue *return_value, 1911s # unsigned int n_param_values, 1911s # const GValue *param_values, 1911s # void *invocation_hint G_GNUC_UNUSED, 1911s # void *marshal_data) 1911s # { 1911s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1911s # (void *data1, 1911s # GDBusMethodInvocation *arg_method_invocation, 1911s # void *data2); 1911s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1911s # GCClosure *cc = (GCClosure*) closure; 1911s # void *data1, *data2; 1911s # gboolean v_return; 1911s # 1911s # g_return_if_fail (return_value != NULL); 1911s # g_return_if_fail (n_param_values == 2); 1911s # 1911s # if (G_CCLOSURE_SWAP_DATA (closure)) 1911s # { 1911s # data1 = closure->data; 1911s # data2 = g_value_peek_pointer (param_values + 0); 1911s # } 1911s # else 1911s # { 1911s # data1 = g_value_peek_pointer (param_values + 0); 1911s # data2 = closure->data; 1911s # } 1911s # 1911s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1911s # (marshal_data ? marshal_data : cc->callback); 1911s # 1911s # v_return = 1911s # callback (data1, 1911s # g_marshal_value_peek_object (param_values + 1), 1911s # data2); 1911s # 1911s # g_value_set_boolean (return_value, v_return); 1911s # } 1911s # 1911s # /* ------------------------------------------------------------------------ 1911s # * Code for interface com.acme.Coyote 1911s # * ------------------------------------------------------------------------ 1911s # */ 1911s # 1911s # /** 1911s # * SECTION:ComAcmeCoyote 1911s # * @title: ComAcmeCoyote 1911s # * @short_description: Generated C code for the com.acme.Coyote D-Bus interface 1911s # * 1911s # * This section contains code for working with the com.acme.Coyote D-Bus interface in C. 1911s # */ 1911s # 1911s # enum 1911s # { 1911s # _COM_ACME_COYOTE_SURPRISED, 1911s # }; 1911s # 1911s # static unsigned _COM_ACME_COYOTE_SIGNALS[1] = { 0 }; 1911s # 1911s # /* ---- Introspection data for com.acme.Coyote ---- */ 1911s # 1911s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_run = 1911s # { 1911s # { 1911s # -1, 1911s # (gchar *) "Run", 1911s # NULL, 1911s # NULL, 1911s # NULL 1911s # }, 1911s # "handle-run", 1911s # FALSE 1911s # }; 1911s # 1911s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_sleep = 1911s # { 1911s # { 1911s # -1, 1911s # (gchar *) "Sleep", 1911s # NULL, 1911s # NULL, 1911s # NULL 1911s # }, 1911s # "handle-sleep", 1911s # FALSE 1911s # }; 1911s # 1911s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_attack = 1911s # { 1911s # { 1911s # -1, 1911s # (gchar *) "Attack", 1911s # NULL, 1911s # NULL, 1911s # NULL 1911s # }, 1911s # "handle-attack", 1911s # FALSE 1911s # }; 1911s # 1911s # static const GDBusMethodInfo * const _com_acme_coyote_method_info_pointers[] = 1911s # { 1911s # &_com_acme_coyote_method_info_run.parent_struct, 1911s # &_com_acme_coyote_method_info_sleep.parent_struct, 1911s # &_com_acme_coyote_method_info_attack.parent_struct, 1911s # NULL 1911s # }; 1911s # 1911s # static const _ExtendedGDBusSignalInfo _com_acme_coyote_signal_info_surprised = 1911s # { 1911s # { 1911s # -1, 1911s # (gchar *) "Surprised", 1911s # NULL, 1911s # NULL 1911s # }, 1911s # "surprised" 1911s # }; 1911s # 1911s # static const GDBusSignalInfo * const _com_acme_coyote_signal_info_pointers[] = 1911s # { 1911s # &_com_acme_coyote_signal_info_surprised.parent_struct, 1911s # NULL 1911s # }; 1911s # 1911s # static const _ExtendedGDBusPropertyInfo _com_acme_coyote_property_info_mood = 1911s # { 1911s # { 1911s # -1, 1911s # (gchar *) "Mood", 1911s # (gchar *) "s", 1911s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1911s # NULL 1911s # }, 1911s # "mood", 1911s # FALSE, 1911s # TRUE 1911s # }; 1911s # 1911s # static const GDBusPropertyInfo * const _com_acme_coyote_property_info_pointers[] = 1911s # { 1911s # &_com_acme_coyote_property_info_mood.parent_struct, 1911s # NULL 1911s # }; 1911s # 1911s # static const _ExtendedGDBusInterfaceInfo _com_acme_coyote_interface_info = 1911s # { 1911s # { 1911s # -1, 1911s # (gchar *) "com.acme.Coyote", 1911s # (GDBusMethodInfo **) &_com_acme_coyote_method_info_pointers, 1911s # (GDBusSignalInfo **) &_com_acme_coyote_signal_info_pointers, 1911s # (GDBusPropertyInfo **) &_com_acme_coyote_property_info_pointers, 1911s # NULL 1911s # }, 1911s # "com-acme-coyote", 1911s # }; 1911s # 1911s # 1911s # /** 1911s # * com_acme_coyote_interface_info: 1911s # * 1911s # * Gets a machine-readable description of the com.acme.Coyote D-Bus interface. 1911s # * 1911s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1911s # */ 1911s # GDBusInterfaceInfo * 1911s # com_acme_coyote_interface_info (void) 1911s # { 1911s # return (GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct; 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_override_properties: 1911s # * @klass: The class structure for a #GObject derived class. 1911s # * @property_id_begin: The property id to assign to the first overridden property. 1911s # * 1911s # * Overrides all #GObject properties in the #ComAcmeCoyote interface for a concrete class. 1911s # * The properties are overridden in the order they are defined. 1911s # * 1911s # * Returns: The last property id. 1911s # */ 1911s # guint 1911s # com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin) 1911s # { 1911s # g_object_class_override_property (klass, property_id_begin++, "mood"); 1911s # return property_id_begin - 1; 1911s # } 1911s # 1911s # 1911s # inline static void 1911s # com_acme_coyote_signal_marshal_surprised ( 1911s # GClosure *closure, 1911s # GValue *return_value, 1911s # unsigned int n_param_values, 1911s # const GValue *param_values, 1911s # void *invocation_hint, 1911s # void *marshal_data) 1911s # { 1911s # g_cclosure_marshal_VOID__VOID (closure, 1911s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1911s # } 1911s # 1911s # inline static void 1911s # com_acme_coyote_method_marshal_run ( 1911s # GClosure *closure, 1911s # GValue *return_value, 1911s # unsigned int n_param_values, 1911s # const GValue *param_values, 1911s # void *invocation_hint, 1911s # void *marshal_data) 1911s # { 1911s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1911s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1911s # } 1911s # 1911s # inline static void 1911s # com_acme_coyote_method_marshal_sleep ( 1911s # GClosure *closure, 1911s # GValue *return_value, 1911s # unsigned int n_param_values, 1911s # const GValue *param_values, 1911s # void *invocation_hint, 1911s # void *marshal_data) 1911s # { 1911s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1911s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1911s # } 1911s # 1911s # inline static void 1911s # com_acme_coyote_method_marshal_attack ( 1911s # GClosure *closure, 1911s # GValue *return_value, 1911s # unsigned int n_param_values, 1911s # const GValue *param_values, 1911s # void *invocation_hint, 1911s # void *marshal_data) 1911s # { 1911s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1911s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1911s # } 1911s # 1911s # 1911s # /** 1911s # * ComAcmeCoyote: 1911s # * 1911s # * Abstract interface type for the D-Bus interface com.acme.Coyote. 1911s # */ 1911s # 1911s # /** 1911s # * ComAcmeCoyoteIface: 1911s # * @parent_iface: The parent interface. 1911s # * @handle_attack: Handler for the #ComAcmeCoyote::handle-attack signal. 1911s # * @handle_run: Handler for the #ComAcmeCoyote::handle-run signal. 1911s # * @handle_sleep: Handler for the #ComAcmeCoyote::handle-sleep signal. 1911s # * @get_mood: Getter for the #ComAcmeCoyote:mood property. 1911s # * @surprised: Handler for the #ComAcmeCoyote::surprised signal. 1911s # * 1911s # * Virtual table for the D-Bus interface com.acme.Coyote. 1911s # */ 1911s # 1911s # typedef ComAcmeCoyoteIface ComAcmeCoyoteInterface; 1911s # G_DEFINE_INTERFACE (ComAcmeCoyote, com_acme_coyote, G_TYPE_OBJECT) 1911s # 1911s # static void 1911s # com_acme_coyote_default_init (ComAcmeCoyoteIface *iface) 1911s # { 1911s # /* GObject signals for incoming D-Bus method calls: */ 1911s # /** 1911s # * ComAcmeCoyote::handle-run: 1911s # * @object: A #ComAcmeCoyote. 1911s # * @invocation: A #GDBusMethodInvocation. 1911s # * 1911s # * Signal emitted when a remote caller is invoking the Run() D-Bus method. 1911s # * 1911s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call com_acme_coyote_complete_run() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1911s # * 1911s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1911s # */ 1911s # g_signal_new ("handle-run", 1911s # G_TYPE_FROM_INTERFACE (iface), 1911s # G_SIGNAL_RUN_LAST, 1911s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_run), 1911s # g_signal_accumulator_true_handled, 1911s # NULL, 1911s # com_acme_coyote_method_marshal_run, 1911s # G_TYPE_BOOLEAN, 1911s # 1, 1911s # G_TYPE_DBUS_METHOD_INVOCATION); 1911s # 1911s # /** 1911s # * ComAcmeCoyote::handle-sleep: 1911s # * @object: A #ComAcmeCoyote. 1911s # * @invocation: A #GDBusMethodInvocation. 1911s # * 1911s # * Signal emitted when a remote caller is invoking the Sleep() D-Bus method. 1911s # * 1911s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call com_acme_coyote_complete_sleep() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1911s # * 1911s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1911s # */ 1911s # g_signal_new ("handle-sleep", 1911s # G_TYPE_FROM_INTERFACE (iface), 1911s # G_SIGNAL_RUN_LAST, 1911s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_sleep), 1911s # g_signal_accumulator_true_handled, 1911s # NULL, 1911s # com_acme_coyote_method_marshal_sleep, 1911s # G_TYPE_BOOLEAN, 1911s # 1, 1911s # G_TYPE_DBUS_METHOD_INVOCATION); 1911s # 1911s # /** 1911s # * ComAcmeCoyote::handle-attack: 1911s # * @object: A #ComAcmeCoyote. 1911s # * @invocation: A #GDBusMethodInvocation. 1911s # * 1911s # * Signal emitted when a remote caller is invoking the Attack() D-Bus method. 1911s # * 1911s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call com_acme_coyote_complete_attack() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1911s # * 1911s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1911s # */ 1911s # g_signal_new ("handle-attack", 1911s # G_TYPE_FROM_INTERFACE (iface), 1911s # G_SIGNAL_RUN_LAST, 1911s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_attack), 1911s # g_signal_accumulator_true_handled, 1911s # NULL, 1911s # com_acme_coyote_method_marshal_attack, 1911s # G_TYPE_BOOLEAN, 1911s # 1, 1911s # G_TYPE_DBUS_METHOD_INVOCATION); 1911s # 1911s # /* GObject signals for received D-Bus signals: */ 1911s # /** 1911s # * ComAcmeCoyote::surprised: 1911s # * @object: A #ComAcmeCoyote. 1911s # * 1911s # * On the client-side, this signal is emitted whenever the D-Bus signal "Surprised" is received. 1911s # * 1911s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1911s # */ 1911s # _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED] = 1911s # g_signal_new ("surprised", 1911s # G_TYPE_FROM_INTERFACE (iface), 1911s # G_SIGNAL_RUN_LAST, 1911s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, surprised), 1911s # NULL, 1911s # NULL, 1911s # com_acme_coyote_signal_marshal_surprised, 1911s # G_TYPE_NONE, 1911s # 0); 1911s # 1911s # /* GObject properties for D-Bus properties: */ 1911s # /** 1911s # * ComAcmeCoyote:mood: 1911s # * 1911s # * Represents the D-Bus property "Mood". 1911s # * 1911s # * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side. 1911s # */ 1911s # g_object_interface_install_property (iface, 1911s # g_param_spec_string ("mood", "Mood", "Mood", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_get_mood: (skip) 1911s # * @object: A #ComAcmeCoyote. 1911s # * 1911s # * Gets the value of the "Mood" D-Bus property. 1911s # * 1911s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1911s # * 1911s # * The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where @object was constructed. Use com_acme_coyote_dup_mood() if on another thread. 1911s # * 1911s # * Returns: (transfer none) (nullable): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. 1911s # */ 1911s # const gchar * 1911s # com_acme_coyote_get_mood (ComAcmeCoyote *object) 1911s # { 1911s # g_return_val_if_fail (IS_COM_ACME_COYOTE (object), NULL); 1911s # 1911s # return COM_ACME_COYOTE_GET_IFACE (object)->get_mood (object); 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_dup_mood: (skip) 1911s # * @object: A #ComAcmeCoyote. 1911s # * 1911s # * Gets a copy of the "Mood" D-Bus property. 1911s # * 1911s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1911s # * 1911s # * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). 1911s # */ 1911s # gchar * 1911s # com_acme_coyote_dup_mood (ComAcmeCoyote *object) 1911s # { 1911s # gchar *value; 1911s # g_object_get (G_OBJECT (object), "mood", &value, NULL); 1911s # return value; 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_set_mood: (skip) 1911s # * @object: A #ComAcmeCoyote. 1911s # * @value: The value to set. 1911s # * 1911s # * Sets the "Mood" D-Bus property to @value. 1911s # * 1911s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1911s # */ 1911s # void 1911s # com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value) 1911s # { 1911s # g_object_set (G_OBJECT (object), "mood", value, NULL); 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_emit_surprised: 1911s # * @object: A #ComAcmeCoyote. 1911s # * 1911s # * Emits the "Surprised" D-Bus signal. 1911s # */ 1911s # void 1911s # com_acme_coyote_emit_surprised ( 1911s # ComAcmeCoyote *object) 1911s # { 1911s # g_signal_emit (object, _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED], 0); 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_call_run: 1911s # * @proxy: A #ComAcmeCoyoteProxy. 1911s # * @cancellable: (nullable): A #GCancellable or %NULL. 1911s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1911s # * @user_data: User data to pass to @callback. 1911s # * 1911s # * Asynchronously invokes the Run() D-Bus method on @proxy. 1911s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1911s # * You can then call com_acme_coyote_call_run_finish() to get the result of the operation. 1911s # * 1911s # * See com_acme_coyote_call_run_sync() for the synchronous, blocking version of this method. 1911s # */ 1911s # void 1911s # com_acme_coyote_call_run ( 1911s # ComAcmeCoyote *proxy, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data) 1911s # { 1911s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1911s # "Run", 1911s # g_variant_new ("()"), 1911s # G_DBUS_CALL_FLAGS_NONE, 1911s # -1, 1911s # cancellable, 1911s # callback, 1911s # user_data); 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_call_run_finish: 1911s # * @proxy: A #ComAcmeCoyoteProxy. 1911s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_run(). 1911s # * @error: Return location for error or %NULL. 1911s # * 1911s # * Finishes an operation started with com_acme_coyote_call_run(). 1911s # * 1911s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1911s # */ 1911s # gboolean 1911s # com_acme_coyote_call_run_finish ( 1911s # ComAcmeCoyote *proxy, 1911s # GAsyncResult *res, 1911s # GError **error) 1911s # { 1911s # GVariant *_ret; 1911s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1911s # if (_ret == NULL) 1911s # goto _out; 1911s # g_variant_get (_ret, 1911s # "()"); 1911s # g_variant_unref (_ret); 1911s # _out: 1911s # return _ret != NULL; 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_call_run_sync: 1911s # * @proxy: A #ComAcmeCoyoteProxy. 1911s # * @cancellable: (nullable): A #GCancellable or %NULL. 1911s # * @error: Return location for error or %NULL. 1911s # * 1911s # * Synchronously invokes the Run() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1911s # * 1911s # * See com_acme_coyote_call_run() for the asynchronous version of this method. 1911s # * 1911s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1911s # */ 1911s # gboolean 1911s # com_acme_coyote_call_run_sync ( 1911s # ComAcmeCoyote *proxy, 1911s # GCancellable *cancellable, 1911s # GError **error) 1911s # { 1911s # GVariant *_ret; 1911s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1911s # "Run", 1911s # g_variant_new ("()"), 1911s # G_DBUS_CALL_FLAGS_NONE, 1911s # -1, 1911s # cancellable, 1911s # error); 1911s # if (_ret == NULL) 1911s # goto _out; 1911s # g_variant_get (_ret, 1911s # "()"); 1911s # g_variant_unref (_ret); 1911s # _out: 1911s # return _ret != NULL; 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_call_sleep: 1911s # * @proxy: A #ComAcmeCoyoteProxy. 1911s # * @cancellable: (nullable): A #GCancellable or %NULL. 1911s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1911s # * @user_data: User data to pass to @callback. 1911s # * 1911s # * Asynchronously invokes the Sleep() D-Bus method on @proxy. 1911s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1911s # * You can then call com_acme_coyote_call_sleep_finish() to get the result of the operation. 1911s # * 1911s # * See com_acme_coyote_call_sleep_sync() for the synchronous, blocking version of this method. 1911s # */ 1911s # void 1911s # com_acme_coyote_call_sleep ( 1911s # ComAcmeCoyote *proxy, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data) 1911s # { 1911s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1911s # "Sleep", 1911s # g_variant_new ("()"), 1911s # G_DBUS_CALL_FLAGS_NONE, 1911s # -1, 1911s # cancellable, 1911s # callback, 1911s # user_data); 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_call_sleep_finish: 1911s # * @proxy: A #ComAcmeCoyoteProxy. 1911s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_sleep(). 1911s # * @error: Return location for error or %NULL. 1911s # * 1911s # * Finishes an operation started with com_acme_coyote_call_sleep(). 1911s # * 1911s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1911s # */ 1911s # gboolean 1911s # com_acme_coyote_call_sleep_finish ( 1911s # ComAcmeCoyote *proxy, 1911s # GAsyncResult *res, 1911s # GError **error) 1911s # { 1911s # GVariant *_ret; 1911s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1911s # if (_ret == NULL) 1911s # goto _out; 1911s # g_variant_get (_ret, 1911s # "()"); 1911s # g_variant_unref (_ret); 1911s # _out: 1911s # return _ret != NULL; 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_call_sleep_sync: 1911s # * @proxy: A #ComAcmeCoyoteProxy. 1911s # * @cancellable: (nullable): A #GCancellable or %NULL. 1911s # * @error: Return location for error or %NULL. 1911s # * 1911s # * Synchronously invokes the Sleep() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1911s # * 1911s # * See com_acme_coyote_call_sleep() for the asynchronous version of this method. 1911s # * 1911s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1911s # */ 1911s # gboolean 1911s # com_acme_coyote_call_sleep_sync ( 1911s # ComAcmeCoyote *proxy, 1911s # GCancellable *cancellable, 1911s # GError **error) 1911s # { 1911s # GVariant *_ret; 1911s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1911s # "Sleep", 1911s # g_variant_new ("()"), 1911s # G_DBUS_CALL_FLAGS_NONE, 1911s # -1, 1911s # cancellable, 1911s # error); 1911s # if (_ret == NULL) 1911s # goto _out; 1911s # g_variant_get (_ret, 1911s # "()"); 1911s # g_variant_unref (_ret); 1911s # _out: 1911s # return _ret != NULL; 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_call_attack: 1911s # * @proxy: A #ComAcmeCoyoteProxy. 1911s # * @cancellable: (nullable): A #GCancellable or %NULL. 1911s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1911s # * @user_data: User data to pass to @callback. 1911s # * 1911s # * Asynchronously invokes the Attack() D-Bus method on @proxy. 1911s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1911s # * You can then call com_acme_coyote_call_attack_finish() to get the result of the operation. 1911s # * 1911s # * See com_acme_coyote_call_attack_sync() for the synchronous, blocking version of this method. 1911s # */ 1911s # void 1911s # com_acme_coyote_call_attack ( 1911s # ComAcmeCoyote *proxy, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data) 1911s # { 1911s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1911s # "Attack", 1911s # g_variant_new ("()"), 1911s # G_DBUS_CALL_FLAGS_NONE, 1911s # -1, 1911s # cancellable, 1911s # callback, 1911s # user_data); 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_call_attack_finish: 1911s # * @proxy: A #ComAcmeCoyoteProxy. 1911s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_attack(). 1911s # * @error: Return location for error or %NULL. 1911s # * 1911s # * Finishes an operation started with com_acme_coyote_call_attack(). 1911s # * 1911s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1911s # */ 1911s # gboolean 1911s # com_acme_coyote_call_attack_finish ( 1911s # ComAcmeCoyote *proxy, 1911s # GAsyncResult *res, 1911s # GError **error) 1911s # { 1911s # GVariant *_ret; 1911s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1911s # if (_ret == NULL) 1911s # goto _out; 1911s # g_variant_get (_ret, 1911s # "()"); 1911s # g_variant_unref (_ret); 1911s # _out: 1911s # return _ret != NULL; 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_call_attack_sync: 1911s # * @proxy: A #ComAcmeCoyoteProxy. 1911s # * @cancellable: (nullable): A #GCancellable or %NULL. 1911s # * @error: Return location for error or %NULL. 1911s # * 1911s # * Synchronously invokes the Attack() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1911s # * 1911s # * See com_acme_coyote_call_attack() for the asynchronous version of this method. 1911s # * 1911s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1911s # */ 1911s # gboolean 1911s # com_acme_coyote_call_attack_sync ( 1911s # ComAcmeCoyote *proxy, 1911s # GCancellable *cancellable, 1911s # GError **error) 1911s # { 1911s # GVariant *_ret; 1911s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1911s # "Attack", 1911s # g_variant_new ("()"), 1911s # G_DBUS_CALL_FLAGS_NONE, 1911s # -1, 1911s # cancellable, 1911s # error); 1911s # if (_ret == NULL) 1911s # goto _out; 1911s # g_variant_get (_ret, 1911s # "()"); 1911s # g_variant_unref (_ret); 1911s # _out: 1911s # return _ret != NULL; 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_complete_run: 1911s # * @object: A #ComAcmeCoyote. 1911s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1911s # * 1911s # * Helper function used in service implementations to finish handling invocations of the Run() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1911s # * 1911s # * This method will free @invocation, you cannot use it afterwards. 1911s # */ 1911s # void 1911s # com_acme_coyote_complete_run ( 1911s # ComAcmeCoyote *object G_GNUC_UNUSED, 1911s # GDBusMethodInvocation *invocation) 1911s # { 1911s # g_dbus_method_invocation_return_value (invocation, 1911s # g_variant_new ("()")); 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_complete_sleep: 1911s # * @object: A #ComAcmeCoyote. 1911s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1911s # * 1911s # * Helper function used in service implementations to finish handling invocations of the Sleep() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1911s # * 1911s # * This method will free @invocation, you cannot use it afterwards. 1911s # */ 1911s # void 1911s # com_acme_coyote_complete_sleep ( 1911s # ComAcmeCoyote *object G_GNUC_UNUSED, 1911s # GDBusMethodInvocation *invocation) 1911s # { 1911s # g_dbus_method_invocation_return_value (invocation, 1911s # g_variant_new ("()")); 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_complete_attack: 1911s # * @object: A #ComAcmeCoyote. 1911s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1911s # * 1911s # * Helper function used in service implementations to finish handling invocations of the Attack() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1911s # * 1911s # * This method will free @invocation, you cannot use it afterwards. 1911s # */ 1911s # void 1911s # com_acme_coyote_complete_attack ( 1911s # ComAcmeCoyote *object G_GNUC_UNUSED, 1911s # GDBusMethodInvocation *invocation) 1911s # { 1911s # g_dbus_method_invocation_return_value (invocation, 1911s # g_variant_new ("()")); 1911s # } 1911s # 1911s # /* ------------------------------------------------------------------------ */ 1911s # 1911s # /** 1911s # * ComAcmeCoyoteProxy: 1911s # * 1911s # * The #ComAcmeCoyoteProxy structure contains only private data and should only be accessed using the provided API. 1911s # */ 1911s # 1911s # /** 1911s # * ComAcmeCoyoteProxyClass: 1911s # * @parent_class: The parent class. 1911s # * 1911s # * Class structure for #ComAcmeCoyoteProxy. 1911s # */ 1911s # 1911s # struct _ComAcmeCoyoteProxyPrivate 1911s # { 1911s # GData *qdata; 1911s # }; 1911s # 1911s # static void com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface); 1911s # 1911s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1911s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1911s # G_ADD_PRIVATE (ComAcmeCoyoteProxy) 1911s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1911s # 1911s # #else 1911s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1911s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1911s # 1911s # #endif 1911s # static void 1911s # com_acme_coyote_proxy_finalize (GObject *object) 1911s # { 1911s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1911s # g_datalist_clear (&proxy->priv->qdata); 1911s # G_OBJECT_CLASS (com_acme_coyote_proxy_parent_class)->finalize (object); 1911s # } 1911s # 1911s # static void 1911s # com_acme_coyote_proxy_get_property (GObject *object, 1911s # guint prop_id, 1911s # GValue *value, 1911s # GParamSpec *pspec G_GNUC_UNUSED) 1911s # { 1911s # const _ExtendedGDBusPropertyInfo *info; 1911s # GVariant *variant; 1911s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1911s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1911s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1911s # if (info->use_gvariant) 1911s # { 1911s # g_value_set_variant (value, variant); 1911s # } 1911s # else 1911s # { 1911s # if (variant != NULL) 1911s # g_dbus_gvariant_to_gvalue (variant, value); 1911s # } 1911s # if (variant != NULL) 1911s # g_variant_unref (variant); 1911s # } 1911s # 1911s # static void 1911s # com_acme_coyote_proxy_set_property_cb (GDBusProxy *proxy, 1911s # GAsyncResult *res, 1911s # gpointer user_data) 1911s # { 1911s # const _ExtendedGDBusPropertyInfo *info = user_data; 1911s # GError *error; 1911s # GVariant *_ret; 1911s # error = NULL; 1911s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1911s # if (!_ret) 1911s # { 1911s # g_warning ("Error setting property '%s' on interface com.acme.Coyote: %s (%s, %d)", 1911s # info->parent_struct.name, 1911s # error->message, g_quark_to_string (error->domain), error->code); 1911s # g_error_free (error); 1911s # } 1911s # else 1911s # { 1911s # g_variant_unref (_ret); 1911s # } 1911s # } 1911s # 1911s # static void 1911s # com_acme_coyote_proxy_set_property (GObject *object, 1911s # guint prop_id, 1911s # const GValue *value, 1911s # GParamSpec *pspec G_GNUC_UNUSED) 1911s # { 1911s # const _ExtendedGDBusPropertyInfo *info; 1911s # GVariant *variant; 1911s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1911s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1911s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1911s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1911s # "org.freedesktop.DBus.Properties.Set", 1911s # g_variant_new ("(ssv)", "com.acme.Coyote", info->parent_struct.name, variant), 1911s # G_DBUS_CALL_FLAGS_NONE, 1911s # -1, 1911s # NULL, (GAsyncReadyCallback) com_acme_coyote_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1911s # g_variant_unref (variant); 1911s # } 1911s # 1911s # static void 1911s # com_acme_coyote_proxy_g_signal (GDBusProxy *proxy, 1911s # const gchar *sender_name G_GNUC_UNUSED, 1911s # const gchar *signal_name, 1911s # GVariant *parameters) 1911s # { 1911s # _ExtendedGDBusSignalInfo *info; 1911s # GVariantIter iter; 1911s # GVariant *child; 1911s # GValue *paramv; 1911s # gsize num_params; 1911s # gsize n; 1911s # guint signal_id; 1911s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, signal_name); 1911s # if (info == NULL) 1911s # return; 1911s # num_params = g_variant_n_children (parameters); 1911s # paramv = g_new0 (GValue, num_params + 1); 1911s # g_value_init (¶mv[0], TYPE_COM_ACME_COYOTE); 1911s # g_value_set_object (¶mv[0], proxy); 1911s # g_variant_iter_init (&iter, parameters); 1911s # n = 1; 1911s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1911s # { 1911s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1911s # if (arg_info->use_gvariant) 1911s # { 1911s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1911s # g_value_set_variant (¶mv[n], child); 1911s # n++; 1911s # } 1911s # else 1911s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1911s # g_variant_unref (child); 1911s # } 1911s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1911s # g_signal_emitv (paramv, signal_id, 0, NULL); 1911s # for (n = 0; n < num_params + 1; n++) 1911s # g_value_unset (¶mv[n]); 1911s # g_free (paramv); 1911s # } 1911s # 1911s # static void 1911s # com_acme_coyote_proxy_g_properties_changed (GDBusProxy *_proxy, 1911s # GVariant *changed_properties, 1911s # const gchar *const *invalidated_properties) 1911s # { 1911s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (_proxy); 1911s # guint n; 1911s # const gchar *key; 1911s # GVariantIter *iter; 1911s # _ExtendedGDBusPropertyInfo *info; 1911s # g_variant_get (changed_properties, "a{sv}", &iter); 1911s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1911s # { 1911s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, key); 1911s # g_datalist_remove_data (&proxy->priv->qdata, key); 1911s # if (info != NULL) 1911s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1911s # } 1911s # g_variant_iter_free (iter); 1911s # for (n = 0; invalidated_properties[n] != NULL; n++) 1911s # { 1911s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, invalidated_properties[n]); 1911s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1911s # if (info != NULL) 1911s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1911s # } 1911s # } 1911s # 1911s # static const gchar * 1911s # com_acme_coyote_proxy_get_mood (ComAcmeCoyote *object) 1911s # { 1911s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1911s # GVariant *variant; 1911s # const gchar *value = NULL; 1911s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Mood"); 1911s # if (variant != NULL) 1911s # { 1911s # value = g_variant_get_string (variant, NULL); 1911s # g_variant_unref (variant); 1911s # } 1911s # return value; 1911s # } 1911s # 1911s # static void 1911s # com_acme_coyote_proxy_init (ComAcmeCoyoteProxy *proxy) 1911s # { 1911s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1911s # proxy->priv = com_acme_coyote_proxy_get_instance_private (proxy); 1911s # #else 1911s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyPrivate); 1911s # #endif 1911s # 1911s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), com_acme_coyote_interface_info ()); 1911s # } 1911s # 1911s # static void 1911s # com_acme_coyote_proxy_class_init (ComAcmeCoyoteProxyClass *klass) 1911s # { 1911s # GObjectClass *gobject_class; 1911s # GDBusProxyClass *proxy_class; 1911s # 1911s # gobject_class = G_OBJECT_CLASS (klass); 1911s # gobject_class->finalize = com_acme_coyote_proxy_finalize; 1911s # gobject_class->get_property = com_acme_coyote_proxy_get_property; 1911s # gobject_class->set_property = com_acme_coyote_proxy_set_property; 1911s # 1911s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1911s # proxy_class->g_signal = com_acme_coyote_proxy_g_signal; 1911s # proxy_class->g_properties_changed = com_acme_coyote_proxy_g_properties_changed; 1911s # 1911s # com_acme_coyote_override_properties (gobject_class, 1); 1911s # 1911s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1911s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteProxyPrivate)); 1911s # #endif 1911s # } 1911s # 1911s # static void 1911s # com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface) 1911s # { 1911s # iface->get_mood = com_acme_coyote_proxy_get_mood; 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_proxy_new: 1911s # * @connection: A #GDBusConnection. 1911s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1911s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1911s # * @object_path: An object path. 1911s # * @cancellable: (nullable): A #GCancellable or %NULL. 1911s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1911s # * @user_data: User data to pass to @callback. 1911s # * 1911s # * Asynchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new() for more details. 1911s # * 1911s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1911s # * You can then call com_acme_coyote_proxy_new_finish() to get the result of the operation. 1911s # * 1911s # * See com_acme_coyote_proxy_new_sync() for the synchronous, blocking version of this constructor. 1911s # */ 1911s # void 1911s # com_acme_coyote_proxy_new ( 1911s # GDBusConnection *connection, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data) 1911s # { 1911s # g_async_initable_new_async (TYPE_COM_ACME_COYOTE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "com.acme.Coyote", NULL); 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_proxy_new_finish: 1911s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new(). 1911s # * @error: Return location for error or %NULL 1911s # * 1911s # * Finishes an operation started with com_acme_coyote_proxy_new(). 1911s # * 1911s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1911s # */ 1911s # ComAcmeCoyote * 1911s # com_acme_coyote_proxy_new_finish ( 1911s # GAsyncResult *res, 1911s # GError **error) 1911s # { 1911s # GObject *ret; 1911s # GObject *source_object; 1911s # source_object = g_async_result_get_source_object (res); 1911s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1911s # g_object_unref (source_object); 1911s # if (ret != NULL) 1911s # return COM_ACME_COYOTE (ret); 1911s # else 1911s # return NULL; 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_proxy_new_sync: 1911s # * @connection: A #GDBusConnection. 1911s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1911s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1911s # * @object_path: An object path. 1911s # * @cancellable: (nullable): A #GCancellable or %NULL. 1911s # * @error: Return location for error or %NULL 1911s # * 1911s # * Synchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new_sync() for more details. 1911s # * 1911s # * The calling thread is blocked until a reply is received. 1911s # * 1911s # * See com_acme_coyote_proxy_new() for the asynchronous version of this constructor. 1911s # * 1911s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1911s # */ 1911s # ComAcmeCoyote * 1911s # com_acme_coyote_proxy_new_sync ( 1911s # GDBusConnection *connection, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GError **error) 1911s # { 1911s # GInitable *ret; 1911s # ret = g_initable_new (TYPE_COM_ACME_COYOTE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "com.acme.Coyote", NULL); 1911s # if (ret != NULL) 1911s # return COM_ACME_COYOTE (ret); 1911s # else 1911s # return NULL; 1911s # } 1911s # 1911s # 1911s # /** 1911s # * com_acme_coyote_proxy_new_for_bus: 1911s # * @bus_type: A #GBusType. 1911s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1911s # * @name: A bus name (well-known or unique). 1911s # * @object_path: An object path. 1911s # * @cancellable: (nullable): A #GCancellable or %NULL. 1911s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1911s # * @user_data: User data to pass to @callback. 1911s # * 1911s # * Like com_acme_coyote_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1911s # * 1911s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1911s # * You can then call com_acme_coyote_proxy_new_for_bus_finish() to get the result of the operation. 1911s # * 1911s # * See com_acme_coyote_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1911s # */ 1911s # void 1911s # com_acme_coyote_proxy_new_for_bus ( 1911s # GBusType bus_type, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data) 1911s # { 1911s # g_async_initable_new_async (TYPE_COM_ACME_COYOTE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "com.acme.Coyote", NULL); 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_proxy_new_for_bus_finish: 1911s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new_for_bus(). 1911s # * @error: Return location for error or %NULL 1911s # * 1911s # * Finishes an operation started with com_acme_coyote_proxy_new_for_bus(). 1911s # * 1911s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1911s # */ 1911s # ComAcmeCoyote * 1911s # com_acme_coyote_proxy_new_for_bus_finish ( 1911s # GAsyncResult *res, 1911s # GError **error) 1911s # { 1911s # GObject *ret; 1911s # GObject *source_object; 1911s # source_object = g_async_result_get_source_object (res); 1911s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1911s # g_object_unref (source_object); 1911s # if (ret != NULL) 1911s # return COM_ACME_COYOTE (ret); 1911s # else 1911s # return NULL; 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_proxy_new_for_bus_sync: 1911s # * @bus_type: A #GBusType. 1911s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1911s # * @name: A bus name (well-known or unique). 1911s # * @object_path: An object path. 1911s # * @cancellable: (nullable): A #GCancellable or %NULL. 1911s # * @error: Return location for error or %NULL 1911s # * 1911s # * Like com_acme_coyote_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1911s # * 1911s # * The calling thread is blocked until a reply is received. 1911s # * 1911s # * See com_acme_coyote_proxy_new_for_bus() for the asynchronous version of this constructor. 1911s # * 1911s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1911s # */ 1911s # ComAcmeCoyote * 1911s # com_acme_coyote_proxy_new_for_bus_sync ( 1911s # GBusType bus_type, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GError **error) 1911s # { 1911s # GInitable *ret; 1911s # ret = g_initable_new (TYPE_COM_ACME_COYOTE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "com.acme.Coyote", NULL); 1911s # if (ret != NULL) 1911s # return COM_ACME_COYOTE (ret); 1911s # else 1911s # return NULL; 1911s # } 1911s # 1911s # 1911s # /* ------------------------------------------------------------------------ */ 1911s # 1911s # /** 1911s # * ComAcmeCoyoteSkeleton: 1911s # * 1911s # * The #ComAcmeCoyoteSkeleton structure contains only private data and should only be accessed using the provided API. 1911s # */ 1911s # 1911s # /** 1911s # * ComAcmeCoyoteSkeletonClass: 1911s # * @parent_class: The parent class. 1911s # * 1911s # * Class structure for #ComAcmeCoyoteSkeleton. 1911s # */ 1911s # 1911s # struct _ComAcmeCoyoteSkeletonPrivate 1911s # { 1911s # GValue *properties; 1911s # GList *changed_properties; 1911s # GSource *changed_properties_idle_source; 1911s # GMainContext *context; 1911s # GMutex lock; 1911s # }; 1911s # 1911s # static void 1911s # _com_acme_coyote_skeleton_handle_method_call ( 1911s # GDBusConnection *connection G_GNUC_UNUSED, 1911s # const gchar *sender G_GNUC_UNUSED, 1911s # const gchar *object_path G_GNUC_UNUSED, 1911s # const gchar *interface_name, 1911s # const gchar *method_name, 1911s # GVariant *parameters, 1911s # GDBusMethodInvocation *invocation, 1911s # gpointer user_data) 1911s # { 1911s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1911s # _ExtendedGDBusMethodInfo *info; 1911s # GVariantIter iter; 1911s # GVariant *child; 1911s # GValue *paramv; 1911s # gsize num_params; 1911s # guint num_extra; 1911s # gsize n; 1911s # guint signal_id; 1911s # GValue return_value = G_VALUE_INIT; 1911s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1911s # g_assert (info != NULL); 1911s # num_params = g_variant_n_children (parameters); 1911s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1911s # n = 0; 1911s # g_value_init (¶mv[n], TYPE_COM_ACME_COYOTE); 1911s # g_value_set_object (¶mv[n++], skeleton); 1911s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1911s # g_value_set_object (¶mv[n++], invocation); 1911s # if (info->pass_fdlist) 1911s # { 1911s # #ifdef G_OS_UNIX 1911s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1911s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1911s # #else 1911s # g_assert_not_reached (); 1911s # #endif 1911s # } 1911s # g_variant_iter_init (&iter, parameters); 1911s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1911s # { 1911s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1911s # if (arg_info->use_gvariant) 1911s # { 1911s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1911s # g_value_set_variant (¶mv[n], child); 1911s # n++; 1911s # } 1911s # else 1911s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1911s # g_variant_unref (child); 1911s # } 1911s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1911s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1911s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1911s # if (!g_value_get_boolean (&return_value)) 1911s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1911s # g_value_unset (&return_value); 1911s # for (n = 0; n < num_params + num_extra; n++) 1911s # g_value_unset (¶mv[n]); 1911s # g_free (paramv); 1911s # } 1911s # 1911s # static GVariant * 1911s # _com_acme_coyote_skeleton_handle_get_property ( 1911s # GDBusConnection *connection G_GNUC_UNUSED, 1911s # const gchar *sender G_GNUC_UNUSED, 1911s # const gchar *object_path G_GNUC_UNUSED, 1911s # const gchar *interface_name G_GNUC_UNUSED, 1911s # const gchar *property_name, 1911s # GError **error, 1911s # gpointer user_data) 1911s # { 1911s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1911s # GValue value = G_VALUE_INIT; 1911s # GParamSpec *pspec; 1911s # _ExtendedGDBusPropertyInfo *info; 1911s # GVariant *ret; 1911s # ret = NULL; 1911s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1911s # g_assert (info != NULL); 1911s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1911s # if (pspec == NULL) 1911s # { 1911s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1911s # } 1911s # else 1911s # { 1911s # g_value_init (&value, pspec->value_type); 1911s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1911s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1911s # g_value_unset (&value); 1911s # } 1911s # return ret; 1911s # } 1911s # 1911s # static gboolean 1911s # _com_acme_coyote_skeleton_handle_set_property ( 1911s # GDBusConnection *connection G_GNUC_UNUSED, 1911s # const gchar *sender G_GNUC_UNUSED, 1911s # const gchar *object_path G_GNUC_UNUSED, 1911s # const gchar *interface_name G_GNUC_UNUSED, 1911s # const gchar *property_name, 1911s # GVariant *variant, 1911s # GError **error, 1911s # gpointer user_data) 1911s # { 1911s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1911s # GValue value = G_VALUE_INIT; 1911s # GParamSpec *pspec; 1911s # _ExtendedGDBusPropertyInfo *info; 1911s # gboolean ret; 1911s # ret = FALSE; 1911s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1911s # g_assert (info != NULL); 1911s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1911s # if (pspec == NULL) 1911s # { 1911s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1911s # } 1911s # else 1911s # { 1911s # if (info->use_gvariant) 1911s # g_value_set_variant (&value, variant); 1911s # else 1911s # g_dbus_gvariant_to_gvalue (variant, &value); 1911s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1911s # g_value_unset (&value); 1911s # ret = TRUE; 1911s # } 1911s # return ret; 1911s # } 1911s # 1911s # static const GDBusInterfaceVTable _com_acme_coyote_skeleton_vtable = 1911s # { 1911s # _com_acme_coyote_skeleton_handle_method_call, 1911s # _com_acme_coyote_skeleton_handle_get_property, 1911s # _com_acme_coyote_skeleton_handle_set_property, 1911s # {NULL} 1911s # }; 1911s # 1911s # static GDBusInterfaceInfo * 1911s # com_acme_coyote_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1911s # { 1911s # return com_acme_coyote_interface_info (); 1911s # } 1911s # 1911s # static GDBusInterfaceVTable * 1911s # com_acme_coyote_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1911s # { 1911s # return (GDBusInterfaceVTable *) &_com_acme_coyote_skeleton_vtable; 1911s # } 1911s # 1911s # static GVariant * 1911s # com_acme_coyote_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1911s # { 1911s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1911s # 1911s # GVariantBuilder builder; 1911s # guint n; 1911s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1911s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1911s # #else 1911s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1911s # #endif 1911s # if (_com_acme_coyote_interface_info.parent_struct.properties == NULL) 1911s # goto out; 1911s # for (n = 0; _com_acme_coyote_interface_info.parent_struct.properties[n] != NULL; n++) 1911s # { 1911s # GDBusPropertyInfo *info = _com_acme_coyote_interface_info.parent_struct.properties[n]; 1911s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1911s # { 1911s # GVariant *value; 1911s # value = _com_acme_coyote_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.acme.Coyote", info->name, NULL, skeleton); 1911s # if (value != NULL) 1911s # { 1911s # g_variant_take_ref (value); 1911s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1911s # g_variant_unref (value); 1911s # } 1911s # } 1911s # } 1911s # out: 1911s # return g_variant_builder_end (&builder); 1911s # } 1911s # 1911s # static gboolean _com_acme_coyote_emit_changed (gpointer user_data); 1911s # 1911s # static void 1911s # com_acme_coyote_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1911s # { 1911s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1911s # gboolean emit_changed = FALSE; 1911s # 1911s # g_mutex_lock (&skeleton->priv->lock); 1911s # if (skeleton->priv->changed_properties_idle_source != NULL) 1911s # { 1911s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1911s # skeleton->priv->changed_properties_idle_source = NULL; 1911s # emit_changed = TRUE; 1911s # } 1911s # g_mutex_unlock (&skeleton->priv->lock); 1911s # 1911s # if (emit_changed) 1911s # _com_acme_coyote_emit_changed (skeleton); 1911s # } 1911s # 1911s # static void 1911s # _com_acme_coyote_on_signal_surprised ( 1911s # ComAcmeCoyote *object) 1911s # { 1911s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1911s # 1911s # GList *connections, *l; 1911s # GVariant *signal_variant; 1911s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1911s # 1911s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1911s # for (l = connections; l != NULL; l = l->next) 1911s # { 1911s # GDBusConnection *connection = l->data; 1911s # g_dbus_connection_emit_signal (connection, 1911s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.acme.Coyote", "Surprised", 1911s # signal_variant, NULL); 1911s # } 1911s # g_variant_unref (signal_variant); 1911s # g_list_free_full (connections, g_object_unref); 1911s # } 1911s # 1911s # static void com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface); 1911s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1911s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1911s # G_ADD_PRIVATE (ComAcmeCoyoteSkeleton) 1911s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1911s # 1911s # #else 1911s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1911s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1911s # 1911s # #endif 1911s # static void 1911s # com_acme_coyote_skeleton_finalize (GObject *object) 1911s # { 1911s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1911s # guint n; 1911s # for (n = 0; n < 1; n++) 1911s # g_value_unset (&skeleton->priv->properties[n]); 1911s # g_free (skeleton->priv->properties); 1911s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1911s # if (skeleton->priv->changed_properties_idle_source != NULL) 1911s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1911s # g_main_context_unref (skeleton->priv->context); 1911s # g_mutex_clear (&skeleton->priv->lock); 1911s # G_OBJECT_CLASS (com_acme_coyote_skeleton_parent_class)->finalize (object); 1911s # } 1911s # 1911s # static void 1911s # com_acme_coyote_skeleton_get_property (GObject *object, 1911s # guint prop_id, 1911s # GValue *value, 1911s # GParamSpec *pspec G_GNUC_UNUSED) 1911s # { 1911s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1911s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1911s # g_mutex_lock (&skeleton->priv->lock); 1911s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1911s # g_mutex_unlock (&skeleton->priv->lock); 1911s # } 1911s # 1911s # static gboolean 1911s # _com_acme_coyote_emit_changed (gpointer user_data) 1911s # { 1911s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1911s # GList *l; 1911s # GVariantBuilder builder; 1911s # GVariantBuilder invalidated_builder; 1911s # guint num_changes; 1911s # 1911s # g_mutex_lock (&skeleton->priv->lock); 1911s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1911s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1911s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1911s # #else 1911s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1911s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1911s # #endif 1911s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1911s # { 1911s # ChangedProperty *cp = l->data; 1911s # GVariant *variant; 1911s # const GValue *cur_value; 1911s # 1911s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1911s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1911s # { 1911s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1911s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1911s # g_variant_unref (variant); 1911s # num_changes++; 1911s # } 1911s # } 1911s # if (num_changes > 0) 1911s # { 1911s # GList *connections, *ll; 1911s # GVariant *signal_variant; 1911s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "com.acme.Coyote", 1911s # &builder, &invalidated_builder)); 1911s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1911s # for (ll = connections; ll != NULL; ll = ll->next) 1911s # { 1911s # GDBusConnection *connection = ll->data; 1911s # 1911s # g_dbus_connection_emit_signal (connection, 1911s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1911s # "org.freedesktop.DBus.Properties", 1911s # "PropertiesChanged", 1911s # signal_variant, 1911s # NULL); 1911s # } 1911s # g_variant_unref (signal_variant); 1911s # g_list_free_full (connections, g_object_unref); 1911s # } 1911s # else 1911s # { 1911s # g_variant_builder_clear (&builder); 1911s # g_variant_builder_clear (&invalidated_builder); 1911s # } 1911s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1911s # skeleton->priv->changed_properties = NULL; 1911s # skeleton->priv->changed_properties_idle_source = NULL; 1911s # g_mutex_unlock (&skeleton->priv->lock); 1911s # return FALSE; 1911s # } 1911s # 1911s # static void 1911s # _com_acme_coyote_schedule_emit_changed (ComAcmeCoyoteSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1911s # { 1911s # ChangedProperty *cp; 1911s # GList *l; 1911s # cp = NULL; 1911s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1911s # { 1911s # ChangedProperty *i_cp = l->data; 1911s # if (i_cp->info == info) 1911s # { 1911s # cp = i_cp; 1911s # break; 1911s # } 1911s # } 1911s # if (cp == NULL) 1911s # { 1911s # cp = g_new0 (ChangedProperty, 1); 1911s # cp->prop_id = prop_id; 1911s # cp->info = info; 1911s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1911s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1911s # g_value_copy (orig_value, &cp->orig_value); 1911s # } 1911s # } 1911s # 1911s # static void 1911s # com_acme_coyote_skeleton_notify (GObject *object, 1911s # GParamSpec *pspec G_GNUC_UNUSED) 1911s # { 1911s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1911s # g_mutex_lock (&skeleton->priv->lock); 1911s # if (skeleton->priv->changed_properties != NULL && 1911s # skeleton->priv->changed_properties_idle_source == NULL) 1911s # { 1911s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1911s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1911s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _com_acme_coyote_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1911s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _com_acme_coyote_emit_changed"); 1911s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1911s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1911s # } 1911s # g_mutex_unlock (&skeleton->priv->lock); 1911s # } 1911s # 1911s # static void 1911s # com_acme_coyote_skeleton_set_property (GObject *object, 1911s # guint prop_id, 1911s # const GValue *value, 1911s # GParamSpec *pspec) 1911s # { 1911s # const _ExtendedGDBusPropertyInfo *info; 1911s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1911s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1911s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1911s # g_mutex_lock (&skeleton->priv->lock); 1911s # g_object_freeze_notify (object); 1911s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1911s # { 1911s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1911s # info->emits_changed_signal) 1911s # _com_acme_coyote_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1911s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1911s # g_object_notify_by_pspec (object, pspec); 1911s # } 1911s # g_mutex_unlock (&skeleton->priv->lock); 1911s # g_object_thaw_notify (object); 1911s # } 1911s # 1911s # static void 1911s # com_acme_coyote_skeleton_init (ComAcmeCoyoteSkeleton *skeleton) 1911s # { 1911s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1911s # skeleton->priv = com_acme_coyote_skeleton_get_instance_private (skeleton); 1911s # #else 1911s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonPrivate); 1911s # #endif 1911s # 1911s # g_mutex_init (&skeleton->priv->lock); 1911s # skeleton->priv->context = g_main_context_ref_thread_default (); 1911s # skeleton->priv->properties = g_new0 (GValue, 1); 1911s # g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING); 1911s # } 1911s # 1911s # static const gchar * 1911s # com_acme_coyote_skeleton_get_mood (ComAcmeCoyote *object) 1911s # { 1911s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1911s # const gchar *value; 1911s # g_mutex_lock (&skeleton->priv->lock); 1911s # value = g_marshal_value_peek_string (&(skeleton->priv->properties[0])); 1911s # g_mutex_unlock (&skeleton->priv->lock); 1911s # return value; 1911s # } 1911s # 1911s # static void 1911s # com_acme_coyote_skeleton_class_init (ComAcmeCoyoteSkeletonClass *klass) 1911s # { 1911s # GObjectClass *gobject_class; 1911s # GDBusInterfaceSkeletonClass *skeleton_class; 1911s # 1911s # gobject_class = G_OBJECT_CLASS (klass); 1911s # gobject_class->finalize = com_acme_coyote_skeleton_finalize; 1911s # gobject_class->get_property = com_acme_coyote_skeleton_get_property; 1911s # gobject_class->set_property = com_acme_coyote_skeleton_set_property; 1911s # gobject_class->notify = com_acme_coyote_skeleton_notify; 1911s # 1911s # 1911s # com_acme_coyote_override_properties (gobject_class, 1); 1911s # 1911s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1911s # skeleton_class->get_info = com_acme_coyote_skeleton_dbus_interface_get_info; 1911s # skeleton_class->get_properties = com_acme_coyote_skeleton_dbus_interface_get_properties; 1911s # skeleton_class->flush = com_acme_coyote_skeleton_dbus_interface_flush; 1911s # skeleton_class->get_vtable = com_acme_coyote_skeleton_dbus_interface_get_vtable; 1911s # 1911s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1911s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteSkeletonPrivate)); 1911s # #endif 1911s # } 1911s # 1911s # static void 1911s # com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface) 1911s # { 1911s # iface->surprised = _com_acme_coyote_on_signal_surprised; 1911s # iface->get_mood = com_acme_coyote_skeleton_get_mood; 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_skeleton_new: 1911s # * 1911s # * Creates a skeleton object for the D-Bus interface com.acme.Coyote. 1911s # * 1911s # * Returns: (transfer full) (type ComAcmeCoyoteSkeleton): The skeleton object. 1911s # */ 1911s # ComAcmeCoyote * 1911s # com_acme_coyote_skeleton_new (void) 1911s # { 1911s # return COM_ACME_COYOTE (g_object_new (TYPE_COM_ACME_COYOTE_SKELETON, NULL)); 1911s # } 1911s # 1911s # /* ------------------------------------------------------------------------ 1911s # * Code for interface org.project.Bar.Frobnicator 1911s # * ------------------------------------------------------------------------ 1911s # */ 1911s # 1911s # /** 1911s # * SECTION:OrgProjectBarFrobnicator 1911s # * @title: OrgProjectBarFrobnicator 1911s # * @short_description: Generated C code for the org.project.Bar.Frobnicator D-Bus interface 1911s # * 1911s # * This section contains code for working with the org.project.Bar.Frobnicator D-Bus interface in C. 1911s # */ 1911s # 1911s # /* ---- Introspection data for org.project.Bar.Frobnicator ---- */ 1911s # 1911s # static const _ExtendedGDBusMethodInfo _org_project_bar_frobnicator_method_info_random_method = 1911s # { 1911s # { 1911s # -1, 1911s # (gchar *) "RandomMethod", 1911s # NULL, 1911s # NULL, 1911s # NULL 1911s # }, 1911s # "handle-random-method", 1911s # FALSE 1911s # }; 1911s # 1911s # static const GDBusMethodInfo * const _org_project_bar_frobnicator_method_info_pointers[] = 1911s # { 1911s # &_org_project_bar_frobnicator_method_info_random_method.parent_struct, 1911s # NULL 1911s # }; 1911s # 1911s # static const _ExtendedGDBusInterfaceInfo _org_project_bar_frobnicator_interface_info = 1911s # { 1911s # { 1911s # -1, 1911s # (gchar *) "org.project.Bar.Frobnicator", 1911s # (GDBusMethodInfo **) &_org_project_bar_frobnicator_method_info_pointers, 1911s # NULL, 1911s # NULL, 1911s # NULL 1911s # }, 1911s # "org-project-bar-frobnicator", 1911s # }; 1911s # 1911s # 1911s # /** 1911s # * org_project_bar_frobnicator_interface_info: 1911s # * 1911s # * Gets a machine-readable description of the org.project.Bar.Frobnicator D-Bus interface. 1911s # * 1911s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1911s # */ 1911s # GDBusInterfaceInfo * 1911s # org_project_bar_frobnicator_interface_info (void) 1911s # { 1911s # return (GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct; 1911s # } 1911s # 1911s # /** 1911s # * org_project_bar_frobnicator_override_properties: 1911s # * @klass: The class structure for a #GObject derived class. 1911s # * @property_id_begin: The property id to assign to the first overridden property. 1911s # * 1911s # * Overrides all #GObject properties in the #OrgProjectBarFrobnicator interface for a concrete class. 1911s # * The properties are overridden in the order they are defined. 1911s # * 1911s # * Returns: The last property id. 1911s # */ 1911s # guint 1911s # org_project_bar_frobnicator_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1911s # { 1911s # return property_id_begin - 1; 1911s # } 1911s # 1911s # 1911s # inline static void 1911s # org_project_bar_frobnicator_method_marshal_random_method ( 1911s # GClosure *closure, 1911s # GValue *return_value, 1911s # unsigned int n_param_values, 1911s # const GValue *param_values, 1911s # void *invocation_hint, 1911s # void *marshal_data) 1911s # { 1911s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1911s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1911s # } 1911s # 1911s # 1911s # /** 1911s # * OrgProjectBarFrobnicator: 1911s # * 1911s # * Abstract interface type for the D-Bus interface org.project.Bar.Frobnicator. 1911s # */ 1911s # 1911s # /** 1911s # * OrgProjectBarFrobnicatorIface: 1911s # * @parent_iface: The parent interface. 1911s # * @handle_random_method: Handler for the #OrgProjectBarFrobnicator::handle-random-method signal. 1911s # * 1911s # * Virtual table for the D-Bus interface org.project.Bar.Frobnicator. 1911s # */ 1911s # 1911s # typedef OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorInterface; 1911s # G_DEFINE_INTERFACE (OrgProjectBarFrobnicator, org_project_bar_frobnicator, G_TYPE_OBJECT) 1911s # 1911s # static void 1911s # org_project_bar_frobnicator_default_init (OrgProjectBarFrobnicatorIface *iface) 1911s # { 1911s # /* GObject signals for incoming D-Bus method calls: */ 1911s # /** 1911s # * OrgProjectBarFrobnicator::handle-random-method: 1911s # * @object: A #OrgProjectBarFrobnicator. 1911s # * @invocation: A #GDBusMethodInvocation. 1911s # * 1911s # * Signal emitted when a remote caller is invoking the RandomMethod() D-Bus method. 1911s # * 1911s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_bar_frobnicator_complete_random_method() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1911s # * 1911s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1911s # */ 1911s # g_signal_new ("handle-random-method", 1911s # G_TYPE_FROM_INTERFACE (iface), 1911s # G_SIGNAL_RUN_LAST, 1911s # G_STRUCT_OFFSET (OrgProjectBarFrobnicatorIface, handle_random_method), 1911s # g_signal_accumulator_true_handled, 1911s # NULL, 1911s # org_project_bar_frobnicator_method_marshal_random_method, 1911s # G_TYPE_BOOLEAN, 1911s # 1, 1911s # G_TYPE_DBUS_METHOD_INVOCATION); 1911s # 1911s # } 1911s # 1911s # /** 1911s # * org_project_bar_frobnicator_call_random_method: 1911s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1911s # * @cancellable: (nullable): A #GCancellable or %NULL. 1911s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1911s # * @user_data: User data to pass to @callback. 1911s # * 1911s # * Asynchronously invokes the RandomMethod() D-Bus method on @proxy. 1911s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1911s # * You can then call org_project_bar_frobnicator_call_random_method_finish() to get the result of the operation. 1911s # * 1911s # * See org_project_bar_frobnicator_call_random_method_sync() for the synchronous, blocking version of this method. 1911s # */ 1911s # void 1911s # org_project_bar_frobnicator_call_random_method ( 1911s # OrgProjectBarFrobnicator *proxy, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data) 1911s # { 1911s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1911s # "RandomMethod", 1911s # g_variant_new ("()"), 1911s # G_DBUS_CALL_FLAGS_NONE, 1911s # -1, 1911s # cancellable, 1911s # callback, 1911s # user_data); 1911s # } 1911s # 1911s # /** 1911s # * org_project_bar_frobnicator_call_random_method_finish: 1911s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1911s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_call_random_method(). 1911s # * @error: Return location for error or %NULL. 1911s # * 1911s # * Finishes an operation started with org_project_bar_frobnicator_call_random_method(). 1911s # * 1911s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1911s # */ 1911s # gboolean 1911s # org_project_bar_frobnicator_call_random_method_finish ( 1911s # OrgProjectBarFrobnicator *proxy, 1911s # GAsyncResult *res, 1911s # GError **error) 1911s # { 1911s # GVariant *_ret; 1911s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1911s # if (_ret == NULL) 1911s # goto _out; 1911s # g_variant_get (_ret, 1911s # "()"); 1911s # g_variant_unref (_ret); 1911s # _out: 1911s # return _ret != NULL; 1911s # } 1911s # 1911s # /** 1911s # * org_project_bar_frobnicator_call_random_method_sync: 1911s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1911s # * @cancellable: (nullable): A #GCancellable or %NULL. 1911s # * @error: Return location for error or %NULL. 1911s # * 1911s # * Synchronously invokes the RandomMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1911s # * 1911s # * See org_project_bar_frobnicator_call_random_method() for the asynchronous version of this method. 1911s # * 1911s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1911s # */ 1911s # gboolean 1911s # org_project_bar_frobnicator_call_random_method_sync ( 1911s # OrgProjectBarFrobnicator *proxy, 1911s # GCancellable *cancellable, 1911s # GError **error) 1911s # { 1911s # GVariant *_ret; 1911s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1911s # "RandomMethod", 1911s # g_variant_new ("()"), 1911s # G_DBUS_CALL_FLAGS_NONE, 1911s # -1, 1911s # cancellable, 1911s # error); 1911s # if (_ret == NULL) 1911s # goto _out; 1911s # g_variant_get (_ret, 1911s # "()"); 1911s # g_variant_unref (_ret); 1911s # _out: 1911s # return _ret != NULL; 1911s # } 1911s # 1911s # /** 1911s # * org_project_bar_frobnicator_complete_random_method: 1911s # * @object: A #OrgProjectBarFrobnicator. 1911s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1911s # * 1911s # * Helper function used in service implementations to finish handling invocations of the RandomMethod() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1911s # * 1911s # * This method will free @invocation, you cannot use it afterwards. 1911s # */ 1911s # void 1911s # org_project_bar_frobnicator_complete_random_method ( 1911s # OrgProjectBarFrobnicator *object G_GNUC_UNUSED, 1911s # GDBusMethodInvocation *invocation) 1911s # { 1911s # g_dbus_method_invocation_return_value (invocation, 1911s # g_variant_new ("()")); 1911s # } 1911s # 1911s # /* ------------------------------------------------------------------------ */ 1911s # 1911s # /** 1911s # * OrgProjectBarFrobnicatorProxy: 1911s # * 1911s # * The #OrgProjectBarFrobnicatorProxy structure contains only private data and should only be accessed using the provided API. 1911s # */ 1911s # 1911s # /** 1911s # * OrgProjectBarFrobnicatorProxyClass: 1911s # * @parent_class: The parent class. 1911s # * 1911s # * Class structure for #OrgProjectBarFrobnicatorProxy. 1911s # */ 1911s # 1911s # struct _OrgProjectBarFrobnicatorProxyPrivate 1911s # { 1911s # GData *qdata; 1911s # }; 1911s # 1911s # static void org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface); 1911s # 1911s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1911s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1911s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorProxy) 1911s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1911s # 1911s # #else 1911s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1911s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1911s # 1911s # #endif 1911s # static void 1911s # org_project_bar_frobnicator_proxy_finalize (GObject *object) 1911s # { 1911s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (object); 1911s # g_datalist_clear (&proxy->priv->qdata); 1911s # G_OBJECT_CLASS (org_project_bar_frobnicator_proxy_parent_class)->finalize (object); 1911s # } 1911s # 1911s # static void 1911s # org_project_bar_frobnicator_proxy_get_property (GObject *object G_GNUC_UNUSED, 1911s # guint prop_id G_GNUC_UNUSED, 1911s # GValue *value G_GNUC_UNUSED, 1911s # GParamSpec *pspec G_GNUC_UNUSED) 1911s # { 1911s # } 1911s # 1911s # static void 1911s # org_project_bar_frobnicator_proxy_set_property (GObject *object G_GNUC_UNUSED, 1911s # guint prop_id G_GNUC_UNUSED, 1911s # const GValue *value G_GNUC_UNUSED, 1911s # GParamSpec *pspec G_GNUC_UNUSED) 1911s # { 1911s # } 1911s # 1911s # static void 1911s # org_project_bar_frobnicator_proxy_g_signal (GDBusProxy *proxy, 1911s # const gchar *sender_name G_GNUC_UNUSED, 1911s # const gchar *signal_name, 1911s # GVariant *parameters) 1911s # { 1911s # _ExtendedGDBusSignalInfo *info; 1911s # GVariantIter iter; 1911s # GVariant *child; 1911s # GValue *paramv; 1911s # gsize num_params; 1911s # gsize n; 1911s # guint signal_id; 1911s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, signal_name); 1911s # if (info == NULL) 1911s # return; 1911s # num_params = g_variant_n_children (parameters); 1911s # paramv = g_new0 (GValue, num_params + 1); 1911s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1911s # g_value_set_object (¶mv[0], proxy); 1911s # g_variant_iter_init (&iter, parameters); 1911s # n = 1; 1911s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1911s # { 1911s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1911s # if (arg_info->use_gvariant) 1911s # { 1911s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1911s # g_value_set_variant (¶mv[n], child); 1911s # n++; 1911s # } 1911s # else 1911s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1911s # g_variant_unref (child); 1911s # } 1911s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1911s # g_signal_emitv (paramv, signal_id, 0, NULL); 1911s # for (n = 0; n < num_params + 1; n++) 1911s # g_value_unset (¶mv[n]); 1911s # g_free (paramv); 1911s # } 1911s # 1911s # static void 1911s # org_project_bar_frobnicator_proxy_g_properties_changed (GDBusProxy *_proxy, 1911s # GVariant *changed_properties, 1911s # const gchar *const *invalidated_properties) 1911s # { 1911s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (_proxy); 1911s # guint n; 1911s # const gchar *key; 1911s # GVariantIter *iter; 1911s # _ExtendedGDBusPropertyInfo *info; 1911s # g_variant_get (changed_properties, "a{sv}", &iter); 1911s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1911s # { 1911s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, key); 1911s # g_datalist_remove_data (&proxy->priv->qdata, key); 1911s # if (info != NULL) 1911s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1911s # } 1911s # g_variant_iter_free (iter); 1911s # for (n = 0; invalidated_properties[n] != NULL; n++) 1911s # { 1911s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, invalidated_properties[n]); 1911s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1911s # if (info != NULL) 1911s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1911s # } 1911s # } 1911s # 1911s # static void 1911s # org_project_bar_frobnicator_proxy_init (OrgProjectBarFrobnicatorProxy *proxy) 1911s # { 1911s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1911s # proxy->priv = org_project_bar_frobnicator_proxy_get_instance_private (proxy); 1911s # #else 1911s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyPrivate); 1911s # #endif 1911s # 1911s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_bar_frobnicator_interface_info ()); 1911s # } 1911s # 1911s # static void 1911s # org_project_bar_frobnicator_proxy_class_init (OrgProjectBarFrobnicatorProxyClass *klass) 1911s # { 1911s # GObjectClass *gobject_class; 1911s # GDBusProxyClass *proxy_class; 1911s # 1911s # gobject_class = G_OBJECT_CLASS (klass); 1911s # gobject_class->finalize = org_project_bar_frobnicator_proxy_finalize; 1911s # gobject_class->get_property = org_project_bar_frobnicator_proxy_get_property; 1911s # gobject_class->set_property = org_project_bar_frobnicator_proxy_set_property; 1911s # 1911s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1911s # proxy_class->g_signal = org_project_bar_frobnicator_proxy_g_signal; 1911s # proxy_class->g_properties_changed = org_project_bar_frobnicator_proxy_g_properties_changed; 1911s # 1911s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1911s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorProxyPrivate)); 1911s # #endif 1911s # } 1911s # 1911s # static void 1911s # org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1911s # { 1911s # } 1911s # 1911s # /** 1911s # * org_project_bar_frobnicator_proxy_new: 1911s # * @connection: A #GDBusConnection. 1911s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1911s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1911s # * @object_path: An object path. 1911s # * @cancellable: (nullable): A #GCancellable or %NULL. 1911s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1911s # * @user_data: User data to pass to @callback. 1911s # * 1911s # * Asynchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new() for more details. 1911s # * 1911s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1911s # * You can then call org_project_bar_frobnicator_proxy_new_finish() to get the result of the operation. 1911s # * 1911s # * See org_project_bar_frobnicator_proxy_new_sync() for the synchronous, blocking version of this constructor. 1911s # */ 1911s # void 1911s # org_project_bar_frobnicator_proxy_new ( 1911s # GDBusConnection *connection, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data) 1911s # { 1911s # g_async_initable_new_async (TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.Bar.Frobnicator", NULL); 1911s # } 1911s # 1911s # /** 1911s # * org_project_bar_frobnicator_proxy_new_finish: 1911s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new(). 1911s # * @error: Return location for error or %NULL 1911s # * 1911s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new(). 1911s # * 1911s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1911s # */ 1911s # OrgProjectBarFrobnicator * 1911s # org_project_bar_frobnicator_proxy_new_finish ( 1911s # GAsyncResult *res, 1911s # GError **error) 1911s # { 1911s # GObject *ret; 1911s # GObject *source_object; 1911s # source_object = g_async_result_get_source_object (res); 1911s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1911s # g_object_unref (source_object); 1911s # if (ret != NULL) 1911s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1911s # else 1911s # return NULL; 1911s # } 1911s # 1911s # /** 1911s # * org_project_bar_frobnicator_proxy_new_sync: 1911s # * @connection: A #GDBusConnection. 1911s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1911s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1911s # * @object_path: An object path. 1911s # * @cancellable: (nullable): A #GCancellable or %NULL. 1911s # * @error: Return location for error or %NULL 1911s # * 1911s # * Synchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new_sync() for more details. 1911s # * 1911s # * The calling thread is blocked until a reply is received. 1911s # * 1911s # * See org_project_bar_frobnicator_proxy_new() for the asynchronous version of this constructor. 1911s # * 1911s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1911s # */ 1911s # OrgProjectBarFrobnicator * 1911s # org_project_bar_frobnicator_proxy_new_sync ( 1911s # GDBusConnection *connection, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GError **error) 1911s # { 1911s # GInitable *ret; 1911s # ret = g_initable_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.Bar.Frobnicator", NULL); 1911s # if (ret != NULL) 1911s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1911s # else 1911s # return NULL; 1911s # } 1911s # 1911s # 1911s # /** 1911s # * org_project_bar_frobnicator_proxy_new_for_bus: 1911s # * @bus_type: A #GBusType. 1911s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1911s # * @name: A bus name (well-known or unique). 1911s # * @object_path: An object path. 1911s # * @cancellable: (nullable): A #GCancellable or %NULL. 1911s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1911s # * @user_data: User data to pass to @callback. 1911s # * 1911s # * Like org_project_bar_frobnicator_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1911s # * 1911s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1911s # * You can then call org_project_bar_frobnicator_proxy_new_for_bus_finish() to get the result of the operation. 1911s # * 1911s # * See org_project_bar_frobnicator_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1911s # */ 1911s # void 1911s # org_project_bar_frobnicator_proxy_new_for_bus ( 1911s # GBusType bus_type, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data) 1911s # { 1911s # g_async_initable_new_async (TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.Bar.Frobnicator", NULL); 1911s # } 1911s # 1911s # /** 1911s # * org_project_bar_frobnicator_proxy_new_for_bus_finish: 1911s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new_for_bus(). 1911s # * @error: Return location for error or %NULL 1911s # * 1911s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new_for_bus(). 1911s # * 1911s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1911s # */ 1911s # OrgProjectBarFrobnicator * 1911s # org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1911s # GAsyncResult *res, 1911s # GError **error) 1911s # { 1911s # GObject *ret; 1911s # GObject *source_object; 1911s # source_object = g_async_result_get_source_object (res); 1911s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1911s # g_object_unref (source_object); 1911s # if (ret != NULL) 1911s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1911s # else 1911s # return NULL; 1911s # } 1911s # 1911s # /** 1911s # * org_project_bar_frobnicator_proxy_new_for_bus_sync: 1911s # * @bus_type: A #GBusType. 1911s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1911s # * @name: A bus name (well-known or unique). 1911s # * @object_path: An object path. 1911s # * @cancellable: (nullable): A #GCancellable or %NULL. 1911s # * @error: Return location for error or %NULL 1911s # * 1911s # * Like org_project_bar_frobnicator_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1911s # * 1911s # * The calling thread is blocked until a reply is received. 1911s # * 1911s # * See org_project_bar_frobnicator_proxy_new_for_bus() for the asynchronous version of this constructor. 1911s # * 1911s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1911s # */ 1911s # OrgProjectBarFrobnicator * 1911s # org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1911s # GBusType bus_type, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GError **error) 1911s # { 1911s # GInitable *ret; 1911s # ret = g_initable_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.Bar.Frobnicator", NULL); 1911s # if (ret != NULL) 1911s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1911s # else 1911s # return NULL; 1911s # } 1911s # 1911s # 1911s # /* ------------------------------------------------------------------------ */ 1911s # 1911s # /** 1911s # * OrgProjectBarFrobnicatorSkeleton: 1911s # * 1911s # * The #OrgProjectBarFrobnicatorSkeleton structure contains only private data and should only be accessed using the provided API. 1911s # */ 1911s # 1911s # /** 1911s # * OrgProjectBarFrobnicatorSkeletonClass: 1911s # * @parent_class: The parent class. 1911s # * 1911s # * Class structure for #OrgProjectBarFrobnicatorSkeleton. 1911s # */ 1911s # 1911s # struct _OrgProjectBarFrobnicatorSkeletonPrivate 1911s # { 1911s # GValue *properties; 1911s # GList *changed_properties; 1911s # GSource *changed_properties_idle_source; 1911s # GMainContext *context; 1911s # GMutex lock; 1911s # }; 1911s # 1911s # static void 1911s # _org_project_bar_frobnicator_skeleton_handle_method_call ( 1911s # GDBusConnection *connection G_GNUC_UNUSED, 1911s # const gchar *sender G_GNUC_UNUSED, 1911s # const gchar *object_path G_GNUC_UNUSED, 1911s # const gchar *interface_name, 1911s # const gchar *method_name, 1911s # GVariant *parameters, 1911s # GDBusMethodInvocation *invocation, 1911s # gpointer user_data) 1911s # { 1911s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1911s # _ExtendedGDBusMethodInfo *info; 1911s # GVariantIter iter; 1911s # GVariant *child; 1911s # GValue *paramv; 1911s # gsize num_params; 1911s # guint num_extra; 1911s # gsize n; 1911s # guint signal_id; 1911s # GValue return_value = G_VALUE_INIT; 1911s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1911s # g_assert (info != NULL); 1911s # num_params = g_variant_n_children (parameters); 1911s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1911s # n = 0; 1911s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1911s # g_value_set_object (¶mv[n++], skeleton); 1911s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1911s # g_value_set_object (¶mv[n++], invocation); 1911s # if (info->pass_fdlist) 1911s # { 1911s # #ifdef G_OS_UNIX 1911s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1911s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1911s # #else 1911s # g_assert_not_reached (); 1911s # #endif 1911s # } 1911s # g_variant_iter_init (&iter, parameters); 1911s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1911s # { 1911s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1911s # if (arg_info->use_gvariant) 1911s # { 1911s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1911s # g_value_set_variant (¶mv[n], child); 1911s # n++; 1911s # } 1911s # else 1911s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1911s # g_variant_unref (child); 1911s # } 1911s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1911s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1911s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1911s # if (!g_value_get_boolean (&return_value)) 1911s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1911s # g_value_unset (&return_value); 1911s # for (n = 0; n < num_params + num_extra; n++) 1911s # g_value_unset (¶mv[n]); 1911s # g_free (paramv); 1911s # } 1911s # 1911s # static GVariant * 1911s # _org_project_bar_frobnicator_skeleton_handle_get_property ( 1911s # GDBusConnection *connection G_GNUC_UNUSED, 1911s # const gchar *sender G_GNUC_UNUSED, 1911s # const gchar *object_path G_GNUC_UNUSED, 1911s # const gchar *interface_name G_GNUC_UNUSED, 1911s # const gchar *property_name, 1911s # GError **error, 1911s # gpointer user_data) 1911s # { 1911s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1911s # GValue value = G_VALUE_INIT; 1911s # GParamSpec *pspec; 1911s # _ExtendedGDBusPropertyInfo *info; 1911s # GVariant *ret; 1911s # ret = NULL; 1911s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1911s # g_assert (info != NULL); 1911s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1911s # if (pspec == NULL) 1911s # { 1911s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1911s # } 1911s # else 1911s # { 1911s # g_value_init (&value, pspec->value_type); 1911s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1911s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1911s # g_value_unset (&value); 1911s # } 1911s # return ret; 1911s # } 1911s # 1911s # static gboolean 1911s # _org_project_bar_frobnicator_skeleton_handle_set_property ( 1911s # GDBusConnection *connection G_GNUC_UNUSED, 1911s # const gchar *sender G_GNUC_UNUSED, 1911s # const gchar *object_path G_GNUC_UNUSED, 1911s # const gchar *interface_name G_GNUC_UNUSED, 1911s # const gchar *property_name, 1911s # GVariant *variant, 1911s # GError **error, 1911s # gpointer user_data) 1911s # { 1911s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1911s # GValue value = G_VALUE_INIT; 1911s # GParamSpec *pspec; 1911s # _ExtendedGDBusPropertyInfo *info; 1911s # gboolean ret; 1911s # ret = FALSE; 1911s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1911s # g_assert (info != NULL); 1911s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1911s # if (pspec == NULL) 1911s # { 1911s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1911s # } 1911s # else 1911s # { 1911s # if (info->use_gvariant) 1911s # g_value_set_variant (&value, variant); 1911s # else 1911s # g_dbus_gvariant_to_gvalue (variant, &value); 1911s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1911s # g_value_unset (&value); 1911s # ret = TRUE; 1911s # } 1911s # return ret; 1911s # } 1911s # 1911s # static const GDBusInterfaceVTable _org_project_bar_frobnicator_skeleton_vtable = 1911s # { 1911s # _org_project_bar_frobnicator_skeleton_handle_method_call, 1911s # _org_project_bar_frobnicator_skeleton_handle_get_property, 1911s # _org_project_bar_frobnicator_skeleton_handle_set_property, 1911s # {NULL} 1911s # }; 1911s # 1911s # static GDBusInterfaceInfo * 1911s # org_project_bar_frobnicator_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1911s # { 1911s # return org_project_bar_frobnicator_interface_info (); 1911s # } 1911s # 1911s # static GDBusInterfaceVTable * 1911s # org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1911s # { 1911s # return (GDBusInterfaceVTable *) &_org_project_bar_frobnicator_skeleton_vtable; 1911s # } 1911s # 1911s # static GVariant * 1911s # org_project_bar_frobnicator_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1911s # { 1911s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (_skeleton); 1911s # 1911s # GVariantBuilder builder; 1911s # guint n; 1911s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1911s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1911s # #else 1911s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1911s # #endif 1911s # if (_org_project_bar_frobnicator_interface_info.parent_struct.properties == NULL) 1911s # goto out; 1911s # for (n = 0; _org_project_bar_frobnicator_interface_info.parent_struct.properties[n] != NULL; n++) 1911s # { 1911s # GDBusPropertyInfo *info = _org_project_bar_frobnicator_interface_info.parent_struct.properties[n]; 1911s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1911s # { 1911s # GVariant *value; 1911s # value = _org_project_bar_frobnicator_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.Bar.Frobnicator", info->name, NULL, skeleton); 1911s # if (value != NULL) 1911s # { 1911s # g_variant_take_ref (value); 1911s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1911s # g_variant_unref (value); 1911s # } 1911s # } 1911s # } 1911s # out: 1911s # return g_variant_builder_end (&builder); 1911s # } 1911s # 1911s # static void 1911s # org_project_bar_frobnicator_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1911s # { 1911s # } 1911s # 1911s # static void org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface); 1911s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1911s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1911s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorSkeleton) 1911s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1911s # 1911s # #else 1911s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1911s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1911s # 1911s # #endif 1911s # static void 1911s # org_project_bar_frobnicator_skeleton_finalize (GObject *object) 1911s # { 1911s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (object); 1911s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1911s # if (skeleton->priv->changed_properties_idle_source != NULL) 1911s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1911s # g_main_context_unref (skeleton->priv->context); 1911s # g_mutex_clear (&skeleton->priv->lock); 1911s # G_OBJECT_CLASS (org_project_bar_frobnicator_skeleton_parent_class)->finalize (object); 1911s # } 1911s # 1911s # static void 1911s # org_project_bar_frobnicator_skeleton_init (OrgProjectBarFrobnicatorSkeleton *skeleton) 1911s # { 1911s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1911s # skeleton->priv = org_project_bar_frobnicator_skeleton_get_instance_private (skeleton); 1911s # #else 1911s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonPrivate); 1911s # #endif 1911s # 1911s # g_mutex_init (&skeleton->priv->lock); 1911s # skeleton->priv->context = g_main_context_ref_thread_default (); 1911s # } 1911s # 1911s # static void 1911s # org_project_bar_frobnicator_skeleton_class_init (OrgProjectBarFrobnicatorSkeletonClass *klass) 1911s # { 1911s # GObjectClass *gobject_class; 1911s # GDBusInterfaceSkeletonClass *skeleton_class; 1911s # 1911s # gobject_class = G_OBJECT_CLASS (klass); 1911s # gobject_class->finalize = org_project_bar_frobnicator_skeleton_finalize; 1911s # 1911s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1911s # skeleton_class->get_info = org_project_bar_frobnicator_skeleton_dbus_interface_get_info; 1911s # skeleton_class->get_properties = org_project_bar_frobnicator_skeleton_dbus_interface_get_properties; 1911s # skeleton_class->flush = org_project_bar_frobnicator_skeleton_dbus_interface_flush; 1911s # skeleton_class->get_vtable = org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable; 1911s # 1911s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1911s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorSkeletonPrivate)); 1911s # #endif 1911s # } 1911s # 1911s # static void 1911s # org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1911s # { 1911s # } 1911s # 1911s # /** 1911s # * org_project_bar_frobnicator_skeleton_new: 1911s # * 1911s # * Creates a skeleton object for the D-Bus interface org.project.Bar.Frobnicator. 1911s # * 1911s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorSkeleton): The skeleton object. 1911s # */ 1911s # OrgProjectBarFrobnicator * 1911s # org_project_bar_frobnicator_skeleton_new (void) 1911s # { 1911s # return ORG_PROJECT_BAR_FROBNICATOR (g_object_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, NULL)); 1911s # } 1911s # Error: 1911s # 1911s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpzugf51zh/tmpw1ynnn032.xml', '/tmp/tmpzugf51zh/tmpu98yfgad1.xml', '--output', '-', '--body'] 1911s # Return code: 0 1911s # Output: 1911s # /* 1911s # * This file is generated by gdbus-codegen, do not modify it. 1911s # * 1911s # * The license of this code is the same as for the D-Bus interface description 1911s # * it was derived from. Note that it links to GLib, so must comply with the 1911s # * LGPL linking clauses. 1911s # */ 1911s # 1911s # #ifdef HAVE_CONFIG_H 1911s # # include "config.h" 1911s # #endif 1911s # 1911s # #include 1911s # #ifdef G_OS_UNIX 1911s # # include 1911s # #endif 1911s # 1911s # #ifdef G_ENABLE_DEBUG 1911s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1911s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1911s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1911s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1911s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1911s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1911s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1911s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1911s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1911s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1911s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1911s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1911s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1911s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1911s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1911s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1911s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1911s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1911s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1911s # #else /* !G_ENABLE_DEBUG */ 1911s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1911s # * Do not access GValues directly in your code. Instead, use the 1911s # * g_value_get_*() functions 1911s # */ 1911s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1911s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1911s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1911s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1911s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1911s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1911s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1911s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1911s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1911s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1911s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1911s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1911s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1911s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1911s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1911s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1911s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1911s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1911s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1911s # #endif /* !G_ENABLE_DEBUG */ 1911s # 1911s # typedef struct 1911s # { 1911s # GDBusArgInfo parent_struct; 1911s # gboolean use_gvariant; 1911s # } _ExtendedGDBusArgInfo; 1911s # 1911s # typedef struct 1911s # { 1911s # GDBusMethodInfo parent_struct; 1911s # const gchar *signal_name; 1911s # gboolean pass_fdlist; 1911s # } _ExtendedGDBusMethodInfo; 1911s # 1911s # typedef struct 1911s # { 1911s # GDBusSignalInfo parent_struct; 1911s # const gchar *signal_name; 1911s # } _ExtendedGDBusSignalInfo; 1911s # 1911s # typedef struct 1911s # { 1911s # GDBusPropertyInfo parent_struct; 1911s # const gchar *hyphen_name; 1911s # guint use_gvariant : 1; 1911s # guint emits_changed_signal : 1; 1911s # } _ExtendedGDBusPropertyInfo; 1911s # 1911s # typedef struct 1911s # { 1911s # GDBusInterfaceInfo parent_struct; 1911s # const gchar *hyphen_name; 1911s # } _ExtendedGDBusInterfaceInfo; 1911s # 1911s # typedef struct 1911s # { 1911s # const _ExtendedGDBusPropertyInfo *info; 1911s # guint prop_id; 1911s # GValue orig_value; /* the value before the change */ 1911s # } ChangedProperty; 1911s # 1911s # static void 1911s # _changed_property_free (ChangedProperty *data) 1911s # { 1911s # g_value_unset (&data->orig_value); 1911s # g_free (data); 1911s # } 1911s # 1911s # static gboolean 1911s # _g_strv_equal0 (gchar **a, gchar **b) 1911s # { 1911s # gboolean ret = FALSE; 1911s # guint n; 1911s # if (a == NULL && b == NULL) 1911s # { 1911s # ret = TRUE; 1911s # goto out; 1911s # } 1911s # if (a == NULL || b == NULL) 1911s # goto out; 1911s # if (g_strv_length (a) != g_strv_length (b)) 1911s # goto out; 1911s # for (n = 0; a[n] != NULL; n++) 1911s # if (g_strcmp0 (a[n], b[n]) != 0) 1911s # goto out; 1911s # ret = TRUE; 1911s # out: 1911s # return ret; 1911s # } 1911s # 1911s # static gboolean 1911s # _g_variant_equal0 (GVariant *a, GVariant *b) 1911s # { 1911s # gboolean ret = FALSE; 1911s # if (a == NULL && b == NULL) 1911s # { 1911s # ret = TRUE; 1911s # goto out; 1911s # } 1911s # if (a == NULL || b == NULL) 1911s # goto out; 1911s # ret = g_variant_equal (a, b); 1911s # out: 1911s # return ret; 1911s # } 1911s # 1911s # G_GNUC_UNUSED static gboolean 1911s # _g_value_equal (const GValue *a, const GValue *b) 1911s # { 1911s # gboolean ret = FALSE; 1911s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1911s # switch (G_VALUE_TYPE (a)) 1911s # { 1911s # case G_TYPE_BOOLEAN: 1911s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1911s # break; 1911s # case G_TYPE_UCHAR: 1911s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1911s # break; 1911s # case G_TYPE_INT: 1911s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1911s # break; 1911s # case G_TYPE_UINT: 1911s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1911s # break; 1911s # case G_TYPE_INT64: 1911s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1911s # break; 1911s # case G_TYPE_UINT64: 1911s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1911s # break; 1911s # case G_TYPE_DOUBLE: 1911s # { 1911s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1911s # gdouble da = g_value_get_double (a); 1911s # gdouble db = g_value_get_double (b); 1911s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1911s # } 1911s # break; 1911s # case G_TYPE_STRING: 1911s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1911s # break; 1911s # case G_TYPE_VARIANT: 1911s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1911s # break; 1911s # default: 1911s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1911s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1911s # else 1911s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1911s # break; 1911s # } 1911s # return ret; 1911s # } 1911s # 1911s # static void 1911s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1911s # GClosure *closure, 1911s # GValue *return_value, 1911s # unsigned int n_param_values, 1911s # const GValue *param_values, 1911s # void *invocation_hint G_GNUC_UNUSED, 1911s # void *marshal_data) 1911s # { 1911s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1911s # (void *data1, 1911s # GDBusMethodInvocation *arg_method_invocation, 1911s # void *data2); 1911s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1911s # GCClosure *cc = (GCClosure*) closure; 1911s # void *data1, *data2; 1911s # gboolean v_return; 1911s # 1911s # g_return_if_fail (return_value != NULL); 1911s # g_return_if_fail (n_param_values == 2); 1911s # 1911s # if (G_CCLOSURE_SWAP_DATA (closure)) 1911s # { 1911s # data1 = closure->data; 1911s # data2 = g_value_peek_pointer (param_values + 0); 1911s # } 1911s # else 1911s # { 1911s # data1 = g_value_peek_pointer (param_values + 0); 1911s # data2 = closure->data; 1911s # } 1911s # 1911s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1911s # (marshal_data ? marshal_data : cc->callback); 1911s # 1911s # v_return = 1911s # callback (data1, 1911s # g_marshal_value_peek_object (param_values + 1), 1911s # data2); 1911s # 1911s # g_value_set_boolean (return_value, v_return); 1911s # } 1911s # 1911s # /* ------------------------------------------------------------------------ 1911s # * Code for interface com.acme.Coyote 1911s # * ------------------------------------------------------------------------ 1911s # */ 1911s # 1911s # /** 1911s # * SECTION:ComAcmeCoyote 1911s # * @title: ComAcmeCoyote 1911s # * @short_description: Generated C code for the com.acme.Coyote D-Bus interface 1911s # * 1911s # * This section contains code for working with the com.acme.Coyote D-Bus interface in C. 1911s # */ 1911s # 1911s # enum 1911s # { 1911s # _COM_ACME_COYOTE_SURPRISED, 1911s # }; 1911s # 1911s # static unsigned _COM_ACME_COYOTE_SIGNALS[1] = { 0 }; 1911s # 1911s # /* ---- Introspection data for com.acme.Coyote ---- */ 1911s # 1911s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_run = 1911s # { 1911s # { 1911s # -1, 1911s # (gchar *) "Run", 1911s # NULL, 1911s # NULL, 1911s # NULL 1911s # }, 1911s # "handle-run", 1911s # FALSE 1911s # }; 1911s # 1911s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_sleep = 1911s # { 1911s # { 1911s # -1, 1911s # (gchar *) "Sleep", 1911s # NULL, 1911s # NULL, 1911s # NULL 1911s # }, 1911s # "handle-sleep", 1911s # FALSE 1911s # }; 1911s # 1911s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_attack = 1911s # { 1911s # { 1911s # -1, 1911s # (gchar *) "Attack", 1911s # NULL, 1911s # NULL, 1911s # NULL 1911s # }, 1911s # "handle-attack", 1911s # FALSE 1911s # }; 1911s # 1911s # static const GDBusMethodInfo * const _com_acme_coyote_method_info_pointers[] = 1911s # { 1911s # &_com_acme_coyote_method_info_run.parent_struct, 1911s # &_com_acme_coyote_method_info_sleep.parent_struct, 1911s # &_com_acme_coyote_method_info_attack.parent_struct, 1911s # NULL 1911s # }; 1911s # 1911s # static const _ExtendedGDBusSignalInfo _com_acme_coyote_signal_info_surprised = 1911s # { 1911s # { 1911s # -1, 1911s # (gchar *) "Surprised", 1911s # NULL, 1911s # NULL 1911s # }, 1911s # "surprised" 1911s # }; 1911s # 1911s # static const GDBusSignalInfo * const _com_acme_coyote_signal_info_pointers[] = 1911s # { 1911s # &_com_acme_coyote_signal_info_surprised.parent_struct, 1911s # NULL 1911s # }; 1911s # 1911s # static const _ExtendedGDBusPropertyInfo _com_acme_coyote_property_info_mood = 1911s # { 1911s # { 1911s # -1, 1911s # (gchar *) "Mood", 1911s # (gchar *) "s", 1911s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1911s # NULL 1911s # }, 1911s # "mood", 1911s # FALSE, 1911s # TRUE 1911s # }; 1911s # 1911s # static const GDBusPropertyInfo * const _com_acme_coyote_property_info_pointers[] = 1911s # { 1911s # &_com_acme_coyote_property_info_mood.parent_struct, 1911s # NULL 1911s # }; 1911s # 1911s # static const _ExtendedGDBusInterfaceInfo _com_acme_coyote_interface_info = 1911s # { 1911s # { 1911s # -1, 1911s # (gchar *) "com.acme.Coyote", 1911s # (GDBusMethodInfo **) &_com_acme_coyote_method_info_pointers, 1911s # (GDBusSignalInfo **) &_com_acme_coyote_signal_info_pointers, 1911s # (GDBusPropertyInfo **) &_com_acme_coyote_property_info_pointers, 1911s # NULL 1911s # }, 1911s # "com-acme-coyote", 1911s # }; 1911s # 1911s # 1911s # /** 1911s # * com_acme_coyote_interface_info: 1911s # * 1911s # * Gets a machine-readable description of the com.acme.Coyote D-Bus interface. 1911s # * 1911s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1911s # */ 1911s # GDBusInterfaceInfo * 1911s # com_acme_coyote_interface_info (void) 1911s # { 1911s # return (GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct; 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_override_properties: 1911s # * @klass: The class structure for a #GObject derived class. 1911s # * @property_id_begin: The property id to assign to the first overridden property. 1911s # * 1911s # * Overrides all #GObject properties in the #ComAcmeCoyote interface for a concrete class. 1911s # * The properties are overridden in the order they are defined. 1911s # * 1911s # * Returns: The last property id. 1911s # */ 1911s # guint 1911s # com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin) 1911s # { 1911s # g_object_class_override_property (klass, property_id_begin++, "mood"); 1911s # return property_id_begin - 1; 1911s # } 1911s # 1911s # 1911s # inline static void 1911s # com_acme_coyote_signal_marshal_surprised ( 1911s # GClosure *closure, 1911s # GValue *return_value, 1911s # unsigned int n_param_values, 1911s # const GValue *param_values, 1911s # void *invocation_hint, 1911s # void *marshal_data) 1911s # { 1911s # g_cclosure_marshal_VOID__VOID (closure, 1911s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1911s # } 1911s # 1911s # inline static void 1911s # com_acme_coyote_method_marshal_run ( 1911s # GClosure *closure, 1911s # GValue *return_value, 1911s # unsigned int n_param_values, 1911s # const GValue *param_values, 1911s # void *invocation_hint, 1911s # void *marshal_data) 1911s # { 1911s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1911s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1911s # } 1911s # 1911s # inline static void 1911s # com_acme_coyote_method_marshal_sleep ( 1911s # GClosure *closure, 1911s # GValue *return_value, 1911s # unsigned int n_param_values, 1911s # const GValue *param_values, 1911s # void *invocation_hint, 1911s # void *marshal_data) 1911s # { 1911s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1911s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1911s # } 1911s # 1911s # inline static void 1911s # com_acme_coyote_method_marshal_attack ( 1911s # GClosure *closure, 1911s # GValue *return_value, 1911s # unsigned int n_param_values, 1911s # const GValue *param_values, 1911s # void *invocation_hint, 1911s # void *marshal_data) 1911s # { 1911s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1911s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1911s # } 1911s # 1911s # 1911s # /** 1911s # * ComAcmeCoyote: 1911s # * 1911s # * Abstract interface type for the D-Bus interface com.acme.Coyote. 1911s # */ 1911s # 1911s # /** 1911s # * ComAcmeCoyoteIface: 1911s # * @parent_iface: The parent interface. 1911s # * @handle_attack: Handler for the #ComAcmeCoyote::handle-attack signal. 1911s # * @handle_run: Handler for the #ComAcmeCoyote::handle-run signal. 1911s # * @handle_sleep: Handler for the #ComAcmeCoyote::handle-sleep signal. 1911s # * @get_mood: Getter for the #ComAcmeCoyote:mood property. 1911s # * @surprised: Handler for the #ComAcmeCoyote::surprised signal. 1911s # * 1911s # * Virtual table for the D-Bus interface com.acme.Coyote. 1911s # */ 1911s # 1911s # typedef ComAcmeCoyoteIface ComAcmeCoyoteInterface; 1911s # G_DEFINE_INTERFACE (ComAcmeCoyote, com_acme_coyote, G_TYPE_OBJECT) 1911s # 1911s # static void 1911s # com_acme_coyote_default_init (ComAcmeCoyoteIface *iface) 1911s # { 1911s # /* GObject signals for incoming D-Bus method calls: */ 1911s # /** 1911s # * ComAcmeCoyote::handle-run: 1911s # * @object: A #ComAcmeCoyote. 1911s # * @invocation: A #GDBusMethodInvocation. 1911s # * 1911s # * Signal emitted when a remote caller is invoking the Run() D-Bus method. 1911s # * 1911s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call com_acme_coyote_complete_run() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1911s # * 1911s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1911s # */ 1911s # g_signal_new ("handle-run", 1911s # G_TYPE_FROM_INTERFACE (iface), 1911s # G_SIGNAL_RUN_LAST, 1911s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_run), 1911s # g_signal_accumulator_true_handled, 1911s # NULL, 1911s # com_acme_coyote_method_marshal_run, 1911s # G_TYPE_BOOLEAN, 1911s # 1, 1911s # G_TYPE_DBUS_METHOD_INVOCATION); 1911s # 1911s # /** 1911s # * ComAcmeCoyote::handle-sleep: 1911s # * @object: A #ComAcmeCoyote. 1911s # * @invocation: A #GDBusMethodInvocation. 1911s # * 1911s # * Signal emitted when a remote caller is invoking the Sleep() D-Bus method. 1911s # * 1911s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call com_acme_coyote_complete_sleep() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1911s # * 1911s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1911s # */ 1911s # g_signal_new ("handle-sleep", 1911s # G_TYPE_FROM_INTERFACE (iface), 1911s # G_SIGNAL_RUN_LAST, 1911s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_sleep), 1911s # g_signal_accumulator_true_handled, 1911s # NULL, 1911s # com_acme_coyote_method_marshal_sleep, 1911s # G_TYPE_BOOLEAN, 1911s # 1, 1911s # G_TYPE_DBUS_METHOD_INVOCATION); 1911s # 1911s # /** 1911s # * ComAcmeCoyote::handle-attack: 1911s # * @object: A #ComAcmeCoyote. 1911s # * @invocation: A #GDBusMethodInvocation. 1911s # * 1911s # * Signal emitted when a remote caller is invoking the Attack() D-Bus method. 1911s # * 1911s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call com_acme_coyote_complete_attack() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1911s # * 1911s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1911s # */ 1911s # g_signal_new ("handle-attack", 1911s # G_TYPE_FROM_INTERFACE (iface), 1911s # G_SIGNAL_RUN_LAST, 1911s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_attack), 1911s # g_signal_accumulator_true_handled, 1911s # NULL, 1911s # com_acme_coyote_method_marshal_attack, 1911s # G_TYPE_BOOLEAN, 1911s # 1, 1911s # G_TYPE_DBUS_METHOD_INVOCATION); 1911s # 1911s # /* GObject signals for received D-Bus signals: */ 1911s # /** 1911s # * ComAcmeCoyote::surprised: 1911s # * @object: A #ComAcmeCoyote. 1911s # * 1911s # * On the client-side, this signal is emitted whenever the D-Bus signal "Surprised" is received. 1911s # * 1911s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1911s # */ 1911s # _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED] = 1911s # g_signal_new ("surprised", 1911s # G_TYPE_FROM_INTERFACE (iface), 1911s # G_SIGNAL_RUN_LAST, 1911s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, surprised), 1911s # NULL, 1911s # NULL, 1911s # com_acme_coyote_signal_marshal_surprised, 1911s # G_TYPE_NONE, 1911s # 0); 1911s # 1911s # /* GObject properties for D-Bus properties: */ 1911s # /** 1911s # * ComAcmeCoyote:mood: 1911s # * 1911s # * Represents the D-Bus property "Mood". 1911s # * 1911s # * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side. 1911s # */ 1911s # g_object_interface_install_property (iface, 1911s # g_param_spec_string ("mood", "Mood", "Mood", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_get_mood: (skip) 1911s # * @object: A #ComAcmeCoyote. 1911s # * 1911s # * Gets the value of the "Mood" D-Bus property. 1911s # * 1911s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1911s # * 1911s # * The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where @object was constructed. Use com_acme_coyote_dup_mood() if on another thread. 1911s # * 1911s # * Returns: (transfer none) (nullable): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object. 1911s # */ 1911s # const gchar * 1911s # com_acme_coyote_get_mood (ComAcmeCoyote *object) 1911s # { 1911s # g_return_val_if_fail (IS_COM_ACME_COYOTE (object), NULL); 1911s # 1911s # return COM_ACME_COYOTE_GET_IFACE (object)->get_mood (object); 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_dup_mood: (skip) 1911s # * @object: A #ComAcmeCoyote. 1911s # * 1911s # * Gets a copy of the "Mood" D-Bus property. 1911s # * 1911s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1911s # * 1911s # * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). 1911s # */ 1911s # gchar * 1911s # com_acme_coyote_dup_mood (ComAcmeCoyote *object) 1911s # { 1911s # gchar *value; 1911s # g_object_get (G_OBJECT (object), "mood", &value, NULL); 1911s # return value; 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_set_mood: (skip) 1911s # * @object: A #ComAcmeCoyote. 1911s # * @value: The value to set. 1911s # * 1911s # * Sets the "Mood" D-Bus property to @value. 1911s # * 1911s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1911s # */ 1911s # void 1911s # com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value) 1911s # { 1911s # g_object_set (G_OBJECT (object), "mood", value, NULL); 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_emit_surprised: 1911s # * @object: A #ComAcmeCoyote. 1911s # * 1911s # * Emits the "Surprised" D-Bus signal. 1911s # */ 1911s # void 1911s # com_acme_coyote_emit_surprised ( 1911s # ComAcmeCoyote *object) 1911s # { 1911s # g_signal_emit (object, _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED], 0); 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_call_run: 1911s # * @proxy: A #ComAcmeCoyoteProxy. 1911s # * @cancellable: (nullable): A #GCancellable or %NULL. 1911s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1911s # * @user_data: User data to pass to @callback. 1911s # * 1911s # * Asynchronously invokes the Run() D-Bus method on @proxy. 1911s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1911s # * You can then call com_acme_coyote_call_run_finish() to get the result of the operation. 1911s # * 1911s # * See com_acme_coyote_call_run_sync() for the synchronous, blocking version of this method. 1911s # */ 1911s # void 1911s # com_acme_coyote_call_run ( 1911s # ComAcmeCoyote *proxy, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data) 1911s # { 1911s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1911s # "Run", 1911s # g_variant_new ("()"), 1911s # G_DBUS_CALL_FLAGS_NONE, 1911s # -1, 1911s # cancellable, 1911s # callback, 1911s # user_data); 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_call_run_finish: 1911s # * @proxy: A #ComAcmeCoyoteProxy. 1911s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_run(). 1911s # * @error: Return location for error or %NULL. 1911s # * 1911s # * Finishes an operation started with com_acme_coyote_call_run(). 1911s # * 1911s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1911s # */ 1911s # gboolean 1911s # com_acme_coyote_call_run_finish ( 1911s # ComAcmeCoyote *proxy, 1911s # GAsyncResult *res, 1911s # GError **error) 1911s # { 1911s # GVariant *_ret; 1911s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1911s # if (_ret == NULL) 1911s # goto _out; 1911s # g_variant_get (_ret, 1911s # "()"); 1911s # g_variant_unref (_ret); 1911s # _out: 1911s # return _ret != NULL; 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_call_run_sync: 1911s # * @proxy: A #ComAcmeCoyoteProxy. 1911s # * @cancellable: (nullable): A #GCancellable or %NULL. 1911s # * @error: Return location for error or %NULL. 1911s # * 1911s # * Synchronously invokes the Run() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1911s # * 1911s # * See com_acme_coyote_call_run() for the asynchronous version of this method. 1911s # * 1911s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1911s # */ 1911s # gboolean 1911s # com_acme_coyote_call_run_sync ( 1911s # ComAcmeCoyote *proxy, 1911s # GCancellable *cancellable, 1911s # GError **error) 1911s # { 1911s # GVariant *_ret; 1911s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1911s # "Run", 1911s # g_variant_new ("()"), 1911s # G_DBUS_CALL_FLAGS_NONE, 1911s # -1, 1911s # cancellable, 1911s # error); 1911s # if (_ret == NULL) 1911s # goto _out; 1911s # g_variant_get (_ret, 1911s # "()"); 1911s # g_variant_unref (_ret); 1911s # _out: 1911s # return _ret != NULL; 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_call_sleep: 1911s # * @proxy: A #ComAcmeCoyoteProxy. 1911s # * @cancellable: (nullable): A #GCancellable or %NULL. 1911s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1911s # * @user_data: User data to pass to @callback. 1911s # * 1911s # * Asynchronously invokes the Sleep() D-Bus method on @proxy. 1911s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1911s # * You can then call com_acme_coyote_call_sleep_finish() to get the result of the operation. 1911s # * 1911s # * See com_acme_coyote_call_sleep_sync() for the synchronous, blocking version of this method. 1911s # */ 1911s # void 1911s # com_acme_coyote_call_sleep ( 1911s # ComAcmeCoyote *proxy, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data) 1911s # { 1911s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1911s # "Sleep", 1911s # g_variant_new ("()"), 1911s # G_DBUS_CALL_FLAGS_NONE, 1911s # -1, 1911s # cancellable, 1911s # callback, 1911s # user_data); 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_call_sleep_finish: 1911s # * @proxy: A #ComAcmeCoyoteProxy. 1911s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_sleep(). 1911s # * @error: Return location for error or %NULL. 1911s # * 1911s # * Finishes an operation started with com_acme_coyote_call_sleep(). 1911s # * 1911s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1911s # */ 1911s # gboolean 1911s # com_acme_coyote_call_sleep_finish ( 1911s # ComAcmeCoyote *proxy, 1911s # GAsyncResult *res, 1911s # GError **error) 1911s # { 1911s # GVariant *_ret; 1911s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1911s # if (_ret == NULL) 1911s # goto _out; 1911s # g_variant_get (_ret, 1911s # "()"); 1911s # g_variant_unref (_ret); 1911s # _out: 1911s # return _ret != NULL; 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_call_sleep_sync: 1911s # * @proxy: A #ComAcmeCoyoteProxy. 1911s # * @cancellable: (nullable): A #GCancellable or %NULL. 1911s # * @error: Return location for error or %NULL. 1911s # * 1911s # * Synchronously invokes the Sleep() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1911s # * 1911s # * See com_acme_coyote_call_sleep() for the asynchronous version of this method. 1911s # * 1911s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1911s # */ 1911s # gboolean 1911s # com_acme_coyote_call_sleep_sync ( 1911s # ComAcmeCoyote *proxy, 1911s # GCancellable *cancellable, 1911s # GError **error) 1911s # { 1911s # GVariant *_ret; 1911s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1911s # "Sleep", 1911s # g_variant_new ("()"), 1911s # G_DBUS_CALL_FLAGS_NONE, 1911s # -1, 1911s # cancellable, 1911s # error); 1911s # if (_ret == NULL) 1911s # goto _out; 1911s # g_variant_get (_ret, 1911s # "()"); 1911s # g_variant_unref (_ret); 1911s # _out: 1911s # return _ret != NULL; 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_call_attack: 1911s # * @proxy: A #ComAcmeCoyoteProxy. 1911s # * @cancellable: (nullable): A #GCancellable or %NULL. 1911s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1911s # * @user_data: User data to pass to @callback. 1911s # * 1911s # * Asynchronously invokes the Attack() D-Bus method on @proxy. 1911s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1911s # * You can then call com_acme_coyote_call_attack_finish() to get the result of the operation. 1911s # * 1911s # * See com_acme_coyote_call_attack_sync() for the synchronous, blocking version of this method. 1911s # */ 1911s # void 1911s # com_acme_coyote_call_attack ( 1911s # ComAcmeCoyote *proxy, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data) 1911s # { 1911s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1911s # "Attack", 1911s # g_variant_new ("()"), 1911s # G_DBUS_CALL_FLAGS_NONE, 1911s # -1, 1911s # cancellable, 1911s # callback, 1911s # user_data); 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_call_attack_finish: 1911s # * @proxy: A #ComAcmeCoyoteProxy. 1911s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_attack(). 1911s # * @error: Return location for error or %NULL. 1911s # * 1911s # * Finishes an operation started with com_acme_coyote_call_attack(). 1911s # * 1911s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1911s # */ 1911s # gboolean 1911s # com_acme_coyote_call_attack_finish ( 1911s # ComAcmeCoyote *proxy, 1911s # GAsyncResult *res, 1911s # GError **error) 1911s # { 1911s # GVariant *_ret; 1911s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1911s # if (_ret == NULL) 1911s # goto _out; 1911s # g_variant_get (_ret, 1911s # "()"); 1911s # g_variant_unref (_ret); 1911s # _out: 1911s # return _ret != NULL; 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_call_attack_sync: 1911s # * @proxy: A #ComAcmeCoyoteProxy. 1911s # * @cancellable: (nullable): A #GCancellable or %NULL. 1911s # * @error: Return location for error or %NULL. 1911s # * 1911s # * Synchronously invokes the Attack() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1911s # * 1911s # * See com_acme_coyote_call_attack() for the asynchronous version of this method. 1911s # * 1911s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1911s # */ 1911s # gboolean 1911s # com_acme_coyote_call_attack_sync ( 1911s # ComAcmeCoyote *proxy, 1911s # GCancellable *cancellable, 1911s # GError **error) 1911s # { 1911s # GVariant *_ret; 1911s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1911s # "Attack", 1911s # g_variant_new ("()"), 1911s # G_DBUS_CALL_FLAGS_NONE, 1911s # -1, 1911s # cancellable, 1911s # error); 1911s # if (_ret == NULL) 1911s # goto _out; 1911s # g_variant_get (_ret, 1911s # "()"); 1911s # g_variant_unref (_ret); 1911s # _out: 1911s # return _ret != NULL; 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_complete_run: 1911s # * @object: A #ComAcmeCoyote. 1911s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1911s # * 1911s # * Helper function used in service implementations to finish handling invocations of the Run() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1911s # * 1911s # * This method will free @invocation, you cannot use it afterwards. 1911s # */ 1911s # void 1911s # com_acme_coyote_complete_run ( 1911s # ComAcmeCoyote *object G_GNUC_UNUSED, 1911s # GDBusMethodInvocation *invocation) 1911s # { 1911s # g_dbus_method_invocation_return_value (invocation, 1911s # g_variant_new ("()")); 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_complete_sleep: 1911s # * @object: A #ComAcmeCoyote. 1911s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1911s # * 1911s # * Helper function used in service implementations to finish handling invocations of the Sleep() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1911s # * 1911s # * This method will free @invocation, you cannot use it afterwards. 1911s # */ 1911s # void 1911s # com_acme_coyote_complete_sleep ( 1911s # ComAcmeCoyote *object G_GNUC_UNUSED, 1911s # GDBusMethodInvocation *invocation) 1911s # { 1911s # g_dbus_method_invocation_return_value (invocation, 1911s # g_variant_new ("()")); 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_complete_attack: 1911s # * @object: A #ComAcmeCoyote. 1911s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1911s # * 1911s # * Helper function used in service implementations to finish handling invocations of the Attack() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1911s # * 1911s # * This method will free @invocation, you cannot use it afterwards. 1911s # */ 1911s # void 1911s # com_acme_coyote_complete_attack ( 1911s # ComAcmeCoyote *object G_GNUC_UNUSED, 1911s # GDBusMethodInvocation *invocation) 1911s # { 1911s # g_dbus_method_invocation_return_value (invocation, 1911s # g_variant_new ("()")); 1911s # } 1911s # 1911s # /* ------------------------------------------------------------------------ */ 1911s # 1911s # /** 1911s # * ComAcmeCoyoteProxy: 1911s # * 1911s # * The #ComAcmeCoyoteProxy structure contains only private data and should only be accessed using the provided API. 1911s # */ 1911s # 1911s # /** 1911s # * ComAcmeCoyoteProxyClass: 1911s # * @parent_class: The parent class. 1911s # * 1911s # * Class structure for #ComAcmeCoyoteProxy. 1911s # */ 1911s # 1911s # struct _ComAcmeCoyoteProxyPrivate 1911s # { 1911s # GData *qdata; 1911s # }; 1911s # 1911s # static void com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface); 1911s # 1911s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1911s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1911s # G_ADD_PRIVATE (ComAcmeCoyoteProxy) 1911s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1911s # 1911s # #else 1911s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1911s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1911s # 1911s # #endif 1911s # static void 1911s # com_acme_coyote_proxy_finalize (GObject *object) 1911s # { 1911s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1911s # g_datalist_clear (&proxy->priv->qdata); 1911s # G_OBJECT_CLASS (com_acme_coyote_proxy_parent_class)->finalize (object); 1911s # } 1911s # 1911s # static void 1911s # com_acme_coyote_proxy_get_property (GObject *object, 1911s # guint prop_id, 1911s # GValue *value, 1911s # GParamSpec *pspec G_GNUC_UNUSED) 1911s # { 1911s # const _ExtendedGDBusPropertyInfo *info; 1911s # GVariant *variant; 1911s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1911s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1911s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1911s # if (info->use_gvariant) 1911s # { 1911s # g_value_set_variant (value, variant); 1911s # } 1911s # else 1911s # { 1911s # if (variant != NULL) 1911s # g_dbus_gvariant_to_gvalue (variant, value); 1911s # } 1911s # if (variant != NULL) 1911s # g_variant_unref (variant); 1911s # } 1911s # 1911s # static void 1911s # com_acme_coyote_proxy_set_property_cb (GDBusProxy *proxy, 1911s # GAsyncResult *res, 1911s # gpointer user_data) 1911s # { 1911s # const _ExtendedGDBusPropertyInfo *info = user_data; 1911s # GError *error; 1911s # GVariant *_ret; 1911s # error = NULL; 1911s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1911s # if (!_ret) 1911s # { 1911s # g_warning ("Error setting property '%s' on interface com.acme.Coyote: %s (%s, %d)", 1911s # info->parent_struct.name, 1911s # error->message, g_quark_to_string (error->domain), error->code); 1911s # g_error_free (error); 1911s # } 1911s # else 1911s # { 1911s # g_variant_unref (_ret); 1911s # } 1911s # } 1911s # 1911s # static void 1911s # com_acme_coyote_proxy_set_property (GObject *object, 1911s # guint prop_id, 1911s # const GValue *value, 1911s # GParamSpec *pspec G_GNUC_UNUSED) 1911s # { 1911s # const _ExtendedGDBusPropertyInfo *info; 1911s # GVariant *variant; 1911s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1911s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1911s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1911s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1911s # "org.freedesktop.DBus.Properties.Set", 1911s # g_variant_new ("(ssv)", "com.acme.Coyote", info->parent_struct.name, variant), 1911s # G_DBUS_CALL_FLAGS_NONE, 1911s # -1, 1911s # NULL, (GAsyncReadyCallback) com_acme_coyote_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1911s # g_variant_unref (variant); 1911s # } 1911s # 1911s # static void 1911s # com_acme_coyote_proxy_g_signal (GDBusProxy *proxy, 1911s # const gchar *sender_name G_GNUC_UNUSED, 1911s # const gchar *signal_name, 1911s # GVariant *parameters) 1911s # { 1911s # _ExtendedGDBusSignalInfo *info; 1911s # GVariantIter iter; 1911s # GVariant *child; 1911s # GValue *paramv; 1911s # gsize num_params; 1911s # gsize n; 1911s # guint signal_id; 1911s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, signal_name); 1911s # if (info == NULL) 1911s # return; 1911s # num_params = g_variant_n_children (parameters); 1911s # paramv = g_new0 (GValue, num_params + 1); 1911s # g_value_init (¶mv[0], TYPE_COM_ACME_COYOTE); 1911s # g_value_set_object (¶mv[0], proxy); 1911s # g_variant_iter_init (&iter, parameters); 1911s # n = 1; 1911s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1911s # { 1911s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1911s # if (arg_info->use_gvariant) 1911s # { 1911s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1911s # g_value_set_variant (¶mv[n], child); 1911s # n++; 1911s # } 1911s # else 1911s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1911s # g_variant_unref (child); 1911s # } 1911s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1911s # g_signal_emitv (paramv, signal_id, 0, NULL); 1911s # for (n = 0; n < num_params + 1; n++) 1911s # g_value_unset (¶mv[n]); 1911s # g_free (paramv); 1911s # } 1911s # 1911s # static void 1911s # com_acme_coyote_proxy_g_properties_changed (GDBusProxy *_proxy, 1911s # GVariant *changed_properties, 1911s # const gchar *const *invalidated_properties) 1911s # { 1911s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (_proxy); 1911s # guint n; 1911s # const gchar *key; 1911s # GVariantIter *iter; 1911s # _ExtendedGDBusPropertyInfo *info; 1911s # g_variant_get (changed_properties, "a{sv}", &iter); 1911s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1911s # { 1911s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, key); 1911s # g_datalist_remove_data (&proxy->priv->qdata, key); 1911s # if (info != NULL) 1911s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1911s # } 1911s # g_variant_iter_free (iter); 1911s # for (n = 0; invalidated_properties[n] != NULL; n++) 1911s # { 1911s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, invalidated_properties[n]); 1911s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1911s # if (info != NULL) 1911s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1911s # } 1911s # } 1911s # 1911s # static const gchar * 1911s # com_acme_coyote_proxy_get_mood (ComAcmeCoyote *object) 1911s # { 1911s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1911s # GVariant *variant; 1911s # const gchar *value = NULL; 1911s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Mood"); 1911s # if (variant != NULL) 1911s # { 1911s # value = g_variant_get_string (variant, NULL); 1911s # g_variant_unref (variant); 1911s # } 1911s # return value; 1911s # } 1911s # 1911s # static void 1911s # com_acme_coyote_proxy_init (ComAcmeCoyoteProxy *proxy) 1911s # { 1911s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1911s # proxy->priv = com_acme_coyote_proxy_get_instance_private (proxy); 1911s # #else 1911s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyPrivate); 1911s # #endif 1911s # 1911s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), com_acme_coyote_interface_info ()); 1911s # } 1911s # 1911s # static void 1911s # com_acme_coyote_proxy_class_init (ComAcmeCoyoteProxyClass *klass) 1911s # { 1911s # GObjectClass *gobject_class; 1911s # GDBusProxyClass *proxy_class; 1911s # 1911s # gobject_class = G_OBJECT_CLASS (klass); 1911s # gobject_class->finalize = com_acme_coyote_proxy_finalize; 1911s # gobject_class->get_property = com_acme_coyote_proxy_get_property; 1911s # gobject_class->set_property = com_acme_coyote_proxy_set_property; 1911s # 1911s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1911s # proxy_class->g_signal = com_acme_coyote_proxy_g_signal; 1911s # proxy_class->g_properties_changed = com_acme_coyote_proxy_g_properties_changed; 1911s # 1911s # com_acme_coyote_override_properties (gobject_class, 1); 1911s # 1911s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1911s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteProxyPrivate)); 1911s # #endif 1911s # } 1911s # 1911s # static void 1911s # com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface) 1911s # { 1911s # iface->get_mood = com_acme_coyote_proxy_get_mood; 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_proxy_new: 1911s # * @connection: A #GDBusConnection. 1911s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1911s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1911s # * @object_path: An object path. 1911s # * @cancellable: (nullable): A #GCancellable or %NULL. 1911s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1911s # * @user_data: User data to pass to @callback. 1911s # * 1911s # * Asynchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new() for more details. 1911s # * 1911s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1911s # * You can then call com_acme_coyote_proxy_new_finish() to get the result of the operation. 1911s # * 1911s # * See com_acme_coyote_proxy_new_sync() for the synchronous, blocking version of this constructor. 1911s # */ 1911s # void 1911s # com_acme_coyote_proxy_new ( 1911s # GDBusConnection *connection, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data) 1911s # { 1911s # g_async_initable_new_async (TYPE_COM_ACME_COYOTE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "com.acme.Coyote", NULL); 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_proxy_new_finish: 1911s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new(). 1911s # * @error: Return location for error or %NULL 1911s # * 1911s # * Finishes an operation started with com_acme_coyote_proxy_new(). 1911s # * 1911s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1911s # */ 1911s # ComAcmeCoyote * 1911s # com_acme_coyote_proxy_new_finish ( 1911s # GAsyncResult *res, 1911s # GError **error) 1911s # { 1911s # GObject *ret; 1911s # GObject *source_object; 1911s # source_object = g_async_result_get_source_object (res); 1911s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1911s # g_object_unref (source_object); 1911s # if (ret != NULL) 1911s # return COM_ACME_COYOTE (ret); 1911s # else 1911s # return NULL; 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_proxy_new_sync: 1911s # * @connection: A #GDBusConnection. 1911s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1911s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1911s # * @object_path: An object path. 1911s # * @cancellable: (nullable): A #GCancellable or %NULL. 1911s # * @error: Return location for error or %NULL 1911s # * 1911s # * Synchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new_sync() for more details. 1911s # * 1911s # * The calling thread is blocked until a reply is received. 1911s # * 1911s # * See com_acme_coyote_proxy_new() for the asynchronous version of this constructor. 1911s # * 1911s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1911s # */ 1911s # ComAcmeCoyote * 1911s # com_acme_coyote_proxy_new_sync ( 1911s # GDBusConnection *connection, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GError **error) 1911s # { 1911s # GInitable *ret; 1911s # ret = g_initable_new (TYPE_COM_ACME_COYOTE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "com.acme.Coyote", NULL); 1911s # if (ret != NULL) 1911s # return COM_ACME_COYOTE (ret); 1911s # else 1911s # return NULL; 1911s # } 1911s # 1911s # 1911s # /** 1911s # * com_acme_coyote_proxy_new_for_bus: 1911s # * @bus_type: A #GBusType. 1911s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1911s # * @name: A bus name (well-known or unique). 1911s # * @object_path: An object path. 1911s # * @cancellable: (nullable): A #GCancellable or %NULL. 1911s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1911s # * @user_data: User data to pass to @callback. 1911s # * 1911s # * Like com_acme_coyote_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1911s # * 1911s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1911s # * You can then call com_acme_coyote_proxy_new_for_bus_finish() to get the result of the operation. 1911s # * 1911s # * See com_acme_coyote_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1911s # */ 1911s # void 1911s # com_acme_coyote_proxy_new_for_bus ( 1911s # GBusType bus_type, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data) 1911s # { 1911s # g_async_initable_new_async (TYPE_COM_ACME_COYOTE_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "com.acme.Coyote", NULL); 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_proxy_new_for_bus_finish: 1911s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new_for_bus(). 1911s # * @error: Return location for error or %NULL 1911s # * 1911s # * Finishes an operation started with com_acme_coyote_proxy_new_for_bus(). 1911s # * 1911s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1911s # */ 1911s # ComAcmeCoyote * 1911s # com_acme_coyote_proxy_new_for_bus_finish ( 1911s # GAsyncResult *res, 1911s # GError **error) 1911s # { 1911s # GObject *ret; 1911s # GObject *source_object; 1911s # source_object = g_async_result_get_source_object (res); 1911s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1911s # g_object_unref (source_object); 1911s # if (ret != NULL) 1911s # return COM_ACME_COYOTE (ret); 1911s # else 1911s # return NULL; 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_proxy_new_for_bus_sync: 1911s # * @bus_type: A #GBusType. 1911s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1911s # * @name: A bus name (well-known or unique). 1911s # * @object_path: An object path. 1911s # * @cancellable: (nullable): A #GCancellable or %NULL. 1911s # * @error: Return location for error or %NULL 1911s # * 1911s # * Like com_acme_coyote_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1911s # * 1911s # * The calling thread is blocked until a reply is received. 1911s # * 1911s # * See com_acme_coyote_proxy_new_for_bus() for the asynchronous version of this constructor. 1911s # * 1911s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1911s # */ 1911s # ComAcmeCoyote * 1911s # com_acme_coyote_proxy_new_for_bus_sync ( 1911s # GBusType bus_type, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GError **error) 1911s # { 1911s # GInitable *ret; 1911s # ret = g_initable_new (TYPE_COM_ACME_COYOTE_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "com.acme.Coyote", NULL); 1911s # if (ret != NULL) 1911s # return COM_ACME_COYOTE (ret); 1911s # else 1911s # return NULL; 1911s # } 1911s # 1911s # 1911s # /* ------------------------------------------------------------------------ */ 1911s # 1911s # /** 1911s # * ComAcmeCoyoteSkeleton: 1911s # * 1911s # * The #ComAcmeCoyoteSkeleton structure contains only private data and should only be accessed using the provided API. 1911s # */ 1911s # 1911s # /** 1911s # * ComAcmeCoyoteSkeletonClass: 1911s # * @parent_class: The parent class. 1911s # * 1911s # * Class structure for #ComAcmeCoyoteSkeleton. 1911s # */ 1911s # 1911s # struct _ComAcmeCoyoteSkeletonPrivate 1911s # { 1911s # GValue *properties; 1911s # GList *changed_properties; 1911s # GSource *changed_properties_idle_source; 1911s # GMainContext *context; 1911s # GMutex lock; 1911s # }; 1911s # 1911s # static void 1911s # _com_acme_coyote_skeleton_handle_method_call ( 1911s # GDBusConnection *connection G_GNUC_UNUSED, 1911s # const gchar *sender G_GNUC_UNUSED, 1911s # const gchar *object_path G_GNUC_UNUSED, 1911s # const gchar *interface_name, 1911s # const gchar *method_name, 1911s # GVariant *parameters, 1911s # GDBusMethodInvocation *invocation, 1911s # gpointer user_data) 1911s # { 1911s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1911s # _ExtendedGDBusMethodInfo *info; 1911s # GVariantIter iter; 1911s # GVariant *child; 1911s # GValue *paramv; 1911s # gsize num_params; 1911s # guint num_extra; 1911s # gsize n; 1911s # guint signal_id; 1911s # GValue return_value = G_VALUE_INIT; 1911s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1911s # g_assert (info != NULL); 1911s # num_params = g_variant_n_children (parameters); 1911s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1911s # n = 0; 1911s # g_value_init (¶mv[n], TYPE_COM_ACME_COYOTE); 1911s # g_value_set_object (¶mv[n++], skeleton); 1911s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1911s # g_value_set_object (¶mv[n++], invocation); 1911s # if (info->pass_fdlist) 1911s # { 1911s # #ifdef G_OS_UNIX 1911s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1911s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1911s # #else 1911s # g_assert_not_reached (); 1911s # #endif 1911s # } 1911s # g_variant_iter_init (&iter, parameters); 1911s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1911s # { 1911s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1911s # if (arg_info->use_gvariant) 1911s # { 1911s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1911s # g_value_set_variant (¶mv[n], child); 1911s # n++; 1911s # } 1911s # else 1911s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1911s # g_variant_unref (child); 1911s # } 1911s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1911s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1911s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1911s # if (!g_value_get_boolean (&return_value)) 1911s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1911s # g_value_unset (&return_value); 1911s # for (n = 0; n < num_params + num_extra; n++) 1911s # g_value_unset (¶mv[n]); 1911s # g_free (paramv); 1911s # } 1911s # 1911s # static GVariant * 1911s # _com_acme_coyote_skeleton_handle_get_property ( 1911s # GDBusConnection *connection G_GNUC_UNUSED, 1911s # const gchar *sender G_GNUC_UNUSED, 1911s # const gchar *object_path G_GNUC_UNUSED, 1911s # const gchar *interface_name G_GNUC_UNUSED, 1911s # const gchar *property_name, 1911s # GError **error, 1911s # gpointer user_data) 1911s # { 1911s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1911s # GValue value = G_VALUE_INIT; 1911s # GParamSpec *pspec; 1911s # _ExtendedGDBusPropertyInfo *info; 1911s # GVariant *ret; 1911s # ret = NULL; 1911s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1911s # g_assert (info != NULL); 1911s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1911s # if (pspec == NULL) 1911s # { 1911s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1911s # } 1911s # else 1911s # { 1911s # g_value_init (&value, pspec->value_type); 1911s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1911s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1911s # g_value_unset (&value); 1911s # } 1911s # return ret; 1911s # } 1911s # 1911s # static gboolean 1911s # _com_acme_coyote_skeleton_handle_set_property ( 1911s # GDBusConnection *connection G_GNUC_UNUSED, 1911s # const gchar *sender G_GNUC_UNUSED, 1911s # const gchar *object_path G_GNUC_UNUSED, 1911s # const gchar *interface_name G_GNUC_UNUSED, 1911s # const gchar *property_name, 1911s # GVariant *variant, 1911s # GError **error, 1911s # gpointer user_data) 1911s # { 1911s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1911s # GValue value = G_VALUE_INIT; 1911s # GParamSpec *pspec; 1911s # _ExtendedGDBusPropertyInfo *info; 1911s # gboolean ret; 1911s # ret = FALSE; 1911s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1911s # g_assert (info != NULL); 1911s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1911s # if (pspec == NULL) 1911s # { 1911s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1911s # } 1911s # else 1911s # { 1911s # if (info->use_gvariant) 1911s # g_value_set_variant (&value, variant); 1911s # else 1911s # g_dbus_gvariant_to_gvalue (variant, &value); 1911s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1911s # g_value_unset (&value); 1911s # ret = TRUE; 1911s # } 1911s # return ret; 1911s # } 1911s # 1911s # static const GDBusInterfaceVTable _com_acme_coyote_skeleton_vtable = 1911s # { 1911s # _com_acme_coyote_skeleton_handle_method_call, 1911s # _com_acme_coyote_skeleton_handle_get_property, 1911s # _com_acme_coyote_skeleton_handle_set_property, 1911s # {NULL} 1911s # }; 1911s # 1911s # static GDBusInterfaceInfo * 1911s # com_acme_coyote_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1911s # { 1911s # return com_acme_coyote_interface_info (); 1911s # } 1911s # 1911s # static GDBusInterfaceVTable * 1911s # com_acme_coyote_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1911s # { 1911s # return (GDBusInterfaceVTable *) &_com_acme_coyote_skeleton_vtable; 1911s # } 1911s # 1911s # static GVariant * 1911s # com_acme_coyote_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1911s # { 1911s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1911s # 1911s # GVariantBuilder builder; 1911s # guint n; 1911s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1911s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1911s # #else 1911s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1911s # #endif 1911s # if (_com_acme_coyote_interface_info.parent_struct.properties == NULL) 1911s # goto out; 1911s # for (n = 0; _com_acme_coyote_interface_info.parent_struct.properties[n] != NULL; n++) 1911s # { 1911s # GDBusPropertyInfo *info = _com_acme_coyote_interface_info.parent_struct.properties[n]; 1911s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1911s # { 1911s # GVariant *value; 1911s # value = _com_acme_coyote_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.acme.Coyote", info->name, NULL, skeleton); 1911s # if (value != NULL) 1911s # { 1911s # g_variant_take_ref (value); 1911s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1911s # g_variant_unref (value); 1911s # } 1911s # } 1911s # } 1911s # out: 1911s # return g_variant_builder_end (&builder); 1911s # } 1911s # 1911s # static gboolean _com_acme_coyote_emit_changed (gpointer user_data); 1911s # 1911s # static void 1911s # com_acme_coyote_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1911s # { 1911s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1911s # gboolean emit_changed = FALSE; 1911s # 1911s # g_mutex_lock (&skeleton->priv->lock); 1911s # if (skeleton->priv->changed_properties_idle_source != NULL) 1911s # { 1911s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1911s # skeleton->priv->changed_properties_idle_source = NULL; 1911s # emit_changed = TRUE; 1911s # } 1911s # g_mutex_unlock (&skeleton->priv->lock); 1911s # 1911s # if (emit_changed) 1911s # _com_acme_coyote_emit_changed (skeleton); 1911s # } 1911s # 1911s # static void 1911s # _com_acme_coyote_on_signal_surprised ( 1911s # ComAcmeCoyote *object) 1911s # { 1911s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1911s # 1911s # GList *connections, *l; 1911s # GVariant *signal_variant; 1911s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1911s # 1911s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1911s # for (l = connections; l != NULL; l = l->next) 1911s # { 1911s # GDBusConnection *connection = l->data; 1911s # g_dbus_connection_emit_signal (connection, 1911s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.acme.Coyote", "Surprised", 1911s # signal_variant, NULL); 1911s # } 1911s # g_variant_unref (signal_variant); 1911s # g_list_free_full (connections, g_object_unref); 1911s # } 1911s # 1911s # static void com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface); 1911s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1911s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1911s # G_ADD_PRIVATE (ComAcmeCoyoteSkeleton) 1911s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1911s # 1911s # #else 1911s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1911s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1911s # 1911s # #endif 1911s # static void 1911s # com_acme_coyote_skeleton_finalize (GObject *object) 1911s # { 1911s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1911s # guint n; 1911s # for (n = 0; n < 1; n++) 1911s # g_value_unset (&skeleton->priv->properties[n]); 1911s # g_free (skeleton->priv->properties); 1911s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1911s # if (skeleton->priv->changed_properties_idle_source != NULL) 1911s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1911s # g_main_context_unref (skeleton->priv->context); 1911s # g_mutex_clear (&skeleton->priv->lock); 1911s # G_OBJECT_CLASS (com_acme_coyote_skeleton_parent_class)->finalize (object); 1911s # } 1911s # 1911s # static void 1911s # com_acme_coyote_skeleton_get_property (GObject *object, 1911s # guint prop_id, 1911s # GValue *value, 1911s # GParamSpec *pspec G_GNUC_UNUSED) 1911s # { 1911s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1911s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1911s # g_mutex_lock (&skeleton->priv->lock); 1911s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1911s # g_mutex_unlock (&skeleton->priv->lock); 1911s # } 1911s # 1911s # static gboolean 1911s # _com_acme_coyote_emit_changed (gpointer user_data) 1911s # { 1911s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1911s # GList *l; 1911s # GVariantBuilder builder; 1911s # GVariantBuilder invalidated_builder; 1911s # guint num_changes; 1911s # 1911s # g_mutex_lock (&skeleton->priv->lock); 1911s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1911s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1911s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1911s # #else 1911s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1911s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1911s # #endif 1911s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1911s # { 1911s # ChangedProperty *cp = l->data; 1911s # GVariant *variant; 1911s # const GValue *cur_value; 1911s # 1911s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1911s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1911s # { 1911s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1911s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1911s # g_variant_unref (variant); 1911s # num_changes++; 1911s # } 1911s # } 1911s # if (num_changes > 0) 1911s # { 1911s # GList *connections, *ll; 1911s # GVariant *signal_variant; 1911s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "com.acme.Coyote", 1911s # &builder, &invalidated_builder)); 1911s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1911s # for (ll = connections; ll != NULL; ll = ll->next) 1911s # { 1911s # GDBusConnection *connection = ll->data; 1911s # 1911s # g_dbus_connection_emit_signal (connection, 1911s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1911s # "org.freedesktop.DBus.Properties", 1911s # "PropertiesChanged", 1911s # signal_variant, 1911s # NULL); 1911s # } 1911s # g_variant_unref (signal_variant); 1911s # g_list_free_full (connections, g_object_unref); 1911s # } 1911s # else 1911s # { 1911s # g_variant_builder_clear (&builder); 1911s # g_variant_builder_clear (&invalidated_builder); 1911s # } 1911s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1911s # skeleton->priv->changed_properties = NULL; 1911s # skeleton->priv->changed_properties_idle_source = NULL; 1911s # g_mutex_unlock (&skeleton->priv->lock); 1911s # return FALSE; 1911s # } 1911s # 1911s # static void 1911s # _com_acme_coyote_schedule_emit_changed (ComAcmeCoyoteSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1911s # { 1911s # ChangedProperty *cp; 1911s # GList *l; 1911s # cp = NULL; 1911s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1911s # { 1911s # ChangedProperty *i_cp = l->data; 1911s # if (i_cp->info == info) 1911s # { 1911s # cp = i_cp; 1911s # break; 1911s # } 1911s # } 1911s # if (cp == NULL) 1911s # { 1911s # cp = g_new0 (ChangedProperty, 1); 1911s # cp->prop_id = prop_id; 1911s # cp->info = info; 1911s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1911s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1911s # g_value_copy (orig_value, &cp->orig_value); 1911s # } 1911s # } 1911s # 1911s # static void 1911s # com_acme_coyote_skeleton_notify (GObject *object, 1911s # GParamSpec *pspec G_GNUC_UNUSED) 1911s # { 1911s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1911s # g_mutex_lock (&skeleton->priv->lock); 1911s # if (skeleton->priv->changed_properties != NULL && 1911s # skeleton->priv->changed_properties_idle_source == NULL) 1911s # { 1911s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1911s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1911s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _com_acme_coyote_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1911s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _com_acme_coyote_emit_changed"); 1911s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1911s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1911s # } 1911s # g_mutex_unlock (&skeleton->priv->lock); 1911s # } 1911s # 1911s # static void 1911s # com_acme_coyote_skeleton_set_property (GObject *object, 1911s # guint prop_id, 1911s # const GValue *value, 1911s # GParamSpec *pspec) 1911s # { 1911s # const _ExtendedGDBusPropertyInfo *info; 1911s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1911s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1911s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1911s # g_mutex_lock (&skeleton->priv->lock); 1911s # g_object_freeze_notify (object); 1911s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1911s # { 1911s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1911s # info->emits_changed_signal) 1911s # _com_acme_coyote_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1911s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1911s # g_object_notify_by_pspec (object, pspec); 1911s # } 1911s # g_mutex_unlock (&skeleton->priv->lock); 1911s # g_object_thaw_notify (object); 1911s # } 1911s # 1911s # static void 1911s # com_acme_coyote_skeleton_init (ComAcmeCoyoteSkeleton *skeleton) 1911s # { 1911s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1911s # skeleton->priv = com_acme_coyote_skeleton_get_instance_private (skeleton); 1911s # #else 1911s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonPrivate); 1911s # #endif 1911s # 1911s # g_mutex_init (&skeleton->priv->lock); 1911s # skeleton->priv->context = g_main_context_ref_thread_default (); 1911s # skeleton->priv->properties = g_new0 (GValue, 1); 1911s # g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING); 1911s # } 1911s # 1911s # static const gchar * 1911s # com_acme_coyote_skeleton_get_mood (ComAcmeCoyote *object) 1911s # { 1911s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1911s # const gchar *value; 1911s # g_mutex_lock (&skeleton->priv->lock); 1911s # value = g_marshal_value_peek_string (&(skeleton->priv->properties[0])); 1911s # g_mutex_unlock (&skeleton->priv->lock); 1911s # return value; 1911s # } 1911s # 1911s # static void 1911s # com_acme_coyote_skeleton_class_init (ComAcmeCoyoteSkeletonClass *klass) 1911s # { 1911s # GObjectClass *gobject_class; 1911s # GDBusInterfaceSkeletonClass *skeleton_class; 1911s # 1911s # gobject_class = G_OBJECT_CLASS (klass); 1911s # gobject_class->finalize = com_acme_coyote_skeleton_finalize; 1911s # gobject_class->get_property = com_acme_coyote_skeleton_get_property; 1911s # gobject_class->set_property = com_acme_coyote_skeleton_set_property; 1911s # gobject_class->notify = com_acme_coyote_skeleton_notify; 1911s # 1911s # 1911s # com_acme_coyote_override_properties (gobject_class, 1); 1911s # 1911s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1911s # skeleton_class->get_info = com_acme_coyote_skeleton_dbus_interface_get_info; 1911s # skeleton_class->get_properties = com_acme_coyote_skeleton_dbus_interface_get_properties; 1911s # skeleton_class->flush = com_acme_coyote_skeleton_dbus_interface_flush; 1911s # skeleton_class->get_vtable = com_acme_coyote_skeleton_dbus_interface_get_vtable; 1911s # 1911s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1911s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteSkeletonPrivate)); 1911s # #endif 1911s # } 1911s # 1911s # static void 1911s # com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface) 1911s # { 1911s # iface->surprised = _com_acme_coyote_on_signal_surprised; 1911s # iface->get_mood = com_acme_coyote_skeleton_get_mood; 1911s # } 1911s # 1911s # /** 1911s # * com_acme_coyote_skeleton_new: 1911s # * 1911s # * Creates a skeleton object for the D-Bus interface com.acme.Coyote. 1911s # * 1911s # * Returns: (transfer full) (type ComAcmeCoyoteSkeleton): The skeleton object. 1911s # */ 1911s # ComAcmeCoyote * 1911s # com_acme_coyote_skeleton_new (void) 1911s # { 1911s # return COM_ACME_COYOTE (g_object_new (TYPE_COM_ACME_COYOTE_SKELETON, NULL)); 1911s # } 1911s # 1911s # /* ------------------------------------------------------------------------ 1911s # * Code for interface org.project.Bar.Frobnicator 1911s # * ------------------------------------------------------------------------ 1911s # */ 1911s # 1911s # /** 1911s # * SECTION:OrgProjectBarFrobnicator 1911s # * @title: OrgProjectBarFrobnicator 1911s # * @short_description: Generated C code for the org.project.Bar.Frobnicator D-Bus interface 1911s # * 1911s # * This section contains code for working with the org.project.Bar.Frobnicator D-Bus interface in C. 1911s # */ 1911s # 1911s # /* ---- Introspection data for org.project.Bar.Frobnicator ---- */ 1911s # 1911s # static const _ExtendedGDBusMethodInfo _org_project_bar_frobnicator_method_info_random_method = 1911s # { 1911s # { 1911s # -1, 1911s # (gchar *) "RandomMethod", 1911s # NULL, 1911s # NULL, 1911s # NULL 1911s # }, 1911s # "handle-random-method", 1911s # FALSE 1911s # }; 1911s # 1911s # static const GDBusMethodInfo * const _org_project_bar_frobnicator_method_info_pointers[] = 1911s # { 1911s # &_org_project_bar_frobnicator_method_info_random_method.parent_struct, 1911s # NULL 1911s # }; 1911s # 1911s # static const _ExtendedGDBusInterfaceInfo _org_project_bar_frobnicator_interface_info = 1911s # { 1911s # { 1911s # -1, 1911s # (gchar *) "org.project.Bar.Frobnicator", 1911s # (GDBusMethodInfo **) &_org_project_bar_frobnicator_method_info_pointers, 1911s # NULL, 1911s # NULL, 1911s # NULL 1911s # }, 1911s # "org-project-bar-frobnicator", 1911s # }; 1911s # 1911s # 1911s # /** 1911s # * org_project_bar_frobnicator_interface_info: 1911s # * 1911s # * Gets a machine-readable description of the org.project.Bar.Frobnicator D-Bus interface. 1911s # * 1911s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1911s # */ 1911s # GDBusInterfaceInfo * 1911s # org_project_bar_frobnicator_interface_info (void) 1911s # { 1911s # return (GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct; 1911s # } 1911s # 1911s # /** 1911s # * org_project_bar_frobnicator_override_properties: 1911s # * @klass: The class structure for a #GObject derived class. 1911s # * @property_id_begin: The property id to assign to the first overridden property. 1911s # * 1911s # * Overrides all #GObject properties in the #OrgProjectBarFrobnicator interface for a concrete class. 1911s # * The properties are overridden in the order they are defined. 1911s # * 1911s # * Returns: The last property id. 1911s # */ 1911s # guint 1911s # org_project_bar_frobnicator_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1911s # { 1911s # return property_id_begin - 1; 1911s # } 1911s # 1911s # 1911s # inline static void 1911s # org_project_bar_frobnicator_method_marshal_random_method ( 1911s # GClosure *closure, 1911s # GValue *return_value, 1911s # unsigned int n_param_values, 1911s # const GValue *param_values, 1911s # void *invocation_hint, 1911s # void *marshal_data) 1911s # { 1911s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1911s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1911s # } 1911s # 1911s # 1911s # /** 1911s # * OrgProjectBarFrobnicator: 1911s # * 1911s # * Abstract interface type for the D-Bus interface org.project.Bar.Frobnicator. 1911s # */ 1911s # 1911s # /** 1911s # * OrgProjectBarFrobnicatorIface: 1911s # * @parent_iface: The parent interface. 1911s # * @handle_random_method: Handler for the #OrgProjectBarFrobnicator::handle-random-method signal. 1911s # * 1911s # * Virtual table for the D-Bus interface org.project.Bar.Frobnicator. 1911s # */ 1911s # 1911s # typedef OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorInterface; 1911s # G_DEFINE_INTERFACE (OrgProjectBarFrobnicator, org_project_bar_frobnicator, G_TYPE_OBJECT) 1911s # 1911s # static void 1911s # org_project_bar_frobnicator_default_init (OrgProjectBarFrobnicatorIface *iface) 1911s # { 1911s # /* GObject signals for incoming D-Bus method calls: */ 1911s # /** 1911s # * OrgProjectBarFrobnicator::handle-random-method: 1911s # * @object: A #OrgProjectBarFrobnicator. 1911s # * @invocation: A #GDBusMethodInvocation. 1911s # * 1911s # * Signal emitted when a remote caller is invoking the RandomMethod() D-Bus method. 1911s # * 1911s # * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call org_project_bar_frobnicator_complete_random_method() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned. 1911s # * 1911s # * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run. 1911s # */ 1911s # g_signal_new ("handle-random-method", 1911s # G_TYPE_FROM_INTERFACE (iface), 1911s # G_SIGNAL_RUN_LAST, 1911s # G_STRUCT_OFFSET (OrgProjectBarFrobnicatorIface, handle_random_method), 1911s # g_signal_accumulator_true_handled, 1911s # NULL, 1911s # org_project_bar_frobnicator_method_marshal_random_method, 1911s # G_TYPE_BOOLEAN, 1911s # 1, 1911s # G_TYPE_DBUS_METHOD_INVOCATION); 1911s # 1911s # } 1911s # 1911s # /** 1911s # * org_project_bar_frobnicator_call_random_method: 1911s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1911s # * @cancellable: (nullable): A #GCancellable or %NULL. 1911s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1911s # * @user_data: User data to pass to @callback. 1911s # * 1911s # * Asynchronously invokes the RandomMethod() D-Bus method on @proxy. 1911s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1911s # * You can then call org_project_bar_frobnicator_call_random_method_finish() to get the result of the operation. 1911s # * 1911s # * See org_project_bar_frobnicator_call_random_method_sync() for the synchronous, blocking version of this method. 1911s # */ 1911s # void 1911s # org_project_bar_frobnicator_call_random_method ( 1911s # OrgProjectBarFrobnicator *proxy, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data) 1911s # { 1911s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1911s # "RandomMethod", 1911s # g_variant_new ("()"), 1911s # G_DBUS_CALL_FLAGS_NONE, 1911s # -1, 1911s # cancellable, 1911s # callback, 1911s # user_data); 1911s # } 1911s # 1911s # /** 1911s # * org_project_bar_frobnicator_call_random_method_finish: 1911s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1911s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_call_random_method(). 1911s # * @error: Return location for error or %NULL. 1911s # * 1911s # * Finishes an operation started with org_project_bar_frobnicator_call_random_method(). 1911s # * 1911s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1911s # */ 1911s # gboolean 1911s # org_project_bar_frobnicator_call_random_method_finish ( 1911s # OrgProjectBarFrobnicator *proxy, 1911s # GAsyncResult *res, 1911s # GError **error) 1911s # { 1911s # GVariant *_ret; 1911s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1911s # if (_ret == NULL) 1911s # goto _out; 1911s # g_variant_get (_ret, 1911s # "()"); 1911s # g_variant_unref (_ret); 1911s # _out: 1911s # return _ret != NULL; 1911s # } 1911s # 1911s # /** 1911s # * org_project_bar_frobnicator_call_random_method_sync: 1911s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1911s # * @cancellable: (nullable): A #GCancellable or %NULL. 1911s # * @error: Return location for error or %NULL. 1911s # * 1911s # * Synchronously invokes the RandomMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1911s # * 1911s # * See org_project_bar_frobnicator_call_random_method() for the asynchronous version of this method. 1911s # * 1911s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1911s # */ 1911s # gboolean 1911s # org_project_bar_frobnicator_call_random_method_sync ( 1911s # OrgProjectBarFrobnicator *proxy, 1911s # GCancellable *cancellable, 1911s # GError **error) 1911s # { 1911s # GVariant *_ret; 1911s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1911s # "RandomMethod", 1911s # g_variant_new ("()"), 1911s # G_DBUS_CALL_FLAGS_NONE, 1911s # -1, 1911s # cancellable, 1911s # error); 1911s # if (_ret == NULL) 1911s # goto _out; 1911s # g_variant_get (_ret, 1911s # "()"); 1911s # g_variant_unref (_ret); 1911s # _out: 1911s # return _ret != NULL; 1911s # } 1911s # 1911s # /** 1911s # * org_project_bar_frobnicator_complete_random_method: 1911s # * @object: A #OrgProjectBarFrobnicator. 1911s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1911s # * 1911s # * Helper function used in service implementations to finish handling invocations of the RandomMethod() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar. 1911s # * 1911s # * This method will free @invocation, you cannot use it afterwards. 1911s # */ 1911s # void 1911s # org_project_bar_frobnicator_complete_random_method ( 1911s # OrgProjectBarFrobnicator *object G_GNUC_UNUSED, 1911s # GDBusMethodInvocation *invocation) 1911s # { 1911s # g_dbus_method_invocation_return_value (invocation, 1911s # g_variant_new ("()")); 1911s # } 1911s # 1911s # /* ------------------------------------------------------------------------ */ 1911s # 1911s # /** 1911s # * OrgProjectBarFrobnicatorProxy: 1911s # * 1911s # * The #OrgProjectBarFrobnicatorProxy structure contains only private data and should only be accessed using the provided API. 1911s # */ 1911s # 1911s # /** 1911s # * OrgProjectBarFrobnicatorProxyClass: 1911s # * @parent_class: The parent class. 1911s # * 1911s # * Class structure for #OrgProjectBarFrobnicatorProxy. 1911s # */ 1911s # 1911s # struct _OrgProjectBarFrobnicatorProxyPrivate 1911s # { 1911s # GData *qdata; 1911s # }; 1911s # 1911s # static void org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface); 1911s # 1911s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1911s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1911s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorProxy) 1911s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1911s # 1911s # #else 1911s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1911s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1911s # 1911s # #endif 1911s # static void 1911s # org_project_bar_frobnicator_proxy_finalize (GObject *object) 1911s # { 1911s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (object); 1911s # g_datalist_clear (&proxy->priv->qdata); 1911s # G_OBJECT_CLASS (org_project_bar_frobnicator_proxy_parent_class)->finalize (object); 1911s # } 1911s # 1911s # static void 1911s # org_project_bar_frobnicator_proxy_get_property (GObject *object G_GNUC_UNUSED, 1911s # guint prop_id G_GNUC_UNUSED, 1911s # GValue *value G_GNUC_UNUSED, 1911s # GParamSpec *pspec G_GNUC_UNUSED) 1911s # { 1911s # } 1911s # 1911s # static void 1911s # org_project_bar_frobnicator_proxy_set_property (GObject *object G_GNUC_UNUSED, 1911s # guint prop_id G_GNUC_UNUSED, 1911s # const GValue *value G_GNUC_UNUSED, 1911s # GParamSpec *pspec G_GNUC_UNUSED) 1911s # { 1911s # } 1911s # 1911s # static void 1911s # org_project_bar_frobnicator_proxy_g_signal (GDBusProxy *proxy, 1911s # const gchar *sender_name G_GNUC_UNUSED, 1911s # const gchar *signal_name, 1911s # GVariant *parameters) 1911s # { 1911s # _ExtendedGDBusSignalInfo *info; 1911s # GVariantIter iter; 1911s # GVariant *child; 1911s # GValue *paramv; 1911s # gsize num_params; 1911s # gsize n; 1911s # guint signal_id; 1911s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, signal_name); 1911s # if (info == NULL) 1911s # return; 1911s # num_params = g_variant_n_children (parameters); 1911s # paramv = g_new0 (GValue, num_params + 1); 1911s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1911s # g_value_set_object (¶mv[0], proxy); 1911s # g_variant_iter_init (&iter, parameters); 1911s # n = 1; 1911s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1911s # { 1911s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1911s # if (arg_info->use_gvariant) 1911s # { 1911s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1911s # g_value_set_variant (¶mv[n], child); 1911s # n++; 1911s # } 1911s # else 1911s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1911s # g_variant_unref (child); 1911s # } 1911s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1911s # g_signal_emitv (paramv, signal_id, 0, NULL); 1911s # for (n = 0; n < num_params + 1; n++) 1911s # g_value_unset (¶mv[n]); 1911s # g_free (paramv); 1911s # } 1911s # 1911s # static void 1911s # org_project_bar_frobnicator_proxy_g_properties_changed (GDBusProxy *_proxy, 1911s # GVariant *changed_properties, 1911s # const gchar *const *invalidated_properties) 1911s # { 1911s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (_proxy); 1911s # guint n; 1911s # const gchar *key; 1911s # GVariantIter *iter; 1911s # _ExtendedGDBusPropertyInfo *info; 1911s # g_variant_get (changed_properties, "a{sv}", &iter); 1911s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1911s # { 1911s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, key); 1911s # g_datalist_remove_data (&proxy->priv->qdata, key); 1911s # if (info != NULL) 1911s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1911s # } 1911s # g_variant_iter_free (iter); 1911s # for (n = 0; invalidated_properties[n] != NULL; n++) 1911s # { 1911s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, invalidated_properties[n]); 1911s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1911s # if (info != NULL) 1911s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1911s # } 1911s # } 1911s # 1911s # static void 1911s # org_project_bar_frobnicator_proxy_init (OrgProjectBarFrobnicatorProxy *proxy) 1911s # { 1911s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1911s # proxy->priv = org_project_bar_frobnicator_proxy_get_instance_private (proxy); 1911s # #else 1911s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyPrivate); 1911s # #endif 1911s # 1911s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_bar_frobnicator_interface_info ()); 1911s # } 1911s # 1911s # static void 1911s # org_project_bar_frobnicator_proxy_class_init (OrgProjectBarFrobnicatorProxyClass *klass) 1911s # { 1911s # GObjectClass *gobject_class; 1911s # GDBusProxyClass *proxy_class; 1911s # 1911s # gobject_class = G_OBJECT_CLASS (klass); 1911s # gobject_class->finalize = org_project_bar_frobnicator_proxy_finalize; 1911s # gobject_class->get_property = org_project_bar_frobnicator_proxy_get_property; 1911s # gobject_class->set_property = org_project_bar_frobnicator_proxy_set_property; 1911s # 1911s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1911s # proxy_class->g_signal = org_project_bar_frobnicator_proxy_g_signal; 1911s # proxy_class->g_properties_changed = org_project_bar_frobnicator_proxy_g_properties_changed; 1911s # 1911s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1911s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorProxyPrivate)); 1911s # #endif 1911s # } 1911s # 1911s # static void 1911s # org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1911s # { 1911s # } 1911s # 1911s # /** 1911s # * org_project_bar_frobnicator_proxy_new: 1911s # * @connection: A #GDBusConnection. 1911s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1911s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1911s # * @object_path: An object path. 1911s # * @cancellable: (nullable): A #GCancellable or %NULL. 1911s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1911s # * @user_data: User data to pass to @callback. 1911s # * 1911s # * Asynchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new() for more details. 1911s # * 1911s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1911s # * You can then call org_project_bar_frobnicator_proxy_new_finish() to get the result of the operation. 1911s # * 1911s # * See org_project_bar_frobnicator_proxy_new_sync() for the synchronous, blocking version of this constructor. 1911s # */ 1911s # void 1911s # org_project_bar_frobnicator_proxy_new ( 1911s # GDBusConnection *connection, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data) 1911s # { 1911s # g_async_initable_new_async (TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.Bar.Frobnicator", NULL); 1911s # } 1911s # 1911s # /** 1911s # * org_project_bar_frobnicator_proxy_new_finish: 1911s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new(). 1911s # * @error: Return location for error or %NULL 1911s # * 1911s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new(). 1911s # * 1911s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1911s # */ 1911s # OrgProjectBarFrobnicator * 1911s # org_project_bar_frobnicator_proxy_new_finish ( 1911s # GAsyncResult *res, 1911s # GError **error) 1911s # { 1911s # GObject *ret; 1911s # GObject *source_object; 1911s # source_object = g_async_result_get_source_object (res); 1911s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1911s # g_object_unref (source_object); 1911s # if (ret != NULL) 1911s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1911s # else 1911s # return NULL; 1911s # } 1911s # 1911s # /** 1911s # * org_project_bar_frobnicator_proxy_new_sync: 1911s # * @connection: A #GDBusConnection. 1911s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1911s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1911s # * @object_path: An object path. 1911s # * @cancellable: (nullable): A #GCancellable or %NULL. 1911s # * @error: Return location for error or %NULL 1911s # * 1911s # * Synchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new_sync() for more details. 1911s # * 1911s # * The calling thread is blocked until a reply is received. 1911s # * 1911s # * See org_project_bar_frobnicator_proxy_new() for the asynchronous version of this constructor. 1911s # * 1911s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1911s # */ 1911s # OrgProjectBarFrobnicator * 1911s # org_project_bar_frobnicator_proxy_new_sync ( 1911s # GDBusConnection *connection, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GError **error) 1911s # { 1911s # GInitable *ret; 1911s # ret = g_initable_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.project.Bar.Frobnicator", NULL); 1911s # if (ret != NULL) 1911s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1911s # else 1911s # return NULL; 1911s # } 1911s # 1911s # 1911s # /** 1911s # * org_project_bar_frobnicator_proxy_new_for_bus: 1911s # * @bus_type: A #GBusType. 1911s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1911s # * @name: A bus name (well-known or unique). 1911s # * @object_path: An object path. 1911s # * @cancellable: (nullable): A #GCancellable or %NULL. 1911s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1911s # * @user_data: User data to pass to @callback. 1911s # * 1911s # * Like org_project_bar_frobnicator_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1911s # * 1911s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1911s # * You can then call org_project_bar_frobnicator_proxy_new_for_bus_finish() to get the result of the operation. 1911s # * 1911s # * See org_project_bar_frobnicator_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1911s # */ 1911s # void 1911s # org_project_bar_frobnicator_proxy_new_for_bus ( 1911s # GBusType bus_type, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data) 1911s # { 1911s # g_async_initable_new_async (TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.Bar.Frobnicator", NULL); 1911s # } 1911s # 1911s # /** 1911s # * org_project_bar_frobnicator_proxy_new_for_bus_finish: 1911s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new_for_bus(). 1911s # * @error: Return location for error or %NULL 1911s # * 1911s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new_for_bus(). 1911s # * 1911s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1911s # */ 1911s # OrgProjectBarFrobnicator * 1911s # org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1911s # GAsyncResult *res, 1911s # GError **error) 1911s # { 1911s # GObject *ret; 1911s # GObject *source_object; 1911s # source_object = g_async_result_get_source_object (res); 1911s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1911s # g_object_unref (source_object); 1911s # if (ret != NULL) 1911s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1911s # else 1911s # return NULL; 1911s # } 1911s # 1911s # /** 1911s # * org_project_bar_frobnicator_proxy_new_for_bus_sync: 1911s # * @bus_type: A #GBusType. 1911s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1911s # * @name: A bus name (well-known or unique). 1911s # * @object_path: An object path. 1911s # * @cancellable: (nullable): A #GCancellable or %NULL. 1911s # * @error: Return location for error or %NULL 1911s # * 1911s # * Like org_project_bar_frobnicator_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1911s # * 1911s # * The calling thread is blocked until a reply is received. 1911s # * 1911s # * See org_project_bar_frobnicator_proxy_new_for_bus() for the asynchronous version of this constructor. 1911s # * 1911s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1911s # */ 1911s # OrgProjectBarFrobnicator * 1911s # org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1911s # GBusType bus_type, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GError **error) 1911s # { 1911s # GInitable *ret; 1911s # ret = g_initable_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.project.Bar.Frobnicator", NULL); 1911s # if (ret != NULL) 1911s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1911s # else 1911s # return NULL; 1911s # } 1911s # 1911s # 1911s # /* ------------------------------------------------------------------------ */ 1911s # 1911s # /** 1911s # * OrgProjectBarFrobnicatorSkeleton: 1911s # * 1911s # * The #OrgProjectBarFrobnicatorSkeleton structure contains only private data and should only be accessed using the provided API. 1911s # */ 1911s # 1911s # /** 1911s # * OrgProjectBarFrobnicatorSkeletonClass: 1911s # * @parent_class: The parent class. 1911s # * 1911s # * Class structure for #OrgProjectBarFrobnicatorSkeleton. 1911s # */ 1911s # 1911s # struct _OrgProjectBarFrobnicatorSkeletonPrivate 1911s # { 1911s # GValue *properties; 1911s # GList *changed_properties; 1911s # GSource *changed_properties_idle_source; 1911s # GMainContext *context; 1911s # GMutex lock; 1911s # }; 1911s # 1911s # static void 1911s # _org_project_bar_frobnicator_skeleton_handle_method_call ( 1911s # GDBusConnection *connection G_GNUC_UNUSED, 1911s # const gchar *sender G_GNUC_UNUSED, 1911s # const gchar *object_path G_GNUC_UNUSED, 1911s # const gchar *interface_name, 1911s # const gchar *method_name, 1911s # GVariant *parameters, 1911s # GDBusMethodInvocation *invocation, 1911s # gpointer user_data) 1911s # { 1911s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1911s # _ExtendedGDBusMethodInfo *info; 1911s # GVariantIter iter; 1911s # GVariant *child; 1911s # GValue *paramv; 1911s # gsize num_params; 1911s # guint num_extra; 1911s # gsize n; 1911s # guint signal_id; 1911s # GValue return_value = G_VALUE_INIT; 1911s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1911s # g_assert (info != NULL); 1911s # num_params = g_variant_n_children (parameters); 1911s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1911s # n = 0; 1911s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1911s # g_value_set_object (¶mv[n++], skeleton); 1911s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1911s # g_value_set_object (¶mv[n++], invocation); 1911s # if (info->pass_fdlist) 1911s # { 1911s # #ifdef G_OS_UNIX 1911s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1911s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1911s # #else 1911s # g_assert_not_reached (); 1911s # #endif 1911s # } 1911s # g_variant_iter_init (&iter, parameters); 1911s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1911s # { 1911s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1911s # if (arg_info->use_gvariant) 1911s # { 1911s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1911s # g_value_set_variant (¶mv[n], child); 1911s # n++; 1911s # } 1911s # else 1911s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1911s # g_variant_unref (child); 1911s # } 1911s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1911s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1911s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1911s # if (!g_value_get_boolean (&return_value)) 1911s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1911s # g_value_unset (&return_value); 1911s # for (n = 0; n < num_params + num_extra; n++) 1911s # g_value_unset (¶mv[n]); 1911s # g_free (paramv); 1911s # } 1911s # 1911s # static GVariant * 1911s # _org_project_bar_frobnicator_skeleton_handle_get_property ( 1911s # GDBusConnection *connection G_GNUC_UNUSED, 1911s # const gchar *sender G_GNUC_UNUSED, 1911s # const gchar *object_path G_GNUC_UNUSED, 1911s # const gchar *interface_name G_GNUC_UNUSED, 1911s # const gchar *property_name, 1911s # GError **error, 1911s # gpointer user_data) 1911s # { 1911s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1911s # GValue value = G_VALUE_INIT; 1911s # GParamSpec *pspec; 1911s # _ExtendedGDBusPropertyInfo *info; 1911s # GVariant *ret; 1911s # ret = NULL; 1911s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1911s # g_assert (info != NULL); 1911s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1911s # if (pspec == NULL) 1911s # { 1911s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1911s # } 1911s # else 1911s # { 1911s # g_value_init (&value, pspec->value_type); 1911s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1911s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1911s # g_value_unset (&value); 1911s # } 1911s # return ret; 1911s # } 1911s # 1911s # static gboolean 1911s # _org_project_bar_frobnicator_skeleton_handle_set_property ( 1911s # GDBusConnection *connection G_GNUC_UNUSED, 1911s # const gchar *sender G_GNUC_UNUSED, 1911s # const gchar *object_path G_GNUC_UNUSED, 1911s # const gchar *interface_name G_GNUC_UNUSED, 1911s # const gchar *property_name, 1911s # GVariant *variant, 1911s # GError **error, 1911s # gpointer user_data) 1911s # { 1911s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1911s # GValue value = G_VALUE_INIT; 1911s # GParamSpec *pspec; 1911s # _ExtendedGDBusPropertyInfo *info; 1911s # gboolean ret; 1911s # ret = FALSE; 1911s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1911s # g_assert (info != NULL); 1911s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1911s # if (pspec == NULL) 1911s # { 1911s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1911s # } 1911s # else 1911s # { 1911s # if (info->use_gvariant) 1911s # g_value_set_variant (&value, variant); 1911s # else 1911s # g_dbus_gvariant_to_gvalue (variant, &value); 1911s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1911s # g_value_unset (&value); 1911s # ret = TRUE; 1911s # } 1911s # return ret; 1911s # } 1911s # 1911s # static const GDBusInterfaceVTable _org_project_bar_frobnicator_skeleton_vtable = 1911s # { 1911s # _org_project_bar_frobnicator_skeleton_handle_method_call, 1911s # _org_project_bar_frobnicator_skeleton_handle_get_property, 1911s # _org_project_bar_frobnicator_skeleton_handle_set_property, 1911s # {NULL} 1911s # }; 1911s # 1911s # static GDBusInterfaceInfo * 1911s # org_project_bar_frobnicator_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1911s # { 1911s # return org_project_bar_frobnicator_interface_info (); 1911s # } 1911s # 1911s # static GDBusInterfaceVTable * 1911s # org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1911s # { 1911s # return (GDBusInterfaceVTable *) &_org_project_bar_frobnicator_skeleton_vtable; 1911s # } 1911s # 1911s # static GVariant * 1911s # org_project_bar_frobnicator_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1911s # { 1911s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (_skeleton); 1911s # 1911s # GVariantBuilder builder; 1911s # guint n; 1911s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1911s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1911s # #else 1911s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1911s # #endif 1911s # if (_org_project_bar_frobnicator_interface_info.parent_struct.properties == NULL) 1911s # goto out; 1911s # for (n = 0; _org_project_bar_frobnicator_interface_info.parent_struct.properties[n] != NULL; n++) 1911s # { 1911s # GDBusPropertyInfo *info = _org_project_bar_frobnicator_interface_info.parent_struct.properties[n]; 1911s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1911s # { 1911s # GVariant *value; 1911s # value = _org_project_bar_frobnicator_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.Bar.Frobnicator", info->name, NULL, skeleton); 1911s # if (value != NULL) 1911s # { 1911s # g_variant_take_ref (value); 1911s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1911s # g_variant_unref (value); 1911s # } 1911s # } 1911s # } 1911s # out: 1911s # return g_variant_builder_end (&builder); 1911s # } 1911s # 1911s # static void 1911s # org_project_bar_frobnicator_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1911s # { 1911s # } 1911s # 1911s # static void org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface); 1911s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1911s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1911s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorSkeleton) 1911s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1911s # 1911s # #else 1911s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1911s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1911s # 1911s # #endif 1911s # static void 1911s # org_project_bar_frobnicator_skeleton_finalize (GObject *object) 1911s # { 1911s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (object); 1911s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1911s # if (skeleton->priv->changed_properties_idle_source != NULL) 1911s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1911s # g_main_context_unref (skeleton->priv->context); 1911s # g_mutex_clear (&skeleton->priv->lock); 1911s # G_OBJECT_CLASS (org_project_bar_frobnicator_skeleton_parent_class)->finalize (object); 1911s # } 1911s # 1911s # static void 1911s # org_project_bar_frobnicator_skeleton_init (OrgProjectBarFrobnicatorSkeleton *skeleton) 1911s # { 1911s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1911s # skeleton->priv = org_project_bar_frobnicator_skeleton_get_instance_private (skeleton); 1911s # #else 1911s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonPrivate); 1911s # #endif 1911s # 1911s # g_mutex_init (&skeleton->priv->lock); 1911s # skeleton->priv->context = g_main_context_ref_thread_default (); 1911s # } 1911s # 1911s # static void 1911s # org_project_bar_frobnicator_skeleton_class_init (OrgProjectBarFrobnicatorSkeletonClass *klass) 1911s # { 1911s # GObjectClass *gobject_class; 1911s # GDBusInterfaceSkeletonClass *skeleton_class; 1911s # 1911s # gobject_class = G_OBJECT_CLASS (klass); 1911s # gobject_class->finalize = org_project_bar_frobnicator_skeleton_finalize; 1911s # 1911s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1911s # skeleton_class->get_info = org_project_bar_frobnicator_skeleton_dbus_interface_get_info; 1911s # skeleton_class->get_properties = org_project_bar_frobnicator_skeleton_dbus_interface_get_properties; 1911s # skeleton_class->flush = org_project_bar_frobnicator_skeleton_dbus_interface_flush; 1911s # skeleton_class->get_vtable = org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable; 1911s # 1911s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1911s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorSkeletonPrivate)); 1911s # #endif 1911s # } 1911s # 1911s # static void 1911s # org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1911s # { 1911s # } 1911s # 1911s # /** 1911s # * org_project_bar_frobnicator_skeleton_new: 1911s # * 1911s # * Creates a skeleton object for the D-Bus interface org.project.Bar.Frobnicator. 1911s # * 1911s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorSkeleton): The skeleton object. 1911s # */ 1911s # OrgProjectBarFrobnicator * 1911s # org_project_bar_frobnicator_skeleton_new (void) 1911s # { 1911s # return ORG_PROJECT_BAR_FROBNICATOR (g_object_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, NULL)); 1911s # } 1911s # Error: 1911s ok 39 __main__.TestCodegen.test_unix_fd_types_and_annotations 1911s # gdbus-codegen: /usr/bin/gdbus-codegen 1911s # tmpdir: /tmp/tmpzsl1k0c8 1911s # /tmp/tmpzsl1k0c8/tmpmx8lbe26.xml: 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpzsl1k0c8/tmpmx8lbe26.xml', '--output', '-', '--header'] 1911s # Return code: 0 1911s # Output: 1911s # /* 1911s # * This file is generated by gdbus-codegen, do not modify it. 1911s # * 1911s # * The license of this code is the same as for the D-Bus interface description 1911s # * it was derived from. Note that it links to GLib, so must comply with the 1911s # * LGPL linking clauses. 1911s # */ 1911s # 1911s # #ifndef __STDOUT__ 1911s # #define __STDOUT__ 1911s # 1911s # #include 1911s # 1911s # G_BEGIN_DECLS 1911s # 1911s # 1911s # /* ------------------------------------------------------------------------ */ 1911s # /* Declarations for FDPassing */ 1911s # 1911s # #define TYPE_FDPASSING (fdpassing_get_type ()) 1911s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 1911s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 1911s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 1911s # 1911s # struct _FDPassing; 1911s # typedef struct _FDPassing FDPassing; 1911s # typedef struct _FDPassingIface FDPassingIface; 1911s # 1911s # struct _FDPassingIface 1911s # { 1911s # GTypeInterface parent_iface; 1911s # 1911s # gboolean (*handle_hello_fd) ( 1911s # FDPassing *object, 1911s # GDBusMethodInvocation *invocation, 1911s # GUnixFDList *fd_list, 1911s # const gchar *arg_greeting); 1911s # 1911s # gboolean (*handle_no_annotation) ( 1911s # FDPassing *object, 1911s # GDBusMethodInvocation *invocation, 1911s # GVariant *arg_greeting, 1911s # const gchar *arg_greeting_locale); 1911s # 1911s # gboolean (*handle_no_annotation_nested) ( 1911s # FDPassing *object, 1911s # GDBusMethodInvocation *invocation, 1911s # GVariant *arg_files); 1911s # 1911s # }; 1911s # 1911s # GType fdpassing_get_type (void) G_GNUC_CONST; 1911s # 1911s # GDBusInterfaceInfo *fdpassing_interface_info (void); 1911s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 1911s # 1911s # 1911s # /* D-Bus method call completion functions: */ 1911s # void fdpassing_complete_hello_fd ( 1911s # FDPassing *object, 1911s # GDBusMethodInvocation *invocation, 1911s # GUnixFDList *fd_list, 1911s # const gchar *response); 1911s # 1911s # void fdpassing_complete_no_annotation ( 1911s # FDPassing *object, 1911s # GDBusMethodInvocation *invocation, 1911s # GVariant *response, 1911s # const gchar *response_locale); 1911s # 1911s # void fdpassing_complete_no_annotation_nested ( 1911s # FDPassing *object, 1911s # GDBusMethodInvocation *invocation); 1911s # 1911s # 1911s # 1911s # /* D-Bus method calls: */ 1911s # void fdpassing_call_hello_fd ( 1911s # FDPassing *proxy, 1911s # const gchar *arg_greeting, 1911s # GUnixFDList *fd_list, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data); 1911s # 1911s # gboolean fdpassing_call_hello_fd_finish ( 1911s # FDPassing *proxy, 1911s # gchar **out_response, 1911s # GUnixFDList **out_fd_list, 1911s # GAsyncResult *res, 1911s # GError **error); 1911s # 1911s # gboolean fdpassing_call_hello_fd_sync ( 1911s # FDPassing *proxy, 1911s # const gchar *arg_greeting, 1911s # GUnixFDList *fd_list, 1911s # gchar **out_response, 1911s # GUnixFDList **out_fd_list, 1911s # GCancellable *cancellable, 1911s # GError **error); 1911s # 1911s # void fdpassing_call_no_annotation ( 1911s # FDPassing *proxy, 1911s # GVariant *arg_greeting, 1911s # const gchar *arg_greeting_locale, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data); 1911s # 1911s # gboolean fdpassing_call_no_annotation_finish ( 1911s # FDPassing *proxy, 1911s # GVariant **out_response, 1911s # gchar **out_response_locale, 1911s # GAsyncResult *res, 1911s # GError **error); 1911s # 1911s # gboolean fdpassing_call_no_annotation_sync ( 1911s # FDPassing *proxy, 1911s # GVariant *arg_greeting, 1911s # const gchar *arg_greeting_locale, 1911s # GVariant **out_response, 1911s # gchar **out_response_locale, 1911s # GCancellable *cancellable, 1911s # GError **error); 1911s # 1911s # void fdpassing_call_no_annotation_nested ( 1911s # FDPassing *proxy, 1911s # GVariant *arg_files, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data); 1911s # 1911s # gboolean fdpassing_call_no_annotation_nested_finish ( 1911s # FDPassing *proxy, 1911s # GAsyncResult *res, 1911s # GError **error); 1911s # 1911s # gboolean fdpassing_call_no_annotation_nested_sync ( 1911s # FDPassing *proxy, 1911s # GVariant *arg_files, 1911s # GCancellable *cancellable, 1911s # GError **error); 1911s # 1911s # 1911s # 1911s # /* ---- */ 1911s # 1911s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 1911s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 1911s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1911s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1911s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 1911s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 1911s # 1911s # typedef struct _FDPassingProxy FDPassingProxy; 1911s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 1911s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 1911s # 1911s # struct _FDPassingProxy 1911s # { 1911s # /*< private >*/ 1911s # GDBusProxy parent_instance; 1911s # FDPassingProxyPrivate *priv; 1911s # }; 1911s # 1911s # struct _FDPassingProxyClass 1911s # { 1911s # GDBusProxyClass parent_class; 1911s # }; 1911s # 1911s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 1911s # 1911s # #if GLIB_CHECK_VERSION(2, 44, 0) 1911s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 1911s # #endif 1911s # 1911s # void fdpassing_proxy_new ( 1911s # GDBusConnection *connection, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data); 1911s # FDPassing *fdpassing_proxy_new_finish ( 1911s # GAsyncResult *res, 1911s # GError **error); 1911s # FDPassing *fdpassing_proxy_new_sync ( 1911s # GDBusConnection *connection, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GError **error); 1911s # 1911s # void fdpassing_proxy_new_for_bus ( 1911s # GBusType bus_type, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data); 1911s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 1911s # GAsyncResult *res, 1911s # GError **error); 1911s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 1911s # GBusType bus_type, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GError **error); 1911s # 1911s # 1911s # /* ---- */ 1911s # 1911s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 1911s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 1911s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1911s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1911s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 1911s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 1911s # 1911s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 1911s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 1911s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 1911s # 1911s # struct _FDPassingSkeleton 1911s # { 1911s # /*< private >*/ 1911s # GDBusInterfaceSkeleton parent_instance; 1911s # FDPassingSkeletonPrivate *priv; 1911s # }; 1911s # 1911s # struct _FDPassingSkeletonClass 1911s # { 1911s # GDBusInterfaceSkeletonClass parent_class; 1911s # }; 1911s # 1911s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 1911s # 1911s # #if GLIB_CHECK_VERSION(2, 44, 0) 1911s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 1911s # #endif 1911s # 1911s # FDPassing *fdpassing_skeleton_new (void); 1911s # 1911s # 1911s # G_END_DECLS 1911s # 1911s # #endif /* __STDOUT__ */ 1911s # Error: 1911s # 1911s # /tmp/tmpzsl1k0c8/tmpa_jv7l_7.xml: 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpzsl1k0c8/tmpa_jv7l_7.xml', '--output', '-', '--header', '--glib-min-required', '2.32'] 1911s # Return code: 0 1911s # Output: 1911s # /* 1911s # * This file is generated by gdbus-codegen, do not modify it. 1911s # * 1911s # * The license of this code is the same as for the D-Bus interface description 1911s # * it was derived from. Note that it links to GLib, so must comply with the 1911s # * LGPL linking clauses. 1911s # */ 1911s # 1911s # #ifndef __STDOUT__ 1911s # #define __STDOUT__ 1911s # 1911s # #include 1911s # 1911s # G_BEGIN_DECLS 1911s # 1911s # 1911s # /* ------------------------------------------------------------------------ */ 1911s # /* Declarations for FDPassing */ 1911s # 1911s # #define TYPE_FDPASSING (fdpassing_get_type ()) 1911s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 1911s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 1911s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 1911s # 1911s # struct _FDPassing; 1911s # typedef struct _FDPassing FDPassing; 1911s # typedef struct _FDPassingIface FDPassingIface; 1911s # 1911s # struct _FDPassingIface 1911s # { 1911s # GTypeInterface parent_iface; 1911s # 1911s # gboolean (*handle_hello_fd) ( 1911s # FDPassing *object, 1911s # GDBusMethodInvocation *invocation, 1911s # GUnixFDList *fd_list, 1911s # const gchar *arg_greeting); 1911s # 1911s # gboolean (*handle_no_annotation) ( 1911s # FDPassing *object, 1911s # GDBusMethodInvocation *invocation, 1911s # GVariant *arg_greeting, 1911s # const gchar *arg_greeting_locale); 1911s # 1911s # gboolean (*handle_no_annotation_nested) ( 1911s # FDPassing *object, 1911s # GDBusMethodInvocation *invocation, 1911s # GVariant *arg_files); 1911s # 1911s # }; 1911s # 1911s # GType fdpassing_get_type (void) G_GNUC_CONST; 1911s # 1911s # GDBusInterfaceInfo *fdpassing_interface_info (void); 1911s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 1911s # 1911s # 1911s # /* D-Bus method call completion functions: */ 1911s # void fdpassing_complete_hello_fd ( 1911s # FDPassing *object, 1911s # GDBusMethodInvocation *invocation, 1911s # GUnixFDList *fd_list, 1911s # const gchar *response); 1911s # 1911s # void fdpassing_complete_no_annotation ( 1911s # FDPassing *object, 1911s # GDBusMethodInvocation *invocation, 1911s # GVariant *response, 1911s # const gchar *response_locale); 1911s # 1911s # void fdpassing_complete_no_annotation_nested ( 1911s # FDPassing *object, 1911s # GDBusMethodInvocation *invocation); 1911s # 1911s # 1911s # 1911s # /* D-Bus method calls: */ 1911s # void fdpassing_call_hello_fd ( 1911s # FDPassing *proxy, 1911s # const gchar *arg_greeting, 1911s # GUnixFDList *fd_list, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data); 1911s # 1911s # gboolean fdpassing_call_hello_fd_finish ( 1911s # FDPassing *proxy, 1911s # gchar **out_response, 1911s # GUnixFDList **out_fd_list, 1911s # GAsyncResult *res, 1911s # GError **error); 1911s # 1911s # gboolean fdpassing_call_hello_fd_sync ( 1911s # FDPassing *proxy, 1911s # const gchar *arg_greeting, 1911s # GUnixFDList *fd_list, 1911s # gchar **out_response, 1911s # GUnixFDList **out_fd_list, 1911s # GCancellable *cancellable, 1911s # GError **error); 1911s # 1911s # void fdpassing_call_no_annotation ( 1911s # FDPassing *proxy, 1911s # GVariant *arg_greeting, 1911s # const gchar *arg_greeting_locale, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data); 1911s # 1911s # gboolean fdpassing_call_no_annotation_finish ( 1911s # FDPassing *proxy, 1911s # GVariant **out_response, 1911s # gchar **out_response_locale, 1911s # GAsyncResult *res, 1911s # GError **error); 1911s # 1911s # gboolean fdpassing_call_no_annotation_sync ( 1911s # FDPassing *proxy, 1911s # GVariant *arg_greeting, 1911s # const gchar *arg_greeting_locale, 1911s # GVariant **out_response, 1911s # gchar **out_response_locale, 1911s # GCancellable *cancellable, 1911s # GError **error); 1911s # 1911s # void fdpassing_call_no_annotation_nested ( 1911s # FDPassing *proxy, 1911s # GVariant *arg_files, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data); 1911s # 1911s # gboolean fdpassing_call_no_annotation_nested_finish ( 1911s # FDPassing *proxy, 1911s # GAsyncResult *res, 1911s # GError **error); 1911s # 1911s # gboolean fdpassing_call_no_annotation_nested_sync ( 1911s # FDPassing *proxy, 1911s # GVariant *arg_files, 1911s # GCancellable *cancellable, 1911s # GError **error); 1911s # 1911s # 1911s # 1911s # /* ---- */ 1911s # 1911s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 1911s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 1911s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1911s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1911s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 1911s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 1911s # 1911s # typedef struct _FDPassingProxy FDPassingProxy; 1911s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 1911s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 1911s # 1911s # struct _FDPassingProxy 1911s # { 1911s # /*< private >*/ 1911s # GDBusProxy parent_instance; 1911s # FDPassingProxyPrivate *priv; 1911s # }; 1911s # 1911s # struct _FDPassingProxyClass 1911s # { 1911s # GDBusProxyClass parent_class; 1911s # }; 1911s # 1911s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 1911s # 1911s # #if GLIB_CHECK_VERSION(2, 44, 0) 1911s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 1911s # #endif 1911s # 1911s # void fdpassing_proxy_new ( 1911s # GDBusConnection *connection, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data); 1911s # FDPassing *fdpassing_proxy_new_finish ( 1911s # GAsyncResult *res, 1911s # GError **error); 1911s # FDPassing *fdpassing_proxy_new_sync ( 1911s # GDBusConnection *connection, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GError **error); 1911s # 1911s # void fdpassing_proxy_new_for_bus ( 1911s # GBusType bus_type, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data); 1911s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 1911s # GAsyncResult *res, 1911s # GError **error); 1911s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 1911s # GBusType bus_type, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GError **error); 1911s # 1911s # 1911s # /* ---- */ 1911s # 1911s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 1911s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 1911s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1911s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1911s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 1911s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 1911s # 1911s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 1911s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 1911s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 1911s # 1911s # struct _FDPassingSkeleton 1911s # { 1911s # /*< private >*/ 1911s # GDBusInterfaceSkeleton parent_instance; 1911s # FDPassingSkeletonPrivate *priv; 1911s # }; 1911s # 1911s # struct _FDPassingSkeletonClass 1911s # { 1911s # GDBusInterfaceSkeletonClass parent_class; 1911s # }; 1911s # 1911s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 1911s # 1911s # #if GLIB_CHECK_VERSION(2, 44, 0) 1911s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 1911s # #endif 1911s # 1911s # FDPassing *fdpassing_skeleton_new (void); 1911s # 1911s # 1911s # G_END_DECLS 1911s # 1911s # #endif /* __STDOUT__ */ 1911s # Error: 1911s # 1911s # /tmp/tmpzsl1k0c8/tmpy6a2a8l_.xml: 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # 1911s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpzsl1k0c8/tmpy6a2a8l_.xml', '--output', '-', '--header', '--glib-min-required', '2.64'] 1911s # Return code: 0 1911s # Output: 1911s # /* 1911s # * This file is generated by gdbus-codegen, do not modify it. 1911s # * 1911s # * The license of this code is the same as for the D-Bus interface description 1911s # * it was derived from. Note that it links to GLib, so must comply with the 1911s # * LGPL linking clauses. 1911s # */ 1911s # 1911s # #ifndef __STDOUT__ 1911s # #define __STDOUT__ 1911s # 1911s # #include 1911s # 1911s # G_BEGIN_DECLS 1911s # 1911s # 1911s # /* ------------------------------------------------------------------------ */ 1911s # /* Declarations for FDPassing */ 1911s # 1911s # #define TYPE_FDPASSING (fdpassing_get_type ()) 1911s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 1911s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 1911s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 1911s # 1911s # struct _FDPassing; 1911s # typedef struct _FDPassing FDPassing; 1911s # typedef struct _FDPassingIface FDPassingIface; 1911s # 1911s # struct _FDPassingIface 1911s # { 1911s # GTypeInterface parent_iface; 1911s # 1911s # gboolean (*handle_hello_fd) ( 1911s # FDPassing *object, 1911s # GDBusMethodInvocation *invocation, 1911s # GUnixFDList *fd_list, 1911s # const gchar *arg_greeting); 1911s # 1911s # gboolean (*handle_no_annotation) ( 1911s # FDPassing *object, 1911s # GDBusMethodInvocation *invocation, 1911s # GUnixFDList *fd_list, 1911s # GVariant *arg_greeting, 1911s # const gchar *arg_greeting_locale); 1911s # 1911s # gboolean (*handle_no_annotation_nested) ( 1911s # FDPassing *object, 1911s # GDBusMethodInvocation *invocation, 1911s # GUnixFDList *fd_list, 1911s # GVariant *arg_files); 1911s # 1911s # }; 1911s # 1911s # GType fdpassing_get_type (void) G_GNUC_CONST; 1911s # 1911s # GDBusInterfaceInfo *fdpassing_interface_info (void); 1911s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 1911s # 1911s # 1911s # /* D-Bus method call completion functions: */ 1911s # void fdpassing_complete_hello_fd ( 1911s # FDPassing *object, 1911s # GDBusMethodInvocation *invocation, 1911s # GUnixFDList *fd_list, 1911s # const gchar *response); 1911s # 1911s # void fdpassing_complete_no_annotation ( 1911s # FDPassing *object, 1911s # GDBusMethodInvocation *invocation, 1911s # GUnixFDList *fd_list, 1911s # GVariant *response, 1911s # const gchar *response_locale); 1911s # 1911s # void fdpassing_complete_no_annotation_nested ( 1911s # FDPassing *object, 1911s # GDBusMethodInvocation *invocation, 1911s # GUnixFDList *fd_list); 1911s # 1911s # 1911s # 1911s # /* D-Bus method calls: */ 1911s # void fdpassing_call_hello_fd ( 1911s # FDPassing *proxy, 1911s # const gchar *arg_greeting, 1911s # GDBusCallFlags call_flags, 1911s # gint timeout_msec, 1911s # GUnixFDList *fd_list, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data); 1911s # 1911s # gboolean fdpassing_call_hello_fd_finish ( 1911s # FDPassing *proxy, 1911s # gchar **out_response, 1911s # GUnixFDList **out_fd_list, 1911s # GAsyncResult *res, 1911s # GError **error); 1911s # 1911s # gboolean fdpassing_call_hello_fd_sync ( 1911s # FDPassing *proxy, 1911s # const gchar *arg_greeting, 1911s # GDBusCallFlags call_flags, 1911s # gint timeout_msec, 1911s # GUnixFDList *fd_list, 1911s # gchar **out_response, 1911s # GUnixFDList **out_fd_list, 1911s # GCancellable *cancellable, 1911s # GError **error); 1911s # 1911s # void fdpassing_call_no_annotation ( 1911s # FDPassing *proxy, 1911s # GVariant *arg_greeting, 1911s # const gchar *arg_greeting_locale, 1911s # GDBusCallFlags call_flags, 1911s # gint timeout_msec, 1911s # GUnixFDList *fd_list, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data); 1911s # 1911s # gboolean fdpassing_call_no_annotation_finish ( 1911s # FDPassing *proxy, 1911s # GVariant **out_response, 1911s # gchar **out_response_locale, 1911s # GUnixFDList **out_fd_list, 1911s # GAsyncResult *res, 1911s # GError **error); 1911s # 1911s # gboolean fdpassing_call_no_annotation_sync ( 1911s # FDPassing *proxy, 1911s # GVariant *arg_greeting, 1911s # const gchar *arg_greeting_locale, 1911s # GDBusCallFlags call_flags, 1911s # gint timeout_msec, 1911s # GUnixFDList *fd_list, 1911s # GVariant **out_response, 1911s # gchar **out_response_locale, 1911s # GUnixFDList **out_fd_list, 1911s # GCancellable *cancellable, 1911s # GError **error); 1911s # 1911s # void fdpassing_call_no_annotation_nested ( 1911s # FDPassing *proxy, 1911s # GVariant *arg_files, 1911s # GDBusCallFlags call_flags, 1911s # gint timeout_msec, 1911s # GUnixFDList *fd_list, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data); 1911s # 1911s # gboolean fdpassing_call_no_annotation_nested_finish ( 1911s # FDPassing *proxy, 1911s # GUnixFDList **out_fd_list, 1911s # GAsyncResult *res, 1911s # GError **error); 1911s # 1911s # gboolean fdpassing_call_no_annotation_nested_sync ( 1911s # FDPassing *proxy, 1911s # GVariant *arg_files, 1911s # GDBusCallFlags call_flags, 1911s # gint timeout_msec, 1911s # GUnixFDList *fd_list, 1911s # GUnixFDList **out_fd_list, 1911s # GCancellable *cancellable, 1911s # GError **error); 1911s # 1911s # 1911s # 1911s # /* ---- */ 1911s # 1911s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 1911s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 1911s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1911s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1911s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 1911s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 1911s # 1911s # typedef struct _FDPassingProxy FDPassingProxy; 1911s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 1911s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 1911s # 1911s # struct _FDPassingProxy 1911s # { 1911s # /*< private >*/ 1911s # GDBusProxy parent_instance; 1911s # FDPassingProxyPrivate *priv; 1911s # }; 1911s # 1911s # struct _FDPassingProxyClass 1911s # { 1911s # GDBusProxyClass parent_class; 1911s # }; 1911s # 1911s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 1911s # 1911s # #if GLIB_CHECK_VERSION(2, 44, 0) 1911s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 1911s # #endif 1911s # 1911s # void fdpassing_proxy_new ( 1911s # GDBusConnection *connection, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data); 1911s # FDPassing *fdpassing_proxy_new_finish ( 1911s # GAsyncResult *res, 1911s # GError **error); 1911s # FDPassing *fdpassing_proxy_new_sync ( 1911s # GDBusConnection *connection, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GError **error); 1911s # 1911s # void fdpassing_proxy_new_for_bus ( 1911s # GBusType bus_type, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GAsyncReadyCallback callback, 1911s # gpointer user_data); 1911s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 1911s # GAsyncResult *res, 1911s # GError **error); 1911s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 1911s # GBusType bus_type, 1911s # GDBusProxyFlags flags, 1911s # const gchar *name, 1911s # const gchar *object_path, 1911s # GCancellable *cancellable, 1911s # GError **error); 1911s # 1911s # 1911s # /* ---- */ 1911s # 1911s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 1911s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 1911s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1911s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1911s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 1911s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 1911s # 1911s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 1911s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 1911s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 1911s # 1911s # struct _FDPassingSkeleton 1911s # { 1911s # /*< private >*/ 1911s # GDBusInterfaceSkeleton parent_instance; 1911s # FDPassingSkeletonPrivate *priv; 1911s # }; 1911s # 1911s # struct _FDPassingSkeletonClass 1911s # { 1911s # GDBusInterfaceSkeletonClass parent_class; 1911s # }; 1911s # 1911s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 1911s # 1911s # #if GLIB_CHECK_VERSION(2, 44, 0) 1911s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 1911s # #endif 1911s # 1911s # FDPassing *fdpassing_skeleton_new (void); 1911s # 1911s # 1911s # G_END_DECLS 1911s # 1911s # #endif /* __STDOUT__ */ 1911s # Error: 1911s 1..39 1911s ok - glib/codegen.py.test 1911s # Running test: glib/overflow.test 1911s TAP version 14 1911s # random seed: R02S5cdb84b2ca8e41f941e2ca1a5850e182 1911s 1..6 1911s # Start of glib tests 1911s # Start of checked-math tests 1911s ok 1 /glib/checked-math/guint-add 1911s ok 2 /glib/checked-math/guint-mul 1911s ok 3 /glib/checked-math/guint64-add 1911s ok 4 /glib/checked-math/guint64-mul 1911s ok 5 /glib/checked-math/gsize-add 1911s ok 6 /glib/checked-math/gsize-mul 1911s # End of checked-math tests 1911s # End of glib tests 1911s ok - glib/overflow.test 1911s # Running test: glib/regex.test 1911s TAP version 14 1911s # random seed: R02Sb998a518c5db0f7683cc5eeab9a6bc56 1911s 1..848 1911s # Start of regex tests 1911s ok 1 /regex/properties 1911s ok 2 /regex/class 1911s ok 3 /regex/lookahead 1911s ok 4 /regex/lookbehind 1911s ok 5 /regex/subpattern 1911s ok 6 /regex/condition 1911s ok 7 /regex/recursion 1911s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=640489 1911s ok 8 /regex/multiline 1911s ok 9 /regex/explicit-crlf 1911s ok 10 /regex/max-lookbehind 1911s ok 11 /regex/compile-errors 1911s ok 12 /regex/jit-unsupported-matching 1911s # /regex/unmatched-named-subpattern summary: Test that unmatched subpatterns can still be queried 1911s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2881 1911s ok 13 /regex/unmatched-named-subpattern 1911s # /regex/compiled-regex-after-jit-failure summary: Test that failed OPTIMIZE regex doesn't cause issues on subsequent matches 1911s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2824 1911s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 1911s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 1911s ok 14 /regex/compiled-regex-after-jit-failure 1911s # Start of new tests 1911s ok 15 /regex/new/1 1911s ok 16 /regex/new/2 1911s ok 17 /regex/new/3 1911s ok 18 /regex/new/4 1911s ok 19 /regex/new/5 1911s ok 20 /regex/new/6 1911s ok 21 /regex/new/7 1911s ok 22 /regex/new/8 1911s ok 23 /regex/new/9 1911s ok 24 /regex/new/10 1911s ok 25 /regex/new/11 1911s ok 26 /regex/new/12 1911s ok 27 /regex/new/13 1911s ok 28 /regex/new/14 1911s ok 29 /regex/new/15 1911s ok 30 /regex/new/16 1911s ok 31 /regex/new/17 1911s ok 32 /regex/new/18 1911s ok 33 /regex/new/19 1911s ok 34 /regex/new/71 1911s ok 35 /regex/new/80 1911s ok 36 /regex/new/82 1911s # End of new tests 1911s # Start of new-check-flags tests 1911s ok 37 /regex/new-check-flags/20 1911s ok 38 /regex/new-check-flags/21 1911s ok 39 /regex/new-check-flags/22 1911s ok 40 /regex/new-check-flags/23 1911s ok 41 /regex/new-check-flags/24 1911s ok 42 /regex/new-check-flags/25 1911s ok 43 /regex/new-check-flags/26 1911s ok 44 /regex/new-check-flags/27 1911s ok 45 /regex/new-check-flags/28 1911s ok 46 /regex/new-check-flags/29 1911s ok 47 /regex/new-check-flags/30 1911s ok 48 /regex/new-check-flags/31 1911s ok 49 /regex/new-check-flags/32 1911s ok 50 /regex/new-check-flags/33 1911s ok 51 /regex/new-check-flags/34 1911s ok 52 /regex/new-check-flags/35 1911s ok 53 /regex/new-check-flags/36 1911s # End of new-check-flags tests 1911s # Start of new-fail tests 1911s ok 54 /regex/new-fail/37 1911s ok 55 /regex/new-fail/38 1911s ok 56 /regex/new-fail/39 1911s ok 57 /regex/new-fail/40 1911s ok 58 /regex/new-fail/41 1911s ok 59 /regex/new-fail/42 1911s ok 60 /regex/new-fail/43 1911s ok 61 /regex/new-fail/44 1911s ok 62 /regex/new-fail/45 1911s ok 63 /regex/new-fail/46 1911s ok 64 /regex/new-fail/47 1911s ok 65 /regex/new-fail/48 1911s ok 66 /regex/new-fail/49 1911s ok 67 /regex/new-fail/50 1911s ok 68 /regex/new-fail/51 1911s ok 69 /regex/new-fail/52 1911s ok 70 /regex/new-fail/53 1911s ok 71 /regex/new-fail/54 1911s ok 72 /regex/new-fail/55 1911s ok 73 /regex/new-fail/56 1911s ok 74 /regex/new-fail/57 1911s ok 75 /regex/new-fail/58 1911s ok 76 /regex/new-fail/59 1911s ok 77 /regex/new-fail/60 1911s ok 78 /regex/new-fail/61 1911s ok 79 /regex/new-fail/62 1911s ok 80 /regex/new-fail/63 1911s ok 81 /regex/new-fail/64 1911s ok 82 /regex/new-fail/65 1911s ok 83 /regex/new-fail/66 1911s ok 84 /regex/new-fail/67 1911s ok 85 /regex/new-fail/68 1911s ok 86 /regex/new-fail/69 1911s ok 87 /regex/new-fail/70 1911s ok 88 /regex/new-fail/72 1911s ok 89 /regex/new-fail/73 1911s ok 90 /regex/new-fail/74 1911s ok 91 /regex/new-fail/75 1911s ok 92 /regex/new-fail/76 1911s ok 93 /regex/new-fail/77 1911s ok 94 /regex/new-fail/78 1911s ok 95 /regex/new-fail/79 1911s ok 96 /regex/new-fail/81 1911s ok 97 /regex/new-fail/83 1911s ok 98 /regex/new-fail/84 1911s ok 99 /regex/new-fail/85 1911s ok 100 /regex/new-fail/86 1911s ok 101 /regex/new-fail/87 1911s ok 102 /regex/new-fail/88 1911s ok 103 /regex/new-fail/89 1911s ok 104 /regex/new-fail/90 1911s ok 105 /regex/new-fail/91 1911s # End of new-fail tests 1911s # Start of match-simple tests 1911s ok 106 /regex/match-simple/92 1911s ok 107 /regex/match-simple/93 1911s ok 108 /regex/match-simple/94 1911s ok 109 /regex/match-simple/95 1911s ok 110 /regex/match-simple/96 1911s ok 111 /regex/match-simple/97 1911s ok 112 /regex/match-simple/98 1911s ok 113 /regex/match-simple/99 1911s ok 114 /regex/match-simple/100 1911s ok 115 /regex/match-simple/101 1911s ok 116 /regex/match-simple/102 1911s ok 117 /regex/match-simple/103 1911s ok 118 /regex/match-simple/104 1911s ok 119 /regex/match-simple/105 1911s ok 120 /regex/match-simple/106 1911s ok 121 /regex/match-simple/107 1911s ok 122 /regex/match-simple/108 1911s ok 123 /regex/match-simple/109 1911s ok 124 /regex/match-simple/110 1911s ok 125 /regex/match-simple/111 1911s ok 126 /regex/match-simple/112 1911s ok 127 /regex/match-simple/113 1911s ok 128 /regex/match-simple/114 1911s ok 129 /regex/match-simple/115 1911s ok 130 /regex/match-simple/116 1911s ok 131 /regex/match-simple/117 1911s ok 132 /regex/match-simple/118 1911s ok 133 /regex/match-simple/119 1911s ok 134 /regex/match-simple/120 1911s ok 135 /regex/match-simple/121 1911s ok 136 /regex/match-simple/122 1911s ok 137 /regex/match-simple/123 1911s ok 138 /regex/match-simple/124 1911s ok 139 /regex/match-simple/125 1911s ok 140 /regex/match-simple/126 1911s ok 141 /regex/match-simple/127 1911s ok 142 /regex/match-simple/128 1911s ok 143 /regex/match-simple/129 1911s ok 144 /regex/match-simple/130 1911s ok 145 /regex/match-simple/131 1911s ok 146 /regex/match-simple/132 1911s ok 147 /regex/match-simple/133 1911s ok 148 /regex/match-simple/134 1911s ok 149 /regex/match-simple/135 1911s ok 150 /regex/match-simple/136 1911s ok 151 /regex/match-simple/137 1911s ok 152 /regex/match-simple/138 1911s ok 153 /regex/match-simple/139 1911s ok 154 /regex/match-simple/140 1911s ok 155 /regex/match-simple/141 1911s ok 156 /regex/match-simple/142 1911s ok 157 /regex/match-simple/143 1911s ok 158 /regex/match-simple/144 1911s ok 159 /regex/match-simple/145 1911s ok 160 /regex/match-simple/146 1911s ok 161 /regex/match-simple/147 1911s ok 162 /regex/match-simple/148 1911s ok 163 /regex/match-simple/149 1911s ok 164 /regex/match-simple/150 1911s ok 165 /regex/match-simple/151 1911s ok 166 /regex/match-simple/152 1911s ok 167 /regex/match-simple/153 1911s ok 168 /regex/match-simple/154 1911s ok 169 /regex/match-simple/155 1911s ok 170 /regex/match-simple/156 1911s ok 171 /regex/match-simple/157 1911s ok 172 /regex/match-simple/158 1911s ok 173 /regex/match-simple/159 1911s ok 174 /regex/match-simple/160 1911s ok 175 /regex/match-simple/161 1911s ok 176 /regex/match-simple/162 1911s ok 177 /regex/match-simple/163 1911s ok 178 /regex/match-simple/164 1911s # End of match-simple tests 1911s # Start of match-simple-optimized tests 1911s ok 179 /regex/match-simple-optimized/92 1911s ok 180 /regex/match-simple-optimized/93 1911s ok 181 /regex/match-simple-optimized/94 1911s ok 182 /regex/match-simple-optimized/95 1911s ok 183 /regex/match-simple-optimized/96 1911s ok 184 /regex/match-simple-optimized/97 1911s ok 185 /regex/match-simple-optimized/98 1911s ok 186 /regex/match-simple-optimized/99 1911s ok 187 /regex/match-simple-optimized/100 1911s ok 188 /regex/match-simple-optimized/101 1911s ok 189 /regex/match-simple-optimized/102 1911s ok 190 /regex/match-simple-optimized/103 1911s ok 191 /regex/match-simple-optimized/104 1911s ok 192 /regex/match-simple-optimized/105 1911s ok 193 /regex/match-simple-optimized/106 1911s ok 194 /regex/match-simple-optimized/107 1911s ok 195 /regex/match-simple-optimized/108 1911s ok 196 /regex/match-simple-optimized/109 1911s ok 197 /regex/match-simple-optimized/110 1911s ok 198 /regex/match-simple-optimized/111 1911s ok 199 /regex/match-simple-optimized/112 1911s ok 200 /regex/match-simple-optimized/113 1911s ok 201 /regex/match-simple-optimized/114 1911s ok 202 /regex/match-simple-optimized/115 1911s ok 203 /regex/match-simple-optimized/116 1911s ok 204 /regex/match-simple-optimized/117 1911s ok 205 /regex/match-simple-optimized/118 1911s ok 206 /regex/match-simple-optimized/119 1911s ok 207 /regex/match-simple-optimized/120 1911s ok 208 /regex/match-simple-optimized/121 1911s ok 209 /regex/match-simple-optimized/122 1911s ok 210 /regex/match-simple-optimized/123 1911s ok 211 /regex/match-simple-optimized/124 1911s ok 212 /regex/match-simple-optimized/125 1911s ok 213 /regex/match-simple-optimized/126 1911s ok 214 /regex/match-simple-optimized/127 1911s ok 215 /regex/match-simple-optimized/128 1911s ok 216 /regex/match-simple-optimized/129 1911s ok 217 /regex/match-simple-optimized/130 1911s ok 218 /regex/match-simple-optimized/131 1911s ok 219 /regex/match-simple-optimized/132 1911s ok 220 /regex/match-simple-optimized/133 1911s ok 221 /regex/match-simple-optimized/134 1911s ok 222 /regex/match-simple-optimized/135 1911s ok 223 /regex/match-simple-optimized/136 1911s ok 224 /regex/match-simple-optimized/137 1911s ok 225 /regex/match-simple-optimized/138 1911s ok 226 /regex/match-simple-optimized/139 1911s ok 227 /regex/match-simple-optimized/140 1911s ok 228 /regex/match-simple-optimized/141 1911s ok 229 /regex/match-simple-optimized/142 1911s ok 230 /regex/match-simple-optimized/143 1911s ok 231 /regex/match-simple-optimized/144 1911s ok 232 /regex/match-simple-optimized/145 1911s ok 233 /regex/match-simple-optimized/146 1911s ok 234 /regex/match-simple-optimized/147 1911s ok 235 /regex/match-simple-optimized/148 1911s ok 236 /regex/match-simple-optimized/149 1911s ok 237 /regex/match-simple-optimized/150 1911s ok 238 /regex/match-simple-optimized/151 1911s ok 239 /regex/match-simple-optimized/152 1911s ok 240 /regex/match-simple-optimized/153 1911s ok 241 /regex/match-simple-optimized/154 1911s ok 242 /regex/match-simple-optimized/155 1911s ok 243 /regex/match-simple-optimized/156 1911s ok 244 /regex/match-simple-optimized/157 1911s ok 245 /regex/match-simple-optimized/158 1911s ok 246 /regex/match-simple-optimized/159 1911s ok 247 /regex/match-simple-optimized/160 1911s ok 248 /regex/match-simple-optimized/161 1911s ok 249 /regex/match-simple-optimized/162 1911s ok 250 /regex/match-simple-optimized/163 1911s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 1911s ok 251 /regex/match-simple-optimized/164 1911s # End of match-simple-optimized tests 1911s # Start of match tests 1911s ok 252 /regex/match/165 1911s ok 253 /regex/match/166 1911s ok 254 /regex/match/167 1911s ok 255 /regex/match/168 1911s ok 256 /regex/match/169 1911s ok 257 /regex/match/170 1911s ok 258 /regex/match/171 1911s ok 259 /regex/match/172 1911s ok 260 /regex/match/173 1911s ok 261 /regex/match/174 1911s ok 262 /regex/match/175 1911s ok 263 /regex/match/176 1911s ok 264 /regex/match/177 1911s ok 265 /regex/match/178 1911s ok 266 /regex/match/179 1911s ok 267 /regex/match/180 1911s ok 268 /regex/match/181 1911s ok 269 /regex/match/182 1911s ok 270 /regex/match/183 1911s ok 271 /regex/match/184 1911s ok 272 /regex/match/185 1911s ok 273 /regex/match/186 1911s ok 274 /regex/match/187 1911s ok 275 /regex/match/188 1911s ok 276 /regex/match/189 1911s ok 277 /regex/match/190 1911s ok 278 /regex/match/191 1911s ok 279 /regex/match/192 1911s ok 280 /regex/match/193 1911s ok 281 /regex/match/194 1911s ok 282 /regex/match/195 1911s ok 283 /regex/match/196 1911s ok 284 /regex/match/197 1911s ok 285 /regex/match/198 1911s ok 286 /regex/match/199 1911s ok 287 /regex/match/200 1911s ok 288 /regex/match/201 1911s ok 289 /regex/match/202 1911s ok 290 /regex/match/203 1911s ok 291 /regex/match/204 1911s ok 292 /regex/match/205 1911s ok 293 /regex/match/206 1911s ok 294 /regex/match/207 1911s ok 295 /regex/match/208 1911s ok 296 /regex/match/209 1911s ok 297 /regex/match/210 1911s ok 298 /regex/match/211 1911s ok 299 /regex/match/212 1911s ok 300 /regex/match/213 1911s ok 301 /regex/match/214 1911s ok 302 /regex/match/215 1911s ok 303 /regex/match/216 1911s ok 304 /regex/match/217 1911s ok 305 /regex/match/218 1911s ok 306 /regex/match/219 1911s ok 307 /regex/match/220 1911s ok 308 /regex/match/221 1911s ok 309 /regex/match/222 1911s ok 310 /regex/match/223 1911s ok 311 /regex/match/224 1911s ok 312 /regex/match/225 1911s ok 313 /regex/match/226 1911s ok 314 /regex/match/227 1911s ok 315 /regex/match/228 1911s ok 316 /regex/match/229 1911s ok 317 /regex/match/230 1911s ok 318 /regex/match/231 1911s ok 319 /regex/match/232 1911s ok 320 /regex/match/233 1911s ok 321 /regex/match/234 1911s ok 322 /regex/match/235 1911s ok 323 /regex/match/236 1911s ok 324 /regex/match/237 1911s ok 325 /regex/match/238 1911s ok 326 /regex/match/239 1911s ok 327 /regex/match/240 1911s ok 328 /regex/match/241 1911s ok 329 /regex/match/242 1911s ok 330 /regex/match/243 1911s ok 331 /regex/match/244 1911s ok 332 /regex/match/245 1911s ok 333 /regex/match/246 1911s ok 334 /regex/match/partial281 1911s ok 335 /regex/match/partial282 1911s ok 336 /regex/match/partial283 1911s ok 337 /regex/match/partial284 1911s ok 338 /regex/match/partial285 1911s ok 339 /regex/match/partial286 1911s ok 340 /regex/match/partial287 1911s ok 341 /regex/match/partial288 1911s ok 342 /regex/match/partial289 1911s ok 343 /regex/match/partial290 1911s ok 344 /regex/match/partial291 1911s ok 345 /regex/match/partial292 1911s ok 346 /regex/match/partial293 1911s ok 347 /regex/match/partial294 1911s ok 348 /regex/match/partial295 1911s ok 349 /regex/match/partial296 1911s ok 350 /regex/match/partial297 1911s ok 351 /regex/match/partial298 1911s ok 352 /regex/match/partial299 1911s ok 353 /regex/match/partial300 1911s ok 354 /regex/match/partial301 1911s ok 355 /regex/match/partial302 1911s # Start of next0 tests 1911s ok 356 /regex/match/next0/247 1911s ok 357 /regex/match/next0/248 1911s ok 358 /regex/match/next0/249 1911s ok 359 /regex/match/next0/250 1911s # End of next0 tests 1911s # Start of next1 tests 1911s ok 360 /regex/match/next1/251 1911s ok 361 /regex/match/next1/252 1911s ok 362 /regex/match/next1/253 1911s ok 363 /regex/match/next1/254 1911s ok 364 /regex/match/next1/255 1911s # End of next1 tests 1911s # Start of next2 tests 1911s ok 365 /regex/match/next2/256 1911s ok 366 /regex/match/next2/257 1911s ok 367 /regex/match/next2/258 1911s ok 368 /regex/match/next2/259 1911s ok 369 /regex/match/next2/260 1911s ok 370 /regex/match/next2/261 1911s ok 371 /regex/match/next2/262 1911s ok 372 /regex/match/next2/263 1911s # End of next2 tests 1911s # Start of next3 tests 1911s ok 373 /regex/match/next3/264 1911s ok 374 /regex/match/next3/265 1911s ok 375 /regex/match/next3/266 1911s ok 376 /regex/match/next3/267 1911s ok 377 /regex/match/next3/268 1911s ok 378 /regex/match/next3/269 1911s # End of next3 tests 1911s # Start of next4 tests 1911s ok 379 /regex/match/next4/270 1911s # End of next4 tests 1911s # Start of count tests 1911s ok 380 /regex/match/count/271 1911s ok 381 /regex/match/count/272 1911s ok 382 /regex/match/count/273 1911s ok 383 /regex/match/count/274 1911s ok 384 /regex/match/count/275 1911s ok 385 /regex/match/count/276 1911s ok 386 /regex/match/count/277 1911s ok 387 /regex/match/count/278 1911s ok 388 /regex/match/count/279 1911s ok 389 /regex/match/count/280 1911s # End of count tests 1911s # Start of count-optimized tests 1911s ok 390 /regex/match/count-optimized/271 1911s ok 391 /regex/match/count-optimized/272 1911s ok 392 /regex/match/count-optimized/273 1911s ok 393 /regex/match/count-optimized/274 1911s ok 394 /regex/match/count-optimized/275 1911s ok 395 /regex/match/count-optimized/276 1911s ok 396 /regex/match/count-optimized/277 1911s ok 397 /regex/match/count-optimized/278 1911s ok 398 /regex/match/count-optimized/279 1911s ok 399 /regex/match/count-optimized/280 1911s # End of count-optimized tests 1911s # Start of partial-optimized tests 1911s ok 400 /regex/match/partial-optimized/281 1911s ok 401 /regex/match/partial-optimized/282 1911s ok 402 /regex/match/partial-optimized/283 1911s ok 403 /regex/match/partial-optimized/284 1911s ok 404 /regex/match/partial-optimized/285 1911s ok 405 /regex/match/partial-optimized/286 1911s ok 406 /regex/match/partial-optimized/287 1911s ok 407 /regex/match/partial-optimized/288 1911s ok 408 /regex/match/partial-optimized/289 1911s ok 409 /regex/match/partial-optimized/290 1911s ok 410 /regex/match/partial-optimized/291 1911s ok 411 /regex/match/partial-optimized/292 1911s ok 412 /regex/match/partial-optimized/293 1911s ok 413 /regex/match/partial-optimized/294 1911s ok 414 /regex/match/partial-optimized/295 1911s ok 415 /regex/match/partial-optimized/296 1911s ok 416 /regex/match/partial-optimized/297 1911s ok 417 /regex/match/partial-optimized/298 1911s ok 418 /regex/match/partial-optimized/299 1911s ok 419 /regex/match/partial-optimized/300 1911s ok 420 /regex/match/partial-optimized/301 1911s ok 421 /regex/match/partial-optimized/302 1911s # End of partial-optimized tests 1911s # Start of subpattern tests 1911s ok 422 /regex/match/subpattern/303 1911s ok 423 /regex/match/subpattern/304 1911s ok 424 /regex/match/subpattern/305 1911s ok 425 /regex/match/subpattern/306 1911s ok 426 /regex/match/subpattern/307 1911s ok 427 /regex/match/subpattern/308 1911s ok 428 /regex/match/subpattern/309 1911s ok 429 /regex/match/subpattern/310 1911s ok 430 /regex/match/subpattern/311 1911s ok 431 /regex/match/subpattern/312 1911s ok 432 /regex/match/subpattern/313 1911s ok 433 /regex/match/subpattern/314 1911s ok 434 /regex/match/subpattern/315 1911s # Start of named tests 1911s # Start of dupnames tests 1911s ok 435 /regex/match/subpattern/named/dupnames/325 1911s ok 436 /regex/match/subpattern/named/dupnames/326 1911s ok 437 /regex/match/subpattern/named/dupnames/327 1911s ok 438 /regex/match/subpattern/named/dupnames/328 1911s ok 439 /regex/match/subpattern/named/dupnames/329 1911s # End of dupnames tests 1911s # End of named tests 1911s # End of subpattern tests 1911s # Start of subpattern-optimized tests 1911s ok 440 /regex/match/subpattern-optimized/303 1911s ok 441 /regex/match/subpattern-optimized/304 1911s ok 442 /regex/match/subpattern-optimized/305 1911s ok 443 /regex/match/subpattern-optimized/306 1911s ok 444 /regex/match/subpattern-optimized/307 1911s ok 445 /regex/match/subpattern-optimized/308 1911s ok 446 /regex/match/subpattern-optimized/309 1911s ok 447 /regex/match/subpattern-optimized/310 1911s ok 448 /regex/match/subpattern-optimized/311 1911s ok 449 /regex/match/subpattern-optimized/312 1911s ok 450 /regex/match/subpattern-optimized/313 1911s ok 451 /regex/match/subpattern-optimized/314 1911s ok 452 /regex/match/subpattern-optimized/315 1911s # End of subpattern-optimized tests 1911s # Start of named tests 1911s # Start of subpattern tests 1911s ok 453 /regex/match/named/subpattern/316 1911s ok 454 /regex/match/named/subpattern/317 1911s ok 455 /regex/match/named/subpattern/318 1911s ok 456 /regex/match/named/subpattern/319 1911s ok 457 /regex/match/named/subpattern/320 1911s ok 458 /regex/match/named/subpattern/321 1911s ok 459 /regex/match/named/subpattern/322 1911s ok 460 /regex/match/named/subpattern/323 1911s ok 461 /regex/match/named/subpattern/324 1911s ok 462 /regex/match/named/subpattern/330 1911s ok 463 /regex/match/named/subpattern/331 1911s ok 464 /regex/match/named/subpattern/332 1911s ok 465 /regex/match/named/subpattern/333 1911s ok 466 /regex/match/named/subpattern/334 1911s # End of subpattern tests 1911s # End of named tests 1911s # End of match tests 1911s # Start of match-optimized tests 1911s ok 467 /regex/match-optimized/165 1911s ok 468 /regex/match-optimized/166 1911s ok 469 /regex/match-optimized/167 1911s ok 470 /regex/match-optimized/168 1911s ok 471 /regex/match-optimized/169 1911s ok 472 /regex/match-optimized/170 1911s ok 473 /regex/match-optimized/171 1911s ok 474 /regex/match-optimized/172 1911s ok 475 /regex/match-optimized/173 1911s ok 476 /regex/match-optimized/174 1911s ok 477 /regex/match-optimized/175 1911s ok 478 /regex/match-optimized/176 1911s ok 479 /regex/match-optimized/177 1911s ok 480 /regex/match-optimized/178 1911s ok 481 /regex/match-optimized/179 1911s ok 482 /regex/match-optimized/180 1911s ok 483 /regex/match-optimized/181 1911s ok 484 /regex/match-optimized/182 1911s ok 485 /regex/match-optimized/183 1911s ok 486 /regex/match-optimized/184 1911s ok 487 /regex/match-optimized/185 1911s ok 488 /regex/match-optimized/186 1911s ok 489 /regex/match-optimized/187 1911s ok 490 /regex/match-optimized/188 1911s ok 491 /regex/match-optimized/189 1911s ok 492 /regex/match-optimized/190 1911s ok 493 /regex/match-optimized/191 1911s ok 494 /regex/match-optimized/192 1911s ok 495 /regex/match-optimized/193 1911s ok 496 /regex/match-optimized/194 1911s ok 497 /regex/match-optimized/195 1911s ok 498 /regex/match-optimized/196 1911s ok 499 /regex/match-optimized/197 1911s ok 500 /regex/match-optimized/198 1911s ok 501 /regex/match-optimized/199 1911s ok 502 /regex/match-optimized/200 1911s ok 503 /regex/match-optimized/201 1911s ok 504 /regex/match-optimized/202 1911s ok 505 /regex/match-optimized/203 1911s ok 506 /regex/match-optimized/204 1911s ok 507 /regex/match-optimized/205 1911s ok 508 /regex/match-optimized/206 1911s ok 509 /regex/match-optimized/207 1911s ok 510 /regex/match-optimized/208 1911s ok 511 /regex/match-optimized/209 1911s ok 512 /regex/match-optimized/210 1911s ok 513 /regex/match-optimized/211 1911s ok 514 /regex/match-optimized/212 1911s ok 515 /regex/match-optimized/213 1911s ok 516 /regex/match-optimized/214 1911s ok 517 /regex/match-optimized/215 1911s ok 518 /regex/match-optimized/216 1911s ok 519 /regex/match-optimized/217 1911s ok 520 /regex/match-optimized/218 1911s ok 521 /regex/match-optimized/219 1911s ok 522 /regex/match-optimized/220 1911s ok 523 /regex/match-optimized/221 1911s ok 524 /regex/match-optimized/222 1911s ok 525 /regex/match-optimized/223 1911s ok 526 /regex/match-optimized/224 1911s ok 527 /regex/match-optimized/225 1911s ok 528 /regex/match-optimized/226 1911s ok 529 /regex/match-optimized/227 1911s ok 530 /regex/match-optimized/228 1911s ok 531 /regex/match-optimized/229 1911s ok 532 /regex/match-optimized/230 1911s ok 533 /regex/match-optimized/231 1911s ok 534 /regex/match-optimized/232 1911s ok 535 /regex/match-optimized/233 1911s ok 536 /regex/match-optimized/234 1911s ok 537 /regex/match-optimized/235 1911s ok 538 /regex/match-optimized/236 1911s ok 539 /regex/match-optimized/237 1911s ok 540 /regex/match-optimized/238 1911s ok 541 /regex/match-optimized/239 1911s ok 542 /regex/match-optimized/240 1911s ok 543 /regex/match-optimized/241 1911s ok 544 /regex/match-optimized/242 1911s ok 545 /regex/match-optimized/243 1911s ok 546 /regex/match-optimized/244 1911s ok 547 /regex/match-optimized/245 1911s ok 548 /regex/match-optimized/246 1911s # End of match-optimized tests 1911s # Start of fetch-all0 tests 1911s ok 549 /regex/fetch-all0/335 1911s ok 550 /regex/fetch-all0/336 1911s # End of fetch-all0 tests 1911s # Start of fetch-all1 tests 1911s ok 551 /regex/fetch-all1/337 1911s ok 552 /regex/fetch-all1/338 1911s ok 553 /regex/fetch-all1/339 1911s # End of fetch-all1 tests 1911s # Start of fetch-all2 tests 1911s ok 554 /regex/fetch-all2/340 1911s ok 555 /regex/fetch-all2/341 1911s ok 556 /regex/fetch-all2/342 1911s # End of fetch-all2 tests 1911s # Start of fetch-all3 tests 1911s ok 557 /regex/fetch-all3/343 1911s ok 558 /regex/fetch-all3/344 1911s ok 559 /regex/fetch-all3/345 1911s ok 560 /regex/fetch-all3/346 1911s ok 561 /regex/fetch-all3/347 1911s # End of fetch-all3 tests 1911s # Start of split tests 1911s # Start of simple0 tests 1911s ok 562 /regex/split/simple0/348 1911s ok 563 /regex/split/simple0/349 1911s ok 564 /regex/split/simple0/364 1911s ok 565 /regex/split/simple0/365 1911s # End of simple0 tests 1911s # Start of simple1 tests 1911s ok 566 /regex/split/simple1/350 1911s ok 567 /regex/split/simple1/351 1911s # End of simple1 tests 1911s # Start of simple2 tests 1911s ok 568 /regex/split/simple2/352 1911s ok 569 /regex/split/simple2/358 1911s ok 570 /regex/split/simple2/360 1911s # End of simple2 tests 1911s # Start of simple3 tests 1911s ok 571 /regex/split/simple3/353 1911s ok 572 /regex/split/simple3/354 1911s ok 573 /regex/split/simple3/355 1911s ok 574 /regex/split/simple3/356 1911s ok 575 /regex/split/simple3/357 1911s ok 576 /regex/split/simple3/359 1911s ok 577 /regex/split/simple3/361 1911s ok 578 /regex/split/simple3/362 1911s ok 579 /regex/split/simple3/363 1911s # End of simple3 tests 1911s # End of split tests 1911s # Start of split0 tests 1911s ok 580 /regex/split0/366 1911s ok 581 /regex/split0/368 1911s # End of split0 tests 1911s # Start of full-split0 tests 1911s ok 582 /regex/full-split0/367 1911s ok 583 /regex/full-split0/369 1911s ok 584 /regex/full-split0/370 1911s ok 585 /regex/full-split0/371 1911s ok 586 /regex/full-split0/372 1911s # End of full-split0 tests 1911s # Start of split1 tests 1911s ok 587 /regex/split1/373 1911s ok 588 /regex/split1/376 1911s # End of split1 tests 1911s # Start of full-split1 tests 1911s ok 589 /regex/full-split1/374 1911s ok 590 /regex/full-split1/375 1911s ok 591 /regex/full-split1/377 1911s ok 592 /regex/full-split1/378 1911s ok 593 /regex/full-split1/404 1911s # End of full-split1 tests 1911s # Start of split2 tests 1911s ok 594 /regex/split2/379 1911s ok 595 /regex/split2/383 1911s ok 596 /regex/split2/395 1911s # End of split2 tests 1911s # Start of full-split2 tests 1911s ok 597 /regex/full-split2/380 1911s ok 598 /regex/full-split2/381 1911s ok 599 /regex/full-split2/382 1911s ok 600 /regex/full-split2/384 1911s ok 601 /regex/full-split2/396 1911s ok 602 /regex/full-split2/399 1911s ok 603 /regex/full-split2/405 1911s # End of full-split2 tests 1911s # Start of split3 tests 1911s ok 604 /regex/split3/385 1911s ok 605 /regex/split3/387 1911s ok 606 /regex/split3/389 1911s ok 607 /regex/split3/391 1911s ok 608 /regex/split3/393 1911s ok 609 /regex/split3/397 1911s ok 610 /regex/split3/400 1911s ok 611 /regex/split3/402 1911s # End of split3 tests 1911s # Start of full-split3 tests 1911s ok 612 /regex/full-split3/386 1911s ok 613 /regex/full-split3/388 1911s ok 614 /regex/full-split3/390 1911s ok 615 /regex/full-split3/392 1911s ok 616 /regex/full-split3/394 1911s ok 617 /regex/full-split3/398 1911s ok 618 /regex/full-split3/401 1911s ok 619 /regex/full-split3/403 1911s ok 620 /regex/full-split3/406 1911s ok 621 /regex/full-split3/407 1911s # End of full-split3 tests 1911s # Start of check-repacement tests 1911s ok 622 /regex/check-repacement/408 1911s ok 623 /regex/check-repacement/409 1911s ok 624 /regex/check-repacement/410 1911s ok 625 /regex/check-repacement/411 1911s ok 626 /regex/check-repacement/412 1911s ok 627 /regex/check-repacement/413 1911s ok 628 /regex/check-repacement/414 1911s ok 629 /regex/check-repacement/415 1911s # End of check-repacement tests 1911s # Start of expand tests 1911s ok 630 /regex/expand/416 1911s ok 631 /regex/expand/417 1911s ok 632 /regex/expand/418 1911s ok 633 /regex/expand/419 1911s ok 634 /regex/expand/420 1911s ok 635 /regex/expand/421 1911s ok 636 /regex/expand/422 1911s ok 637 /regex/expand/423 1911s ok 638 /regex/expand/424 1911s ok 639 /regex/expand/425 1911s ok 640 /regex/expand/426 1911s ok 641 /regex/expand/427 1911s ok 642 /regex/expand/428 1911s ok 643 /regex/expand/429 1911s ok 644 /regex/expand/430 1911s ok 645 /regex/expand/431 1911s ok 646 /regex/expand/432 1911s ok 647 /regex/expand/433 1911s ok 648 /regex/expand/434 1911s ok 649 /regex/expand/435 1911s ok 650 /regex/expand/436 1911s ok 651 /regex/expand/437 1911s ok 652 /regex/expand/438 1911s ok 653 /regex/expand/439 1911s ok 654 /regex/expand/440 1911s ok 655 /regex/expand/441 1911s ok 656 /regex/expand/442 1911s ok 657 /regex/expand/443 1911s ok 658 /regex/expand/444 1911s ok 659 /regex/expand/445 1911s ok 660 /regex/expand/446 1911s ok 661 /regex/expand/447 1911s ok 662 /regex/expand/448 1911s ok 663 /regex/expand/449 1911s ok 664 /regex/expand/450 1911s ok 665 /regex/expand/451 1911s ok 666 /regex/expand/452 1911s ok 667 /regex/expand/453 1911s ok 668 /regex/expand/454 1911s ok 669 /regex/expand/455 1911s ok 670 /regex/expand/456 1911s ok 671 /regex/expand/457 1911s ok 672 /regex/expand/458 1911s ok 673 /regex/expand/459 1911s ok 674 /regex/expand/460 1911s ok 675 /regex/expand/461 1911s ok 676 /regex/expand/462 1911s ok 677 /regex/expand/463 1911s ok 678 /regex/expand/464 1911s ok 679 /regex/expand/465 1911s ok 680 /regex/expand/466 1911s ok 681 /regex/expand/467 1911s ok 682 /regex/expand/468 1911s ok 683 /regex/expand/469 1911s ok 684 /regex/expand/470 1911s ok 685 /regex/expand/471 1911s ok 686 /regex/expand/472 1911s ok 687 /regex/expand/473 1911s ok 688 /regex/expand/474 1911s ok 689 /regex/expand/475 1911s ok 690 /regex/expand/476 1911s ok 691 /regex/expand/477 1911s ok 692 /regex/expand/478 1911s ok 693 /regex/expand/479 1911s ok 694 /regex/expand/480 1911s ok 695 /regex/expand/481 1911s # End of expand tests 1911s # Start of replace tests 1911s ok 696 /regex/replace/482 1911s ok 697 /regex/replace/483 1911s ok 698 /regex/replace/484 1911s ok 699 /regex/replace/485 1911s ok 700 /regex/replace/486 1911s ok 701 /regex/replace/487 1911s ok 702 /regex/replace/488 1911s ok 703 /regex/replace/489 1911s ok 704 /regex/replace/490 1911s ok 705 /regex/replace/491 1911s ok 706 /regex/replace/492 1911s ok 707 /regex/replace/493 1911s ok 708 /regex/replace/494 1911s ok 709 /regex/replace/495 1911s ok 710 /regex/replace/496 1911s ok 711 /regex/replace/497 1911s ok 712 /regex/replace/498 1911s ok 713 /regex/replace/499 1911s ok 714 /regex/replace/500 1911s ok 715 /regex/replace/501 1911s ok 716 /regex/replace/502 1911s ok 717 /regex/replace/503 1911s ok 718 /regex/replace/504 1911s ok 719 /regex/replace/505 1911s ok 720 /regex/replace/506 1911s ok 721 /regex/replace/507 1911s ok 722 /regex/replace/508 1911s ok 723 /regex/replace/509 1911s # End of replace tests 1911s # Start of replace-optimized tests 1911s ok 724 /regex/replace-optimized/482 1911s ok 725 /regex/replace-optimized/483 1911s ok 726 /regex/replace-optimized/484 1911s ok 727 /regex/replace-optimized/485 1911s ok 728 /regex/replace-optimized/486 1911s ok 729 /regex/replace-optimized/487 1911s ok 730 /regex/replace-optimized/488 1911s ok 731 /regex/replace-optimized/489 1911s ok 732 /regex/replace-optimized/490 1911s ok 733 /regex/replace-optimized/491 1911s ok 734 /regex/replace-optimized/492 1911s ok 735 /regex/replace-optimized/493 1911s ok 736 /regex/replace-optimized/494 1911s ok 737 /regex/replace-optimized/495 1911s ok 738 /regex/replace-optimized/496 1911s ok 739 /regex/replace-optimized/497 1911s ok 740 /regex/replace-optimized/498 1911s ok 741 /regex/replace-optimized/499 1911s ok 742 /regex/replace-optimized/500 1911s ok 743 /regex/replace-optimized/501 1911s ok 744 /regex/replace-optimized/502 1911s ok 745 /regex/replace-optimized/503 1911s ok 746 /regex/replace-optimized/504 1911s ok 747 /regex/replace-optimized/505 1911s ok 748 /regex/replace-optimized/506 1911s ok 749 /regex/replace-optimized/507 1911s ok 750 /regex/replace-optimized/508 1911s ok 751 /regex/replace-optimized/509 1911s # End of replace-optimized tests 1911s # Start of replace-literally tests 1911s ok 752 /regex/replace-literally/510 1911s ok 753 /regex/replace-literally/511 1911s ok 754 /regex/replace-literally/512 1911s ok 755 /regex/replace-literally/513 1911s ok 756 /regex/replace-literally/514 1911s ok 757 /regex/replace-literally/515 1911s ok 758 /regex/replace-literally/516 1911s ok 759 /regex/replace-literally/517 1911s ok 760 /regex/replace-literally/518 1911s ok 761 /regex/replace-literally/519 1911s ok 762 /regex/replace-literally/520 1911s ok 763 /regex/replace-literally/521 1911s ok 764 /regex/replace-literally/522 1911s ok 765 /regex/replace-literally/523 1911s ok 766 /regex/replace-literally/524 1911s ok 767 /regex/replace-literally/525 1911s ok 768 /regex/replace-literally/526 1911s ok 769 /regex/replace-literally/527 1911s ok 770 /regex/replace-literally/528 1911s ok 771 /regex/replace-literally/529 1911s # End of replace-literally tests 1911s # Start of string-number tests 1911s ok 772 /regex/string-number/530 1911s ok 773 /regex/string-number/531 1911s ok 774 /regex/string-number/532 1911s ok 775 /regex/string-number/533 1911s ok 776 /regex/string-number/534 1911s ok 777 /regex/string-number/535 1911s ok 778 /regex/string-number/536 1911s ok 779 /regex/string-number/537 1911s ok 780 /regex/string-number/538 1911s ok 781 /regex/string-number/539 1911s ok 782 /regex/string-number/540 1911s ok 783 /regex/string-number/541 1911s ok 784 /regex/string-number/542 1911s ok 785 /regex/string-number/543 1911s ok 786 /regex/string-number/544 1911s # End of string-number tests 1911s # Start of escape_nul tests 1911s ok 787 /regex/escape_nul/545 1911s ok 788 /regex/escape_nul/546 1911s ok 789 /regex/escape_nul/547 1911s ok 790 /regex/escape_nul/548 1911s ok 791 /regex/escape_nul/549 1911s ok 792 /regex/escape_nul/550 1911s ok 793 /regex/escape_nul/551 1911s ok 794 /regex/escape_nul/552 1911s ok 795 /regex/escape_nul/553 1911s ok 796 /regex/escape_nul/554 1911s ok 797 /regex/escape_nul/555 1911s ok 798 /regex/escape_nul/556 1911s ok 799 /regex/escape_nul/557 1911s ok 800 /regex/escape_nul/558 1911s ok 801 /regex/escape_nul/559 1911s # End of escape_nul tests 1911s # Start of escape tests 1911s ok 802 /regex/escape/560 1911s ok 803 /regex/escape/561 1911s ok 804 /regex/escape/562 1911s ok 805 /regex/escape/563 1911s ok 806 /regex/escape/564 1911s ok 807 /regex/escape/565 1911s ok 808 /regex/escape/566 1911s ok 809 /regex/escape/567 1911s ok 810 /regex/escape/568 1911s ok 811 /regex/escape/569 1911s ok 812 /regex/escape/570 1911s ok 813 /regex/escape/571 1911s ok 814 /regex/escape/572 1911s ok 815 /regex/escape/573 1911s ok 816 /regex/escape/574 1911s ok 817 /regex/escape/575 1911s ok 818 /regex/escape/576 1911s ok 819 /regex/escape/577 1911s # End of escape tests 1911s # Start of match-all0 tests 1911s ok 820 /regex/match-all0/578 1911s ok 821 /regex/match-all0/580 1911s # End of match-all0 tests 1911s # Start of match-all-full0 tests 1911s ok 822 /regex/match-all-full0/579 1911s ok 823 /regex/match-all-full0/581 1911s ok 824 /regex/match-all-full0/582 1911s ok 825 /regex/match-all-full0/583 1911s # End of match-all-full0 tests 1911s # Start of match-all1 tests 1911s ok 826 /regex/match-all1/584 1911s ok 827 /regex/match-all1/586 1911s ok 828 /regex/match-all1/591 1911s # End of match-all1 tests 1911s # Start of match-all-full1 tests 1911s ok 829 /regex/match-all-full1/585 1911s ok 830 /regex/match-all-full1/587 1911s ok 831 /regex/match-all-full1/588 1911s ok 832 /regex/match-all-full1/589 1911s ok 833 /regex/match-all-full1/590 1911s ok 834 /regex/match-all-full1/592 1911s # End of match-all-full1 tests 1911s # Start of match-all2 tests 1911s ok 835 /regex/match-all2/593 1911s ok 836 /regex/match-all2/595 1911s ok 837 /regex/match-all2/597 1911s # End of match-all2 tests 1911s # Start of match-all-full2 tests 1911s ok 838 /regex/match-all-full2/594 1911s ok 839 /regex/match-all-full2/596 1911s ok 840 /regex/match-all-full2/598 1911s # End of match-all-full2 tests 1911s # Start of match-all3 tests 1911s ok 841 /regex/match-all3/599 1911s ok 842 /regex/match-all3/601 1911s # End of match-all3 tests 1911s # Start of match-all-full3 tests 1911s ok 843 /regex/match-all-full3/600 1911s ok 844 /regex/match-all-full3/602 1911s # End of match-all-full3 tests 1911s # Start of match-notempty tests 1911s ok 845 /regex/match-notempty/603 1911s # End of match-notempty tests 1911s # Start of match-notempty-optimized tests 1911s ok 846 /regex/match-notempty-optimized/603 1911s # End of match-notempty-optimized tests 1911s # Start of match-notempty-atstart tests 1911s ok 847 /regex/match-notempty-atstart/604 1911s # End of match-notempty-atstart tests 1911s # Start of match-notempty-atstart-optimized tests 1911s ok 848 /regex/match-notempty-atstart-optimized/604 1911s # End of match-notempty-atstart-optimized tests 1911s # End of regex tests 1911s ok - glib/regex.test 1911s # Running test: glib/singleton.test 1911s TAP version 14 1911s # random seed: R02Sbf261d24513e32ece4336fe46564d374 1911s 1..2 1911s # Start of gobject tests 1911s # Start of singleton tests 1911s ok 1 /gobject/singleton/construction 1911s # /gobject/singleton/construct-property summary: Test that creating a singleton with a construct-time property works 1911s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2666 1911s ok 2 /gobject/singleton/construct-property 1911s # End of singleton tests 1911s # End of gobject tests 1911s ok - glib/singleton.test 1911s # Running test: glib/strfuncs.test 1911s TAP version 14 1911s # random seed: R02S53d1309362859efc6ac28bc8c848de79 1911s 1..51 1911s # Start of strfuncs tests 1911s ok 1 /strfuncs/ascii-strcasecmp 1911s ok 2 /strfuncs/ascii_strdown 1911s ok 3 /strfuncs/ascii_strdup 1911s ok 4 /strfuncs/ascii_strtod 1911s ok 5 /strfuncs/bounds-check 1911s ok 6 /strfuncs/has-prefix 1911s ok 7 /strfuncs/has-prefix-macro 1911s ok 8 /strfuncs/has-suffix 1911s ok 9 /strfuncs/has-suffix-macro 1911s ok 10 /strfuncs/memdup 1911s ok 11 /strfuncs/memdup2 1911s ok 12 /strfuncs/set_str 1911s ok 13 /strfuncs/stpcpy 1911s ok 14 /strfuncs/str_match_string 1911s ok 15 /strfuncs/str_tokenize_and_fold 1911s ok 16 /strfuncs/strcanon 1911s ok 17 /strfuncs/strchomp 1911s ok 18 /strfuncs/strchug 1911s ok 19 /strfuncs/strcompress-strescape 1911s ok 20 /strfuncs/strconcat 1911s ok 21 /strfuncs/strdelimit 1911s ok 22 /strfuncs/strdup 1911s ok 23 /strfuncs/strdup-printf 1911s ok 24 /strfuncs/strdupv 1911s ok 25 /strfuncs/strerror 1911s ok 26 /strfuncs/strip-context 1911s ok 27 /strfuncs/strjoin 1911s ok 28 /strfuncs/strjoinv 1911s ok 29 /strfuncs/strlcat 1911s ok 30 /strfuncs/strlcpy 1911s ok 31 /strfuncs/strncasecmp 1911s ok 32 /strfuncs/strndup 1911s ok 33 /strfuncs/strnfill 1911s ok 34 /strfuncs/strreverse 1911s ok 35 /strfuncs/strsignal 1911s ok 36 /strfuncs/strsplit 1911s ok 37 /strfuncs/strsplit-set 1911s ok 38 /strfuncs/strstr 1911s ok 39 /strfuncs/strtod 1911s ok 40 /strfuncs/strtoull-strtoll 1911s ok 41 /strfuncs/strup 1911s ok 42 /strfuncs/strv-contains 1911s ok 43 /strfuncs/strv-equal 1911s ok 44 /strfuncs/strv-length 1911s ok 45 /strfuncs/test-is-to-digit 1911s ok 46 /strfuncs/transliteration 1911s # /strfuncs/str-equal summary: Test macro and function forms of g_str_equal() 1911s ok 47 /strfuncs/str-equal 1911s ok 48 /strfuncs/str-is-ascii 1911s # Start of ascii-string-to-num tests 1911s ok 49 /strfuncs/ascii-string-to-num/pathological 1911s ok 50 /strfuncs/ascii-string-to-num/usual 1911s # End of ascii-string-to-num tests 1911s # Start of strdup tests 1911s ok 51 /strfuncs/strdup/inline 1911s # End of strdup tests 1911s # End of strfuncs tests 1911s ok - glib/strfuncs.test 1911s # Running test: glib/memory-monitor-psi.test 1911s TAP version 14 1911s # random seed: R02S3861006a37c517069bfd4baa92edab3a 1911s 1..1 1911s # Start of memory-monitor-psi tests 1911s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_memory-monitor-psi_E6W4B3/memory-monitor-psi/receive-signal/.dirs/home 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_memory-monitor-psi_E6W4B3/memory-monitor-psi/receive-signal/.dirs/cache 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_memory-monitor-psi_E6W4B3/memory-monitor-psi/receive-signal/.dirs/system-config1:/tmp/test_memory-monitor-psi_E6W4B3/memory-monitor-psi/receive-signal/.dirs/system-config2 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_memory-monitor-psi_E6W4B3/memory-monitor-psi/receive-signal/.dirs/config 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_memory-monitor-psi_E6W4B3/memory-monitor-psi/receive-signal/.dirs/system-data1:/tmp/test_memory-monitor-psi_E6W4B3/memory-monitor-psi/receive-signal/.dirs/system-data2 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_memory-monitor-psi_E6W4B3/memory-monitor-psi/receive-signal/.dirs/data 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_memory-monitor-psi_E6W4B3/memory-monitor-psi/receive-signal/.dirs/state 1911s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_memory-monitor-psi_E6W4B3/memory-monitor-psi/receive-signal/.dirs/runtime 1911s # GLib-GIO-DEBUG: Write trigger some 70000 2000000 1911s # GLib-GIO-DEBUG: Write trigger some 100000 2000000 1911s # GLib-GIO-DEBUG: Write trigger full 100000 2000000 1911s # GLib-GIO-DEBUG: Send low memory signal with warning level 0 1911s # GLib-GIO-DEBUG: Send low memory signal with warning level 1 1911s # GLib-GIO-DEBUG: Send low memory signal with warning level 2 1911s # Executing: glib/memory-monitor-psi.test 1911s ok 1 /memory-monitor-psi/receive-signal 1911s # End of memory-monitor-psi tests 1911s ok - glib/memory-monitor-psi.test 1911s # Running test: glib/qdata.test 1911s TAP version 14 1911s # random seed: R02Se3afb85b3bb813127b1d0ba17cd7dd2a 1911s 1..2 1911s # Start of qdata tests 1912s ok 1 /qdata/threaded 1912s # slow test /qdata/threaded executed in 1.02 secs 1912s ok 2 /qdata/dup 1912s # End of qdata tests 1912s ok - glib/qdata.test 1912s # Running test: glib/type-flags.test 1912s TAP version 14 1912s # random seed: R02S496c7664ba3e5f152e7b360b0cc09ade 1912s 1..4 1912s # Start of type tests 1912s # Start of flags tests 1912s ok 1 /type/flags/interface 1912s ok 2 /type/flags/final 1912s # /type/flags/deprecated summary: Test that trying to instantiate a deprecated type results in a warning. 1912s ok 3 /type/flags/deprecated 1912s # Start of final tests 1912s ok 4 /type/flags/final/instance-check 1912s # End of final tests 1912s # End of flags tests 1912s # End of type tests 1912s ok - glib/type-flags.test 1912s # Running test: glib/binding.test 1912s TAP version 14 1912s # random seed: R02S8bedc5ea4ef90c0bfe0c4978bad3eb04 1912s 1..19 1912s # Start of binding tests 1912s ok 1 /binding/default 1912s # /binding/canonicalisation summary: Test that bindings set up with non-canonical property names work 1912s ok 2 /binding/canonicalisation 1912s ok 3 /binding/bidirectional 1912s ok 4 /binding/transform 1912s ok 5 /binding/transform-default 1912s ok 6 /binding/transform-closure 1912s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=621782 1912s ok 7 /binding/chain 1912s ok 8 /binding/sync-create 1912s ok 9 /binding/invert-boolean 1912s ok 10 /binding/same-object 1912s ok 11 /binding/unbind 1912s ok 12 /binding/unbind-weak 1912s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1373 1912s ok 13 /binding/unbind-multiple 1912s ok 14 /binding/fail 1912s ok 15 /binding/interface 1912s # /binding/concurrent-unbind summary: Test that unbinding from multiple threads concurrently works correctly 1913s ok 16 /binding/concurrent-unbind 1913s # /binding/concurrent-finalizing summary: Test that finalizing source/target from multiple threads concurrently works correctly 1913s ok 17 /binding/concurrent-finalizing 1913s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2676 1913s ok 18 /binding/dispose-source 1913s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2676 1913s ok 19 /binding/dispose-target 1913s # End of binding tests 1913s TAP version 14 1913s # random seed: R02Sdb7ef7449b63468cc6bdee8f2277bb75 1913s 1..4 1913s # Start of repository tests 1913s # Start of search-paths tests 1913s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_FTWCC3/repository/search-paths/default/.dirs/home 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_FTWCC3/repository/search-paths/default/.dirs/cache 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_FTWCC3/repository/search-paths/default/.dirs/system-config1:/tmp/test_repository-search-paths_FTWCC3/repository/search-paths/default/.dirs/system-config2 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_FTWCC3/repository/search-paths/default/.dirs/config 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_FTWCC3/repository/search-paths/default/.dirs/system-data1:/tmp/test_repository-search-paths_FTWCC3/repository/search-paths/default/.dirs/system-data2 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_FTWCC3/repository/search-paths/default/.dirs/data 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_FTWCC3/repository/search-paths/default/.dirs/state 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_FTWCC3/repository/search-paths/default/.dirs/runtime 1913s ok 1 /repository/search-paths/default 1913s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_FTWCC3/repository/search-paths/prepend/.dirs/home 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_FTWCC3/repository/search-paths/prepend/.dirs/cache 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_FTWCC3/repository/search-paths/prepend/.dirs/system-config1:/tmp/test_repository-search-paths_FTWCC3/repository/search-paths/prepend/.dirs/system-config2 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_FTWCC3/repository/search-paths/prepend/.dirs/config 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_FTWCC3/repository/search-paths/prepend/.dirs/system-data1:/tmp/test_repository-search-paths_FTWCC3/repository/search-paths/prepend/.dirs/system-data2 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_FTWCC3/repository/search-paths/prepend/.dirs/data 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_FTWCC3/repository/search-paths/prepend/.dirs/state 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_FTWCC3/repository/search-paths/prepend/.dirs/runtime 1913s ok 2 /repository/search-paths/prepend 1913s # End of search-paths tests 1913s # Start of library-paths tests 1913s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_FTWCC3/repository/library-paths/default/.dirs/home 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_FTWCC3/repository/library-paths/default/.dirs/cache 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_FTWCC3/repository/library-paths/default/.dirs/system-config1:/tmp/test_repository-search-paths_FTWCC3/repository/library-paths/default/.dirs/system-config2 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_FTWCC3/repository/library-paths/default/.dirs/config 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_FTWCC3/repository/library-paths/default/.dirs/system-data1:/tmp/test_repository-search-paths_FTWCC3/repository/library-paths/default/.dirs/system-data2 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_FTWCC3/repository/library-paths/default/.dirs/data 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_FTWCC3/repository/library-paths/default/.dirs/state 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_FTWCC3/repository/library-paths/default/.dirs/runtime 1913s ok 3 /repository/library-paths/default 1913s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_FTWCC3/repository/library-paths/prepend/.dirs/home 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_FTWCC3/repository/library-paths/prepend/.dirs/cache 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_FTWCC3/repository/library-paths/prepend/.dirs/system-config1:/tmp/test_repository-search-paths_FTWCC3/repository/library-paths/prepend/.dirs/system-config2 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_FTWCC3/repository/library-paths/prepend/.dirs/config 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_FTWCC3/repository/library-paths/prepend/.dirs/system-data1:/tmp/test_repository-search-paths_FTWCC3/repository/library-paths/prepend/.dirs/system-data2 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_FTWCC3/repository/library-paths/prepend/.dirs/data 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_FTWCC3/repository/library-paths/prepend/.dirs/state 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_FTWCC3/repository/library-paths/prepend/.dirs/runtime 1913s ok 4 /repository/library-paths/prepend 1913s # End of library-paths tests 1913s # End of repository tests 1913s ok - glib/binding.test 1913s # Running test: glib/repository-search-paths.test 1913s ok - glib/repository-search-paths.test 1913s # Running test: glib/gobject-query.py.test 1913s TAP version 13 1913s ok 1 __main__.TestGobjectQuery.test_froots 1913s # gobject-query: /usr/bin/gobject-query 1913s # tmpdir: /tmp/tmpl0k8oob3 1913s # Running: ['/usr/bin/gobject-query', 'froots'] 1913s # Return code: 0 1913s # Output: 1913s # ├void 1913s # ├GInterface 1913s # │ └GTypePlugin 1913s # ├gchar 1913s # ├guchar 1913s # ├gboolean 1913s # ├gint 1913s # ├guint 1913s # ├glong 1913s # ├gulong 1913s # ├gint64 1913s # ├guint64 1913s # ├GEnum 1913s # ├GFlags 1913s # ├gfloat 1913s # ├gdouble 1913s # ├gchararray 1913s # ├gpointer 1913s # │ └GType 1913s # ├GBoxed 1913s # │ └GValueArray 1913s # ├GParam 1913s # │ ├GParamChar 1913s # │ ├GParamUChar 1913s # │ ├GParamBoolean 1913s # │ ├GParamInt 1913s # │ ├GParamUInt 1913s # │ ├GParamLong 1913s # │ ├GParamULong 1913s # │ ├GParamInt64 1913s # │ ├GParamUInt64 1913s # │ ├GParamUnichar 1913s # │ ├GParamEnum 1913s # │ ├GParamFlags 1913s # │ ├GParamFloat 1913s # │ ├GParamDouble 1913s # │ ├GParamString 1913s # │ ├GParamParam 1913s # │ ├GParamBoxed 1913s # │ ├GParamPointer 1913s # │ ├GParamValueArray 1913s # │ ├GParamObject 1913s # │ ├GParamOverride 1913s # │ ├GParamGType 1913s # │ └GParamVariant 1913s # ├GObject 1913s # └GVariant 1913s # Error: 1913s ok 2 __main__.TestGobjectQuery.test_help 1913s # gobject-query: /usr/bin/gobject-query 1913s # tmpdir: /tmp/tmp30xvay2v 1913s # Running: ['/usr/bin/gobject-query', '--help'] 1913s # Return code: 0 1913s # Output: 1913s # usage: gobject-query [-r ] [-{i|b} ""] [-s #] [-{h|x|y}] 1913s # -r specify root type 1913s # -n don't descend type tree 1913s # -h show help 1913s # -b specify indent string 1913s # -i specify incremental indent string 1913s # -s specify line spacing 1913s # qualifiers: 1913s # froots iterate over fundamental roots 1913s # tree print type tree 1913s # Error: 1913s ok 3 __main__.TestGobjectQuery.test_tree 1913s # gobject-query: /usr/bin/gobject-query 1913s # tmpdir: /tmp/tmpjxox3mvb 1913s # Running: ['/usr/bin/gobject-query', 'tree'] 1913s # Return code: 0 1913s # Output: 1913s # GObject 1913s # Error: 1913s ok 4 __main__.TestGobjectQuery.test_version 1913s # gobject-query: /usr/bin/gobject-query 1913s # tmpdir: /tmp/tmp51ttf396 1913s # Running: ['/usr/bin/gobject-query', '--version'] 1913s # Return code: 0 1913s # Output: 1913s # 2.85.3 1913s # Error: 1913s 1..4 1913s ok - glib/gobject-query.py.test 1913s # Running test: glib/file-thumbnail.test 1913s TAP version 14 1913s # random seed: R02S048992d6894513dd753e201c15ca98cf 1913s 1..7 1913s # Start of file-thumbnail tests 1913s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/fail/.dirs/home 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/fail/.dirs/cache 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/fail/.dirs/system-config1:/tmp/test_file-thumbnail_HZWEC3/file-thumbnail/fail/.dirs/system-config2 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/fail/.dirs/config 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/fail/.dirs/system-data1:/tmp/test_file-thumbnail_HZWEC3/file-thumbnail/fail/.dirs/system-data2 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/fail/.dirs/data 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/fail/.dirs/state 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/fail/.dirs/runtime 1913s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1913s # Created test thumbnail at /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/fail/.dirs/cache/thumbnails/fail/gnome-thumbnail-factory/f098bcae74f8241ee3835bded7284cdd.png 1913s ok 1 /file-thumbnail/fail 1913s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/size-priority/.dirs/home 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/size-priority/.dirs/cache 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/size-priority/.dirs/system-config1:/tmp/test_file-thumbnail_HZWEC3/file-thumbnail/size-priority/.dirs/system-config2 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/size-priority/.dirs/config 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/size-priority/.dirs/system-data1:/tmp/test_file-thumbnail_HZWEC3/file-thumbnail/size-priority/.dirs/system-data2 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/size-priority/.dirs/data 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/size-priority/.dirs/state 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/size-priority/.dirs/runtime 1913s # Created test thumbnail at /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/size-priority/.dirs/cache/thumbnails/fail/gnome-thumbnail-factory/f098bcae74f8241ee3835bded7284cdd.png 1913s # Created test thumbnail at /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/size-priority/.dirs/cache/thumbnails/normal/f098bcae74f8241ee3835bded7284cdd.png 1913s # Created test thumbnail at /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/size-priority/.dirs/cache/thumbnails/large/f098bcae74f8241ee3835bded7284cdd.png 1913s # Created test thumbnail at /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/size-priority/.dirs/cache/thumbnails/x-large/f098bcae74f8241ee3835bded7284cdd.png 1913s # Created test thumbnail at /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/size-priority/.dirs/cache/thumbnails/xx-large/f098bcae74f8241ee3835bded7284cdd.png 1913s ok 2 /file-thumbnail/size-priority 1913s # Start of valid tests 1913s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/normal/.dirs/home 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/normal/.dirs/cache 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/normal/.dirs/system-config1:/tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/normal/.dirs/system-config2 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/normal/.dirs/config 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/normal/.dirs/system-data1:/tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/normal/.dirs/system-data2 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/normal/.dirs/data 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/normal/.dirs/state 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/normal/.dirs/runtime 1913s # Created test thumbnail at /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/normal/.dirs/cache/thumbnails/normal/f098bcae74f8241ee3835bded7284cdd.png 1913s ok 3 /file-thumbnail/valid/normal 1913s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/large/.dirs/home 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/large/.dirs/cache 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/large/.dirs/system-config1:/tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/large/.dirs/system-config2 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/large/.dirs/config 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/large/.dirs/system-data1:/tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/large/.dirs/system-data2 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/large/.dirs/data 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/large/.dirs/state 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/large/.dirs/runtime 1913s # Created test thumbnail at /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/large/.dirs/cache/thumbnails/large/f098bcae74f8241ee3835bded7284cdd.png 1913s ok 4 /file-thumbnail/valid/large 1913s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/x-large/.dirs/home 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/x-large/.dirs/cache 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/x-large/.dirs/system-config1:/tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/x-large/.dirs/system-config2 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/x-large/.dirs/config 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/x-large/.dirs/system-data1:/tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/x-large/.dirs/system-data2 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/x-large/.dirs/data 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/x-large/.dirs/state 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/x-large/.dirs/runtime 1913s # Created test thumbnail at /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/x-large/.dirs/cache/thumbnails/x-large/f098bcae74f8241ee3835bded7284cdd.png 1913s ok 5 /file-thumbnail/valid/x-large 1913s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/xx-large/.dirs/home 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/xx-large/.dirs/cache 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/xx-large/.dirs/system-config1:/tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/xx-large/.dirs/system-config2 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/xx-large/.dirs/config 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/xx-large/.dirs/system-data1:/tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/xx-large/.dirs/system-data2 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/xx-large/.dirs/data 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/xx-large/.dirs/state 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/xx-large/.dirs/runtime 1913s # Created test thumbnail at /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/valid/xx-large/.dirs/cache/thumbnails/xx-large/f098bcae74f8241ee3835bded7284cdd.png 1913s ok 6 /file-thumbnail/valid/xx-large 1913s # End of valid tests 1913s # Start of unknown tests 1913s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/unknown/super-large/.dirs/home 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/unknown/super-large/.dirs/cache 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/unknown/super-large/.dirs/system-config1:/tmp/test_file-thumbnail_HZWEC3/file-thumbnail/unknown/super-large/.dirs/system-config2 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/unknown/super-large/.dirs/config 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/unknown/super-large/.dirs/system-data1:/tmp/test_file-thumbnail_HZWEC3/file-thumbnail/unknown/super-large/.dirs/system-data2 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/unknown/super-large/.dirs/data 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/unknown/super-large/.dirs/state 1913s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/unknown/super-large/.dirs/runtime 1913s # Created test thumbnail at /tmp/test_file-thumbnail_HZWEC3/file-thumbnail/unknown/super-large/.dirs/cache/thumbnails/super-large/f098bcae74f8241ee3835bded7284cdd.png 1913s ok 7 /file-thumbnail/unknown/super-large 1913s # End of unknown tests 1913s # End of file-thumbnail tests 1913s ok - glib/file-thumbnail.test 1913s # Running test: glib/closure-refcount.test 1913s TAP version 14 1913s # random seed: R02Sd24ffc917cb071a3bbf489ffc30500a6 1913s 1..1 1913s # Start of closure tests 1913s # Init 0xb0bfbf8 1913s # Yielding from thread2 1913s # Yielding from thread1 1913s # Yielding from thread2 1913s # Yielding from thread1 1913s # Yielding from main thread 1913s # Yielding from thread2 1913s # Yielding from thread1 1914s # Yielding from thread2 1914s # Yielding from thread1 1914s # Yielding from thread2 1914s # Yielding from thread1 1914s # Yielding from main thread 1914s # Yielding from thread2 1914s # Yielding from thread1 1914s # Yielding from thread2 1915s # Yielding from thread1 1915s # Yielding from thread2 1915s # Yielding from main thread 1915s # Yielding from thread1 1915s # Yielding from thread2 1915s # Yielding from thread1 1915s # Yielding from thread2 1915s # Yielding from thread1 1915s # Yielding from main thread 1915s # Yielding from thread2 1916s # Yielding from thread1 1916s # Yielding from thread2 1916s # Yielding from thread1 1916s # Yielding from thread2 1916s # Yielding from thread1 1916s # Yielding from main thread 1916s # Yielding from thread2 1916s # Yielding from thread1 1916s # Executing: glib/closure-refcount.test 1916s # Yielding from thread2 1917s # Yielding from thread1 1917s # Yielding from main thread 1917s # Yielding from thread2 1917s # Yielding from thread1 1917s # Yielding from thread2 1917s # Yielding from thread1 1917s # Yielding from thread2 1917s # Yielding from thread1 1917s # Yielding from main thread 1917s # Yielding from thread2 1918s # Yielding from thread1 1918s # Yielding from thread2 1918s # Yielding from thread1 1918s # Yielding from thread2 1918s # Yielding from main thread 1918s # Yielding from thread1 1918s # Yielding from thread2 1918s # Yielding from thread1 1919s # Yielding from thread2 1919s # Yielding from thread1 1919s # Yielding from main thread 1919s # Yielding from thread2 1919s # Yielding from thread1 1919s # Yielding from thread2 1919s # Yielding from thread1 1919s # Yielding from thread2 1919s # Stopping 1919s # Stopped 1919s ok 1 /closure/refcount 1919s # slow test /closure/refcount executed in 6.61 secs 1919s # End of closure tests 1919s ok - glib/closure-refcount.test 1919s # Running test: glib/defaultvalue.test 1919s TAP version 14 1919s # random seed: R02Sc7431f8c6f3088a3edf674af3597ae62 1919s 1..84 1919s # Start of Default Values tests 1919s ok 1 /Default Values/GAppInfoMonitor # SKIP singleton 1919s ok 2 /Default Values/GAppLaunchContext 1919s ok 3 /Default Values/GApplicationCommandLine 1919s # skipping GApplication:is-remote 1919s ok 4 /Default Values/GApplication 1919s ok 5 /Default Values/GBinding # SKIP mandatory construct params 1919s ok 6 /Default Values/GBindingGroup 1919s ok 7 /Default Values/GBufferedInputStream # SKIP mandatory construct params 1919s ok 8 /Default Values/GBufferedOutputStream # SKIP mandatory construct params 1919s ok 9 /Default Values/GBytesIcon 1919s ok 10 /Default Values/GCancellable 1919s ok 11 /Default Values/GCharsetConverter # SKIP mandatory construct params 1919s ok 12 /Default Values/GConverterInputStream # SKIP mandatory construct params 1919s ok 13 /Default Values/GConverterOutputStream # SKIP mandatory construct params 1919s ok 14 /Default Values/GCredentials 1919s ok 15 /Default Values/GDataInputStream # SKIP mandatory construct params 1919s ok 16 /Default Values/GDataOutputStream # SKIP mandatory construct params 1919s ok 17 /Default Values/GDBusActionGroup # SKIP mandatory construct params 1919s ok 18 /Default Values/GDBusAuthObserver 1919s ok 19 /Default Values/GDBusConnection # SKIP mandatory construct params 1919s ok 20 /Default Values/GDBusMenuModel # SKIP crash in finalize 1919s ok 21 /Default Values/GDBusMessage 1919s ok 22 /Default Values/GDBusMethodInvocation # SKIP crash in finalize 1919s ok 23 /Default Values/GDBusObjectManagerClient # SKIP mandatory construct params 1919s ok 24 /Default Values/GDBusObjectManagerServer # SKIP mandatory construct params 1919s ok 25 /Default Values/GDBusObjectProxy 1919s ok 26 /Default Values/GDBusObjectSkeleton 1919s ok 27 /Default Values/GDBusProxy # SKIP mandatory construct params 1919s ok 28 /Default Values/GDBusServer # SKIP mandatory construct params 1919s ok 29 /Default Values/GEmblem 1919s ok 30 /Default Values/GEmblemedIcon 1919s ok 31 /Default Values/GFileEnumerator # SKIP should be abstract 1919s ok 32 /Default Values/GFileInfo 1919s ok 33 /Default Values/GFileInputStream 1919s ok 34 /Default Values/GFileIOStream # SKIP should be abstract 1919s ok 35 /Default Values/GFileOutputStream 1919s ok 36 /Default Values/GFilenameCompleter 1919s ok 37 /Default Values/GInetAddress # SKIP mandatory construct params 1919s ok 38 /Default Values/GInetAddressMask # SKIP initialization failed 1919s ok 39 /Default Values/GInetSocketAddress # SKIP mandatory construct params 1919s ok 40 /Default Values/GInitiallyUnowned 1919s ok 41 /Default Values/GIOModule 1919s ok 42 /Default Values/GListStore 1919s ok 43 /Default Values/GMemoryInputStream 1919s ok 44 /Default Values/GMemoryOutputStream 1919s ok 45 /Default Values/GMenu 1919s ok 46 /Default Values/GMenuItem 1919s ok 47 /Default Values/GMountOperation 1919s ok 48 /Default Values/GNativeSocketAddress 1919s ok 49 /Default Values/GNetworkAddress 1919s ok 50 /Default Values/GNetworkService 1919s ok 51 /Default Values/GNotification 1919s ok 52 /Default Values/GObject 1919s ok 53 /Default Values/GPropertyAction # SKIP mandatory construct params 1919s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1919s # skipping GProxyAddressEnumerator:proxy-resolver 1919s ok 54 /Default Values/GProxyAddressEnumerator 1919s ok 55 /Default Values/GProxyAddress # SKIP mandatory construct params 1919s ok 56 /Default Values/GSettings # SKIP mandatory construct params 1919s ok 57 /Default Values/GSignalGroup 1919s ok 58 /Default Values/GSimpleAction 1919s ok 59 /Default Values/GSimpleActionGroup 1919s ok 60 /Default Values/GSimpleAsyncResult 1919s ok 61 /Default Values/GSimpleIOStream # SKIP mandatory construct params 1919s ok 62 /Default Values/GSimplePermission 1919s ok 63 /Default Values/GSimpleProxyResolver 1919s # skipping GSocketClient:proxy-resolver 1919s ok 64 /Default Values/GSocketClient 1919s ok 65 /Default Values/GSocketConnection # SKIP mandatory construct params 1919s ok 66 /Default Values/GSocket # SKIP initialization failed 1919s ok 67 /Default Values/GSocketListener 1919s ok 68 /Default Values/GSocketService 1919s ok 69 /Default Values/GSubprocess # SKIP initialization failed 1919s ok 70 /Default Values/GSubprocessLauncher 1919s # GLib-GIO-DEBUG: GTask 0xb51eea0 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1919s ok 71 /Default Values/GTask 1919s ok 72 /Default Values/GTcpConnection # SKIP mandatory construct params 1919s ok 73 /Default Values/GTcpWrapperConnection # SKIP mandatory construct params 1919s ok 74 /Default Values/GTestDBus 1919s ok 75 /Default Values/GThemedIcon # SKIP mandatory construct params 1919s ok 76 /Default Values/GThreadedSocketService 1919s ok 77 /Default Values/GTlsInteraction 1919s ok 78 /Default Values/GTlsPassword 1919s ok 79 /Default Values/GUnixConnection # SKIP mandatory construct params 1919s ok 80 /Default Values/GUnixFDList 1919s ok 81 /Default Values/GVfs 1919s ok 82 /Default Values/GVolumeMonitor 1919s ok 83 /Default Values/GZlibCompressor 1919s ok 84 /Default Values/GZlibDecompressor 1919s # End of Default Values tests 1919s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1919s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1919s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1919s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1919s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1919s ok - glib/defaultvalue.test 1919s # Running test: glib/async-close-output-stream.test 1919s TAP version 14 1919s # random seed: R02S38287d106aa418c419b18a78e6ad0cb9 1919s 1..3 1919s # Start of close-async tests 1919s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 1919s ok 1 /close-async/without-flush 1919s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 1919s ok 2 /close-async/with-flush 1919s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 1919s ok 3 /close-async/with-async-flush 1919s # End of close-async tests 1919s ok - glib/async-close-output-stream.test 1919s # Running test: glib/unix-mounts.test 1919s TAP version 14 1919s # random seed: R02Sdf82ac650171caeb4f3b2dcc103f6742 1919s 1..4 1919s # Start of unix-mounts tests 1919s ok 1 /unix-mounts/is-system-fs-type 1919s ok 2 /unix-mounts/is-system-device-path 1919s # /unix-mounts/get-mount-points summary: Basic test of g_unix_mount_points_get_from_file() 1919s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1919s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1919s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1919s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1919s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1919s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1919s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1919s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1919s ok 3 /unix-mounts/get-mount-points 1919s # /unix-mounts/get-mount-entries summary: Basic test of g_unix_mounts_get_from_file() 1919s ok 4 /unix-mounts/get-mount-entries 1919s # End of unix-mounts tests 1919s ok - glib/unix-mounts.test 1919s # Running test: glib/gdbus-addresses.test 1919s TAP version 14 1919s # random seed: R02Sd70d17865c4c257a940355352eaf3ac4 1919s 1..9 1919s # Start of gdbus tests 1919s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/empty-address/.dirs/home 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/empty-address/.dirs/cache 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_KYF5B3/gdbus/empty-address/.dirs/system-config1:/tmp/test_gdbus-addresses_KYF5B3/gdbus/empty-address/.dirs/system-config2 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/empty-address/.dirs/config 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_KYF5B3/gdbus/empty-address/.dirs/system-data1:/tmp/test_gdbus-addresses_KYF5B3/gdbus/empty-address/.dirs/system-data2 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/empty-address/.dirs/data 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/empty-address/.dirs/state 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_KYF5B3/gdbus/empty-address/.dirs/runtime 1919s ok 1 /gdbus/empty-address 1919s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/unsupported-address/.dirs/home 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/unsupported-address/.dirs/cache 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_KYF5B3/gdbus/unsupported-address/.dirs/system-config1:/tmp/test_gdbus-addresses_KYF5B3/gdbus/unsupported-address/.dirs/system-config2 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/unsupported-address/.dirs/config 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_KYF5B3/gdbus/unsupported-address/.dirs/system-data1:/tmp/test_gdbus-addresses_KYF5B3/gdbus/unsupported-address/.dirs/system-data2 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/unsupported-address/.dirs/data 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/unsupported-address/.dirs/state 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_KYF5B3/gdbus/unsupported-address/.dirs/runtime 1919s ok 2 /gdbus/unsupported-address 1919s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/address-parsing/.dirs/home 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/address-parsing/.dirs/cache 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_KYF5B3/gdbus/address-parsing/.dirs/system-config1:/tmp/test_gdbus-addresses_KYF5B3/gdbus/address-parsing/.dirs/system-config2 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/address-parsing/.dirs/config 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_KYF5B3/gdbus/address-parsing/.dirs/system-data1:/tmp/test_gdbus-addresses_KYF5B3/gdbus/address-parsing/.dirs/system-data2 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/address-parsing/.dirs/data 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/address-parsing/.dirs/state 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_KYF5B3/gdbus/address-parsing/.dirs/runtime 1919s ok 3 /gdbus/address-parsing 1919s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/unix-address/.dirs/home 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/unix-address/.dirs/cache 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_KYF5B3/gdbus/unix-address/.dirs/system-config1:/tmp/test_gdbus-addresses_KYF5B3/gdbus/unix-address/.dirs/system-config2 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/unix-address/.dirs/config 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_KYF5B3/gdbus/unix-address/.dirs/system-data1:/tmp/test_gdbus-addresses_KYF5B3/gdbus/unix-address/.dirs/system-data2 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/unix-address/.dirs/data 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/unix-address/.dirs/state 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_KYF5B3/gdbus/unix-address/.dirs/runtime 1919s ok 4 /gdbus/unix-address 1919s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/nonce-tcp-address/.dirs/home 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/nonce-tcp-address/.dirs/cache 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_KYF5B3/gdbus/nonce-tcp-address/.dirs/system-config1:/tmp/test_gdbus-addresses_KYF5B3/gdbus/nonce-tcp-address/.dirs/system-config2 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/nonce-tcp-address/.dirs/config 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_KYF5B3/gdbus/nonce-tcp-address/.dirs/system-data1:/tmp/test_gdbus-addresses_KYF5B3/gdbus/nonce-tcp-address/.dirs/system-data2 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/nonce-tcp-address/.dirs/data 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/nonce-tcp-address/.dirs/state 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_KYF5B3/gdbus/nonce-tcp-address/.dirs/runtime 1919s ok 5 /gdbus/nonce-tcp-address 1919s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/tcp-address/.dirs/home 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/tcp-address/.dirs/cache 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_KYF5B3/gdbus/tcp-address/.dirs/system-config1:/tmp/test_gdbus-addresses_KYF5B3/gdbus/tcp-address/.dirs/system-config2 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/tcp-address/.dirs/config 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_KYF5B3/gdbus/tcp-address/.dirs/system-data1:/tmp/test_gdbus-addresses_KYF5B3/gdbus/tcp-address/.dirs/system-data2 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/tcp-address/.dirs/data 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/tcp-address/.dirs/state 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_KYF5B3/gdbus/tcp-address/.dirs/runtime 1919s ok 6 /gdbus/tcp-address 1919s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/autolaunch-address/.dirs/home 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/autolaunch-address/.dirs/cache 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_KYF5B3/gdbus/autolaunch-address/.dirs/system-config1:/tmp/test_gdbus-addresses_KYF5B3/gdbus/autolaunch-address/.dirs/system-config2 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/autolaunch-address/.dirs/config 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_KYF5B3/gdbus/autolaunch-address/.dirs/system-data1:/tmp/test_gdbus-addresses_KYF5B3/gdbus/autolaunch-address/.dirs/system-data2 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/autolaunch-address/.dirs/data 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/autolaunch-address/.dirs/state 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_KYF5B3/gdbus/autolaunch-address/.dirs/runtime 1919s ok 7 /gdbus/autolaunch-address 1919s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/mixed-address/.dirs/home 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/mixed-address/.dirs/cache 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_KYF5B3/gdbus/mixed-address/.dirs/system-config1:/tmp/test_gdbus-addresses_KYF5B3/gdbus/mixed-address/.dirs/system-config2 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/mixed-address/.dirs/config 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_KYF5B3/gdbus/mixed-address/.dirs/system-data1:/tmp/test_gdbus-addresses_KYF5B3/gdbus/mixed-address/.dirs/system-data2 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/mixed-address/.dirs/data 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/mixed-address/.dirs/state 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_KYF5B3/gdbus/mixed-address/.dirs/runtime 1919s ok 8 /gdbus/mixed-address 1919s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/escape-address/.dirs/home 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/escape-address/.dirs/cache 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_KYF5B3/gdbus/escape-address/.dirs/system-config1:/tmp/test_gdbus-addresses_KYF5B3/gdbus/escape-address/.dirs/system-config2 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/escape-address/.dirs/config 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_KYF5B3/gdbus/escape-address/.dirs/system-data1:/tmp/test_gdbus-addresses_KYF5B3/gdbus/escape-address/.dirs/system-data2 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/escape-address/.dirs/data 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_KYF5B3/gdbus/escape-address/.dirs/state 1919s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_KYF5B3/gdbus/escape-address/.dirs/runtime 1919s ok 9 /gdbus/escape-address 1919s # End of gdbus tests 1919s ok - glib/gdbus-addresses.test 1919s TAP version 14 1919s # random seed: R02S2cdf5a60993bb8e2a3764416a00d8ae1 1919s 1..7 1919s # Start of strvbuilder tests 1919s ok 1 /strvbuilder/empty 1919s ok 2 /strvbuilder/add 1919s ok 3 /strvbuilder/addv 1919s ok 4 /strvbuilder/add_many 1919s ok 5 /strvbuilder/take 1919s ok 6 /strvbuilder/ref 1919s ok 7 /strvbuilder/unref_to_strv 1919s # End of strvbuilder tests 1919s # Running test: glib/strvbuilder.test 1919s ok - glib/strvbuilder.test 1919s TAP version 14 1919s # random seed: R02Sefabb8ab6c4d10d524afcc09bd748503 1919s 1..1 1919s # Start of gobject tests 1919s # Start of refcount tests 1919s # init 0x39ddf40 1919s # 1919s # Running test: glib/properties-refcount2.test 1919s # . 1919s # . 1919s # . 1919s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1920s # . 1921s # . 1921s # . 1921s # . 1921s # . 1921s # . 1921s # . 1921s # . 1921s # . 1921s # . 1921s # . 1921s # . 1921s # . 1921s # . 1921s # . 1921s # . 1921s # . 1921s # . 1921s # . 1921s # . 1921s # . 1921s # . 1921s # . 1921s # . 1921s # . 1921s # . 1921s # . 1921s # . 1921s # dispose 0x39ddf40! 1921s # 1921s ok 1 /gobject/refcount/properties-2 1921s # slow test /gobject/refcount/properties-2 executed in 1.45 secs 1921s # End of refcount tests 1921s # End of gobject tests 1921s ok - glib/properties-refcount2.test 1921s # Running test: glib/unix-streams.test 1921s TAP version 14 1921s # random seed: R02Seab54e8a084866d88a7607e338dec188 1921s 1..9 1921s # Start of unix-streams tests 1921s ok 1 /unix-streams/basic 1921s ok 2 /unix-streams/pipe-io-test 1921s # slow test /unix-streams/pipe-io-test executed in 0.50 secs 1921s # Executing: glib/unix-streams.test 1922s ok 3 /unix-streams/nonblocking-io-test 1922s # slow test /unix-streams/nonblocking-io-test executed in 0.50 secs 1922s ok 4 /unix-streams/read_write 1922s ok 5 /unix-streams/read_writev 1922s ok 6 /unix-streams/write-wouldblock 1922s ok 7 /unix-streams/writev-wouldblock 1922s ok 8 /unix-streams/write-async-wouldblock 1922s ok 9 /unix-streams/writev-async-wouldblock 1922s # End of unix-streams tests 1922s ok - glib/unix-streams.test 1922s # Running test: glib/dump.test 1922s TAP version 14 1922s # random seed: R02Sd1750763381db8c677029b4e26742a78 1922s 1..4 1922s # Start of dump tests 1922s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_3HDGC3/dump/empty-file/.dirs/home 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_3HDGC3/dump/empty-file/.dirs/cache 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_3HDGC3/dump/empty-file/.dirs/system-config1:/tmp/test_dump_3HDGC3/dump/empty-file/.dirs/system-config2 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_3HDGC3/dump/empty-file/.dirs/config 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_3HDGC3/dump/empty-file/.dirs/system-data1:/tmp/test_dump_3HDGC3/dump/empty-file/.dirs/system-data2 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_3HDGC3/dump/empty-file/.dirs/data 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_3HDGC3/dump/empty-file/.dirs/state 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_3HDGC3/dump/empty-file/.dirs/runtime 1922s ok 1 /dump/empty-file 1922s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_3HDGC3/dump/missing-get-type/.dirs/home 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_3HDGC3/dump/missing-get-type/.dirs/cache 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_3HDGC3/dump/missing-get-type/.dirs/system-config1:/tmp/test_dump_3HDGC3/dump/missing-get-type/.dirs/system-config2 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_3HDGC3/dump/missing-get-type/.dirs/config 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_3HDGC3/dump/missing-get-type/.dirs/system-data1:/tmp/test_dump_3HDGC3/dump/missing-get-type/.dirs/system-data2 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_3HDGC3/dump/missing-get-type/.dirs/data 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_3HDGC3/dump/missing-get-type/.dirs/state 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_3HDGC3/dump/missing-get-type/.dirs/runtime 1922s Invalid GType function: 'does_not_exist_get_type' 1922s ok 2 /dump/missing-get-type 1922s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_3HDGC3/dump/missing-quark/.dirs/home 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_3HDGC3/dump/missing-quark/.dirs/cache 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_3HDGC3/dump/missing-quark/.dirs/system-config1:/tmp/test_dump_3HDGC3/dump/missing-quark/.dirs/system-config2 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_3HDGC3/dump/missing-quark/.dirs/config 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_3HDGC3/dump/missing-quark/.dirs/system-data1:/tmp/test_dump_3HDGC3/dump/missing-quark/.dirs/system-data2 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_3HDGC3/dump/missing-quark/.dirs/data 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_3HDGC3/dump/missing-quark/.dirs/state 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_3HDGC3/dump/missing-quark/.dirs/runtime 1922s Invalid error quark function: 'does_not_exist_error' 1922s ok 3 /dump/missing-quark 1922s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_3HDGC3/dump/basic/.dirs/home 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_3HDGC3/dump/basic/.dirs/cache 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_3HDGC3/dump/basic/.dirs/system-config1:/tmp/test_dump_3HDGC3/dump/basic/.dirs/system-config2 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_3HDGC3/dump/basic/.dirs/config 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_3HDGC3/dump/basic/.dirs/system-data1:/tmp/test_dump_3HDGC3/dump/basic/.dirs/system-data2 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_3HDGC3/dump/basic/.dirs/data 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_3HDGC3/dump/basic/.dirs/state 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_3HDGC3/dump/basic/.dirs/runtime 1922s ok 4 /dump/basic 1922s # End of dump tests 1922s ok - glib/dump.test 1922s # Running test: glib/tree.test 1922s TAP version 14 1922s # random seed: R02Se5639dab214ca61658a9e3ce9114fee5 1922s 1..7 1922s # Start of tree tests 1922s ok 1 /tree/search 1922s ok - glib/tree.test 1922s # Running test: glib/filter-streams.test 1922s ok - glib/filter-streams.test 1922s # Running test: glib/gdbus-peer-object-manager.test 1922s ok 2 /tree/remove 1922s ok 3 /tree/destroy 1922s ok 4 /tree/traverse 1922s ok 5 /tree/insert 1922s ok 6 /tree/bounds 1922s ok 7 /tree/remove-all 1922s # End of tree tests 1922s TAP version 14 1922s # random seed: R02S60aada8e829f6b1e536e7811c6b2ab62 1922s 1..4 1922s # Start of filter-stream tests 1922s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=568394 1922s ok 1 /filter-stream/input 1922s ok 2 /filter-stream/output 1922s ok 3 /filter-stream/async-input 1922s ok 4 /filter-stream/async-output 1922s # End of filter-stream tests 1922s TAP version 14 1922s # random seed: R02S046f812fe6023f9d616f6bb2723a326a 1922s 1..2 1922s # Start of gdbus tests 1922s # Start of peer-object-manager tests 1922s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer-object-manager_K45KC3/gdbus/peer-object-manager/normal/.dirs/home 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer-object-manager_K45KC3/gdbus/peer-object-manager/normal/.dirs/cache 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer-object-manager_K45KC3/gdbus/peer-object-manager/normal/.dirs/system-config1:/tmp/test_gdbus-peer-object-manager_K45KC3/gdbus/peer-object-manager/normal/.dirs/system-config2 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer-object-manager_K45KC3/gdbus/peer-object-manager/normal/.dirs/config 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer-object-manager_K45KC3/gdbus/peer-object-manager/normal/.dirs/system-data1:/tmp/test_gdbus-peer-object-manager_K45KC3/gdbus/peer-object-manager/normal/.dirs/system-data2 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer-object-manager_K45KC3/gdbus/peer-object-manager/normal/.dirs/data 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer-object-manager_K45KC3/gdbus/peer-object-manager/normal/.dirs/state 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer-object-manager_K45KC3/gdbus/peer-object-manager/normal/.dirs/runtime 1922s ok 1 /gdbus/peer-object-manager/normal 1922s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer-object-manager_K45KC3/gdbus/peer-object-manager/root/.dirs/home 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer-object-manager_K45KC3/gdbus/peer-object-manager/root/.dirs/cache 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer-object-manager_K45KC3/gdbus/peer-object-manager/root/.dirs/system-config1:/tmp/test_gdbus-peer-object-manager_K45KC3/gdbus/peer-object-manager/root/.dirs/system-config2 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer-object-manager_K45KC3/gdbus/peer-object-manager/root/.dirs/config 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer-object-manager_K45KC3/gdbus/peer-object-manager/root/.dirs/system-data1:/tmp/test_gdbus-peer-object-manager_K45KC3/gdbus/peer-object-manager/root/.dirs/system-data2 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer-object-manager_K45KC3/gdbus/peer-object-manager/root/.dirs/data 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer-object-manager_K45KC3/gdbus/peer-object-manager/root/.dirs/state 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer-object-manager_K45KC3/gdbus/peer-object-manager/root/.dirs/runtime 1922s ok 2 /gdbus/peer-object-manager/root 1922s # End of peer-object-manager tests 1922s # End of gdbus tests 1922s TAP version 14 1922s # random seed: R02S19f5edde8e84550f1c5d8cb15131e2c9 1922s 1..7 1922s # Start of signal tests 1922s # Start of handler tests 1922s # min perf: connected 1 handlers in 0.000 seconds 1922s ok 1 /signal/handler/connect-many 1922s # min perf: disconnected 1 handlers in 0.000 seconds 1922s ok 2 /signal/handler/disconnect-many-ordered 1922s # min perf: disconnected 1 handlers in 0.000 seconds 1922s ok 3 /signal/handler/disconnect-many-inverse 1922s # min perf: disconnected 1 handlers in 0.000 seconds 1922s ok 4 /signal/handler/disconnect-many-random 1922s # min perf: disconnected 1 handlers in 0.000 seconds 1922s ok 5 /signal/handler/disconnect-2-signals 1922s # min perf: disconnected 1 handlers in 0.000 seconds 1922s ok 6 /signal/handler/disconnect-2-objects 1922s # min perf: blocked and unblocked 1 handlers in 0.000 seconds 1922s ok 7 /signal/handler/block-many 1922s # End of handler tests 1922s # End of signal tests 1922s TAP version 14 1922s # random seed: R02S557b9fa52dd13f41aff5f445dcd5fbba 1922s 1..9 1922s # Start of glib tests 1922s # Start of testing tests 1922s # Start of protocol tests 1922s ok 1 /glib/testing/protocol/debug 1922s ok 2 /glib/testing/protocol/info 1922s ok 3 /glib/testing/protocol/message 1922s ok 4 /glib/testing/protocol/warning 1922s ok 5 /glib/testing/protocol/critical 1922s ok 6 /glib/testing/protocol/error 1922s ok 7 /glib/testing/protocol/gtest-message 1922s ok - glib/gdbus-peer-object-manager.test 1922s # Running test: glib/signal-handler.test 1922s ok - glib/signal-handler.test 1922s # Running test: glib/protocol.test 1922s ok 8 /glib/testing/protocol/test-message 1922s ok 9 /glib/testing/protocol/test-error 1922s # End of protocol tests 1922s # End of testing tests 1922s # End of glib tests 1922s ok - glib/protocol.test 1922s # Running test: glib/sort.test 1922s TAP version 14 1922s # random seed: R02S1055115d9cdafe0aaf4dc165c7678567 1922s 1..5 1922s # Start of sort tests 1922s ok 1 /sort/basic 1922s ok 2 /sort/zero-elements 1922s ok 3 /sort/stable 1922s ok 4 /sort/big 1922s ok 5 /sort/deprecated 1922s # End of sort tests 1922s ok - glib/sort.test 1922s # Running test: glib/search-utils.test 1922s TAP version 14 1922s # random seed: R02S60debc71e87699936f5305836f9fe780 1922s # GLib-DEBUG: Current user locale: C.UTF-8 1922s 1..6 1922s # Start of search tests 1922s # GLib-DEBUG: Started 1922s # GLib-DEBUG: 'he' - 'Hello World' should match: OK 1922s # GLib-DEBUG: 'wo' - 'Hello World' should match: OK 1922s # GLib-DEBUG: 'lo' - 'Hello World' should NOT match: OK 1922s # GLib-DEBUG: 'ld' - 'Hello World' should NOT match: OK 1922s # GLib-DEBUG: 'wo' - 'Hello-World' should match: OK 1922s # GLib-DEBUG: 'wo' - 'HelloWorld' should NOT match: OK 1922s ok 1 /search/basic 1922s # GLib-DEBUG: Started 1922s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 1922s # GLib-DEBUG: 'gaetan' - 'Gaëtan' should match: OK 1922s # GLib-DEBUG: 'ele' - 'élève' should match: OK 1922s # GLib-DEBUG: 'AzaÏs' - 'Azais' should NOT match: OK 1922s # GLib-DEBUG: 'Azais' - 'AzaÏs' should match: OK 1922s ok 2 /search/composed 1922s # GLib-DEBUG: Started 1922s # GLib-DEBUG: 'Jör' - 'Jorgen' should NOT match: OK 1922s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 1922s ok 3 /search/decomposed 1922s # GLib-DEBUG: Started 1922s # GLib-DEBUG: 'ist' - 'İstanbul' should match: OK 1922s # GLib-DEBUG: 'diyarbakir' - 'Diyarbakır' should match: OK 1922s ok 4 /search/turkish 1922s # GLib-DEBUG: Started 1922s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 1922s # GLib-DEBUG: 'Jör' - 'Jorgen' should NOT match: OK 1922s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 1922s ok 5 /search/c_locale_unicode 1922s # GLib-DEBUG: Started 1922s # GLib-DEBUG: 'Xav Cla' - 'Xavier Claessens' should match: OK 1922s # GLib-DEBUG: 'Cla Xav' - 'Xavier Claessens' should match: OK 1922s # GLib-DEBUG: ' b ' - 'Foo Bar Baz' should match: OK 1922s # GLib-DEBUG: 'bar bazz' - 'Foo Bar Baz' should NOT match: OK 1922s ok 6 /search/multi_words 1922s # End of search tests 1922s ok - glib/search-utils.test 1922s # Running test: glib/memory-monitor-poll.test 1922s TAP version 14 1922s # random seed: R02S73611971e0b61f432d588b1aeb1858c3 1922s 1..4 1922s # Start of memory-monitor-poll tests 1922s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation poll (GMemoryMonitorPoll) for ‘gio-memory-monitor’ 1922s ok 1 /memory-monitor-poll/dup-default 1922s # GLib-GIO-DEBUG: memory free ratio 0.190000 1922s # GLib-GIO-DEBUG: Send low memory signal with warning level 2 1922s ok 2 /memory-monitor-poll/critical-event 1922s # GLib-GIO-DEBUG: memory free ratio 0.290000 1922s # GLib-GIO-DEBUG: Send low memory signal with warning level 1 1922s ok 3 /memory-monitor-poll/medium-event 1922s ok - glib/memory-monitor-poll.test 1922s # Running test: glib/trash.test 1922s # GLib-GIO-DEBUG: memory free ratio 0.390000 1922s # GLib-GIO-DEBUG: Send low memory signal with warning level 0 1922s ok 4 /memory-monitor-poll/low-event 1922s # End of memory-monitor-poll tests 1922s TAP version 14 1922s # random seed: R02S71218d29d02218c84f05c5b86125b3f3 1922s 1..3 1922s # Start of trash tests 1922s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/251 1922s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1922s # File: /tmp/test-trash7YDZB3 (parent st_dev: 101) 1922s # Home: /home/ubuntu (st_dev: 101) 1922s ok 1 /trash/not-supported # SKIP The file has to be on another filesystem than the home trash to run this test 1922s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1522 1922s ok 2 /trash/symlinks # SKIP Directory '/home/ubuntu/.local' does not exist 1922s ok 3 /trash/long-filename 1922s # End of trash tests 1922s ok - glib/trash.test 1922s # Running test: glib/option-context.test 1922s TAP version 14 1922s # random seed: R02S34183390e597b3b1e862adc91c6d722a 1922s 1..59 1922s # Start of option tests 1922s ok 1 /option/basic 1922s ok 2 /option/translate 1922s ok 3 /option/strict-posix 1922s # Testing command: program --double abc 1922s # Testing command: program --double 2e309 1922s # Testing command: program --int abc 1922s # Testing command: program --int 99999999999999999999999999999999999 1922s # Testing command: program --int64 abc 1922s # Testing command: program --int64 99999999999999999999999999999999999 1922s ok 4 /option/parsing-errors 1922s # Start of help tests 1922s ok 5 /option/help/options 1922s ok 6 /option/help/no-options 1922s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=697652 1922s ok 7 /option/help/no-help-options 1922s # Usage: 1922s # /usr/libexec/installed-tests/glib/option-context [OPTION…] blabla 1922s # 1922s # Summary 1922s # 1922s # Help Options: 1922s # -h, --help Show help options 1922s # 1922s # Application Options: 1922s # -t, --test=Argument to use in test (deprecated) Test tests 1922s # --test2 Tests also 1922s # 1922s # Description 1922s # 1922s ok 8 /option/help/deprecated 1922s # End of help tests 1922s # Start of group tests 1922s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=504142 1922s ok 9 /option/group/captions 1922s ok 10 /option/group/main 1922s ok 11 /option/group/error-hook 1922s ok 12 /option/group/parse 1922s # Start of captions tests 1922s # Start of subprocess tests 1922s # End of subprocess tests 1922s # End of captions tests 1922s # End of group tests 1922s # Start of restoration tests 1922s ok 13 /option/restoration/int 1922s ok 14 /option/restoration/string 1922s ok 15 /option/restoration/boolean 1922s # End of restoration tests 1922s # Start of arg tests 1922s ok 16 /option/arg/reverse-string 1922s ok 17 /option/arg/optional-int 1922s # Start of repetition tests 1922s ok 18 /option/arg/repetition/int 1922s ok 19 /option/arg/repetition/string 1922s ok 20 /option/arg/repetition/filename 1922s ok 21 /option/arg/repetition/double 1922s ok 22 /option/arg/repetition/locale 1922s ok 23 /option/arg/repetition/int64 1922s # End of repetition tests 1922s # Start of array tests 1922s ok 24 /option/arg/array/string 1922s # End of array tests 1922s # Start of callback tests 1922s ok 25 /option/arg/callback/string 1922s ok 26 /option/arg/callback/count 1922s ok 27 /option/arg/callback/optional1 1922s ok 28 /option/arg/callback/optional2 1922s ok 29 /option/arg/callback/optional3 1922s ok 30 /option/arg/callback/optional4 1922s ok 31 /option/arg/callback/optional5 1922s ok 32 /option/arg/callback/optional6 1922s ok 33 /option/arg/callback/optional7 1922s ok 34 /option/arg/callback/optional8 1922s # End of callback tests 1922s # Start of remaining tests 1922s ok 35 /option/arg/remaining/callback 1922s ok 36 /option/arg/remaining/callback-false 1922s ok 37 /option/arg/remaining/non-option 1922s ok 38 /option/arg/remaining/separator 1922s ok 39 /option/arg/remaining/array 1922s # End of remaining tests 1922s # Start of ignore tests 1922s ok 40 /option/arg/ignore/long 1922s ok 41 /option/arg/ignore/short 1922s ok 42 /option/arg/ignore/arg 1922s # End of ignore tests 1922s # Start of rest tests 1922s ok 43 /option/arg/rest/non-option 1922s ok 44 /option/arg/rest/separator1 1922s ok 45 /option/arg/rest/separator2 1922s ok 46 /option/arg/rest/separator3 1922s ok 47 /option/arg/rest/separator4 1922s ok 48 /option/arg/rest/separator5 1922s # End of rest tests 1922s # End of arg tests 1922s # Start of context tests 1922s ok 49 /option/context/add 1922s ok 50 /option/context/empty2 1922s ok 51 /option/context/empty3 1922s # End of context tests 1922s # Start of bug tests 1922s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=166609 1922s ok 52 /option/bug/unknown-short 1922s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=168008 1922s ok 53 /option/bug/lonely-dash 1922s ok 54 /option/bug/triple-dash 1922s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=305576 1922s ok 55 /option/bug/missing-arg 1922s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=577638 1922s ok 56 /option/bug/dash-arg 1922s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=729563 1922s ok 57 /option/bug/short-remaining 1922s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=646926 1922s ok 58 /option/bug/double-free 1922s ok 59 /option/bug/double-zero 1922s # End of bug tests 1922s # End of option tests 1922s ok - glib/option-context.test 1922s # Running test: glib/gdbus-introspection.test 1922s TAP version 14 1922s # random seed: R02S49b5352db504036afeacb13ab9dd8e38 1922s 1..4 1922s # Start of gdbus tests 1922s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-parser/.dirs/home 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-parser/.dirs/cache 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-parser/.dirs/system-config1:/tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-parser/.dirs/system-config2 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-parser/.dirs/config 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-parser/.dirs/system-data1:/tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-parser/.dirs/system-data2 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-parser/.dirs/data 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-parser/.dirs/state 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-parser/.dirs/runtime 1922s ok 1 /gdbus/introspection-parser 1922s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-generate/.dirs/home 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-generate/.dirs/cache 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-generate/.dirs/system-config1:/tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-generate/.dirs/system-config2 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-generate/.dirs/config 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-generate/.dirs/system-data1:/tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-generate/.dirs/system-data2 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-generate/.dirs/data 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-generate/.dirs/state 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-generate/.dirs/runtime 1922s ok 2 /gdbus/introspection-generate 1922s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-default-direction/.dirs/home 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-default-direction/.dirs/cache 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-default-direction/.dirs/system-config1:/tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-default-direction/.dirs/system-config2 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-default-direction/.dirs/config 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-default-direction/.dirs/system-data1:/tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-default-direction/.dirs/system-data2 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-default-direction/.dirs/data 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-default-direction/.dirs/state 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-default-direction/.dirs/runtime 1922s ok 3 /gdbus/introspection-default-direction 1922s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-extra-data/.dirs/home 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-extra-data/.dirs/cache 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-extra-data/.dirs/system-config1:/tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-extra-data/.dirs/system-config2 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-extra-data/.dirs/config 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-extra-data/.dirs/system-data1:/tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-extra-data/.dirs/system-data2 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-extra-data/.dirs/data 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-extra-data/.dirs/state 1922s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_PO53B3/gdbus/introspection-extra-data/.dirs/runtime 1922s ok 4 /gdbus/introspection-extra-data 1922s # End of gdbus tests 1922s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1922s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1922s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1922s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1922s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1922s ok - glib/gdbus-introspection.test 1922s # Running test: glib/gsubprocess.test 1922s TAP version 14 1922s # random seed: R02S6ad1cbbe1342caa49796934a90822300 1922s 1..84 1922s # Start of gsubprocess tests 1922s ok 1 /gsubprocess/noop 1922s ok 2 /gsubprocess/noop-all-to-null 1922s ok 3 /gsubprocess/noop-no-wait 1922s ok 4 /gsubprocess/noop-stdin-inherit 1922s ok 5 /gsubprocess/search-path 1922s ok 6 /gsubprocess/search-path-from-envp 1925s ok 7 /gsubprocess/signal 1925s # slow test /gsubprocess/signal executed in 3.15 secs 1925s ok 8 /gsubprocess/exit1 1925s ok 9 /gsubprocess/echo1 1925s ok 10 /gsubprocess/echo-merged 1925s ok 11 /gsubprocess/cat-utf8 1926s # Executing: glib/gsubprocess.test 1926s ok 12 /gsubprocess/cat-eof 1926s # slow test /gsubprocess/cat-eof executed in 1.00 secs 1930s ok 13 /gsubprocess/multi1 1930s # slow test /gsubprocess/multi1 executed in 3.01 secs 1930s ok 14 /gsubprocess/communicate 1931s # Executing: glib/gsubprocess.test 1932s ok 15 /gsubprocess/terminate 1932s # slow test /gsubprocess/terminate executed in 2.95 secs 1932s ok 16 /gsubprocess/fail-initialization 1932s ok 17 /gsubprocess/env 1932s ok 18 /gsubprocess/cwd 1932s ok 19 /gsubprocess/launcher-close 1932s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1932s ok 20 /gsubprocess/stdout-file 1932s ok 21 /gsubprocess/stdout-fd 1932s ok 22 /gsubprocess/child-setup 1932s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1932s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1932s ok 23 /gsubprocess/launcher-environment 1932s # Start of exit1 tests 1932s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=786456 1932s ok 24 /gsubprocess/exit1/cancel 1932s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=786456 1932s ok 25 /gsubprocess/exit1/cancel_in_cb 1932s # End of exit1 tests 1932s # Start of communicate tests 1932s ok 26 /gsubprocess/communicate/cancelled 1932s ok 27 /gsubprocess/communicate/async 1932s ok 28 /gsubprocess/communicate/utf8 1932s # hello world 1932s ok 29 /gsubprocess/communicate/no-pipes 1933s ok 30 /gsubprocess/communicate/separate-stderr 1933s ok 31 /gsubprocess/communicate/stdout-only 1933s # hello world 1933s ok 32 /gsubprocess/communicate/stderr-only 1933s ok 33 /gsubprocess/communicate/stdout-silence 1933s ok 34 /gsubprocess/communicate/nothing 1933s # Start of async tests 1933s ok 35 /gsubprocess/communicate/async/cancelled 1933s # hello world 1933s ok 36 /gsubprocess/communicate/async/no-pipes 1933s ok 37 /gsubprocess/communicate/async/separate-stderr 1933s ok 38 /gsubprocess/communicate/async/stdout-only 1933s # hello world 1933s ok 39 /gsubprocess/communicate/async/stderr-only 1933s ok 40 /gsubprocess/communicate/async/stdout-silence 1933s # Start of cancelled tests 1933s ok 41 /gsubprocess/communicate/async/cancelled/no-pipes 1933s ok 42 /gsubprocess/communicate/async/cancelled/separate-stderr 1933s ok 43 /gsubprocess/communicate/async/cancelled/stdout-only 1933s ok 44 /gsubprocess/communicate/async/cancelled/stderr-only 1933s ok 45 /gsubprocess/communicate/async/cancelled/stdout-silence 1933s # End of cancelled tests 1933s # End of async tests 1933s # Start of utf8 tests 1933s ok 46 /gsubprocess/communicate/utf8/cancelled 1933s ok 47 /gsubprocess/communicate/utf8/async 1933s # hello world 1933s ok 48 /gsubprocess/communicate/utf8/no-pipes 1933s ok 49 /gsubprocess/communicate/utf8/separate-stderr 1933s ok 50 /gsubprocess/communicate/utf8/stdout-only 1933s # hello world 1933s ok 51 /gsubprocess/communicate/utf8/stderr-only 1933s ok 52 /gsubprocess/communicate/utf8/stdout-silence 1933s ok 53 /gsubprocess/communicate/utf8/invalid 1933s # Start of async tests 1933s ok 54 /gsubprocess/communicate/utf8/async/cancelled 1933s # hello world 1933s ok 55 /gsubprocess/communicate/utf8/async/no-pipes 1933s ok 56 /gsubprocess/communicate/utf8/async/separate-stderr 1933s ok 57 /gsubprocess/communicate/utf8/async/stdout-only 1933s # hello world 1933s ok 58 /gsubprocess/communicate/utf8/async/stderr-only 1933s ok 59 /gsubprocess/communicate/utf8/async/stdout-silence 1933s ok 60 /gsubprocess/communicate/utf8/async/invalid 1933s # Start of cancelled tests 1933s ok 61 /gsubprocess/communicate/utf8/async/cancelled/no-pipes 1933s ok 62 /gsubprocess/communicate/utf8/async/cancelled/separate-stderr 1933s ok 63 /gsubprocess/communicate/utf8/async/cancelled/stdout-only 1933s ok 64 /gsubprocess/communicate/utf8/async/cancelled/stderr-only 1933s ok 65 /gsubprocess/communicate/utf8/async/cancelled/stdout-silence 1933s # End of cancelled tests 1933s # End of async tests 1933s # Start of cancelled tests 1933s ok 66 /gsubprocess/communicate/utf8/cancelled/no-pipes 1933s ok 67 /gsubprocess/communicate/utf8/cancelled/separate-stderr 1933s ok 68 /gsubprocess/communicate/utf8/cancelled/stdout-only 1933s ok 69 /gsubprocess/communicate/utf8/cancelled/stderr-only 1933s ok 70 /gsubprocess/communicate/utf8/cancelled/stdout-silence 1933s # End of cancelled tests 1933s # End of utf8 tests 1933s # Start of cancelled tests 1933s ok 71 /gsubprocess/communicate/cancelled/no-pipes 1933s ok 72 /gsubprocess/communicate/cancelled/separate-stderr 1933s ok 73 /gsubprocess/communicate/cancelled/stdout-only 1933s ok 74 /gsubprocess/communicate/cancelled/stderr-only 1933s ok 75 /gsubprocess/communicate/cancelled/stdout-silence 1933s # End of cancelled tests 1933s # End of communicate tests 1933s # Start of env tests 1933s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1933s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1933s ok 76 /gsubprocess/env/inherit 1933s # End of env tests 1933s # Start of pass-fd tests 1933s ok 77 /gsubprocess/pass-fd/basic 1933s ok 78 /gsubprocess/pass-fd/empty-child-setup 1933s ok 79 /gsubprocess/pass-fd/inherit-fds 1933s # End of pass-fd tests 1933s # Start of fd-conflation tests 1933s ok 80 /gsubprocess/fd-conflation/basic 1933s ok 81 /gsubprocess/fd-conflation/empty-child-setup 1933s ok 82 /gsubprocess/fd-conflation/inherit-fds 1933s ok 83 /gsubprocess/fd-conflation/child-err-report-fd 1933s # End of fd-conflation tests 1933s # Start of exit-status tests 1933s # /gsubprocess/exit-status/trapped summary: Test that exit status is reported correctly for ptrace()d child processes 1933s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3433 1933s ok 84 /gsubprocess/exit-status/trapped 1933s # End of exit-status tests 1933s # End of gsubprocess tests 1933s ok - glib/gsubprocess.test 1933s # Running test: glib/unicode-normalize.test 1933s TAP version 14 1933s # random seed: R02S62f57ab113c0fbb1b22ca46dd2a9e3ed 1933s 1..3 1933s # Start of unicode tests 1933s # Processing Part0 # Specific cases 1933s # Processing Part1 # Character by character test 1933s # Processing Part2 # Canonical Order Test 1933s # Processing Part3 # PRI #29 Test 1933s # Processing Part4 # Canonical closures (excluding Hangul) 1933s # Processing Part5 # Chained primary composites 1933s ok 1 /unicode/normalize 1933s # Invalid UTF-8 vector 0 1933s # Invalid UTF-8 vector 1 1933s # Invalid UTF-8 vector 2 1933s # Invalid UTF-8 vector 3 1933s # Invalid UTF-8 vector 4 1933s # Invalid UTF-8 vector 5 1933s # Invalid UTF-8 vector 6 1933s # Invalid UTF-8 vector 7 1933s # Invalid UTF-8 vector 8 1933s # Invalid UTF-8 vector 9 1933s # Invalid UTF-8 vector 10 1933s # Invalid UTF-8 vector 11 1933s # Invalid UTF-8 vector 12 1933s ok 2 /unicode/normalize-invalid 1933s # Start of normalize tests 1933s ok 3 /unicode/normalize/bad-length 1933s # End of normalize tests 1933s # End of unicode tests 1933s ok - glib/unicode-normalize.test 1933s # Running test: glib/completion.test 1933s ok - glib/completion.test 1933s TAP version 14 1933s # random seed: R02S626455a1cf1736d7edd1fc8c179703a2 1933s 1..1 1933s # Start of completion tests 1933s ok 1 /completion/test-completion 1933s # End of completion tests 1933s # Running test: glib/object.test 1933s TAP version 14 1933s # random seed: R02Sa5b5750d2e135e21be7e1b2934065e12 1933s 1..2 1933s # Start of object tests 1933s # Start of constructor tests 1933s ok 1 /object/constructor/singleton 1933s ok 2 /object/constructor/infanticide # SKIP skip tests that rely on debug-only warnings 1933s # End of constructor tests 1933s # End of object tests 1933s ok - glib/object.test 1933s # Running test: glib/accumulator.test 1933s TAP version 14 1933s # random seed: R02S0ff7c1f61e05a29446559656ffa7b8e0 1933s 1..1 1933s # Start of gobject tests 1933s ok 1 /gobject/accumulator 1933s # End of gobject tests 1933s ok - glib/accumulator.test 1933s # Running test: glib/ifaceproperties.test 1933s TAP version 14 1933s # random seed: R02Sdf28b6971dceb2c8e79c61feba93b984 1933s 1..7 1933s # Start of interface tests 1933s # Start of properties tests 1933s ok 1 /interface/properties/set 1933s ok 2 /interface/properties/notify 1933s ok 3 /interface/properties/find-overridden 1933s ok 4 /interface/properties/list-overridden 1933s ok 5 /interface/properties/find-interface 1933s ok 6 /interface/properties/list-interface 1933s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=637738 1933s ok 7 /interface/properties/not-overridden 1933s # End of properties tests 1933s # End of interface tests 1933s TAP version 14 1933s # random seed: R02Sc272f82476d31e6a1fd4ca0bc4375d43 1933s 1..2 1933s # Start of gobject tests 1933s ok 1 /gobject/static-iface 1933s ok 2 /gobject/dynamic-iface 1933s # End of gobject tests 1933s TAP version 14 1933s # random seed: R02Sc8961af4a496dd4e15d1b882bde589c3 1933s 1..2 1933s # Start of glib tests 1933s # Start of 1bit-mutex tests 1933s ok - glib/ifaceproperties.test 1933s # Running test: glib/defaultiface.test 1933s ok - glib/defaultiface.test 1933s # Running test: glib/1bit-mutex.test 1935s ok 1 /glib/1bit-mutex/int 1935s # slow test /glib/1bit-mutex/int executed in 2.34 secs 1936s # Executing: glib/1bit-mutex.test 1938s ok 2 /glib/1bit-mutex/pointer 1938s # slow test /glib/1bit-mutex/pointer executed in 2.32 secs 1938s # End of 1bit-mutex tests 1938s # End of glib tests 1938s ok - glib/1bit-mutex.test 1938s # Running test: glib/portal-support-flatpak-full.test 1938s TAP version 14 1938s # random seed: R02Sc275f3c7826c412bf3b0258cbcef7c13 1938s 1..1 1938s # Start of portal-support tests 1938s # Start of flatpak tests 1938s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-full_101FC3/portal-support/flatpak/full/.dirs/home 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-full_101FC3/portal-support/flatpak/full/.dirs/cache 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-full_101FC3/portal-support/flatpak/full/.dirs/system-config1:/tmp/test_portal-support-flatpak-full_101FC3/portal-support/flatpak/full/.dirs/system-config2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-full_101FC3/portal-support/flatpak/full/.dirs/config 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-full_101FC3/portal-support/flatpak/full/.dirs/system-data1:/tmp/test_portal-support-flatpak-full_101FC3/portal-support/flatpak/full/.dirs/system-data2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-full_101FC3/portal-support/flatpak/full/.dirs/data 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-full_101FC3/portal-support/flatpak/full/.dirs/state 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-full_101FC3/portal-support/flatpak/full/.dirs/runtime 1938s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-full_101FC3/portal-support/flatpak/full/.dirs/runtime/.flatpak-info 1938s ok 1 /portal-support/flatpak/full 1938s # End of flatpak tests 1938s # End of portal-support tests 1938s ok - glib/portal-support-flatpak-full.test 1938s # Running test: glib/portal-support-snap.test 1938s TAP version 14 1938s # random seed: R02Saafb00f27b664684824bc7de3d510e1a 1938s 1..7 1938s # Start of portal-support tests 1938s # Start of snap tests 1938s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/no-snapctl/.dirs/home 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/no-snapctl/.dirs/cache 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/no-snapctl/.dirs/system-config1:/tmp/test_portal-support-snap_VZNFC3/portal-support/snap/no-snapctl/.dirs/system-config2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/no-snapctl/.dirs/config 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/no-snapctl/.dirs/system-data1:/tmp/test_portal-support-snap_VZNFC3/portal-support/snap/no-snapctl/.dirs/system-data2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/no-snapctl/.dirs/data 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/no-snapctl/.dirs/state 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/no-snapctl/.dirs/runtime 1938s # Created snap.yaml in /tmp/test_portal-support-snap_VZNFC3/meta/snap.yaml 1938s Unable to clean up temporary directory /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/no-snapctl: No such file or directory 1938s ok 1 /portal-support/snap/no-snapctl 1938s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/none/.dirs/home 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/none/.dirs/cache 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/none/.dirs/system-config1:/tmp/test_portal-support-snap_VZNFC3/portal-support/snap/none/.dirs/system-config2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/none/.dirs/config 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/none/.dirs/system-data1:/tmp/test_portal-support-snap_VZNFC3/portal-support/snap/none/.dirs/system-data2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/none/.dirs/data 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/none/.dirs/state 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/none/.dirs/runtime 1938s # Created snap.yaml in /tmp/test_portal-support-snap_VZNFC3/meta/snap.yaml 1938s # Created snapctl in /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/none/.dirs/runtime/snapctl 1938s Unable to clean up temporary directory /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/none: No such file or directory 1938s ok 2 /portal-support/snap/none 1938s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/all/.dirs/home 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/all/.dirs/cache 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/all/.dirs/system-config1:/tmp/test_portal-support-snap_VZNFC3/portal-support/snap/all/.dirs/system-config2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/all/.dirs/config 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/all/.dirs/system-data1:/tmp/test_portal-support-snap_VZNFC3/portal-support/snap/all/.dirs/system-data2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/all/.dirs/data 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/all/.dirs/state 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/all/.dirs/runtime 1938s # Created snap.yaml in /tmp/test_portal-support-snap_VZNFC3/meta/snap.yaml 1938s # Created snapctl in /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/all/.dirs/runtime/snapctl 1938s Unable to clean up temporary directory /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/all: No such file or directory 1938s ok 3 /portal-support/snap/all 1938s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/desktop-only/.dirs/home 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/desktop-only/.dirs/cache 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/desktop-only/.dirs/system-config1:/tmp/test_portal-support-snap_VZNFC3/portal-support/snap/desktop-only/.dirs/system-config2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/desktop-only/.dirs/config 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/desktop-only/.dirs/system-data1:/tmp/test_portal-support-snap_VZNFC3/portal-support/snap/desktop-only/.dirs/system-data2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/desktop-only/.dirs/data 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/desktop-only/.dirs/state 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/desktop-only/.dirs/runtime 1938s # Created snap.yaml in /tmp/test_portal-support-snap_VZNFC3/meta/snap.yaml 1938s # Created snapctl in /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/desktop-only/.dirs/runtime/snapctl 1938s Unable to clean up temporary directory /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/desktop-only: No such file or directory 1938s ok 4 /portal-support/snap/desktop-only 1938s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/network-only/.dirs/home 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/network-only/.dirs/cache 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/network-only/.dirs/system-config1:/tmp/test_portal-support-snap_VZNFC3/portal-support/snap/network-only/.dirs/system-config2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/network-only/.dirs/config 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/network-only/.dirs/system-data1:/tmp/test_portal-support-snap_VZNFC3/portal-support/snap/network-only/.dirs/system-data2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/network-only/.dirs/data 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/network-only/.dirs/state 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/network-only/.dirs/runtime 1938s # Created snap.yaml in /tmp/test_portal-support-snap_VZNFC3/meta/snap.yaml 1938s # Created snapctl in /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/network-only/.dirs/runtime/snapctl 1938s Unable to clean up temporary directory /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/network-only: No such file or directory 1938s ok 5 /portal-support/snap/network-only 1938s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/gsettings-only/.dirs/home 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/gsettings-only/.dirs/cache 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/gsettings-only/.dirs/system-config1:/tmp/test_portal-support-snap_VZNFC3/portal-support/snap/gsettings-only/.dirs/system-config2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/gsettings-only/.dirs/config 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/gsettings-only/.dirs/system-data1:/tmp/test_portal-support-snap_VZNFC3/portal-support/snap/gsettings-only/.dirs/system-data2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/gsettings-only/.dirs/data 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/gsettings-only/.dirs/state 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/gsettings-only/.dirs/runtime 1938s # Created snap.yaml in /tmp/test_portal-support-snap_VZNFC3/meta/snap.yaml 1938s # Created snapctl in /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/gsettings-only/.dirs/runtime/snapctl 1938s Unable to clean up temporary directory /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/gsettings-only: No such file or directory 1938s ok 6 /portal-support/snap/gsettings-only 1938s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/updates-dynamically/.dirs/home 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/updates-dynamically/.dirs/cache 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/updates-dynamically/.dirs/system-config1:/tmp/test_portal-support-snap_VZNFC3/portal-support/snap/updates-dynamically/.dirs/system-config2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/updates-dynamically/.dirs/config 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/updates-dynamically/.dirs/system-data1:/tmp/test_portal-support-snap_VZNFC3/portal-support/snap/updates-dynamically/.dirs/system-data2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/updates-dynamically/.dirs/data 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/updates-dynamically/.dirs/state 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/updates-dynamically/.dirs/runtime 1938s # Created snap.yaml in /tmp/test_portal-support-snap_VZNFC3/meta/snap.yaml 1938s # Created snapctl in /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1938s # Created snapctl in /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1938s # Created snapctl in /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1938s # Created snapctl in /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1938s # Created snapctl in /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1938s # Created snapctl in /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1938s # Created snapctl in /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1938s Unable to clean up temporary directory /tmp/test_portal-support-snap_VZNFC3/portal-support/snap/updates-dynamically: No such file or directory 1938s ok 7 /portal-support/snap/updates-dynamically 1938s # End of snap tests 1938s # End of portal-support tests 1938s Unable to clean up temporary directory /tmp/test_portal-support-snap_VZNFC3: No such file or directory 1938s ok - glib/portal-support-snap.test 1938s # Running test: glib/mapping.test 1938s TAP version 14 1938s # random seed: R02Sc989009f5d1ab0a49ea435ac19f76daf 1938s 1..3 1938s # Start of mapping tests 1938s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_N7JHC3/mapping/flags/.dirs/home 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_N7JHC3/mapping/flags/.dirs/cache 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_N7JHC3/mapping/flags/.dirs/system-config1:/tmp/test_mapping_N7JHC3/mapping/flags/.dirs/system-config2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_N7JHC3/mapping/flags/.dirs/config 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_N7JHC3/mapping/flags/.dirs/system-data1:/tmp/test_mapping_N7JHC3/mapping/flags/.dirs/system-data2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_N7JHC3/mapping/flags/.dirs/data 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_N7JHC3/mapping/flags/.dirs/state 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_N7JHC3/mapping/flags/.dirs/runtime 1938s # test_mapping: ok 1938s ok 1 /mapping/flags 1938s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_N7JHC3/mapping/private/.dirs/home 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_N7JHC3/mapping/private/.dirs/cache 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_N7JHC3/mapping/private/.dirs/system-config1:/tmp/test_mapping_N7JHC3/mapping/private/.dirs/system-config2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_N7JHC3/mapping/private/.dirs/config 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_N7JHC3/mapping/private/.dirs/system-data1:/tmp/test_mapping_N7JHC3/mapping/private/.dirs/system-data2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_N7JHC3/mapping/private/.dirs/data 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_N7JHC3/mapping/private/.dirs/state 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_N7JHC3/mapping/private/.dirs/runtime 1938s ok 2 /mapping/private 1938s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_N7JHC3/mapping/private-child/.dirs/home 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_N7JHC3/mapping/private-child/.dirs/cache 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_N7JHC3/mapping/private-child/.dirs/system-config1:/tmp/test_mapping_N7JHC3/mapping/private-child/.dirs/system-config2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_N7JHC3/mapping/private-child/.dirs/config 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_N7JHC3/mapping/private-child/.dirs/system-data1:/tmp/test_mapping_N7JHC3/mapping/private-child/.dirs/system-data2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_N7JHC3/mapping/private-child/.dirs/data 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_N7JHC3/mapping/private-child/.dirs/state 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_N7JHC3/mapping/private-child/.dirs/runtime 1938s # test_child_private: child spawned 1938s # Subtest: /usr/libexec/installed-tests/glib/mapping 1938s # random seed: R02S8f0f6ce654d35815a3bb84f67806acb7 1938s # test_child_private: received first child signal 1938s # test_child_private: received parent signal 1938s # Child exited with status 0 1938s # test_child_private: received second child signal 1938s ok 3 /mapping/private-child 1938s # End of mapping tests 1938s ok - glib/mapping.test 1938s TAP version 14 1938s # random seed: R02S432eda70db7b4702e1e3f54d19344c88 1938s 1..28 1938s # Start of base64 tests 1938s ok 1 /base64/encode 1938s ok 2 /base64/decode 1938s ok 3 /base64/decode-inplace 1938s # Running test: glib/base64.test 1938s ok 4 /base64/encode-decode 1938s # Start of full tests 1938s ok 5 /base64/full/1 1938s ok 6 /base64/full/2 1938s ok 7 /base64/full/3 1938s ok 8 /base64/full/4 1938s # End of full tests 1938s # Start of encode tests 1938s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1698 1938s ok 9 /base64/encode/empty 1938s # Start of incremental tests 1938s # Start of small-block tests 1938s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1938s ok 10 /base64/encode/incremental/small-block/1 1938s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1938s ok 11 /base64/encode/incremental/small-block/2 1938s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1938s ok 12 /base64/encode/incremental/small-block/3 1938s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1938s ok 13 /base64/encode/incremental/small-block/4 1938s # End of small-block tests 1938s # End of incremental tests 1938s # End of encode tests 1938s # Start of incremental tests 1938s # Start of nobreak tests 1938s ok 14 /base64/incremental/nobreak/1 1938s ok 15 /base64/incremental/nobreak/2 1938s ok 16 /base64/incremental/nobreak/3 1938s ok 17 /base64/incremental/nobreak/4-a 1938s ok 18 /base64/incremental/nobreak/4-b 1938s ok 19 /base64/incremental/nobreak/4-c 1938s # End of nobreak tests 1938s # Start of break tests 1938s ok 20 /base64/incremental/break/1 1938s ok 21 /base64/incremental/break/2 1938s ok 22 /base64/incremental/break/3 1938s # End of break tests 1938s # Start of smallblock tests 1938s ok 23 /base64/incremental/smallblock/1 1938s ok 24 /base64/incremental/smallblock/2 1938s ok 25 /base64/incremental/smallblock/3 1938s ok 26 /base64/incremental/smallblock/4 1938s # End of smallblock tests 1938s # End of incremental tests 1938s # Start of decode tests 1938s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1698 1938s ok 27 /base64/decode/empty 1938s # End of decode tests 1938s # Start of encode-decode tests 1938s # Vector 0: 1938s # Vector 1: f 1938s # Vector 2: fo 1938s # Vector 3: foo 1938s # Vector 4: foob 1938s # Vector 5: fooba 1938s # Vector 6: foobar 1938s ok 28 /base64/encode-decode/rfc4648 1938s # End of encode-decode tests 1938s # End of base64 tests 1938s ok - glib/base64.test 1938s # Running test: glib/glistmodel.test 1938s TAP version 14 1938s # random seed: R02Sc7565c12e3dc23f5af9727a89633dbcb 1938s 1..18 1938s # Start of glistmodel tests 1938s # Start of store tests 1938s ok 1 /glistmodel/store/properties 1938s ok 2 /glistmodel/store/non-gobjects 1938s ok 3 /glistmodel/store/boundaries 1938s ok 4 /glistmodel/store/refcounts 1938s ok 5 /glistmodel/store/sorted 1938s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=795307 1938s ok 6 /glistmodel/store/splice-replace-middle 1938s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=795307 1938s ok 7 /glistmodel/store/splice-replace-all 1938s ok 8 /glistmodel/store/splice-noop 1938s ok 9 /glistmodel/store/splice-remove-multiple 1938s ok 10 /glistmodel/store/splice-add-multiple 1938s ok 11 /glistmodel/store/splice-wrong-type 1938s ok 12 /glistmodel/store/item-type 1938s ok 13 /glistmodel/store/remove-all 1938s ok 14 /glistmodel/store/sort 1938s ok 15 /glistmodel/store/get-item-cache 1938s ok 16 /glistmodel/store/items-changed 1938s ok 17 /glistmodel/store/past-end 1938s ok 18 /glistmodel/store/find 1938s # End of store tests 1938s # End of glistmodel tests 1938s ok - glib/glistmodel.test 1938s # Running test: glib/struct-info.test 1938s TAP version 14 1938s # random seed: R02S0a6d5878682809e3746384822f224cff 1938s 1..4 1938s # Start of struct-info tests 1938s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_AZLGC3/struct-info/field-iterators/.dirs/home 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_AZLGC3/struct-info/field-iterators/.dirs/cache 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_AZLGC3/struct-info/field-iterators/.dirs/system-config1:/tmp/test_struct-info_AZLGC3/struct-info/field-iterators/.dirs/system-config2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_AZLGC3/struct-info/field-iterators/.dirs/config 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_AZLGC3/struct-info/field-iterators/.dirs/system-data1:/tmp/test_struct-info_AZLGC3/struct-info/field-iterators/.dirs/system-data2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_AZLGC3/struct-info/field-iterators/.dirs/data 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_AZLGC3/struct-info/field-iterators/.dirs/state 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_AZLGC3/struct-info/field-iterators/.dirs/runtime 1938s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1938s # /struct-info/field-iterators summary: Test iterating through a struct's fields with gi_struct_info_get_field() 1938s ok 1 /struct-info/field-iterators 1938s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_AZLGC3/struct-info/sizeof-gvalue/.dirs/home 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_AZLGC3/struct-info/sizeof-gvalue/.dirs/cache 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_AZLGC3/struct-info/sizeof-gvalue/.dirs/system-config1:/tmp/test_struct-info_AZLGC3/struct-info/sizeof-gvalue/.dirs/system-config2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_AZLGC3/struct-info/sizeof-gvalue/.dirs/config 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_AZLGC3/struct-info/sizeof-gvalue/.dirs/system-data1:/tmp/test_struct-info_AZLGC3/struct-info/sizeof-gvalue/.dirs/system-data2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_AZLGC3/struct-info/sizeof-gvalue/.dirs/data 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_AZLGC3/struct-info/sizeof-gvalue/.dirs/state 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_AZLGC3/struct-info/sizeof-gvalue/.dirs/runtime 1938s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1938s # /struct-info/sizeof-gvalue summary: Test that gi_struct_info_get_size() reports the correct sizeof GValue 1938s ok 2 /struct-info/sizeof-gvalue 1938s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_AZLGC3/struct-info/is-pointer-for-struct-method-arg/.dirs/home 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_AZLGC3/struct-info/is-pointer-for-struct-method-arg/.dirs/cache 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_AZLGC3/struct-info/is-pointer-for-struct-method-arg/.dirs/system-config1:/tmp/test_struct-info_AZLGC3/struct-info/is-pointer-for-struct-method-arg/.dirs/system-config2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_AZLGC3/struct-info/is-pointer-for-struct-method-arg/.dirs/config 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_AZLGC3/struct-info/is-pointer-for-struct-method-arg/.dirs/system-data1:/tmp/test_struct-info_AZLGC3/struct-info/is-pointer-for-struct-method-arg/.dirs/system-data2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_AZLGC3/struct-info/is-pointer-for-struct-method-arg/.dirs/data 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_AZLGC3/struct-info/is-pointer-for-struct-method-arg/.dirs/state 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_AZLGC3/struct-info/is-pointer-for-struct-method-arg/.dirs/runtime 1938s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1938s # /struct-info/is-pointer-for-struct-method-arg summary: Test that a struct method reports the correct type with gi_type_info_is_pointer() 1938s ok 3 /struct-info/is-pointer-for-struct-method-arg 1938s ok - glib/struct-info.test 1938s # Running test: glib/fileattributematcher.test 1938s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_AZLGC3/struct-info/boxed/.dirs/home 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_AZLGC3/struct-info/boxed/.dirs/cache 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_AZLGC3/struct-info/boxed/.dirs/system-config1:/tmp/test_struct-info_AZLGC3/struct-info/boxed/.dirs/system-config2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_AZLGC3/struct-info/boxed/.dirs/config 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_AZLGC3/struct-info/boxed/.dirs/system-data1:/tmp/test_struct-info_AZLGC3/struct-info/boxed/.dirs/system-data2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_AZLGC3/struct-info/boxed/.dirs/data 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_AZLGC3/struct-info/boxed/.dirs/state 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_AZLGC3/struct-info/boxed/.dirs/runtime 1938s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1938s # /struct-info/boxed summary: Test that a boxed struct is recognised as such 1938s ok 4 /struct-info/boxed 1938s # End of struct-info tests 1938s TAP version 14 1938s # random seed: R02Sc919d3b3b2075208b4f9833ed02fe226 1938s 1..3 1938s # Start of fileattributematcher tests 1938s ok 1 /fileattributematcher/exact 1938s ok 2 /fileattributematcher/equality 1938s ok 3 /fileattributematcher/subtract 1938s # End of fileattributematcher tests 1938s ok - glib/fileattributematcher.test 1938s TAP version 14 1938s # random seed: R02Sd47233c5b3db30025910c72fbb6a283f 1938s 1..1 1938s # Start of gdbus tests 1938s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-well-known-name_6EEGC3/gdbus/proxy-well-known-name/.dirs/home 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-well-known-name_6EEGC3/gdbus/proxy-well-known-name/.dirs/cache 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-well-known-name_6EEGC3/gdbus/proxy-well-known-name/.dirs/system-config1:/tmp/test_gdbus-proxy-well-known-name_6EEGC3/gdbus/proxy-well-known-name/.dirs/system-config2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-well-known-name_6EEGC3/gdbus/proxy-well-known-name/.dirs/config 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-well-known-name_6EEGC3/gdbus/proxy-well-known-name/.dirs/system-data1:/tmp/test_gdbus-proxy-well-known-name_6EEGC3/gdbus/proxy-well-known-name/.dirs/system-data2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-well-known-name_6EEGC3/gdbus/proxy-well-known-name/.dirs/data 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-well-known-name_6EEGC3/gdbus/proxy-well-known-name/.dirs/state 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-well-known-name_6EEGC3/gdbus/proxy-well-known-name/.dirs/runtime 1938s # Running test: glib/gdbus-proxy-well-known-name.test 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s ok 1 /gdbus/proxy-well-known-name 1938s # End of gdbus tests 1938s ok - glib/gdbus-proxy-well-known-name.test 1938s # Running test: glib/gdbus-connection.test 1938s TAP version 14 1938s # random seed: R02S332f6322dc8045aa9727e0bb70e05b3b 1938s 1..9 1938s # Start of gdbus tests 1938s # Start of connection tests 1938s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/bus-failure/.dirs/home 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/bus-failure/.dirs/cache 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/bus-failure/.dirs/system-config1:/tmp/test_gdbus-connection_D1KKC3/gdbus/connection/bus-failure/.dirs/system-config2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/bus-failure/.dirs/config 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/bus-failure/.dirs/system-data1:/tmp/test_gdbus-connection_D1KKC3/gdbus/connection/bus-failure/.dirs/system-data2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/bus-failure/.dirs/data 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/bus-failure/.dirs/state 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/bus-failure/.dirs/runtime 1938s ok 1 /gdbus/connection/bus-failure 1938s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/basic/.dirs/home 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/basic/.dirs/cache 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/basic/.dirs/system-config1:/tmp/test_gdbus-connection_D1KKC3/gdbus/connection/basic/.dirs/system-config2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/basic/.dirs/config 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/basic/.dirs/system-data1:/tmp/test_gdbus-connection_D1KKC3/gdbus/connection/basic/.dirs/system-data2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/basic/.dirs/data 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/basic/.dirs/state 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/basic/.dirs/runtime 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s ok 2 /gdbus/connection/basic 1938s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/life-cycle/.dirs/home 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/life-cycle/.dirs/cache 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/life-cycle/.dirs/system-config1:/tmp/test_gdbus-connection_D1KKC3/gdbus/connection/life-cycle/.dirs/system-config2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/life-cycle/.dirs/config 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/life-cycle/.dirs/system-data1:/tmp/test_gdbus-connection_D1KKC3/gdbus/connection/life-cycle/.dirs/system-data2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/life-cycle/.dirs/data 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/life-cycle/.dirs/state 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/life-cycle/.dirs/runtime 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s ok 3 /gdbus/connection/life-cycle 1938s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/send/.dirs/home 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/send/.dirs/cache 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/send/.dirs/system-config1:/tmp/test_gdbus-connection_D1KKC3/gdbus/connection/send/.dirs/system-config2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/send/.dirs/config 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/send/.dirs/system-data1:/tmp/test_gdbus-connection_D1KKC3/gdbus/connection/send/.dirs/system-data2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/send/.dirs/data 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/send/.dirs/state 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/send/.dirs/runtime 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s ok 4 /gdbus/connection/send 1938s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/signals/.dirs/home 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/signals/.dirs/cache 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/signals/.dirs/system-config1:/tmp/test_gdbus-connection_D1KKC3/gdbus/connection/signals/.dirs/system-config2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/signals/.dirs/config 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/signals/.dirs/system-data1:/tmp/test_gdbus-connection_D1KKC3/gdbus/connection/signals/.dirs/system-data2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/signals/.dirs/data 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/signals/.dirs/state 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/signals/.dirs/runtime 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s ok 5 /gdbus/connection/signals 1938s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/signal-match-rules/.dirs/home 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/signal-match-rules/.dirs/cache 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/signal-match-rules/.dirs/system-config1:/tmp/test_gdbus-connection_D1KKC3/gdbus/connection/signal-match-rules/.dirs/system-config2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/signal-match-rules/.dirs/config 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/signal-match-rules/.dirs/system-data1:/tmp/test_gdbus-connection_D1KKC3/gdbus/connection/signal-match-rules/.dirs/system-data2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/signal-match-rules/.dirs/data 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/signal-match-rules/.dirs/state 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/signal-match-rules/.dirs/runtime 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s ok 6 /gdbus/connection/signal-match-rules 1938s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/filter/.dirs/home 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/filter/.dirs/cache 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/filter/.dirs/system-config1:/tmp/test_gdbus-connection_D1KKC3/gdbus/connection/filter/.dirs/system-config2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/filter/.dirs/config 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/filter/.dirs/system-data1:/tmp/test_gdbus-connection_D1KKC3/gdbus/connection/filter/.dirs/system-data2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/filter/.dirs/data 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/filter/.dirs/state 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/filter/.dirs/runtime 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s ok 7 /gdbus/connection/filter 1938s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/serials/.dirs/home 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/serials/.dirs/cache 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/serials/.dirs/system-config1:/tmp/test_gdbus-connection_D1KKC3/gdbus/connection/serials/.dirs/system-config2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/serials/.dirs/config 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/serials/.dirs/system-data1:/tmp/test_gdbus-connection_D1KKC3/gdbus/connection/serials/.dirs/system-data2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/serials/.dirs/data 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/serials/.dirs/state 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/serials/.dirs/runtime 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s ok 8 /gdbus/connection/serials 1938s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/cancel/.dirs/home 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/cancel/.dirs/cache 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/cancel/.dirs/system-config1:/tmp/test_gdbus-connection_D1KKC3/gdbus/connection/cancel/.dirs/system-config2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/cancel/.dirs/config 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/cancel/.dirs/system-data1:/tmp/test_gdbus-connection_D1KKC3/gdbus/connection/cancel/.dirs/system-data2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/cancel/.dirs/data 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/cancel/.dirs/state 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_D1KKC3/gdbus/connection/cancel/.dirs/runtime 1938s # /gdbus/connection/cancel summary: Test that cancelling one of two racing g_bus_get() calls does not cancel the other one 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1938s ok 9 /gdbus/connection/cancel 1938s # End of connection tests 1938s # End of gdbus tests 1938s ok - glib/gdbus-connection.test 1938s # Running test: glib/credentials.test 1938s TAP version 14 1938s # random seed: R02S26d691a32e9f5f83732cedea37544f43 1938s 1..1 1938s # Start of credentials tests 1938s # GCredentials:linux-ucred:pid=10280,uid=1000,gid=1000 1938s # GCredentials:linux-ucred:pid=10280,uid=0,gid=1000 1938s ok 1 /credentials/basic 1938s # End of credentials tests 1938s ok - glib/credentials.test 1938s # Running test: glib/notify-init2.test 1938s TAP version 14 1938s # random seed: R02Sd26b192b3615eecbc9d526252c62c26d 1938s 1..1 1938s # Start of properties tests 1938s # /properties/notify-in-init2 summary: Test that notify freezing during construction of objects with custom constructor works 1938s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2665 1938s ok 1 /properties/notify-in-init2 1938s # End of properties tests 1938s ok - glib/notify-init2.test 1938s # Running test: glib/custom-dispatch.test 1938s TAP version 14 1938s # random seed: R02Sb33de7b5ecf01468d823198c368c6139 1938s 1..2 1938s # Start of properties tests 1938s # Start of custom-dispatch tests 1938s # /properties/custom-dispatch/init summary: Test that custom dispatch_properties_changed is called on initialization 1938s ok 1 /properties/custom-dispatch/init 1938s # /properties/custom-dispatch/set summary: Test that custom dispatch_properties_changed is called regardless of connected notify handlers 1938s ok 2 /properties/custom-dispatch/set 1938s # End of custom-dispatch tests 1938s # End of properties tests 1938s ok - glib/custom-dispatch.test 1938s # Running test: glib/mimeapps.test 1938s TAP version 14 1938s # random seed: R02S83f56cb6710c374bab052ff9768890fd 1938s 1..7 1938s # Start of appinfo tests 1938s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/all/.dirs/home 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/all/.dirs/cache 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_SP6ZB3/appinfo/all/.dirs/system-config1:/tmp/test_mimeapps_SP6ZB3/appinfo/all/.dirs/system-config2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/all/.dirs/config 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_SP6ZB3/appinfo/all/.dirs/system-data1:/tmp/test_mimeapps_SP6ZB3/appinfo/all/.dirs/system-data2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/all/.dirs/data 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/all/.dirs/state 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_SP6ZB3/appinfo/all/.dirs/runtime 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/all/.dirs/system-data1/applications' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/all/.dirs/system-data1/applications/mimeapps.list' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/all/.dirs/data/applications' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/all/.dirs/data/applications/myapp.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/all/.dirs/data/applications/myapp2.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/all/.dirs/data/applications/myapp3.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/all/.dirs/data/applications/myapp4.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/all/.dirs/data/applications/myapp5.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/all/.dirs/data/applications/nosuchapp.desktop' 1938s # removing '/tmp/test_mimeapps_SP6ZB3/appinfo/all/.dirs/data/applications/mimeapps.list' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/all/.dirs/data/applications/mimeinfo.cache' 1938s ok 1 /appinfo/all 1938s # Start of mime tests 1938s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/api/.dirs/home 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/api/.dirs/cache 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/api/.dirs/system-config1:/tmp/test_mimeapps_SP6ZB3/appinfo/mime/api/.dirs/system-config2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/api/.dirs/config 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/api/.dirs/system-data1:/tmp/test_mimeapps_SP6ZB3/appinfo/mime/api/.dirs/system-data2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/api/.dirs/data 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/api/.dirs/state 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/api/.dirs/runtime 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/api/.dirs/system-data1/applications' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/api/.dirs/system-data1/applications/mimeapps.list' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/api/.dirs/data/applications' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/api/.dirs/data/applications/myapp.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/api/.dirs/data/applications/myapp2.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/api/.dirs/data/applications/myapp3.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/api/.dirs/data/applications/myapp4.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/api/.dirs/data/applications/myapp5.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/api/.dirs/data/applications/nosuchapp.desktop' 1938s # removing '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/api/.dirs/data/applications/mimeapps.list' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/api/.dirs/data/applications/mimeinfo.cache' 1938s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_SP6ZB3/appinfo/mime/api/.dirs/config 1938s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_SP6ZB3/appinfo/all/.dirs/config to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/api/.dirs/config 1938s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_SP6ZB3/appinfo/mime/api/.dirs/config 1938s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_SP6ZB3/appinfo/mime/api/.dirs/config 1938s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_SP6ZB3/appinfo/mime/api/.dirs/config 1938s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_SP6ZB3/appinfo/mime/api/.dirs/config 1938s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_SP6ZB3/appinfo/mime/api/.dirs/config 1938s ok 2 /appinfo/mime/api 1938s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/default/.dirs/home 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/default/.dirs/cache 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/default/.dirs/system-config1:/tmp/test_mimeapps_SP6ZB3/appinfo/mime/default/.dirs/system-config2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/default/.dirs/config 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/default/.dirs/system-data1:/tmp/test_mimeapps_SP6ZB3/appinfo/mime/default/.dirs/system-data2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/default/.dirs/data 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/default/.dirs/state 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/default/.dirs/runtime 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/default/.dirs/system-data1/applications' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/default/.dirs/system-data1/applications/mimeapps.list' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/default/.dirs/data/applications' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/default/.dirs/data/applications/myapp.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/default/.dirs/data/applications/myapp2.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/default/.dirs/data/applications/myapp3.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/default/.dirs/data/applications/myapp4.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/default/.dirs/data/applications/myapp5.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/default/.dirs/data/applications/nosuchapp.desktop' 1938s # removing '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/default/.dirs/data/applications/mimeapps.list' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/default/.dirs/data/applications/mimeinfo.cache' 1938s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_SP6ZB3/appinfo/mime/default/.dirs/config 1938s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_SP6ZB3/appinfo/mime/api/.dirs/config to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/default/.dirs/config 1938s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_SP6ZB3/appinfo/mime/default/.dirs/config 1938s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_SP6ZB3/appinfo/mime/default/.dirs/config 1938s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_SP6ZB3/appinfo/mime/default/.dirs/config 1938s ok 3 /appinfo/mime/default 1938s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/file/.dirs/home 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/file/.dirs/cache 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/file/.dirs/system-config1:/tmp/test_mimeapps_SP6ZB3/appinfo/mime/file/.dirs/system-config2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/file/.dirs/config 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/file/.dirs/system-data1:/tmp/test_mimeapps_SP6ZB3/appinfo/mime/file/.dirs/system-data2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/file/.dirs/data 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/file/.dirs/state 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/file/.dirs/runtime 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/file/.dirs/system-data1/applications' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/file/.dirs/system-data1/applications/mimeapps.list' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/file/.dirs/data/applications' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/file/.dirs/data/applications/myapp.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/file/.dirs/data/applications/myapp2.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/file/.dirs/data/applications/myapp3.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/file/.dirs/data/applications/myapp4.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/file/.dirs/data/applications/myapp5.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/file/.dirs/data/applications/nosuchapp.desktop' 1938s # removing '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/file/.dirs/data/applications/mimeapps.list' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/file/.dirs/data/applications/mimeinfo.cache' 1938s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_SP6ZB3/appinfo/mime/file/.dirs/config 1938s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_SP6ZB3/appinfo/mime/default/.dirs/config to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/file/.dirs/config 1938s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_SP6ZB3/appinfo/mime/file/.dirs/config 1938s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_SP6ZB3/appinfo/mime/file/.dirs/config 1938s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_SP6ZB3/appinfo/mime/file/.dirs/config 1938s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_SP6ZB3/appinfo/mime/file/.dirs/config 1938s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_SP6ZB3/appinfo/mime/file/.dirs/config 1938s ok 4 /appinfo/mime/file 1938s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/scheme-handler/.dirs/home 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/scheme-handler/.dirs/cache 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/scheme-handler/.dirs/system-config1:/tmp/test_mimeapps_SP6ZB3/appinfo/mime/scheme-handler/.dirs/system-config2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/scheme-handler/.dirs/config 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/scheme-handler/.dirs/system-data1:/tmp/test_mimeapps_SP6ZB3/appinfo/mime/scheme-handler/.dirs/system-data2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/scheme-handler/.dirs/data 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/scheme-handler/.dirs/state 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/scheme-handler/.dirs/runtime 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/scheme-handler/.dirs/system-data1/applications' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/scheme-handler/.dirs/system-data1/applications/mimeapps.list' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/scheme-handler/.dirs/data/applications' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp2.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp3.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp4.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp5.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/scheme-handler/.dirs/data/applications/nosuchapp.desktop' 1938s # removing '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/scheme-handler/.dirs/data/applications/mimeapps.list' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/scheme-handler/.dirs/data/applications/mimeinfo.cache' 1938s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_SP6ZB3/appinfo/mime/file/.dirs/config to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/scheme-handler/.dirs/config 1938s ok 5 /appinfo/mime/scheme-handler 1938s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/default-last-used/.dirs/home 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/default-last-used/.dirs/cache 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/default-last-used/.dirs/system-config1:/tmp/test_mimeapps_SP6ZB3/appinfo/mime/default-last-used/.dirs/system-config2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/default-last-used/.dirs/config 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/default-last-used/.dirs/system-data1:/tmp/test_mimeapps_SP6ZB3/appinfo/mime/default-last-used/.dirs/system-data2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/default-last-used/.dirs/data 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/default-last-used/.dirs/state 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/default-last-used/.dirs/runtime 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/default-last-used/.dirs/system-data1/applications' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/default-last-used/.dirs/system-data1/applications/mimeapps.list' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/default-last-used/.dirs/data/applications' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/default-last-used/.dirs/data/applications/myapp.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/default-last-used/.dirs/data/applications/myapp2.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/default-last-used/.dirs/data/applications/myapp3.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/default-last-used/.dirs/data/applications/myapp4.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/default-last-used/.dirs/data/applications/myapp5.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/default-last-used/.dirs/data/applications/nosuchapp.desktop' 1938s # removing '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/default-last-used/.dirs/data/applications/mimeapps.list' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/default-last-used/.dirs/data/applications/mimeinfo.cache' 1938s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_SP6ZB3/appinfo/mime/default-last-used/.dirs/config 1938s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_SP6ZB3/appinfo/mime/scheme-handler/.dirs/config to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/default-last-used/.dirs/config 1938s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_SP6ZB3/appinfo/mime/default-last-used/.dirs/config 1938s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_SP6ZB3/appinfo/mime/default-last-used/.dirs/config 1938s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_SP6ZB3/appinfo/mime/default-last-used/.dirs/config 1938s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_SP6ZB3/appinfo/mime/default-last-used/.dirs/config 1938s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_SP6ZB3/appinfo/mime/default-last-used/.dirs/config 1938s ok 6 /appinfo/mime/default-last-used 1938s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/ignore-nonexisting/.dirs/home 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/ignore-nonexisting/.dirs/cache 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/ignore-nonexisting/.dirs/system-config1:/tmp/test_mimeapps_SP6ZB3/appinfo/mime/ignore-nonexisting/.dirs/system-config2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/ignore-nonexisting/.dirs/config 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/ignore-nonexisting/.dirs/system-data1:/tmp/test_mimeapps_SP6ZB3/appinfo/mime/ignore-nonexisting/.dirs/system-data2 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/ignore-nonexisting/.dirs/data 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/ignore-nonexisting/.dirs/state 1938s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/ignore-nonexisting/.dirs/runtime 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/ignore-nonexisting/.dirs/system-data1/applications' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/ignore-nonexisting/.dirs/system-data1/applications/mimeapps.list' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/ignore-nonexisting/.dirs/data/applications' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp2.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp3.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp4.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp5.desktop' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/nosuchapp.desktop' 1938s # removing '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/mimeapps.list' 1938s # creating '/tmp/test_mimeapps_SP6ZB3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/mimeinfo.cache' 1938s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_SP6ZB3/appinfo/mime/default-last-used/.dirs/config to /tmp/test_mimeapps_SP6ZB3/appinfo/mime/ignore-nonexisting/.dirs/config 1938s ok 7 /appinfo/mime/ignore-nonexisting 1938s # End of mime tests 1938s # End of appinfo tests 1938s ok - glib/mimeapps.test 1938s # Running test: glib/objects-refcount1.test 1938s TAP version 14 1938s # random seed: R02S7f6a1d89e0e3ebf2e2d8a535d136b325 1938s 1..1 1938s # Start of gobject tests 1938s # Start of refcount tests 1938s # init 0xc366ee8 1938s # 1938s # init 0xc366fc8 1938s # 1941s # Executing: glib/objects-refcount1.test 1943s # dispose 0xc366ee8! 1943s # 1943s # dispose 0xc366fc8! 1943s # 1943s ok 1 /gobject/refcount/object-basics 1943s # slow test /gobject/refcount/object-basics executed in 5.00 secs 1943s # End of refcount tests 1943s # End of gobject tests 1943s ok - glib/objects-refcount1.test 1943s # Running test: glib/power-profile-monitor-dbus.test 1944s TAP version 13 1944s ok 1 __main__.TestPowerProfileMonitor.test_power_profile_power_saver_enabled 1944s 1..1 1944s ok - glib/power-profile-monitor-dbus.test 1944s # Running test: glib/registered-type-info.test 1944s TAP version 14 1944s # random seed: R02S9ebebcc6a6366bbd83b359a9ab3ef898 1944s 1..1 1944s # Start of registered-type-info tests 1944s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_registered-type-info_3OVGC3/registered-type-info/boxed/.dirs/home 1944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_registered-type-info_3OVGC3/registered-type-info/boxed/.dirs/cache 1944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_registered-type-info_3OVGC3/registered-type-info/boxed/.dirs/system-config1:/tmp/test_registered-type-info_3OVGC3/registered-type-info/boxed/.dirs/system-config2 1944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_registered-type-info_3OVGC3/registered-type-info/boxed/.dirs/config 1944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_registered-type-info_3OVGC3/registered-type-info/boxed/.dirs/system-data1:/tmp/test_registered-type-info_3OVGC3/registered-type-info/boxed/.dirs/system-data2 1944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_registered-type-info_3OVGC3/registered-type-info/boxed/.dirs/data 1944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_registered-type-info_3OVGC3/registered-type-info/boxed/.dirs/state 1944s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_registered-type-info_3OVGC3/registered-type-info/boxed/.dirs/runtime 1944s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1944s # /registered-type-info/boxed summary: Test various boxed and non-boxed types for GIRegisteredTypeInfo 1944s # Expecting CClosure to not be boxed 1944s # Expecting TypeCValue to not be boxed 1944s # Expecting InitiallyUnownedClass to not be boxed 1944s # Expecting BookmarkFile to be boxed 1944s # Expecting Closure to be boxed 1944s # Expecting Object to not be boxed 1944s ok 1 /registered-type-info/boxed 1944s # End of registered-type-info tests 1944s ok - glib/registered-type-info.test 1944s # Running test: glib/refcount-macro.test 1944s TAP version 14 1944s # random seed: R02S00f2e7da846a97c103b077312c07b5d0 1944s 1..4 1944s # Start of refcount tests 1944s ok 1 /refcount/grefcount 1944s ok 2 /refcount/gatomicrefcount 1944s # Start of grefcount tests 1944s ok 3 /refcount/grefcount/saturation 1944s # End of grefcount tests 1944s # Start of gatomicrefcount tests 1944s ok 4 /refcount/gatomicrefcount/saturation 1944s # End of gatomicrefcount tests 1944s # End of refcount tests 1944s ok - glib/refcount-macro.test 1944s # Running test: glib/refstring.test 1944s TAP version 14 1944s # random seed: R02Sd0e8845cdd43e712a7efbcf866426644 1944s 1..8 1944s # Start of refstring tests 1944s # s = 'hello, world' (0x109eaf48) 1944s ok 1 /refstring/base 1944s ok 2 /refstring/length 1944s ok 3 /refstring/length-auto 1944s ok 4 /refstring/length-nuls 1944s # s = 'hello, world' (0x109eaf98) 1944s # p = s = 'hello, world' (0x109eaf98) 1944s # releasing p[0x109eaf98] ('hello, world') 1944s # p = 'goodbye, world' (0x109eb0a8) 1944s # releasing p[0x109eb0a8] ('goodbye, world') 1944s # releasing s[0x109eaf98] ('hello, world') 1944s ok 5 /refstring/intern 1944s # /refstring/hash_equal summary: Test g_ref_string_equal() in GHashTable 1944s ok 6 /refstring/hash_equal 1944s # /refstring/equal summary: Test g_ref_string_equal() standalone 1944s ok 7 /refstring/equal 1945s ok 8 /refstring/intern-thread-safety 1945s # slow test /refstring/intern-thread-safety executed in 0.74 secs 1945s # End of refstring tests 1945s ok - glib/refstring.test 1945s # Running test: glib/thread-pool-slow.test 1945s TAP version 14 1945s # random seed: R02S19fedeb9a5c1f6ed9da53746c4f68e1c 1945s 1..7 1945s # Start of threadpool tests 1945s ok 1 /threadpool/functions 1945s ok 2 /threadpool/stop-unused 1945s # slow test /threadpool/stop-unused executed in 0.51 secs 1945s ok 3 /threadpool/pools 1945s # [unsorted] ===> pushed new thread with id:81, number of threads:1, unprocessed:1 1945s # [unsorted] ===> pushed new thread with id:85, number of threads:2, unprocessed:2 1945s # [unsorted] ===> pushed new thread with id:97, number of threads:3, unprocessed:3 1945s # [unsorted] ===> pushed new thread with id:32, number of threads:4, unprocessed:4 1945s # [unsorted] ===> pushed new thread with id:28, number of threads:5, unprocessed:5 1945s # [unsorted] ===> pushed new thread with id:26, number of threads:6, unprocessed:6 1945s # [unsorted] ===> pushed new thread with id:100, number of threads:7, unprocessed:7 1945s # [unsorted] ===> pushed new thread with id:72, number of threads:8, unprocessed:8 1945s # [unsorted] ===> pushed new thread with id:2, number of threads:9, unprocessed:9 1945s # [unsorted] ===> pushed new thread with id:34, number of threads:10, unprocessed:1 1945s # [unsorted] ===> pushed new thread with id:19, number of threads:10, unprocessed:2 1945s # [unsorted] ===> pushed new thread with id:57, number of threads:10, unprocessed:3 1945s # [unsorted] ===> pushed new thread with id:70, number of threads:10, unprocessed:4 1945s # [unsorted] ===> pushed new thread with id:72, number of threads:10, unprocessed:5 1945s # [unsorted] ===> pushed new thread with id:2, number of threads:10, unprocessed:6 1945s # [unsorted] ===> pushed new thread with id:3, number of threads:10, unprocessed:7 1945s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:8 1945s # [unsorted] ===> pushed new thread with id:10, number of threads:10, unprocessed:9 1945s # [unsorted] ===> pushed new thread with id:53, number of threads:10, unprocessed:10 1945s # [unsorted] ===> pushed new thread with id:33, number of threads:10, unprocessed:10 1945s # [unsorted] ===> pushed new thread with id:87, number of threads:10, unprocessed:11 1945s # [unsorted] ===> pushed new thread with id:59, number of threads:10, unprocessed:12 1945s # [unsorted] ===> pushed new thread with id:82, number of threads:10, unprocessed:13 1945s # [unsorted] ===> pushed new thread with id:56, number of threads:10, unprocessed:14 1945s # [unsorted] ===> pushed new thread with id:83, number of threads:10, unprocessed:15 1945s # [unsorted] ===> pushed new thread with id:5, number of threads:10, unprocessed:16 1945s # [unsorted] ===> pushed new thread with id:93, number of threads:10, unprocessed:17 1945s # [unsorted] ===> pushed new thread with id:41, number of threads:10, unprocessed:18 1945s # [unsorted] ===> pushed new thread with id:10, number of threads:10, unprocessed:19 1945s # [unsorted] ===> pushed new thread with id:54, number of threads:10, unprocessed:20 1945s # [unsorted] ===> pushed new thread with id:63, number of threads:10, unprocessed:21 1945s # [unsorted] ===> pushed new thread with id:69, number of threads:10, unprocessed:22 1945s # [unsorted] ===> pushed new thread with id:69, number of threads:10, unprocessed:23 1945s # [unsorted] ===> pushed new thread with id:91, number of threads:10, unprocessed:24 1945s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:25 1945s # [unsorted] ===> pushed new thread with id:100, number of threads:10, unprocessed:26 1945s # [unsorted] ===> pushed new thread with id:64, number of threads:10, unprocessed:27 1945s # [unsorted] ===> pushed new thread with id:15, number of threads:10, unprocessed:28 1945s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:29 1945s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:30 1945s # [unsorted] ===> pushed new thread with id:33, number of threads:10, unprocessed:31 1945s # [unsorted] ===> pushed new thread with id:61, number of threads:10, unprocessed:32 1945s # [unsorted] ===> pushed new thread with id:63, number of threads:10, unprocessed:33 1945s # [unsorted] ===> pushed new thread with id:89, number of threads:10, unprocessed:34 1945s # [unsorted] ===> pushed new thread with id:91, number of threads:10, unprocessed:35 1945s # [unsorted] ===> pushed new thread with id:21, number of threads:10, unprocessed:36 1945s # [unsorted] ===> pushed new thread with id:30, number of threads:10, unprocessed:37 1945s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:38 1945s # [unsorted] ===> pushed new thread with id:36, number of threads:10, unprocessed:39 1945s # [unsorted] ===> pushed new thread with id:82, number of threads:10, unprocessed:40 1945s # [unsorted] ===> pushed new thread with id:49, number of threads:10, unprocessed:41 1945s # [unsorted] ===> pushed new thread with id:9, number of threads:10, unprocessed:42 1945s # [unsorted] ===> pushed new thread with id:41, number of threads:10, unprocessed:43 1945s # [unsorted] ===> pushed new thread with id:87, number of threads:10, unprocessed:44 1945s # [unsorted] ===> pushed new thread with id:86, number of threads:10, unprocessed:45 1945s # [unsorted] ===> pushed new thread with id:57, number of threads:10, unprocessed:46 1945s # [unsorted] ===> pushed new thread with id:15, number of threads:10, unprocessed:47 1945s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:48 1945s # [unsorted] ===> pushed new thread with id:53, number of threads:10, unprocessed:49 1945s # [unsorted] ===> pushed new thread with id:61, number of threads:10, unprocessed:50 1945s # [unsorted] ===> pushed new thread with id:95, number of threads:10, unprocessed:51 1945s # [unsorted] ===> pushed new thread with id:83, number of threads:10, unprocessed:52 1945s # [unsorted] ===> pushed new thread with id:34, number of threads:10, unprocessed:53 1945s # [unsorted] ===> pushed new thread with id:84, number of threads:10, unprocessed:54 1945s # [unsorted] ===> pushed new thread with id:46, number of threads:10, unprocessed:55 1945s # [unsorted] ===> pushed new thread with id:5, number of threads:10, unprocessed:56 1945s # [unsorted] ===> pushed new thread with id:59, number of threads:10, unprocessed:57 1945s # [unsorted] ===> pushed new thread with id:2, number of threads:10, unprocessed:58 1945s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:59 1945s # [unsorted] ===> pushed new thread with id:58, number of threads:10, unprocessed:60 1945s # [unsorted] ===> pushed new thread with id:84, number of threads:10, unprocessed:61 1945s # [unsorted] ===> pushed new thread with id:33, number of threads:10, unprocessed:62 1945s # [unsorted] ===> pushed new thread with id:45, number of threads:10, unprocessed:63 1945s # [unsorted] ===> pushed new thread with id:15, number of threads:10, unprocessed:64 1945s # [unsorted] ===> pushed new thread with id:62, number of threads:10, unprocessed:65 1945s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:66 1945s # [unsorted] ===> pushed new thread with id:21, number of threads:10, unprocessed:67 1945s # [unsorted] ===> pushed new thread with id:55, number of threads:10, unprocessed:68 1945s # [unsorted] ===> pushed new thread with id:35, number of threads:10, unprocessed:69 1945s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:70 1945s # [unsorted] ===> pushed new thread with id:21, number of threads:10, unprocessed:71 1945s # [unsorted] ===> pushed new thread with id:40, number of threads:10, unprocessed:72 1945s # [unsorted] ===> pushed new thread with id:72, number of threads:10, unprocessed:73 1945s # [unsorted] ===> pushed new thread with id:76, number of threads:10, unprocessed:74 1945s # [unsorted] ===> pushed new thread with id:78, number of threads:10, unprocessed:75 1945s # [unsorted] ===> pushed new thread with id:80, number of threads:10, unprocessed:76 1945s # [unsorted] ===> pushed new thread with id:69, number of threads:10, unprocessed:77 1945s # [unsorted] ===> pushed new thread with id:82, number of threads:10, unprocessed:78 1945s # [unsorted] ===> pushed new thread with id:16, number of threads:10, unprocessed:79 1945s # [unsorted] ===> pushed new thread with id:30, number of threads:10, unprocessed:80 1945s # [unsorted] ===> pushed new thread with id:24, number of threads:10, unprocessed:81 1945s # [unsorted] ===> pushed new thread with id:93, number of threads:10, unprocessed:82 1945s # [unsorted] ===> pushed new thread with id:14, number of threads:10, unprocessed:83 1945s # [unsorted] ===> pushed new thread with id:58, number of threads:10, unprocessed:84 1945s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:85 1945s # [unsorted] ===> pushed new thread with id:80, number of threads:10, unprocessed:86 1945s # [unsorted] ===> pushed new thread with id:64, number of threads:10, unprocessed:87 1945s # [unsorted] ===> pushed new thread with id:19, number of threads:10, unprocessed:88 1945s # [unsorted] ===> pushed new thread with id:22, number of threads:10, unprocessed:89 1945s # [unsorted] ===> pushed new thread with id:24, number of threads:10, unprocessed:90 1945s ok 4 /threadpool/no-sort 1945s # [ sorted] ===> pushed new thread with id:88, number of threads:0, unprocessed:1 1945s # [ sorted] ===> pushed new thread with id:7, number of threads:0, unprocessed:2 1945s # [ sorted] ===> pushed new thread with id:65, number of threads:0, unprocessed:3 1945s # [ sorted] ===> pushed new thread with id:24, number of threads:0, unprocessed:4 1945s # [ sorted] ===> pushed new thread with id:82, number of threads:0, unprocessed:5 1945s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:6 1945s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:7 1945s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:8 1945s # [ sorted] ===> pushed new thread with id:58, number of threads:0, unprocessed:9 1945s # [ sorted] ===> pushed new thread with id:38, number of threads:0, unprocessed:10 1945s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:11 1945s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:12 1945s # [ sorted] ===> pushed new thread with id:23, number of threads:0, unprocessed:13 1945s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:14 1945s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:15 1945s # [ sorted] ===> pushed new thread with id:87, number of threads:0, unprocessed:16 1945s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:17 1945s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:18 1945s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:19 1945s # [ sorted] ===> pushed new thread with id:7, number of threads:0, unprocessed:20 1945s # [ sorted] ===> pushed new thread with id:69, number of threads:0, unprocessed:21 1945s # [ sorted] ===> pushed new thread with id:85, number of threads:0, unprocessed:22 1945s # [ sorted] ===> pushed new thread with id:43, number of threads:0, unprocessed:23 1945s # [ sorted] ===> pushed new thread with id:53, number of threads:0, unprocessed:24 1945s # [ sorted] ===> pushed new thread with id:6, number of threads:0, unprocessed:25 1945s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:26 1945s # [ sorted] ===> pushed new thread with id:48, number of threads:0, unprocessed:27 1945s # [ sorted] ===> pushed new thread with id:31, number of threads:0, unprocessed:28 1945s # [ sorted] ===> pushed new thread with id:59, number of threads:0, unprocessed:29 1945s # [ sorted] ===> pushed new thread with id:43, number of threads:0, unprocessed:30 1945s # [ sorted] ===> pushed new thread with id:66, number of threads:0, unprocessed:31 1945s # [ sorted] ===> pushed new thread with id:55, number of threads:0, unprocessed:32 1945s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:33 1945s # [ sorted] ===> pushed new thread with id:46, number of threads:0, unprocessed:34 1945s # [ sorted] ===> pushed new thread with id:24, number of threads:0, unprocessed:35 1945s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:36 1945s # [ sorted] ===> pushed new thread with id:18, number of threads:0, unprocessed:37 1945s # [ sorted] ===> pushed new thread with id:54, number of threads:0, unprocessed:38 1945s # [ sorted] ===> pushed new thread with id:15, number of threads:0, unprocessed:39 1945s # [ sorted] ===> pushed new thread with id:67, number of threads:0, unprocessed:40 1945s # [ sorted] ===> pushed new thread with id:85, number of threads:0, unprocessed:41 1945s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:42 1945s # [ sorted] ===> pushed new thread with id:6, number of threads:0, unprocessed:43 1945s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:44 1945s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:45 1945s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:46 1945s # [ sorted] ===> pushed new thread with id:19, number of threads:0, unprocessed:47 1945s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:48 1945s # [ sorted] ===> pushed new thread with id:81, number of threads:0, unprocessed:49 1945s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:50 1945s # [ sorted] ===> pushed new thread with id:94, number of threads:0, unprocessed:51 1945s # [ sorted] ===> pushed new thread with id:44, number of threads:0, unprocessed:52 1945s # [ sorted] ===> pushed new thread with id:3, number of threads:0, unprocessed:53 1945s # [ sorted] ===> pushed new thread with id:13, number of threads:0, unprocessed:54 1945s # [ sorted] ===> pushed new thread with id:75, number of threads:0, unprocessed:55 1945s # [ sorted] ===> pushed new thread with id:44, number of threads:0, unprocessed:56 1945s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:57 1945s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:58 1945s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:59 1945s # [ sorted] ===> pushed new thread with id:7, number of threads:0, unprocessed:60 1945s # [ sorted] ===> pushed new thread with id:47, number of threads:0, unprocessed:61 1945s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:62 1945s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:63 1945s # [ sorted] ===> pushed new thread with id:87, number of threads:0, unprocessed:64 1945s # [ sorted] ===> pushed new thread with id:7, number of threads:0, unprocessed:65 1945s # [ sorted] ===> pushed new thread with id:47, number of threads:0, unprocessed:66 1945s # [ sorted] ===> pushed new thread with id:62, number of threads:0, unprocessed:67 1945s # [ sorted] ===> pushed new thread with id:33, number of threads:0, unprocessed:68 1945s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:69 1945s # [ sorted] ===> pushed new thread with id:12, number of threads:0, unprocessed:70 1945s # [ sorted] ===> pushed new thread with id:30, number of threads:0, unprocessed:71 1945s # [ sorted] ===> pushed new thread with id:48, number of threads:0, unprocessed:72 1945s # [ sorted] ===> pushed new thread with id:9, number of threads:0, unprocessed:73 1945s # [ sorted] ===> pushed new thread with id:75, number of threads:0, unprocessed:74 1945s # [ sorted] ===> pushed new thread with id:44, number of threads:0, unprocessed:75 1945s # [ sorted] ===> pushed new thread with id:95, number of threads:0, unprocessed:76 1945s # [ sorted] ===> pushed new thread with id:83, number of threads:0, unprocessed:77 1945s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:78 1945s # [ sorted] ===> pushed new thread with id:90, number of threads:0, unprocessed:79 1945s # [ sorted] ===> pushed new thread with id:79, number of threads:0, unprocessed:80 1945s # [ sorted] ===> pushed new thread with id:69, number of threads:0, unprocessed:81 1945s # [ sorted] ===> pushed new thread with id:38, number of threads:0, unprocessed:82 1945s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:83 1945s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:84 1945s # [ sorted] ===> pushed new thread with id:75, number of threads:0, unprocessed:85 1945s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:86 1945s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:87 1945s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:88 1945s # [ sorted] ===> pushed new thread with id:19, number of threads:0, unprocessed:89 1945s # [ sorted] ===> pushed new thread with id:94, number of threads:0, unprocessed:90 1945s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:91 1945s # [ sorted] ===> pushed new thread with id:97, number of threads:0, unprocessed:92 1945s # [ sorted] ===> pushed new thread with id:9, number of threads:0, unprocessed:93 1945s # [ sorted] ===> pushed new thread with id:95, number of threads:0, unprocessed:94 1945s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:95 1945s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:96 1945s # [ sorted] ===> pushed new thread with id:64, number of threads:0, unprocessed:97 1945s # [ sorted] ===> pushed new thread with id:7, number of threads:0, unprocessed:98 1945s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:99 1945s # [ sorted] ===> pushed new thread with id:96, number of threads:0, unprocessed:100 1945s # Starting thread pool processing 1945s ok 5 /threadpool/sort 1946s ok 6 /threadpool/stop-unused-multiple 1946s # slow test /threadpool/stop-unused-multiple executed in 0.51 secs 1946s # Pool idle thread count: 0, unprocessed jobs: 45 1946s # Pool idle thread count: 0, unprocessed jobs: 0 1946s # Pool idle thread count: 0, unprocessed jobs: 0 1946s # Executing: glib/thread-pool-slow.test 1947s # Pool idle thread count: 10, unprocessed jobs: 0 1947s # Pool idle thread count: 10, unprocessed jobs: 0 1947s # Pool idle thread count: 10, unprocessed jobs: 0 1947s # Pool idle thread count: 10, unprocessed jobs: 0 1948s # Pool idle thread count: 10, unprocessed jobs: 0 1948s # Pool idle thread count: 10, unprocessed jobs: 0 1948s # Pool idle thread count: 10, unprocessed jobs: 0 1948s # Pool idle thread count: 10, unprocessed jobs: 0 1949s # Pool idle thread count: 10, unprocessed jobs: 0 1949s # Pool idle thread count: 10, unprocessed jobs: 0 1949s # Pool idle thread count: 10, unprocessed jobs: 0 1949s # Pool idle thread count: 10, unprocessed jobs: 0 1950s # Pool idle thread count: 10, unprocessed jobs: 0 1950s # Pool idle thread count: 10, unprocessed jobs: 0 1950s # Pool idle thread count: 10, unprocessed jobs: 0 1950s # Pool idle thread count: 10, unprocessed jobs: 0 1951s # Pool idle thread count: 10, unprocessed jobs: 0 1951s # Pool idle thread count: 10, unprocessed jobs: 0 1951s # Pool idle thread count: 10, unprocessed jobs: 0 1951s # Pool idle thread count: 10, unprocessed jobs: 0 1951s # Executing: glib/thread-pool-slow.test 1952s # Pool idle thread count: 10, unprocessed jobs: 0 1952s # Pool idle thread count: 10, unprocessed jobs: 0 1952s # Pool idle thread count: 10, unprocessed jobs: 0 1952s # Pool idle thread count: 10, unprocessed jobs: 0 1953s # Pool idle thread count: 10, unprocessed jobs: 0 1953s # Pool idle thread count: 10, unprocessed jobs: 0 1953s # Pool idle thread count: 10, unprocessed jobs: 0 1953s # Pool idle thread count: 10, unprocessed jobs: 0 1954s # Pool idle thread count: 10, unprocessed jobs: 0 1954s # Pool idle thread count: 10, unprocessed jobs: 0 1954s # Pool idle thread count: 10, unprocessed jobs: 0 1954s # Pool idle thread count: 10, unprocessed jobs: 0 1955s # Pool idle thread count: 10, unprocessed jobs: 2 1955s # Pool idle thread count: 8, unprocessed jobs: 0 1955s # Pool idle thread count: 8, unprocessed jobs: 0 1955s # Pool idle thread count: 8, unprocessed jobs: 0 1955s # Pool idle thread count: 10, unprocessed jobs: 0 1955s # Pool idle thread count: 10, unprocessed jobs: 0 1956s # Pool idle thread count: 10, unprocessed jobs: 0 1956s # Pool idle thread count: 10, unprocessed jobs: 0 1956s # Pool idle thread count: 10, unprocessed jobs: 0 1956s # Pool idle thread count: 10, unprocessed jobs: 0 1956s # Executing: glib/thread-pool-slow.test 1957s # Pool idle thread count: 2, unprocessed jobs: 0 1957s # Pool idle thread count: 2, unprocessed jobs: 0 1957s # Pool idle thread count: 2, unprocessed jobs: 0 1957s # Pool idle thread count: 2, unprocessed jobs: 0 1958s # Pool idle thread count: 2, unprocessed jobs: 0 1958s # Pool idle thread count: 2, unprocessed jobs: 0 1958s # Pool idle thread count: 2, unprocessed jobs: 0 1958s # Pool idle thread count: 2, unprocessed jobs: 0 1959s # Pool idle thread count: 2, unprocessed jobs: 0 1959s # Pool idle thread count: 2, unprocessed jobs: 0 1959s # Pool idle thread count: 2, unprocessed jobs: 0 1959s # Pool idle thread count: 2, unprocessed jobs: 0 1960s # Pool idle thread count: 2, unprocessed jobs: 0 1960s # Pool idle thread count: 2, unprocessed jobs: 0 1960s # Pool idle thread count: 2, unprocessed jobs: 0 1960s # Pool idle thread count: 2, unprocessed jobs: 0 1961s # Pool idle thread count: 2, unprocessed jobs: 0 1961s # Pool idle thread count: 2, unprocessed jobs: 0 1961s # Pool idle thread count: 2, unprocessed jobs: 0 1961s # Pool idle thread count: 2, unprocessed jobs: 0 1961s # Executing: glib/thread-pool-slow.test 1962s # Pool idle thread count: 2, unprocessed jobs: 0 1962s # Pool idle thread count: 2, unprocessed jobs: 0 1962s # Pool idle thread count: 2, unprocessed jobs: 0 1962s # Pool idle thread count: 2, unprocessed jobs: 0 1963s # Pool idle thread count: 2, unprocessed jobs: 0 1963s # Pool idle thread count: 2, unprocessed jobs: 0 1963s # Pool idle thread count: 2, unprocessed jobs: 0 1963s # Pool idle thread count: 2, unprocessed jobs: 0 1964s # Pool idle thread count: 2, unprocessed jobs: 0 1964s # Pool idle thread count: 2, unprocessed jobs: 0 1964s # Pool idle thread count: 2, unprocessed jobs: 0 1964s # Pool idle thread count: 2, unprocessed jobs: 0 1965s # Pool idle thread count: 2, unprocessed jobs: 0 1965s # Pool idle thread count: 2, unprocessed jobs: 0 1965s ok 7 /threadpool/idle-time 1965s # slow test /threadpool/idle-time executed in 19.53 secs 1965s # End of threadpool tests 1965s ok - glib/thread-pool-slow.test 1965s # Running test: glib/types.test 1965s ok - glib/types.test 1965s # Running test: glib/gsocketclient-slow.test 1965s TAP version 14 1965s # random seed: R02S455d1cdd9d419f29794be61ee5402124 1965s 1..1 1965s # Start of types tests 1965s ok 1 /types/basic_types 1965s # End of types tests 1965s TAP version 14 1965s # random seed: R02Sd55a150c35d3edc7fcbcbda0f7bc28be 1965s 1..4 1965s # Start of socket-client tests 1965s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3184 1965s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1965s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x1134aff0 and GSocketClientAsyncConnectData 0x11341810 1965s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1965s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1965s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x11346960 for GSocketClientAsyncConnectData 0x11341810 1965s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1966s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 1966s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1966s # GLib-GIO-DEBUG: GSocketClient: Connection attempt failed: Connection refused 1966s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1966s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1966s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x11346960 for GSocketClientAsyncConnectData 0x11341810 1966s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1966s # Executing: glib/gsocketclient-slow.test 1967s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1967s # GLib-GIO-DEBUG: GSocketClient: Connection attempt failed: Connection refused 1967s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Could not connect to localhost: Connection refused 1967s ok 1 /socket-client/connection-fail 1967s # slow test /socket-client/connection-fail executed in 1.20 secs 1967s # Start of happy-eyeballs tests 1967s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x11346560 and GSocketClientAsyncConnectData 0x11341810 1967s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1967s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1967s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x11346960 for GSocketClientAsyncConnectData 0x11341810 1967s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1967s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 1967s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1967s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1967s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1967s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1967s ok 2 /socket-client/happy-eyeballs/slow 1967s # slow test /socket-client/happy-eyeballs/slow executed in 0.60 secs 1967s # Start of cancellation tests 1967s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x11348b78 and GSocketClientAsyncConnectData 0x11346008 1967s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1967s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Operation was cancelled 1967s ok 3 /socket-client/happy-eyeballs/cancellation/instant 1967s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x11346050 and GSocketClientAsyncConnectData 0x1133f948 1967s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1967s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1967s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x11346910 for GSocketClientAsyncConnectData 0x1133f948 1967s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1968s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 1968s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1968s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1968s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1968s # GLib-GIO-DEBUG: GSocketClient: Connection cancelled! 1968s ok 4 /socket-client/happy-eyeballs/cancellation/delayed 1968s # slow test /socket-client/happy-eyeballs/cancellation/delayed executed in 0.60 secs 1968s # End of cancellation tests 1968s # End of happy-eyeballs tests 1968s # End of socket-client tests 1968s ok - glib/gsocketclient-slow.test 1968s # Running test: glib/override.test 1968s TAP version 14 1968s # random seed: R02Sacc602b3fcea659a21cd03d82125ee54 1968s 1..1 1968s # Start of gobject tests 1968s # *** emitting foo on a TestA instance 1968s # Expecting: TestA::foo,TestI::foo 1968s # Got: TestA::foo,TestI::foo 1968s # *** emitting bar on a TestA instance 1968s # Expecting: TestA::bar 1968s # Got: TestA::bar 1968s # *** emitting baz on a TestA instance 1968s # Expecting: TestA::baz 1968s # Got: TestA::baz 1968s # *** emitting foo on a TestB instance 1968s # Expecting: TestB::foo,TestA::foo,TestI::foo 1968s # Got: TestB::foo,TestA::foo,TestI::foo 1968s # *** emitting bar on a TestB instance 1968s # Expecting: TestB::bar,TestA::bar 1968s # Got: TestB::bar,TestA::bar 1968s # *** emitting baz on a TestB instance 1968s # Expecting: TestB::baz,TestA::baz 1968s # Got: TestB::baz,TestA::baz 1968s # *** emitting foo on a TestC instance 1968s # Expecting: TestC::foo,TestB::foo,TestA::foo,TestI::foo 1968s # Got: TestC::foo,TestB::foo,TestA::foo,TestI::foo 1968s # *** emitting bar on a TestC instance 1968s # Expecting: TestC::bar,TestB::bar,TestA::bar 1968s # Got: TestC::bar,TestB::bar,TestA::bar 1968s # *** emitting baz on a TestC instance 1968s # Expecting: TestC::baz,TestB::baz,TestA::baz 1968s # Got: TestC::baz,TestB::baz,TestA::baz 1968s ok 1 /gobject/override 1968s # End of gobject tests 1968s ok - glib/override.test 1968s # Running test: glib/node.test 1968s TAP version 14 1968s # random seed: R02S7ae0b9898272d945b6af4213c02a5fca 1968s 1..6 1968s # Start of node tests 1968s ok 1 /node/allocation 1968s ok 2 /node/construction 1968s ok 3 /node/traversal 1968s ok 4 /node/misc 1968s ok 5 /node/unlink 1968s ok 6 /node/copy 1968s # End of node tests 1968s ok - glib/node.test 1968s # Running test: glib/buffered-input-stream.test 1968s TAP version 14 1968s # random seed: R02S63c564ba241f2e3bd56e083ab08d01c4 1968s 1..10 1968s # Start of buffered-input-stream tests 1968s ok 1 /buffered-input-stream/peek 1968s ok 2 /buffered-input-stream/peek-buffer 1968s ok 3 /buffered-input-stream/set-buffer-size 1968s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=562393 1968s ok 4 /buffered-input-stream/read-byte 1968s ok 5 /buffered-input-stream/read 1968s ok 6 /buffered-input-stream/read-async 1968s ok 7 /buffered-input-stream/skip 1968s ok 8 /buffered-input-stream/skip-async 1968s ok 9 /buffered-input-stream/seek 1968s # End of buffered-input-stream tests 1968s # Start of filter-input-stream tests 1968s ok 10 /filter-input-stream/close 1968s # End of filter-input-stream tests 1968s ok - glib/buffered-input-stream.test 1968s # Running test: glib/gapplication.test 1968s TAP version 14 1968s # random seed: R02Sb13de155c092806069f6da12414f8b9d 1968s 1..25 1968s # Start of gapplication tests 1968s ok 1 /gapplication/no-dbus 1968s ok 2 /gapplication/no-appid 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s ok 3 /gapplication/properties 1968s ok 4 /gapplication/app-id 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s ok 5 /gapplication/quit 1968s ok 6 /gapplication/registered 1968s ok 7 /gapplication/local-actions 1968s ok 8 /gapplication/local-command-line 1968s ok 9 /gapplication/resource-path 1968s ok 10 /gapplication/test-help 1968s ok 11 /gapplication/command-line-done 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s ok 12 /gapplication/test-busy 1968s ok 13 /gapplication/test-handle-local-options1 1968s ok 14 /gapplication/test-handle-local-options2 1968s ok 15 /gapplication/test-handle-local-options3 1968s ok 16 /gapplication/api 1968s ok 17 /gapplication/version 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1968s # launching subprocess 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s ok 18 /gapplication/replace 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1968s # launching subprocess 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s ok 19 /gapplication/no-replace 1968s # slow test /gapplication/no-replace executed in 0.51 secs 1968s # Start of command-line tests 1968s # /gapplication/command-line/arguments summary: Test HANDLES_COMMAND_LINE locally with a ->local_command_line vfunc which forces g_application_run() to take a fallback error handling path 1968s ok 20 /gapplication/command-line/arguments 1968s # End of command-line tests 1968s # Start of dbus tests 1968s # /gapplication/dbus/activate summary: Test that calling the Activate D-Bus method works 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1968s # Message 0 1968s # Message 1 1968s # Message 2 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s ok 21 /gapplication/dbus/activate 1968s # /gapplication/dbus/open summary: Test that calling the Open D-Bus method works 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1968s # Message 0 1968s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1968s # Message 1 1968s # Message 2 1968s # Message 3 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s ok 22 /gapplication/dbus/open 1968s # /gapplication/dbus/command-line summary: Test that calling the CommandLine D-Bus method works 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1968s # Message 0 1968s # Message 1 1968s # Message 2 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s ok 23 /gapplication/dbus/command-line 1968s # /gapplication/dbus/command-line-done summary: Test that GDBusCommandLine.done() works 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s ok 24 /gapplication/dbus/command-line-done 1968s # /gapplication/dbus/activate-action summary: Test that calling the ActivateAction D-Bus method works 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1968s # Message 0 1968s # Message 1 1968s # Message 2 1968s # Message 3 1968s # Message 4 1968s # Message 5 1968s # Message 6 1968s # Message 7 1968s # Message 8 1968s # Message 9 1968s # Message 10 1968s # Message 11 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1968s ok 25 /gapplication/dbus/activate-action 1968s # End of dbus tests 1968s # End of gapplication tests 1969s ok - glib/gapplication.test 1969s # Running test: glib/flags.test 1969s TAP version 14 1969s # random seed: R02S7984828758ae3291571f60a7fcd10681 1969s 1..1 1969s # Start of gobject tests 1969s # Start of flags tests 1969s ok 1 /gobject/flags/validate 1969s # End of flags tests 1969s # End of gobject tests 1969s ok - glib/flags.test 1969s # Running test: glib/queue.test 1969s TAP version 14 1969s # random seed: R02S84b21e7e8903d11be4b78398073e71ce 1969s 1..12 1969s # Start of queue tests 1969s ok 1 /queue/basic 1969s ok 2 /queue/copy 1969s ok 3 /queue/off-by-one 1969s ok 4 /queue/find-custom 1969s ok 5 /queue/static 1969s ok 6 /queue/clear 1969s ok 7 /queue/free-full 1969s ok 8 /queue/clear-full 1969s ok 9 /queue/insert-sibling-link 1969s ok 10 /queue/push-nth-link 1969s # Start of clear-full tests 1969s ok 11 /queue/clear-full/noop 1969s # End of clear-full tests 1969s # Start of random tests 1969s ok 12 /queue/random/seed:1859355354 1969s # End of random tests 1969s # End of queue tests 1969s ok - glib/queue.test 1969s # Running test: glib/tls-database.test 1969s TAP version 14 1969s # random seed: R02Sb2003332c3467d71aa47232e8bc2ba12 1969s 1..1 1969s # Start of tls-backend tests 1969s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ‘gio-tls-backend’ 1969s ok 1 /tls-backend/set-default-database 1969s # End of tls-backend tests 1969s ok - glib/tls-database.test 1969s # Running test: glib/task.test 1969s TAP version 14 1969s # random seed: R02S1ac6bd5f8dc42cd0a204f04a4f711ea7 1969s 1..36 1969s # Start of gtask tests 1969s ok 1 /gtask/basic 1969s ok 2 /gtask/error 1969s ok 3 /gtask/error-literal 1969s ok 4 /gtask/error-literal-from-variable 1969s ok 5 /gtask/return-from-same-iteration 1969s ok 6 /gtask/return-from-toplevel 1969s ok 7 /gtask/return-from-anon-thread 1969s ok 8 /gtask/return-from-wrong-thread 1969s ok 9 /gtask/no-callback 1969s ok 10 /gtask/report-error 1969s ok 11 /gtask/priority 1969s ok 12 /gtask/name 1969s ok 13 /gtask/static-name 1969s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1608 1969s ok 14 /gtask/asynchronous-cancellation 1969s ok 15 /gtask/check-cancellable 1969s ok 16 /gtask/return-if-cancelled 1969s ok 17 /gtask/run-in-thread 1969s ok 18 /gtask/run-in-thread-sync 1969s ok 19 /gtask/run-in-thread-priority 1969s ok 20 /gtask/run-in-thread-nested 1970s ok 21 /gtask/run-in-thread-overflow 1970s # slow test /gtask/run-in-thread-overflow executed in 0.52 secs 1970s # GLib-GIO-DEBUG: GTask 0x63df8a8 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1970s ok 22 /gtask/return-on-cancel 1970s # GLib-GIO-DEBUG: GTask 0x639db48 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1970s # GLib-GIO-DEBUG: GTask 0x639e058 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1970s ok 23 /gtask/return-on-cancel-sync 1970s # GLib-GIO-DEBUG: GTask 0x639d0c0 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1970s ok 24 /gtask/return-on-cancel-atomic 1970s ok 25 /gtask/return-pointer 1970s ok 26 /gtask/return-value 1970s ok 27 /gtask/return-prefixed-error 1970s ok 28 /gtask/object-keepalive 1970s ok 29 /gtask/legacy-error 1970s ok 30 /gtask/finalize-without-return 1970s # Start of name tests 1970s ok 31 /gtask/name/macro-wrapper 1970s # End of name tests 1970s # Start of return tests 1970s ok 32 /gtask/return/error-first 1970s ok 33 /gtask/return/value-first 1970s # Start of in-idle tests 1970s ok 34 /gtask/return/in-idle/error-first 1970s ok 35 /gtask/return/in-idle/value-first 1970s # End of in-idle tests 1970s # End of return tests 1970s # Start of attach-source tests 1970s # /gtask/attach-source/set-name summary: Test that attaching a source to a task will set the source’s name if unset 1970s ok 36 /gtask/attach-source/set-name 1970s # End of attach-source tests 1970s # End of gtask tests 1970s ok - glib/task.test 1970s # Running test: glib/gdbus-method-invocation.test 1970s TAP version 14 1970s # random seed: R02Scb92d6ecbb938af8544e454b3e4409b7 1970s 1..1 1970s # Start of gdbus tests 1970s # Start of method-invocation tests 1970s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-method-invocation_40IEC3/gdbus/method-invocation/return/.dirs/home 1970s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-method-invocation_40IEC3/gdbus/method-invocation/return/.dirs/cache 1970s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-method-invocation_40IEC3/gdbus/method-invocation/return/.dirs/system-config1:/tmp/test_gdbus-method-invocation_40IEC3/gdbus/method-invocation/return/.dirs/system-config2 1970s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-method-invocation_40IEC3/gdbus/method-invocation/return/.dirs/config 1970s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-method-invocation_40IEC3/gdbus/method-invocation/return/.dirs/system-data1:/tmp/test_gdbus-method-invocation_40IEC3/gdbus/method-invocation/return/.dirs/system-data2 1970s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-method-invocation_40IEC3/gdbus/method-invocation/return/.dirs/data 1970s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-method-invocation_40IEC3/gdbus/method-invocation/return/.dirs/state 1970s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-method-invocation_40IEC3/gdbus/method-invocation/return/.dirs/runtime 1970s # /gdbus/method-invocation/return summary: Test calling g_dbus_method_invocation_return_*() in various ways 1970s # Calling org.freedesktop.DBus.Properties.Get 1970s # Calling org.freedesktop.DBus.Properties.Get 1970s # Calling org.freedesktop.DBus.Properties.Get 1970s # Calling org.freedesktop.DBus.Properties.Set 1970s # Calling org.freedesktop.DBus.Properties.GetAll 1970s # Calling org.example.Foo.WrongReturnType 1970s ok - glib/gdbus-method-invocation.test 1970s # Calling org.example.Foo.GetFDs 1970s # Calling org.example.Foo.GetFDs 1970s # Calling org.example.Foo.ReturnError 1970s # Calling org.example.Foo.CloseBeforeReturning 1970s ok 1 /gdbus/method-invocation/return 1970s # End of method-invocation tests 1970s # End of gdbus tests 1970s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1970s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1970s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1970s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1970s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1970s # Running test: glib/memory-settings-backend.test 1970s ok - glib/memory-settings-backend.test 1970s TAP version 14 1970s # random seed: R02Saa4e67a468c8cf996c3b876bf52e6b15 1970s 1..1 1970s # Start of memory-settings-backend tests 1970s ok 1 /memory-settings-backend/extension-point-registered 1970s # End of memory-settings-backend tests 1970s # Running test: glib/timeout.test 1970s TAP version 14 1970s # random seed: R02S12ade1e10e5175d3c6123884b28bb7d3 1970s 1..5 1970s # Start of timeout tests 1970s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642052 1971s # Executing: glib/timeout.test 1972s ok 1 /timeout/seconds 1972s # slow test /timeout/seconds executed in 2.10 secs 1974s ok 2 /timeout/seconds-once 1974s # slow test /timeout/seconds-once executed in 2.10 secs 1974s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1600 1976s ok 3 /timeout/weeks-overflow 1976s # slow test /timeout/weeks-overflow executed in 2.10 secs 1976s ok 4 /timeout/far-future-ready-time 1976s ok 5 /timeout/rounding # SKIP Not reliable on older ARM hardware 1976s # End of timeout tests 1976s ok - glib/timeout.test 1976s # Running test: glib/markup-parse.test 1976s TAP version 14 1976s # random seed: R02S0d60e721ffc8b4c8dfc9282acf2d9ad0 1976s 1..71 1976s # Start of markup tests 1976s # Start of parse tests 1976s ok 1 /markup/parse/fail-1.gmarkup 1976s ok 2 /markup/parse/fail-10.gmarkup 1976s ok 3 /markup/parse/fail-11.gmarkup 1976s ok 4 /markup/parse/fail-12.gmarkup 1976s ok 5 /markup/parse/fail-13.gmarkup 1976s ok 6 /markup/parse/fail-14.gmarkup 1976s ok - glib/markup-parse.test 1976s # Running test: glib/642026-ec.test 1976s ok 7 /markup/parse/fail-15.gmarkup 1976s ok 8 /markup/parse/fail-16.gmarkup 1976s ok 9 /markup/parse/fail-17.gmarkup 1976s ok 10 /markup/parse/fail-18.gmarkup 1976s ok 11 /markup/parse/fail-19.gmarkup 1976s ok 12 /markup/parse/fail-2.gmarkup 1976s ok 13 /markup/parse/fail-20.gmarkup 1976s ok 14 /markup/parse/fail-21.gmarkup 1976s ok 15 /markup/parse/fail-22.gmarkup 1976s ok 16 /markup/parse/fail-23.gmarkup 1976s ok 17 /markup/parse/fail-24.gmarkup 1976s ok 18 /markup/parse/fail-25.gmarkup 1976s ok 19 /markup/parse/fail-26.gmarkup 1976s ok 20 /markup/parse/fail-27.gmarkup 1976s ok 21 /markup/parse/fail-28.gmarkup 1976s ok 22 /markup/parse/fail-29.gmarkup 1976s ok 23 /markup/parse/fail-3.gmarkup 1976s ok 24 /markup/parse/fail-30.gmarkup 1976s ok 25 /markup/parse/fail-31.gmarkup 1976s ok 26 /markup/parse/fail-32.gmarkup 1976s ok 27 /markup/parse/fail-33.gmarkup 1976s ok 28 /markup/parse/fail-34.gmarkup 1976s ok 29 /markup/parse/fail-35.gmarkup 1976s ok 30 /markup/parse/fail-36.gmarkup 1976s ok 31 /markup/parse/fail-37.gmarkup 1976s ok 32 /markup/parse/fail-38.gmarkup 1976s ok 33 /markup/parse/fail-39.gmarkup 1976s ok 34 /markup/parse/fail-4.gmarkup 1976s ok 35 /markup/parse/fail-40.gmarkup 1976s ok 36 /markup/parse/fail-41.gmarkup 1976s ok 37 /markup/parse/fail-42.gmarkup 1976s ok 38 /markup/parse/fail-43.gmarkup 1976s ok 39 /markup/parse/fail-44.gmarkup 1976s ok 40 /markup/parse/fail-45.gmarkup 1976s ok 41 /markup/parse/fail-46.gmarkup 1976s ok 42 /markup/parse/fail-47.gmarkup 1976s ok 43 /markup/parse/fail-48.gmarkup 1976s ok 44 /markup/parse/fail-49.gmarkup 1976s ok 45 /markup/parse/fail-5.gmarkup 1976s ok 46 /markup/parse/fail-50.gmarkup 1976s ok 47 /markup/parse/fail-51.gmarkup 1976s ok 48 /markup/parse/fail-52.gmarkup 1976s ok 49 /markup/parse/fail-53.gmarkup 1976s ok 50 /markup/parse/fail-54.gmarkup 1976s ok 51 /markup/parse/fail-6.gmarkup 1976s ok 52 /markup/parse/fail-7.gmarkup 1976s ok 53 /markup/parse/fail-8.gmarkup 1976s ok 54 /markup/parse/fail-9.gmarkup 1976s ok 55 /markup/parse/valid-1.gmarkup 1976s ok 56 /markup/parse/valid-10.gmarkup 1976s ok 57 /markup/parse/valid-11.gmarkup 1976s ok 58 /markup/parse/valid-12.gmarkup 1976s ok 59 /markup/parse/valid-13.gmarkup 1976s ok 60 /markup/parse/valid-14.gmarkup 1976s ok 61 /markup/parse/valid-15.gmarkup 1976s ok 62 /markup/parse/valid-16.gmarkup 1976s ok 63 /markup/parse/valid-17.gmarkup 1976s ok 64 /markup/parse/valid-2.gmarkup 1976s ok 65 /markup/parse/valid-3.gmarkup 1976s ok 66 /markup/parse/valid-4.gmarkup 1976s ok 67 /markup/parse/valid-5.gmarkup 1976s ok 68 /markup/parse/valid-6.gmarkup 1976s ok 69 /markup/parse/valid-7.gmarkup 1976s ok 70 /markup/parse/valid-8.gmarkup 1976s ok 71 /markup/parse/valid-9.gmarkup 1976s # End of parse tests 1976s # End of markup tests 1976s TAP version 14 1976s # random seed: R02Sd2270d1e04f0e0ee63a08c9bb091eb33 1976s 1..1 1976s # Start of glib tests 1976s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642026 1976s ok 1 /glib/642026 1976s # End of glib tests 1976s ok - glib/642026-ec.test 1976s # Running test: glib/debugcontroller.test 1976s TAP version 14 1976s # random seed: R02S6b5dbd19fb0f5af4d3a3009643d2cca2 1976s 1..3 1976s # Start of debug-controller tests 1976s # Start of dbus tests 1976s # /debug-controller/dbus/basic summary: Smoketest for construction and setting of a #GDebugControllerDBus. 1976s # GLib-GIO-DEBUG: Debug output enabled 1976s # GLib-GIO-DEBUG: Debug output disabled 1976s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1976s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1976s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1976s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1976s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1976s ok 1 /debug-controller/dbus/basic 1976s # /debug-controller/dbus/duplicate summary: Test that creating a second #GDebugControllerDBus on the same D-Bus connection fails. 1976s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1976s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1976s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1976s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1976s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1976s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1976s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1976s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1976s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1976s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1976s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1976s ok 2 /debug-controller/dbus/duplicate 1976s # /debug-controller/dbus/properties summary: Test getting and setting properties on a #GDebugControllerDBus. 1976s ok 3 /debug-controller/dbus/properties # SKIP https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2486#note_1384102 1976s # End of dbus tests 1976s # End of debug-controller tests 1976s ok - glib/debugcontroller.test 1976s # Running test: glib/atomic.test 1976s TAP version 14 1976s # random seed: R02S61d54cdf9582d28216d904b8509b0c47 1976s 1..2 1976s # Start of atomic tests 1976s ok 1 /atomic/types 1976s # Executing: glib/atomic.test 1977s ok - glib/atomic.test 1977s ok 2 /atomic/threaded 1977s # End of atomic tests 1977s # Running test: glib/async-splice-output-stream.test 1977s TAP version 14 1977s # random seed: R02Sf11f45a7cfe61ef5e368544d782a4c82 1977s 1..5 1977s # Start of async-splice tests 1977s ok 1 /async-splice/copy-chunks 1977s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1977s ok 2 /async-splice/copy-chunks-threaded-input 1977s ok 3 /async-splice/copy-chunks-threaded-output 1977s ok 4 /async-splice/copy-chunks-threaded 1977s ok 5 /async-splice/cancelled 1977s # End of async-splice tests 1977s ok - glib/async-splice-output-stream.test 1977s # Running test: glib/hmac.test 1977s TAP version 14 1977s # random seed: R02Sf66d2c8e89db6e03479cc477f0315aca 1977s 1..37 1977s # Start of hmac tests 1977s ok 1 /hmac/sha1-1 1977s ok 2 /hmac/sha1-2 1977s ok 3 /hmac/sha1-3 1977s ok 4 /hmac/sha1-4 1977s ok 5 /hmac/sha1-5 1977s ok 6 /hmac/sha1-6 1977s ok 7 /hmac/sha1-7 1977s ok 8 /hmac/sha256-1 1977s ok 9 /hmac/sha256-2 1977s ok 10 /hmac/sha256-3 1977s ok 11 /hmac/sha256-4 1977s ok 12 /hmac/sha256-5 1977s ok - glib/hmac.test 1977s # Running test: glib/properties-refcount4.test 1977s ok - glib/properties-refcount4.test 1977s # Running test: glib/portal-support-flatpak-none.test 1977s ok - glib/portal-support-flatpak-none.test 1977s # Running test: glib/callable-info.test 1977s ok - glib/callable-info.test 1977s # Running test: glib/unix.test 1977s ok 13 /hmac/sha256-6 1977s ok 14 /hmac/sha384-1 1977s ok 15 /hmac/sha384-2 1977s ok 16 /hmac/sha384-3 1977s ok 17 /hmac/sha384-4 1977s ok 18 /hmac/sha384-5 1977s ok 19 /hmac/sha384-6 1977s ok 20 /hmac/sha512-1 1977s ok 21 /hmac/sha512-2 1977s ok 22 /hmac/sha512-3 1977s ok 23 /hmac/sha512-4 1977s ok 24 /hmac/sha512-5 1977s ok 25 /hmac/sha512-6 1977s ok 26 /hmac/md5-1 1977s ok 27 /hmac/md5-2 1977s ok 28 /hmac/md5-3 1977s ok 29 /hmac/md5-4 1977s ok 30 /hmac/md5-5 1977s ok 31 /hmac/md5-6 1977s ok 32 /hmac/md5-7 1977s ok 33 /hmac/ref-unref 1977s ok 34 /hmac/copy 1977s ok 35 /hmac/for-data 1977s ok 36 /hmac/for-string 1977s ok 37 /hmac/for-bytes 1977s # End of hmac tests 1977s TAP version 14 1977s # random seed: R02S11f8624d77f9ad1f6a66bd924763e07a 1977s 1..1 1977s # Start of gobject tests 1977s # Start of refcount tests 1977s ok 1 /gobject/refcount/properties-4 1977s # End of refcount tests 1977s # End of gobject tests 1977s TAP version 14 1977s # random seed: R02S1d2a08141c1bf838b4d19f411b4dadf7 1977s 1..1 1977s # Start of portal-support tests 1977s # Start of flatpak tests 1977s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-none_ANLBC3/portal-support/flatpak/none/.dirs/home 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-none_ANLBC3/portal-support/flatpak/none/.dirs/cache 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-none_ANLBC3/portal-support/flatpak/none/.dirs/system-config1:/tmp/test_portal-support-flatpak-none_ANLBC3/portal-support/flatpak/none/.dirs/system-config2 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-none_ANLBC3/portal-support/flatpak/none/.dirs/config 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-none_ANLBC3/portal-support/flatpak/none/.dirs/system-data1:/tmp/test_portal-support-flatpak-none_ANLBC3/portal-support/flatpak/none/.dirs/system-data2 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-none_ANLBC3/portal-support/flatpak/none/.dirs/data 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-none_ANLBC3/portal-support/flatpak/none/.dirs/state 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-none_ANLBC3/portal-support/flatpak/none/.dirs/runtime 1977s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-none_ANLBC3/portal-support/flatpak/none/.dirs/runtime/.flatpak-info 1977s ok 1 /portal-support/flatpak/none 1977s # End of flatpak tests 1977s # End of portal-support tests 1977s TAP version 14 1977s # random seed: R02S927549b8ce7244b526b94befa25ded04 1977s 1..5 1977s # Start of callable-info tests 1977s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_4WWBC3/callable-info/sync-function/.dirs/home 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_4WWBC3/callable-info/sync-function/.dirs/cache 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_4WWBC3/callable-info/sync-function/.dirs/system-config1:/tmp/test_callable-info_4WWBC3/callable-info/sync-function/.dirs/system-config2 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_4WWBC3/callable-info/sync-function/.dirs/config 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_4WWBC3/callable-info/sync-function/.dirs/system-data1:/tmp/test_callable-info_4WWBC3/callable-info/sync-function/.dirs/system-data2 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_4WWBC3/callable-info/sync-function/.dirs/data 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_4WWBC3/callable-info/sync-function/.dirs/state 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_4WWBC3/callable-info/sync-function/.dirs/runtime 1977s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1977s ok 1 /callable-info/sync-function 1977s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_4WWBC3/callable-info/async-function/.dirs/home 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_4WWBC3/callable-info/async-function/.dirs/cache 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_4WWBC3/callable-info/async-function/.dirs/system-config1:/tmp/test_callable-info_4WWBC3/callable-info/async-function/.dirs/system-config2 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_4WWBC3/callable-info/async-function/.dirs/config 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_4WWBC3/callable-info/async-function/.dirs/system-data1:/tmp/test_callable-info_4WWBC3/callable-info/async-function/.dirs/system-data2 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_4WWBC3/callable-info/async-function/.dirs/data 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_4WWBC3/callable-info/async-function/.dirs/state 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_4WWBC3/callable-info/async-function/.dirs/runtime 1977s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1977s ok 2 /callable-info/async-function 1977s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_4WWBC3/callable-info/is-method/.dirs/home 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_4WWBC3/callable-info/is-method/.dirs/cache 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_4WWBC3/callable-info/is-method/.dirs/system-config1:/tmp/test_callable-info_4WWBC3/callable-info/is-method/.dirs/system-config2 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_4WWBC3/callable-info/is-method/.dirs/config 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_4WWBC3/callable-info/is-method/.dirs/system-data1:/tmp/test_callable-info_4WWBC3/callable-info/is-method/.dirs/system-data2 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_4WWBC3/callable-info/is-method/.dirs/data 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_4WWBC3/callable-info/is-method/.dirs/state 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_4WWBC3/callable-info/is-method/.dirs/runtime 1977s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1977s ok 3 /callable-info/is-method 1977s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_4WWBC3/callable-info/static-method/.dirs/home 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_4WWBC3/callable-info/static-method/.dirs/cache 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_4WWBC3/callable-info/static-method/.dirs/system-config1:/tmp/test_callable-info_4WWBC3/callable-info/static-method/.dirs/system-config2 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_4WWBC3/callable-info/static-method/.dirs/config 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_4WWBC3/callable-info/static-method/.dirs/system-data1:/tmp/test_callable-info_4WWBC3/callable-info/static-method/.dirs/system-data2 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_4WWBC3/callable-info/static-method/.dirs/data 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_4WWBC3/callable-info/static-method/.dirs/state 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_4WWBC3/callable-info/static-method/.dirs/runtime 1977s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1977s ok 4 /callable-info/static-method 1977s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_4WWBC3/callable-info/static-vfunc/.dirs/home 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_4WWBC3/callable-info/static-vfunc/.dirs/cache 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_4WWBC3/callable-info/static-vfunc/.dirs/system-config1:/tmp/test_callable-info_4WWBC3/callable-info/static-vfunc/.dirs/system-config2 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_4WWBC3/callable-info/static-vfunc/.dirs/config 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_4WWBC3/callable-info/static-vfunc/.dirs/system-data1:/tmp/test_callable-info_4WWBC3/callable-info/static-vfunc/.dirs/system-data2 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_4WWBC3/callable-info/static-vfunc/.dirs/data 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_4WWBC3/callable-info/static-vfunc/.dirs/state 1977s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_4WWBC3/callable-info/static-vfunc/.dirs/runtime 1977s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1977s # Bug Reference: https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/361 1977s ok 5 /callable-info/static-vfunc # SKIP g-ir-scanner is not new enough 1977s # End of callable-info tests 1977s TAP version 14 1977s # random seed: R02Se1bc7023812021fd2b19903eafbb1c82 1977s 1..20 1977s # Start of glib-unix tests 1977s # /glib-unix/closefrom summary: Test g_closefrom(), g_fdwalk_set_cloexec() 1977s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3247 1977s ok 1 /glib-unix/closefrom 1977s ok 2 /glib-unix/pipe 1977s # /glib-unix/pipe-stdio-overwrite summary: Test that g_unix_open_pipe() will use the first available FD, even if it’s stdin/stdout/stderr 1977s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2795 1977s ok 3 /glib-unix/pipe-stdio-overwrite 1977s # /glib-unix/pipe-struct summary: Test GUnixPipe structure 1977s ok 4 /glib-unix/pipe-struct 1977s # /glib-unix/pipe-struct-auto summary: Test g_auto(GUnixPipe) 1977s ok 5 /glib-unix/pipe-struct-auto 1977s ok 6 /glib-unix/error 1977s ok 7 /glib-unix/nonblocking 1977s ok 8 /glib-unix/sighup 1977s # slow test /glib-unix/sighup executed in 0.50 secs 1978s ok 9 /glib-unix/sigterm 1978s # slow test /glib-unix/sigterm executed in 0.50 secs 1978s ok 10 /glib-unix/sighup_again 1978s # slow test /glib-unix/sighup_again executed in 0.50 secs 1978s ok 11 /glib-unix/sighup_add_remove 1978s ok 12 /glib-unix/sighup_nested 1980s ok 13 /glib-unix/callback_after_signal 1980s # slow test /glib-unix/callback_after_signal executed in 2.00 secs 1980s ok 14 /glib-unix/child-wait 1980s # Start of closefrom tests 1980s # Start of subprocess tests 1980s # End of subprocess tests 1980s # End of closefrom tests 1980s # Start of pipe tests 1980s # /glib-unix/pipe/fd-cloexec summary: Test that FD_CLOEXEC is still accepted as an argument to g_unix_open_pipe() 1980s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3459 1980s # GLib-DEBUG: g_unix_open_pipe() called with FD_CLOEXEC; please migrate to using O_CLOEXEC instead 1980s ok 15 /glib-unix/pipe/fd-cloexec 1980s # End of pipe tests 1980s # Start of sighup tests 1981s ok 16 /glib-unix/sighup/alternate-stack 1981s # slow test /glib-unix/sighup/alternate-stack executed in 1.00 secs 1981s # End of sighup tests 1981s # Start of sigterm tests 1981s # Executing: glib/unix.test 1982s ok 17 /glib-unix/sigterm/alternate-stack 1982s # slow test /glib-unix/sigterm/alternate-stack executed in 1.00 secs 1982s # End of sigterm tests 1982s # Start of sighup_again tests 1983s ok - glib/unix.test 1983s ok 18 /glib-unix/sighup_again/alternate-stack 1983s # slow test /glib-unix/sighup_again/alternate-stack executed in 1.00 secs 1983s # End of sighup_again tests 1983s # Start of get-passwd-entry tests 1983s # /glib-unix/get-passwd-entry/root summary: Tests that g_unix_get_passwd_entry() works for a known-existing username. 1983s # Running test: glib/memory-monitor.test 1983s ok 19 /glib-unix/get-passwd-entry/root 1983s # /glib-unix/get-passwd-entry/nonexistent summary: Tests that g_unix_get_passwd_entry() returns an error for a nonexistent username. 1983s ok 20 /glib-unix/get-passwd-entry/nonexistent 1983s # End of get-passwd-entry tests 1983s # End of glib-unix tests 1983s ok - glib/memory-monitor.test 1983s # Running test: glib/assert-msg-test.py.test 1983s TAP version 14 1983s # random seed: R02S981f1e4153b74d4f17b9e1803dcdc4fb 1983s 1..1 1983s # Start of memory-monitor tests 1983s # GLib-GIO-DEBUG: Failed to initialize portal (GMemoryMonitorPortal) for gio-memory-monitor: Not using portals 1983s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dbus (GMemoryMonitorDBus) for ‘gio-memory-monitor’ 1983s ok 1 /memory-monitor/default 1983s # End of memory-monitor tests 1983s TAP version 13 1983s ok 1 __main__.TestAssertMessage.test_gassert 1983s # assert-msg-test: /usr/libexec/installed-tests/glib/assert-msg-test 1983s # tmpdir: /tmp/tmph1hw2nkx 1983s # Running: ['/usr/libexec/installed-tests/glib/assert-msg-test'] 1983s # Return code: -6 1983s # Output: 1983s # Bail out! GLib:ERROR:../../../glib/tests/assert-msg-test.c:31:main: assertion failed: (42 < 0) 1983s # Error: 1983s # ** 1983s # GLib:ERROR:../../../glib/tests/assert-msg-test.c:31:main: assertion failed: (42 < 0) 1983s ok 2 __main__.TestAssertMessage.test_gdb_gassert # SKIP GDB is not installed, skipping this test! 1983s # assert-msg-test: /usr/libexec/installed-tests/glib/assert-msg-test 1983s # tmpdir: /tmp/tmpk08cl27v 1983s 1..2 1983s ok - glib/assert-msg-test.py.test 1983s # Running test: glib/signals.test 1983s TAP version 14 1983s # random seed: R02Se1d85f6bb10abd8bbf87ad42dea744f0 1983s 1..31 1983s # Start of gobject tests 1983s # Start of signals tests 1983s ok 1 /gobject/signals/all-types 1983s ok 2 /gobject/signals/variant 1983s ok 3 /gobject/signals/destroy-target-object 1983s ok 4 /gobject/signals/generic-marshaller-1 1983s ok 5 /gobject/signals/generic-marshaller-2 1983s ok 6 /gobject/signals/generic-marshaller-enum-return-signed 1983s ok 7 /gobject/signals/generic-marshaller-enum-return-unsigned 1983s ok 8 /gobject/signals/generic-marshaller-int-return 1983s ok 9 /gobject/signals/generic-marshaller-uint-return 1983s ok 10 /gobject/signals/generic-marshaller-interface-return 1983s ok 11 /gobject/signals/custom-marshaller 1983s ok 12 /gobject/signals/connect 1983s ok 13 /gobject/signals/emission-hook 1983s ok 14 /gobject/signals/emitv 1983s ok 15 /gobject/signals/accumulator 1983s # Signal: accumulator-class-first 1983s # Signal: accumulator-class-last 1983s # Signal: accumulator-class-cleanup 1983s # Signal: accumulator-class-first-last 1983s # Signal: accumulator-class-first-last-cleanup 1983s # Signal: accumulator-class-last-cleanup 1983s ok 16 /gobject/signals/accumulator-class 1983s ok 17 /gobject/signals/introspection 1983s ok 18 /gobject/signals/block-handler 1983s ok 19 /gobject/signals/stop-emission 1983s ok 20 /gobject/signals/invocation-hint 1983s ok 21 /gobject/signals/test-disconnection-wrong-object 1983s ok 22 /gobject/signals/clear-signal-handler 1983s # /gobject/signals/lookup summary: Test that g_signal_lookup() works with a variety of inputs. 1983s ok 23 /gobject/signals/lookup 1983s # /gobject/signals/parse-name summary: Test that g_signal_parse_name() works with a variety of inputs. 1983s ok 24 /gobject/signals/parse-name 1983s ok 25 /gobject/signals/is-valid-name 1983s ok 26 /gobject/signals/weak-ref-disconnect 1983s # Start of lookup tests 1983s # /gobject/signals/lookup/invalid summary: Test that g_signal_lookup() emits a warning if looking up an invalid signal name. 1983s ok - glib/signals.test 1983s # Running test: glib/cxx.test 1983s ok - glib/cxx.test 1983s # Running test: glib/utf8-pointer.test 1983s ok 27 /gobject/signals/lookup/invalid 1983s # End of lookup tests 1983s # Start of parse-name tests 1983s # /gobject/signals/parse-name/invalid summary: Test that g_signal_parse_name() ignores a variety of invalid inputs. 1983s # Parser input: 1983s # Parser input: 7zip 1983s # Parser input: invalid:signal 1983s # Parser input: simple-detailed:: 1983s # Parser input: simple-detailed: 1983s # Parser input: : 1983s # Parser input: :: 1983s # Parser input: :valid-detail 1983s # Parser input: ::valid-detail 1983s ok 28 /gobject/signals/parse-name/invalid 1983s # End of parse-name tests 1983s # Start of invalid-name tests 1983s # /gobject/signals/invalid-name/colon summary: Check that g_signal_new() rejects invalid signal names. 1983s ok 29 /gobject/signals/invalid-name/colon 1983s # /gobject/signals/invalid-name/first-char summary: Check that g_signal_new() rejects invalid signal names. 1983s ok 30 /gobject/signals/invalid-name/first-char 1983s # /gobject/signals/invalid-name/empty summary: Check that g_signal_new() rejects invalid signal names. 1983s ok 31 /gobject/signals/invalid-name/empty 1983s # End of invalid-name tests 1983s # End of signals tests 1983s # End of gobject tests 1983s TAP version 14 1983s # random seed: R02S13fcf1d46f73f5afdbfd3abc42607d62 1983s 1..2 1983s # Start of gtask tests 1983s # GLib-GIO-DEBUG: GTask some other name (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1983s ok 1 /gtask/name 1983s # Start of name tests 1983s # GLib-GIO-DEBUG: GTask some other name (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1983s ok 2 /gtask/name/macro-wrapper 1983s # End of name tests 1983s # End of gtask tests 1983s TAP version 14 1983s # random seed: R02S2b1c4c8cf81d271fcf58c578906c77e3 1983s 1..3 1983s # Start of utf8 tests 1984s ok - glib/utf8-pointer.test 1984s # Running test: glib/function-info.test 1984s ok 1 /utf8/offsets 1984s # slow test /utf8/offsets executed in 1.00 secs 1984s ok 2 /utf8/lengths 1984s ok 3 /utf8/find 1984s # End of utf8 tests 1984s ok - glib/function-info.test 1984s # Running test: glib/cxx-17.test 1984s TAP version 14 1984s # random seed: R02S142b0472dc08842ceb4a785e83d11ee0 1984s 1..1 1984s # Start of function-info tests 1984s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_function-info_8O65B3/function-info/invoker/.dirs/home 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_function-info_8O65B3/function-info/invoker/.dirs/cache 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_function-info_8O65B3/function-info/invoker/.dirs/system-config1:/tmp/test_function-info_8O65B3/function-info/invoker/.dirs/system-config2 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_function-info_8O65B3/function-info/invoker/.dirs/config 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_function-info_8O65B3/function-info/invoker/.dirs/system-data1:/tmp/test_function-info_8O65B3/function-info/invoker/.dirs/system-data2 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_function-info_8O65B3/function-info/invoker/.dirs/data 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_function-info_8O65B3/function-info/invoker/.dirs/state 1984s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_function-info_8O65B3/function-info/invoker/.dirs/runtime 1984s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1984s # /function-info/invoker summary: Test preparing a function invoker 1984s ok 1 /function-info/invoker 1984s # End of function-info tests 1984s TAP version 14 1984s # random seed: R02S4df1a43150efc226934ffc6781008ed5 1984s 1..2 1984s # Start of gtask tests 1984s # GLib-GIO-DEBUG: GTask some other name (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1984s ok 1 /gtask/name 1984s # Start of name tests 1984s # GLib-GIO-DEBUG: GTask some other name (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1984s ok 2 /gtask/name/macro-wrapper 1984s # End of name tests 1984s # End of gtask tests 1984s ok - glib/cxx-17.test 1984s # Running test: glib/portal-support-none.test 1984s TAP version 14 1984s # random seed: R02Sce9394f184593c1187779253e661e209 1984s 1..1 1984s # Start of portal-support tests 1984s ok 1 /portal-support/none 1984s # End of portal-support tests 1984s ok - glib/portal-support-none.test 1984s # Running test: glib/string.test 1984s ok - glib/string.test 1984s # Running test: glib/utf8-performance.test 1984s ok - glib/utf8-performance.test 1984s # Running test: glib/atomic-c-11.test 1984s TAP version 14 1984s # random seed: R02Sa942843aca69d52be499478a21995e84 1984s 1..25 1984s # Start of string tests 1984s ok 1 /string/chunks 1984s ok 2 /string/chunk-insert 1984s ok 3 /string/new 1984s ok 4 /string/printf 1984s ok 5 /string/assign 1984s ok 6 /string/append-c 1984s ok 7 /string/append 1984s ok 8 /string/append-vprintf 1984s ok 9 /string/prepend-c 1984s ok 10 /string/prepend 1984s ok 11 /string/insert 1984s ok 12 /string/insert-unichar 1984s ok 13 /string/equal 1984s ok 14 /string/truncate 1984s ok 15 /string/overwrite 1984s ok 16 /string/nul-handling 1984s ok 17 /string/up-down 1984s ok 18 /string/set-size 1984s ok 19 /string/to-bytes 1984s # 0: Replacing "bar" with "baz" (limit 0) in "foo bar foo baz foo bar foobarbaz" 1984s # -> 3 replacements, "foo baz foo baz foo baz foobazbaz" 1984s # 1: Replacing "baz" with "bar" (limit 3) in "foo baz foo baz foo baz foobazbaz" 1984s # -> 3 replacements, "foo bar foo bar foo bar foobazbaz" 1984s # 2: Replacing "foobar" with "bar" (limit 1) in "foo bar foo bar foo bar foobazbaz" 1984s # -> 0 replacements, "foo bar foo bar foo bar foobazbaz" 1984s # 3: Replacing "a" with "abcdefghijkl" (limit 0) in "aaaaaaaa" 1984s # -> 8 replacements, "abcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijkl" 1984s # 4: Replacing "$LIB" with "lib32" (limit 0) in "/usr/$LIB/libMangoHud.so" 1984s # -> 1 replacements, "/usr/lib32/libMangoHud.so" 1984s # 5: Replacing "o" with "" (limit 0) in "food for foals" 1984s # -> 4 replacements, "fd fr fals" 1984s # 6: Replacing "a" with "aaa" (limit 0) in "aaa" 1984s # -> 3 replacements, "aaaaaaaaa" 1984s # 7: Replacing "a" with "" (limit 0) in "aaa" 1984s # -> 3 replacements, "" 1984s # 8: Replacing "aa" with "bb" (limit 0) in "aaa" 1984s # -> 1 replacements, "bba" 1984s # 9: Replacing "" with "bar" (limit 0) in "foo" 1984s # -> 4 replacements, "barfbarobarobar" 1984s # 10: Replacing "" with "bar" (limit 1) in "foo" 1984s # -> 1 replacements, "barfoo" 1984s # 11: Replacing "" with "bar" (limit 2) in "foo" 1984s # -> 2 replacements, "barfbaroo" 1984s # 12: Replacing "" with "bar" (limit 3) in "foo" 1984s # -> 3 replacements, "barfbarobaro" 1984s # 13: Replacing "" with "bar" (limit 4) in "foo" 1984s # -> 4 replacements, "barfbarobarobar" 1984s # 14: Replacing "" with "bar" (limit 5) in "foo" 1984s # -> 4 replacements, "barfbarobarobar" 1984s # 15: Replacing "" with "x" (limit 0) in "" 1984s # -> 1 replacements, "x" 1984s # 16: Replacing "" with "" (limit 0) in "" 1984s # -> 1 replacements, "" 1984s # 17: Replacing "" with "aaaaaaaaaaaa" (limit 0) in "bbbbbbbbb" 1984s # -> 10 replacements, "aaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaa" 1984s ok 20 /string/replace 1984s ok 21 /string/steal 1984s ok 22 /string/new-take 1984s ok 23 /string/copy 1984s ok 24 /string/sized-new 1984s # Start of new-take tests 1984s ok 25 /string/new-take/null 1984s # End of new-take tests 1984s # End of string tests 1984s TAP version 14 1984s # random seed: R02Sff672ea2b95298e4f52687a6a3634c36 1984s 1..36 1984s # Start of utf8 tests 1984s # Start of perf tests 1984s # Start of get_char tests 1984s # max perf: 4.3 MB/s 1984s ok 1 /utf8/perf/get_char/ascii 1984s # max perf: 5.6 MB/s 1984s ok 2 /utf8/perf/get_char/latin1 1984s # max perf: 160.0 MB/s 1984s ok 3 /utf8/perf/get_char/cyrillic 1984s # max perf: inf MB/s 1984s ok 4 /utf8/perf/get_char/han 1984s # End of get_char tests 1984s # Start of get_char-backwards tests 1984s # max perf: 43.0 MB/s 1984s ok 5 /utf8/perf/get_char-backwards/ascii 1984s # max perf: inf MB/s 1984s ok 6 /utf8/perf/get_char-backwards/latin1 1984s # max perf: 160.0 MB/s 1984s ok 7 /utf8/perf/get_char-backwards/cyrillic 1984s # max perf: 156.0 MB/s 1984s ok 8 /utf8/perf/get_char-backwards/han 1984s # End of get_char-backwards tests 1984s # Start of get_char_validated tests 1984s # max perf: 43.0 MB/s 1984s ok 9 /utf8/perf/get_char_validated/ascii 1984s # max perf: inf MB/s 1984s ok 10 /utf8/perf/get_char_validated/latin1 1984s # max perf: inf MB/s 1984s ok 11 /utf8/perf/get_char_validated/cyrillic 1984s # max perf: 156.0 MB/s 1984s ok 12 /utf8/perf/get_char_validated/han 1984s # End of get_char_validated tests 1984s # Start of utf8_to_ucs4 tests 1984s # max perf: 43.0 MB/s 1984s ok 13 /utf8/perf/utf8_to_ucs4/ascii 1984s # max perf: 67.0 MB/s 1984s ok 14 /utf8/perf/utf8_to_ucs4/latin1 1984s # max perf: 160.0 MB/s 1984s ok 15 /utf8/perf/utf8_to_ucs4/cyrillic 1984s # max perf: 156.0 MB/s 1984s ok 16 /utf8/perf/utf8_to_ucs4/han 1984s # End of utf8_to_ucs4 tests 1984s # Start of utf8_to_ucs4-sized tests 1984s # max perf: 43.0 MB/s 1984s ok 17 /utf8/perf/utf8_to_ucs4-sized/ascii 1984s # max perf: 67.0 MB/s 1984s ok 18 /utf8/perf/utf8_to_ucs4-sized/latin1 1984s # max perf: 160.0 MB/s 1984s ok 19 /utf8/perf/utf8_to_ucs4-sized/cyrillic 1984s # max perf: 156.0 MB/s 1984s ok 20 /utf8/perf/utf8_to_ucs4-sized/han 1984s # End of utf8_to_ucs4-sized tests 1984s # Start of utf8_to_ucs4_fast tests 1984s # max perf: 43.0 MB/s 1984s ok 21 /utf8/perf/utf8_to_ucs4_fast/ascii 1984s # max perf: 67.0 MB/s 1984s ok 22 /utf8/perf/utf8_to_ucs4_fast/latin1 1984s # max perf: 160.0 MB/s 1984s ok 23 /utf8/perf/utf8_to_ucs4_fast/cyrillic 1984s # max perf: inf MB/s 1984s ok 24 /utf8/perf/utf8_to_ucs4_fast/han 1984s # End of utf8_to_ucs4_fast tests 1984s # Start of utf8_to_ucs4_fast-sized tests 1984s # max perf: 43.0 MB/s 1984s ok 25 /utf8/perf/utf8_to_ucs4_fast-sized/ascii 1984s # max perf: 67.0 MB/s 1984s ok 26 /utf8/perf/utf8_to_ucs4_fast-sized/latin1 1984s # max perf: 160.0 MB/s 1984s ok 27 /utf8/perf/utf8_to_ucs4_fast-sized/cyrillic 1984s # max perf: inf MB/s 1984s ok 28 /utf8/perf/utf8_to_ucs4_fast-sized/han 1984s # End of utf8_to_ucs4_fast-sized tests 1984s # Start of utf8_validate tests 1984s # max perf: 43.0 MB/s 1984s ok 29 /utf8/perf/utf8_validate/ascii 1984s # max perf: 67.0 MB/s 1984s ok 30 /utf8/perf/utf8_validate/latin1 1984s # max perf: 160.0 MB/s 1984s ok 31 /utf8/perf/utf8_validate/cyrillic 1984s # max perf: 156.0 MB/s 1984s ok 32 /utf8/perf/utf8_validate/han 1984s # End of utf8_validate tests 1984s # Start of utf8_validate-sized tests 1984s # max perf: inf MB/s 1984s ok 33 /utf8/perf/utf8_validate-sized/ascii 1984s # max perf: inf MB/s 1984s ok 34 /utf8/perf/utf8_validate-sized/latin1 1984s # max perf: 160.0 MB/s 1984s ok 35 /utf8/perf/utf8_validate-sized/cyrillic 1984s # max perf: 156.0 MB/s 1984s ok 36 /utf8/perf/utf8_validate-sized/han 1984s # End of utf8_validate-sized tests 1984s # End of perf tests 1984s # End of utf8 tests 1984s TAP version 14 1984s # random seed: R02Sad05bd9a0e048b53cae1237750d71cb2 1984s 1..2 1984s # Start of atomic tests 1984s ok 1 /atomic/types 1985s ok 2 /atomic/threaded 1985s # End of atomic tests 1985s ok - glib/atomic-c-11.test 1985s # Running test: glib/relation.test 1985s TAP version 14 1985s # random seed: R02Sdb0d0ddb89f064f3da6c3be46e2bb786 1985s 1..1 1985s # Start of glib tests 1985s ok - glib/relation.test 1985s ok 1 /glib/relation 1985s # End of glib tests 1985s # Running test: glib/testing.test 1985s ok - glib/testing.test 1985s # Running test: glib/module-test-plugin.test 1985s TAP version 14 1985s # random seed: R02Sec3d38e9aab3c54c50d4feaa844ea107 1985s 1..1 1985s # Start of assert tests 1985s ok 1 /assert/finalize_object 1985s # Start of finalize_object tests 1985s # Start of subprocess tests 1985s # End of subprocess tests 1985s # End of finalize_object tests 1985s # End of assert tests 1985s ok - glib/module-test-plugin.test 1985s TAP version 14 1985s # random seed: R02Scc2a5a674f850dbd716cb53cb17ade5d 1985s 1..3 1985s # Start of module tests 1985s # Running test: glib/dir.test 1985s ok 1 /module/basics 1985s # /module/invalid-libtool-archive summary: Test that opening an invalid .la file fails 1985s ok 2 /module/invalid-libtool-archive 1985s # /module/local-binding summary: Test that binding a library's symbols locally does not add them globally 1985s ok 3 /module/local-binding 1985s # End of module tests 1985s TAP version 14 1985s # random seed: R02S928b773b34b41581ca6f45179e53c666 1985s 1..3 1985s # Start of dir tests 1985s ok 1 /dir/read 1985s ok 2 /dir/nonexisting 1985s # /dir/refcounting summary: Test refcounting interactions with g_dir_close() 1985s ok 3 /dir/refcounting 1985s # End of dir tests 1985s ok - glib/dir.test 1985s # Running test: glib/basic-signals.test 1985s ok - glib/basic-signals.test 1985s # Running test: glib/mainloop.test 1985s TAP version 14 1985s # random seed: R02Sffec558f5930110acd6e28714efb0aa3 1985s 1..1 1985s # Start of gobject tests 1985s ok 1 /gobject/basic-signals 1985s # End of gobject tests 1985s TAP version 14 1985s # random seed: R02S0fb9c2db9e9162deacff57c3eeb31e2f 1985s 1..47 1985s # Start of maincontext tests 1985s ok 1 /maincontext/basic 1985s # Add same-priority sources: 40 1985s # Find each source: 7 1985s # Remove in random order: 84 1985s ok 2 /maincontext/nsources_same_priority 1985s # Add different-priority sources: 44 1985s # Find each source: 7 1985s # Remove in random order: 85 1985s ok 3 /maincontext/nsources_different_priority 1985s # Add sources from threads: 296 1986s # Remove sources from threads: 384 1986s ok 4 /maincontext/nsources_threadpool 1986s # slow test /maincontext/nsources_threadpool executed in 0.69 secs 1986s ok 5 /maincontext/source_finalization 1986s # /maincontext/idle-once summary: Test g_idle_add_once() works 1986s ok 6 /maincontext/idle-once 1986s # /maincontext/timeout-once summary: Test g_timeout_add_once() works 1986s ok 7 /maincontext/timeout-once 1986s # /maincontext/context-ref-in-source-callbackfuncs-unref summary: Tests if calling GSource API in GSourceCallbackFuncs.unref does not deadlock attempting to retrieve the relevant GMainContext. 1986s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/3725 1986s ok 8 /maincontext/context-ref-in-source-callbackfuncs-unref 1986s # Start of source_finalization_from_source tests 1986s # /maincontext/source_finalization_from_source/0 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1986s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1986s ok 9 /maincontext/source_finalization_from_source/0 1986s # /maincontext/source_finalization_from_source/1 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1986s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1986s ok 10 /maincontext/source_finalization_from_source/1 1986s # /maincontext/source_finalization_from_source/2 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1986s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1986s ok 11 /maincontext/source_finalization_from_source/2 1986s # /maincontext/source_finalization_from_source/3 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1986s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1986s ok 12 /maincontext/source_finalization_from_source/3 1986s # /maincontext/source_finalization_from_source/4 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1986s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1986s ok 13 /maincontext/source_finalization_from_source/4 1986s # /maincontext/source_finalization_from_source/5 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1986s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1986s ok 14 /maincontext/source_finalization_from_source/5 1986s # /maincontext/source_finalization_from_source/6 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1986s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1986s ok 15 /maincontext/source_finalization_from_source/6 1986s # /maincontext/source_finalization_from_source/7 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1986s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1986s ok 16 /maincontext/source_finalization_from_source/7 1986s # /maincontext/source_finalization_from_source/8 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1986s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1986s ok 17 /maincontext/source_finalization_from_source/8 1986s # /maincontext/source_finalization_from_source/9 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1986s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1986s ok 18 /maincontext/source_finalization_from_source/9 1986s # End of source_finalization_from_source tests 1986s # Start of source_finalization_from_dispatch tests 1986s # /maincontext/source_finalization_from_dispatch/0 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1986s ok 19 /maincontext/source_finalization_from_dispatch/0 1986s # /maincontext/source_finalization_from_dispatch/1 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1986s ok 20 /maincontext/source_finalization_from_dispatch/1 1986s # /maincontext/source_finalization_from_dispatch/2 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1986s ok 21 /maincontext/source_finalization_from_dispatch/2 1986s # End of source_finalization_from_dispatch tests 1986s # End of maincontext tests 1986s # Start of mainloop tests 1986s ok 22 /mainloop/basic 1986s ok 23 /mainloop/timeouts # SKIP Not running timing heavy test 1986s ok 24 /mainloop/priorities 1986s ok 25 /mainloop/invoke 1986s # slow test /mainloop/invoke executed in 0.50 secs 1986s ok 26 /mainloop/child_sources # SKIP Not reliable on older ARM hardware 1986s ok 27 /mainloop/recursive_child_sources # SKIP Not reliable on older ARM hardware 1986s ok 28 /mainloop/recursive_loop_child_sources 1986s ok 29 /mainloop/swapping_child_sources 1986s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=701283 1986s ok 30 /mainloop/blocked_child_sources 1986s # Executing: glib/mainloop.test 1987s ok 31 /mainloop/source_time 1987s # slow test /mainloop/source_time executed in 1.00 secs 1987s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=687098 1987s ok 32 /mainloop/overflow 1988s ok 33 /mainloop/ready-time 1988s # slow test /mainloop/ready-time executed in 0.50 secs 1988s ok 34 /mainloop/wakeup 1988s ok 35 /mainloop/remove-invalid 1988s ok 36 /mainloop/unref-while-pending 1989s ok 37 /mainloop/unix-fd 1989s # slow test /mainloop/unix-fd executed in 0.90 secs 1989s ok 38 /mainloop/unix-fd-source 1989s ok 39 /mainloop/source-unix-fd-api 1989s ok 40 /mainloop/wait 1989s ok 41 /mainloop/unix-file-poll 1989s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1592 1989s ok 42 /mainloop/unix-fd-priority 1989s ok 43 /mainloop/nfds 1989s ok 44 /mainloop/steal-fd 1991s # Executing: glib/mainloop.test 1992s ok - glib/mainloop.test 1992s # Running test: glib/genmarshal.py.test 1992s ok 45 /mainloop/simultaneous-source-context-destruction 1992s # slow test /mainloop/simultaneous-source-context-destruction executed in 3.09 secs 1992s # Start of ownerless-polling tests 1992s ok 46 /mainloop/ownerless-polling/attach-first 1992s ok 47 /mainloop/ownerless-polling/pop-first 1992s # End of ownerless-polling tests 1992s # End of mainloop tests 1992s TAP version 13 1992s ok 1 __main__.TestGenmarshal.test_empty_list 1992s # glib-genmarshal: /usr/bin/glib-genmarshal 1992s # tmpdir: /tmp/tmpx9lj4k5y 1992s # /tmp/tmpx9lj4k5y/tmpvvalk0ms.list: 1992s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpx9lj4k5y/tmpvvalk0ms.list', '--header', '--quiet'] 1992s # Return code: 0 1992s # Output: 1992s # /* This file is generated by glib-genmarshal, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */ 1992s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1992s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1992s # 1992s # #include 1992s # 1992s # G_BEGIN_DECLS 1992s # 1992s # 1992s # G_END_DECLS 1992s # 1992s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1992s # Error: 1992s # 1992s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpx9lj4k5y/tmpvvalk0ms.list', '--body', '--quiet'] 1992s # Return code: 0 1992s # Output: 1992s # /* This file is generated by glib-genmarshal, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */ 1992s # #include 1992s # 1992s # #ifdef G_ENABLE_DEBUG 1992s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1992s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1992s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1992s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1992s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1992s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1992s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1992s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1992s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1992s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1992s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1992s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1992s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1992s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1992s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1992s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1992s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1992s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1992s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1992s # #else /* !G_ENABLE_DEBUG */ 1992s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1992s # * Do not access GValues directly in your code. Instead, use the 1992s # * g_value_get_*() functions 1992s # */ 1992s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1992s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1992s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1992s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1992s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1992s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1992s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1992s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1992s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1992s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1992s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1992s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1992s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1992s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1992s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1992s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1992s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1992s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1992s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1992s # #endif /* !G_ENABLE_DEBUG */ 1992s # Error: 1992s ok 2 __main__.TestGenmarshal.test_help 1992s # glib-genmarshal: /usr/bin/glib-genmarshal 1992s # tmpdir: /tmp/tmpjv21vk90 1992s # Running: ['/usr/bin/glib-genmarshal', '--help'] 1992s # Return code: 0 1992s # Output: 1992s # usage: glib-genmarshal [-h] [--prefix STRING] [--output FILE] [--skip-source] 1992s # [--internal] [--valist-marshallers] [-v] 1992s # [--g-fatal-warnings] [--include-header [HEADER]] 1992s # [--pragma-once] [-D CPP_DEFINES] [-U CPP_UNDEFINES] 1992s # [--prototypes] [--header] [--body] [--stdinc | 1992s # --nostdinc] [--quiet | --verbose] 1992s # [FILE ...] 1992s # 1992s # Generate signal marshallers for GObject 1992s # 1992s # positional arguments: 1992s # FILE Files with lists of marshallers to generate, or "-" 1992s # for standard input 1992s # 1992s # options: 1992s # -h, --help show this help message and exit 1992s # --prefix STRING Specify marshaller prefix 1992s # --output FILE Write output into the specified file 1992s # --skip-source Skip source location comments 1992s # --internal Mark generated functions as internal 1992s # --valist-marshallers Generate va_list marshallers 1992s # -v, --version Print version information, and exit 1992s # --g-fatal-warnings Make warnings fatal 1992s # --include-header [HEADER] 1992s # Include the specified header in the body 1992s # --pragma-once Use "pragma once" as the inclusion guard 1992s # -D CPP_DEFINES Pre-processor define 1992s # -U CPP_UNDEFINES Pre-processor undefine 1992s # --prototypes Generate the marshallers prototype in the C code 1992s # --header Generate C headers 1992s # --body Generate C code 1992s # --stdinc Include standard marshallers 1992s # --nostdinc Use standard marshallers 1992s # --quiet Only print warnings and errors 1992s # --verbose Be verbose, and include debugging information 1992s # Error: 1992s ok 3 __main__.TestGenmarshal.test_no_args 1992s # glib-genmarshal: /usr/bin/glib-genmarshal 1992s # tmpdir: /tmp/tmpvrfte377 1992s # Running: ['/usr/bin/glib-genmarshal'] 1992s # Return code: 0 1992s # Output: 1992s # 1992s # Error: 1993s ok 4 __main__.TestGenmarshal.test_void_boolean 1993s # glib-genmarshal: /usr/bin/glib-genmarshal 1993s # tmpdir: /tmp/tmphx1j_v2u 1993s # /tmp/tmphx1j_v2u/tmpzo_huixk.list: VOID:BOOLEAN 1993s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmphx1j_v2u/tmpzo_huixk.list', '--header', '--quiet'] 1993s # Return code: 0 1993s # Output: 1993s # /* This file is generated by glib-genmarshal, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */ 1993s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1993s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1993s # 1993s # #include 1993s # 1993s # G_BEGIN_DECLS 1993s # 1993s # /* VOID:BOOLEAN (/tmp/tmphx1j_v2u/tmpzo_huixk.list:1) */ 1993s # #define g_cclosure_user_marshal_VOID__BOOLEAN g_cclosure_marshal_VOID__BOOLEAN 1993s # 1993s # 1993s # G_END_DECLS 1993s # 1993s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1993s # Error: 1993s # 1993s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmphx1j_v2u/tmpzo_huixk.list', '--body', '--quiet'] 1993s # Return code: 0 1993s # Output: 1993s # /* This file is generated by glib-genmarshal, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */ 1993s # #include 1993s # 1993s # #ifdef G_ENABLE_DEBUG 1993s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1993s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1993s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1993s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1993s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1993s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1993s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1993s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1993s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1993s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1993s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1993s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1993s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1993s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1993s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1993s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1993s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1993s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1993s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1993s # #else /* !G_ENABLE_DEBUG */ 1993s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1993s # * Do not access GValues directly in your code. Instead, use the 1993s # * g_value_get_*() functions 1993s # */ 1993s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1993s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1993s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1993s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1993s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1993s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1993s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1993s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1993s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1993s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1993s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1993s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1993s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1993s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1993s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1993s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1993s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1993s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1993s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1993s # #endif /* !G_ENABLE_DEBUG */ 1993s # Error: 1993s ok 5 __main__.TestGenmarshal.test_void_boolean_int64 1993s # glib-genmarshal: /usr/bin/glib-genmarshal 1993s # tmpdir: /tmp/tmpmn_reygn 1993s # /tmp/tmpmn_reygn/tmpk3pc4bed.list: VOID:BOOLEAN,INT64 1993s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpmn_reygn/tmpk3pc4bed.list', '--header', '--quiet'] 1993s # Return code: 0 1993s # Output: 1993s # /* This file is generated by glib-genmarshal, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */ 1993s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1993s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1993s # 1993s # #include 1993s # 1993s # G_BEGIN_DECLS 1993s # 1993s # /* VOID:BOOLEAN,INT64 (/tmp/tmpmn_reygn/tmpk3pc4bed.list:1) */ 1993s # extern 1993s # void g_cclosure_user_marshal_VOID__BOOLEAN_INT64 (GClosure *closure, 1993s # GValue *return_value, 1993s # guint n_param_values, 1993s # const GValue *param_values, 1993s # gpointer invocation_hint, 1993s # gpointer marshal_data); 1993s # 1993s # 1993s # G_END_DECLS 1993s # 1993s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1993s # Error: 1993s # 1993s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpmn_reygn/tmpk3pc4bed.list', '--body', '--quiet'] 1993s # Return code: 0 1993s # Output: 1993s # /* This file is generated by glib-genmarshal, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */ 1993s # #include 1993s # 1993s # #ifdef G_ENABLE_DEBUG 1993s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1993s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1993s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1993s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1993s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1993s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1993s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1993s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1993s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1993s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1993s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1993s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1993s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1993s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1993s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1993s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1993s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1993s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1993s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1993s # #else /* !G_ENABLE_DEBUG */ 1993s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1993s # * Do not access GValues directly in your code. Instead, use the 1993s # * g_value_get_*() functions 1993s # */ 1993s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1993s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1993s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1993s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1993s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1993s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1993s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1993s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1993s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1993s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1993s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1993s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1993s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1993s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1993s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1993s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1993s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1993s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1993s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1993s # #endif /* !G_ENABLE_DEBUG */ 1993s # 1993s # /* VOID:BOOLEAN,INT64 (/tmp/tmpmn_reygn/tmpk3pc4bed.list:1) */ 1993s # void 1993s # g_cclosure_user_marshal_VOID__BOOLEAN_INT64 (GClosure *closure, 1993s # GValue *return_value G_GNUC_UNUSED, 1993s # guint n_param_values, 1993s # const GValue *param_values, 1993s # gpointer invocation_hint G_GNUC_UNUSED, 1993s # gpointer marshal_data) 1993s # { 1993s # typedef void (*GMarshalFunc_VOID__BOOLEAN_INT64) (gpointer data1, 1993s # gboolean arg1, 1993s # gint64 arg2, 1993s # gpointer data2); 1993s # GCClosure *cc = (GCClosure *) closure; 1993s # gpointer data1, data2; 1993s # GMarshalFunc_VOID__BOOLEAN_INT64 callback; 1993s # 1993s # g_return_if_fail (n_param_values == 3); 1993s # 1993s # if (G_CCLOSURE_SWAP_DATA (closure)) 1993s # { 1993s # data1 = closure->data; 1993s # data2 = g_value_peek_pointer (param_values + 0); 1993s # } 1993s # else 1993s # { 1993s # data1 = g_value_peek_pointer (param_values + 0); 1993s # data2 = closure->data; 1993s # } 1993s # callback = (GMarshalFunc_VOID__BOOLEAN_INT64) (marshal_data ? marshal_data : cc->callback); 1993s # 1993s # callback (data1, 1993s # g_marshal_value_peek_boolean (param_values + 1), 1993s # g_marshal_value_peek_int64 (param_values + 2), 1993s # data2); 1993s # } 1993s # Error: 1993s ok 6 __main__.TestGenmarshal.test_void_param_nostdinc 1993s # glib-genmarshal: /usr/bin/glib-genmarshal 1993s # tmpdir: /tmp/tmpup_uijfw 1993s # /tmp/tmpup_uijfw/tmpl1ou9og3.list: VOID:PARAM 1993s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpup_uijfw/tmpl1ou9og3.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 1993s # Return code: 0 1993s # Output: 1993s # /* This file is generated by glib-genmarshal, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */ 1993s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1993s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1993s # 1993s # G_BEGIN_DECLS 1993s # 1993s # /* VOID:PARAM (/tmp/tmpup_uijfw/tmpl1ou9og3.list:1) */ 1993s # extern 1993s # void g_cclosure_user_marshal_VOID__PARAM (GClosure *closure, 1993s # GValue *return_value, 1993s # guint n_param_values, 1993s # const GValue *param_values, 1993s # gpointer invocation_hint, 1993s # gpointer marshal_data); 1993s # extern 1993s # void g_cclosure_user_marshal_VOID__PARAMv (GClosure *closure, 1993s # GValue *return_value, 1993s # gpointer instance, 1993s # va_list args, 1993s # gpointer marshal_data, 1993s # int n_params, 1993s # GType *param_types); 1993s # 1993s # 1993s # G_END_DECLS 1993s # 1993s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1993s # Error: 1993s # 1993s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpup_uijfw/tmpl1ou9og3.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 1993s # Return code: 0 1993s # Output: 1993s # /* This file is generated by glib-genmarshal, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */ 1993s # #ifdef G_ENABLE_DEBUG 1993s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1993s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1993s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1993s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1993s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1993s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1993s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1993s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1993s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1993s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1993s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1993s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1993s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1993s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1993s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1993s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1993s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1993s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1993s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1993s # #else /* !G_ENABLE_DEBUG */ 1993s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1993s # * Do not access GValues directly in your code. Instead, use the 1993s # * g_value_get_*() functions 1993s # */ 1993s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1993s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1993s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1993s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1993s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1993s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1993s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1993s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1993s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1993s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1993s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1993s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1993s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1993s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1993s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1993s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1993s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1993s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1993s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1993s # #endif /* !G_ENABLE_DEBUG */ 1993s # 1993s # /* VOID:PARAM (/tmp/tmpup_uijfw/tmpl1ou9og3.list:1) */ 1993s # void 1993s # g_cclosure_user_marshal_VOID__PARAM (GClosure *closure, 1993s # GValue *return_value G_GNUC_UNUSED, 1993s # guint n_param_values, 1993s # const GValue *param_values, 1993s # gpointer invocation_hint G_GNUC_UNUSED, 1993s # gpointer marshal_data) 1993s # { 1993s # typedef void (*GMarshalFunc_VOID__PARAM) (gpointer data1, 1993s # gpointer arg1, 1993s # gpointer data2); 1993s # GCClosure *cc = (GCClosure *) closure; 1993s # gpointer data1, data2; 1993s # GMarshalFunc_VOID__PARAM callback; 1993s # 1993s # g_return_if_fail (n_param_values == 2); 1993s # 1993s # if (G_CCLOSURE_SWAP_DATA (closure)) 1993s # { 1993s # data1 = closure->data; 1993s # data2 = g_value_peek_pointer (param_values + 0); 1993s # } 1993s # else 1993s # { 1993s # data1 = g_value_peek_pointer (param_values + 0); 1993s # data2 = closure->data; 1993s # } 1993s # callback = (GMarshalFunc_VOID__PARAM) (marshal_data ? marshal_data : cc->callback); 1993s # 1993s # callback (data1, 1993s # g_marshal_value_peek_param (param_values + 1), 1993s # data2); 1993s # } 1993s # 1993s # void 1993s # g_cclosure_user_marshal_VOID__PARAMv (GClosure *closure, 1993s # GValue *return_value G_GNUC_UNUSED, 1993s # gpointer instance, 1993s # va_list args, 1993s # gpointer marshal_data, 1993s # int n_params, 1993s # GType *param_types) 1993s # { 1993s # typedef void (*GMarshalFunc_VOID__PARAM) (gpointer data1, 1993s # gpointer arg1, 1993s # gpointer data2); 1993s # GCClosure *cc = (GCClosure *) closure; 1993s # gpointer data1, data2; 1993s # GMarshalFunc_VOID__PARAM callback; 1993s # gpointer arg0; 1993s # va_list args_copy; 1993s # 1993s # va_copy (args_copy, args); 1993s # arg0 = (gpointer) va_arg (args_copy, gpointer); 1993s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1993s # arg0 = g_param_spec_ref (arg0); 1993s # va_end (args_copy); 1993s # 1993s # 1993s # if (G_CCLOSURE_SWAP_DATA (closure)) 1993s # { 1993s # data1 = closure->data; 1993s # data2 = instance; 1993s # } 1993s # else 1993s # { 1993s # data1 = instance; 1993s # data2 = closure->data; 1993s # } 1993s # callback = (GMarshalFunc_VOID__PARAM) (marshal_data ? marshal_data : cc->callback); 1993s # 1993s # callback (data1, 1993s # arg0, 1993s # data2); 1993s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1993s # g_param_spec_unref (arg0); 1993s # } 1993s # Error: 1993s ok 7 __main__.TestGenmarshal.test_void_string_nostdinc 1993s # glib-genmarshal: /usr/bin/glib-genmarshal 1993s # tmpdir: /tmp/tmpcdz3mu7q 1993s # /tmp/tmpcdz3mu7q/tmpkzgi23j8.list: VOID:STRING 1993s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpcdz3mu7q/tmpkzgi23j8.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 1993s # Return code: 0 1993s # Output: 1993s # /* This file is generated by glib-genmarshal, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */ 1993s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1993s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1993s # 1993s # G_BEGIN_DECLS 1993s # 1993s # /* VOID:STRING (/tmp/tmpcdz3mu7q/tmpkzgi23j8.list:1) */ 1993s # extern 1993s # void g_cclosure_user_marshal_VOID__STRING (GClosure *closure, 1993s # GValue *return_value, 1993s # guint n_param_values, 1993s # const GValue *param_values, 1993s # gpointer invocation_hint, 1993s # gpointer marshal_data); 1993s # extern 1993s # void g_cclosure_user_marshal_VOID__STRINGv (GClosure *closure, 1993s # GValue *return_value, 1993s # gpointer instance, 1993s # va_list args, 1993s # gpointer marshal_data, 1993s # int n_params, 1993s # GType *param_types); 1993s # 1993s # 1993s # G_END_DECLS 1993s # 1993s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1993s # Error: 1993s # 1993s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpcdz3mu7q/tmpkzgi23j8.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 1993s # Return code: 0 1993s # Output: 1993s # /* This file is generated by glib-genmarshal, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */ 1993s # #ifdef G_ENABLE_DEBUG 1993s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1993s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1993s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1993s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1993s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1993s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1993s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1993s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1993s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1993s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1993s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1993s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1993s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1993s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1993s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1993s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1993s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1993s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1993s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1993s # #else /* !G_ENABLE_DEBUG */ 1993s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1993s # * Do not access GValues directly in your code. Instead, use the 1993s # * g_value_get_*() functions 1993s # */ 1993s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1993s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1993s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1993s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1993s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1993s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1993s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1993s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1993s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1993s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1993s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1993s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1993s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1993s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1993s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1993s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1993s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1993s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1993s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1993s # #endif /* !G_ENABLE_DEBUG */ 1993s # 1993s # /* VOID:STRING (/tmp/tmpcdz3mu7q/tmpkzgi23j8.list:1) */ 1993s # void 1993s # g_cclosure_user_marshal_VOID__STRING (GClosure *closure, 1993s # GValue *return_value G_GNUC_UNUSED, 1993s # guint n_param_values, 1993s # const GValue *param_values, 1993s # gpointer invocation_hint G_GNUC_UNUSED, 1993s # gpointer marshal_data) 1993s # { 1993s # typedef void (*GMarshalFunc_VOID__STRING) (gpointer data1, 1993s # gpointer arg1, 1993s # gpointer data2); 1993s # GCClosure *cc = (GCClosure *) closure; 1993s # gpointer data1, data2; 1993s # GMarshalFunc_VOID__STRING callback; 1993s # 1993s # g_return_if_fail (n_param_values == 2); 1993s # 1993s # if (G_CCLOSURE_SWAP_DATA (closure)) 1993s # { 1993s # data1 = closure->data; 1993s # data2 = g_value_peek_pointer (param_values + 0); 1993s # } 1993s # else 1993s # { 1993s # data1 = g_value_peek_pointer (param_values + 0); 1993s # data2 = closure->data; 1993s # } 1993s # callback = (GMarshalFunc_VOID__STRING) (marshal_data ? marshal_data : cc->callback); 1993s # 1993s # callback (data1, 1993s # g_marshal_value_peek_string (param_values + 1), 1993s # data2); 1993s # } 1993s # 1993s # void 1993s # g_cclosure_user_marshal_VOID__STRINGv (GClosure *closure, 1993s # GValue *return_value G_GNUC_UNUSED, 1993s # gpointer instance, 1993s # va_list args, 1993s # gpointer marshal_data, 1993s # int n_params, 1993s # GType *param_types) 1993s # { 1993s # typedef void (*GMarshalFunc_VOID__STRING) (gpointer data1, 1993s # gpointer arg1, 1993s # gpointer data2); 1993s # GCClosure *cc = (GCClosure *) closure; 1993s # gpointer data1, data2; 1993s # GMarshalFunc_VOID__STRING callback; 1993s # gpointer arg0; 1993s # va_list args_copy; 1993s # 1993s # va_copy (args_copy, args); 1993s # arg0 = (gpointer) va_arg (args_copy, gpointer); 1993s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1993s # arg0 = g_strdup (arg0); 1993s # va_end (args_copy); 1993s # 1993s # 1993s # if (G_CCLOSURE_SWAP_DATA (closure)) 1993s # { 1993s # data1 = closure->data; 1993s # data2 = instance; 1993s # } 1993s # else 1993s # { 1993s # data1 = instance; 1993s # data2 = closure->data; 1993s # } 1993s # callback = (GMarshalFunc_VOID__STRING) (marshal_data ? marshal_data : cc->callback); 1993s # 1993s # callback (data1, 1993s # arg0, 1993s # data2); 1993s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1993s # g_free (arg0); 1993s # } 1993s # Error: 1993s ok 8 __main__.TestGenmarshal.test_void_variant_nostdinc_valist_marshaller 1993s # glib-genmarshal: /usr/bin/glib-genmarshal 1993s # tmpdir: /tmp/tmpmafti68b 1993s # /tmp/tmpmafti68b/tmp5py6olp1.list: VOID:VARIANT 1993s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpmafti68b/tmp5py6olp1.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 1993s # Return code: 0 1993s # Output: 1993s # /* This file is generated by glib-genmarshal, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */ 1993s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1993s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1993s # 1993s # G_BEGIN_DECLS 1993s # 1993s # /* VOID:VARIANT (/tmp/tmpmafti68b/tmp5py6olp1.list:1) */ 1993s # extern 1993s # void g_cclosure_user_marshal_VOID__VARIANT (GClosure *closure, 1993s # GValue *return_value, 1993s # guint n_param_values, 1993s # const GValue *param_values, 1993s # gpointer invocation_hint, 1993s # gpointer marshal_data); 1993s # extern 1993s # void g_cclosure_user_marshal_VOID__VARIANTv (GClosure *closure, 1993s # GValue *return_value, 1993s # gpointer instance, 1993s # va_list args, 1993s # gpointer marshal_data, 1993s # int n_params, 1993s # GType *param_types); 1993s # 1993s # 1993s # G_END_DECLS 1993s # 1993s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1993s # Error: 1993s # 1993s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpmafti68b/tmp5py6olp1.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 1993s # Return code: 0 1993s # Output: 1993s # /* This file is generated by glib-genmarshal, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */ 1993s # #ifdef G_ENABLE_DEBUG 1993s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1993s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1993s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1993s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1993s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1993s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1993s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1993s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1993s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1993s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1993s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1993s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1993s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1993s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1993s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1993s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1993s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1993s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1993s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1993s # #else /* !G_ENABLE_DEBUG */ 1993s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1993s # * Do not access GValues directly in your code. Instead, use the 1993s # * g_value_get_*() functions 1993s # */ 1993s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1993s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1993s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1993s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1993s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1993s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1993s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1993s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1993s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1993s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1993s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1993s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1993s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1993s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1993s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1993s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1993s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1993s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1993s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1993s # #endif /* !G_ENABLE_DEBUG */ 1993s # 1993s # /* VOID:VARIANT (/tmp/tmpmafti68b/tmp5py6olp1.list:1) */ 1993s # void 1993s # g_cclosure_user_marshal_VOID__VARIANT (GClosure *closure, 1993s # GValue *return_value G_GNUC_UNUSED, 1993s # guint n_param_values, 1993s # const GValue *param_values, 1993s # gpointer invocation_hint G_GNUC_UNUSED, 1993s # gpointer marshal_data) 1993s # { 1993s # typedef void (*GMarshalFunc_VOID__VARIANT) (gpointer data1, 1993s # gpointer arg1, 1993s # gpointer data2); 1993s # GCClosure *cc = (GCClosure *) closure; 1993s # gpointer data1, data2; 1993s # GMarshalFunc_VOID__VARIANT callback; 1993s # 1993s # g_return_if_fail (n_param_values == 2); 1993s # 1993s # if (G_CCLOSURE_SWAP_DATA (closure)) 1993s # { 1993s # data1 = closure->data; 1993s # data2 = g_value_peek_pointer (param_values + 0); 1993s # } 1993s # else 1993s # { 1993s # data1 = g_value_peek_pointer (param_values + 0); 1993s # data2 = closure->data; 1993s # } 1993s # callback = (GMarshalFunc_VOID__VARIANT) (marshal_data ? marshal_data : cc->callback); 1993s # 1993s # callback (data1, 1993s # g_marshal_value_peek_variant (param_values + 1), 1993s # data2); 1993s # } 1993s # 1993s # void 1993s # g_cclosure_user_marshal_VOID__VARIANTv (GClosure *closure, 1993s # GValue *return_value G_GNUC_UNUSED, 1993s # gpointer instance, 1993s # va_list args, 1993s # gpointer marshal_data, 1993s # int n_params, 1993s # GType *param_types) 1993s # { 1993s # typedef void (*GMarshalFunc_VOID__VARIANT) (gpointer data1, 1993s # gpointer arg1, 1993s # gpointer data2); 1993s # GCClosure *cc = (GCClosure *) closure; 1993s # gpointer data1, data2; 1993s # GMarshalFunc_VOID__VARIANT callback; 1993s # gpointer arg0; 1993s # va_list args_copy; 1993s # 1993s # va_copy (args_copy, args); 1993s # arg0 = (gpointer) va_arg (args_copy, gpointer); 1993s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1993s # arg0 = g_variant_ref_sink (arg0); 1993s # va_end (args_copy); 1993s # 1993s # 1993s # if (G_CCLOSURE_SWAP_DATA (closure)) 1993s # { 1993s # data1 = closure->data; 1993s # data2 = instance; 1993s # } 1993s # else 1993s # { 1993s # data1 = instance; 1993s # data2 = closure->data; 1993s # } 1993s # callback = (GMarshalFunc_VOID__VARIANT) (marshal_data ? marshal_data : cc->callback); 1993s # 1993s # callback (data1, 1993s # arg0, 1993s # data2); 1993s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1993s # g_variant_unref (arg0); 1993s # } 1993s # Error: 1993s 1..8 1993s ok - glib/genmarshal.py.test 1993s # Running test: glib/tls-certificate.test 1993s TAP version 14 1993s # random seed: R02Sff53dbcf441badaad0e5e7ba3423fba1 1993s 1..19 1993s # Start of tls-certificate tests 1993s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ‘gio-tls-backend’ 1993s ok 1 /tls-certificate/pem-parser 1993s ok 2 /tls-certificate/pem-parser-handles-chain 1993s ok 3 /tls-certificate/from_file 1993s ok 4 /tls-certificate/from_files 1993s ok 5 /tls-certificate/from_files_crlf 1993s ok 6 /tls-certificate/from_files_pkcs8 1993s ok - glib/tls-certificate.test 1993s # Running test: glib/gi-compile-repository.py.test 1993s ok 7 /tls-certificate/from_files_pkcs8enc 1993s ok 8 /tls-certificate/list_from_file 1993s ok 9 /tls-certificate/pkcs11-uri 1993s ok 10 /tls-certificate/pkcs11-uri-unsupported 1993s ok 11 /tls-certificate/from_pkcs12 1993s ok 12 /tls-certificate/from_pkcs12_file 1993s ok 13 /tls-certificate/not-valid-before 1993s ok 14 /tls-certificate/not-valid-after 1993s ok 15 /tls-certificate/subject-name 1993s ok 16 /tls-certificate/issuer-name 1993s ok 17 /tls-certificate/dns-names 1993s ok 18 /tls-certificate/ip-addresses 1993s ok 19 /tls-certificate/pem-parser-no-sentinel 1993s # End of tls-certificate tests 1993s TAP version 13 1993s ok 1 __main__.TestGICompileRepository.test_open_failure 1993s # gir path set to [PosixPath('/usr/lib/arm-linux-gnueabihf/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 1993s # gi-compile-repository: /usr/bin/gi-compile-repository 1993s # tmpdir: /tmp/tmpje_umyep 1993s # Running: ['/usr/bin/gi-compile-repository', 'this-is/not/a-file.gir', '--output', '/tmp/tmpje_umyep/invalid.typelib'] 1993s # Return code: 1 1993s # Output: 1993s # 1993s # Error: 1993s # Error parsing file ‘this-is/not/a-file.gir’: Failed to open file “this-is/not/a-file.gir”: No such file or directory 1993s ok 2 __main__.TestGICompileRepositoryForGLib.test_compile 1993s # gir path set to [PosixPath('/usr/lib/arm-linux-gnueabihf/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 1993s # gi-compile-repository: /usr/bin/gi-compile-repository 1993s # tmpdir: /tmp/tmp51n9tllz 1993s # Running: ['/usr/bin/gi-compile-repository', '/usr/lib/arm-linux-gnueabihf/gir-1.0/GLib-2.0.gir', '--output', '/tmp/tmp51n9tllz/GLib-2.typelib'] 1993s # Return code: 0 1993s # Output: 1993s # 1993s # Error: 1994s ok 3 __main__.TestGICompileRepositoryForGLib.test_write_failure 1994s # gi-compile-repository: /usr/bin/gi-compile-repository 1994s # tmpdir: /tmp/tmp0r98gj0c 1994s # Running: ['/usr/bin/gi-compile-repository', '/usr/lib/arm-linux-gnueabihf/gir-1.0/GLib-2.0.gir', '--output', 'this-is/not/a-good-output/invalid.typelib'] 1994s # Return code: 1 1994s # Output: 1994s # 1994s # Error: 1994s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 1994s ok 4 __main__.TestGICompileRepositoryForGObject.test_compile 1994s # gir path set to [PosixPath('/usr/lib/arm-linux-gnueabihf/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 1994s # gi-compile-repository: /usr/bin/gi-compile-repository 1994s # tmpdir: /tmp/tmppyn0qe72 1994s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/GObject-2.0.gir', '--output', '/tmp/tmppyn0qe72/GObject-2.typelib', '--includedir', '/usr/lib/arm-linux-gnueabihf/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 1994s # Return code: 0 1994s # Output: 1994s # 1994s # Error: 1994s ok 5 __main__.TestGICompileRepositoryForGObject.test_write_failure 1994s # gi-compile-repository: /usr/bin/gi-compile-repository 1994s # tmpdir: /tmp/tmpszft8gsu 1994s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/GObject-2.0.gir', '--output', 'this-is/not/a-good-output/invalid.typelib', '--includedir', '/usr/lib/arm-linux-gnueabihf/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 1994s # Return code: 1 1994s # Output: 1994s # 1994s # Error: 1994s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 1994s ok 6 __main__.TestGICompileRepositoryForGio.test_compile 1994s # gir path set to [PosixPath('/usr/lib/arm-linux-gnueabihf/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 1994s # gi-compile-repository: /usr/bin/gi-compile-repository 1994s # tmpdir: /tmp/tmprtubxwh0 1994s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/Gio-2.0.gir', '--output', '/tmp/tmprtubxwh0/Gio-2.typelib', '--includedir', '/usr/lib/arm-linux-gnueabihf/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 1994s # Return code: 0 1994s # Output: 1994s # 1994s # Error: 1995s ok 7 __main__.TestGICompileRepositoryForGio.test_write_failure 1995s # gi-compile-repository: /usr/bin/gi-compile-repository 1995s # tmpdir: /tmp/tmpjtqbj4ix 1995s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/Gio-2.0.gir', '--output', 'this-is/not/a-good-output/invalid.typelib', '--includedir', '/usr/lib/arm-linux-gnueabihf/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 1995s # Return code: 1 1995s # Output: 1995s # 1995s # Error: 1995s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 1995s 1..7 1995s ok - glib/gi-compile-repository.py.test 1995s # Running test: glib/signalgroup.test 1995s TAP version 14 1995s # random seed: R02Se1eb0873c2687dc8cc4414fcc9371584 1995s 1..9 1995s # Start of GObject tests 1995s # Start of SignalGroup tests 1995s ok 1 /GObject/SignalGroup/invalid 1995s ok 2 /GObject/SignalGroup/simple 1995s ok 3 /GObject/SignalGroup/changing-target 1995s ok 4 /GObject/SignalGroup/blocking 1995s ok 5 /GObject/SignalGroup/weak-ref-target 1995s ok 6 /GObject/SignalGroup/connect-object 1995s ok 7 /GObject/SignalGroup/signal-parsing 1995s ok 8 /GObject/SignalGroup/properties 1995s ok 9 /GObject/SignalGroup/interface 1995s # Start of signal-parsing tests 1995s # End of signal-parsing tests 1995s # End of SignalGroup tests 1995s # End of GObject tests 1995s ok - glib/signalgroup.test 1995s # Running test: glib/fdo-notification-backend.test 1995s TAP version 14 1995s # random seed: R02S36680f3ea20320cc350791859e08b4b7 1995s 1..2 1995s # Start of fdo-notification-backend tests 1995s # Test constructing a GFdoNotificationBackend 1995s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1995s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1995s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1995s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1995s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1995s ok 1 /fdo-notification-backend/construction 1995s # Start of dbus tests 1995s # /fdo-notification-backend/dbus/activate-action summary: Test how the backend handles valid and invalid ActionInvoked signals from the daemon 1995s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1995s ok - glib/fdo-notification-backend.test 1995s # Running test: glib/value.test 1995s ok - glib/value.test 1995s # Running test: glib/static-link.test 1995s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1995s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1995s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1995s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1995s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1995s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1995s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1995s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1995s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1995s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1995s ok 2 /fdo-notification-backend/dbus/activate-action 1995s # End of dbus tests 1995s # End of fdo-notification-backend tests 1995s TAP version 14 1995s # random seed: R02Sef7c0a34bf5d9622616fca7592549339 1995s 1..9 1995s # Start of value tests 1995s ok 1 /value/basic 1995s ok 2 /value/collection 1995s ok 3 /value/copying 1995s ok 4 /value/enum-transformation 1995s ok 5 /value/gtype 1995s # /value/string summary: Test that G_TYPE_STRING GValue copy properly 1995s ok 6 /value/string 1995s # Next: GObject object in GValue of GObject to GValue of GObject 1995s # Next: GObject object in GValue of GObject to GValue of TestInterface 1995s # Next: GObject object in GValue of GObject to GValue of TestObjectA 1995s # Next: GObject object in GValue of GObject to GValue of TestObjectB 1995s # Next: GObject object in GValue of GObject to GValue of TestObjectA1 1995s # Next: GObject object in GValue of GObject to GValue of TestObjectA2 1995s # Next: TestObjectA object in GValue of GObject to GValue of GObject 1995s # Next: TestObjectA object in GValue of GObject to GValue of TestInterface 1995s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA 1995s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectB 1995s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA1 1995s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA2 1995s # Next: TestObjectA object in GValue of TestObjectA to GValue of GObject 1995s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestInterface 1995s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA 1995s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectB 1995s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA1 1995s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA2 1995s # Next: TestObjectB object in GValue of GObject to GValue of GObject 1995s # Next: TestObjectB object in GValue of GObject to GValue of TestInterface 1995s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA 1995s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectB 1995s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA1 1995s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA2 1995s # Next: TestObjectB object in GValue of TestInterface to GValue of GObject 1995s # Next: TestObjectB object in GValue of TestInterface to GValue of TestInterface 1995s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA 1995s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectB 1995s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA1 1995s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA2 1995s # Next: TestObjectB object in GValue of TestObjectB to GValue of GObject 1995s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestInterface 1995s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA 1995s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectB 1995s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA1 1995s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA2 1995s # Next: TestObjectA1 object in GValue of GObject to GValue of GObject 1995s # Next: TestObjectA1 object in GValue of GObject to GValue of TestInterface 1995s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA 1995s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectB 1995s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA1 1995s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA2 1995s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of GObject 1995s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestInterface 1995s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA 1995s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectB 1995s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA1 1995s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA2 1995s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of GObject 1995s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestInterface 1995s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA 1995s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectB 1995s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA1 1995s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA2 1995s # Next: TestObjectA2 object in GValue of GObject to GValue of GObject 1995s # Next: TestObjectA2 object in GValue of GObject to GValue of TestInterface 1995s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA 1995s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectB 1995s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA1 1995s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA2 1995s # Next: TestObjectA2 object in GValue of TestInterface to GValue of GObject 1995s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestInterface 1995s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA 1995s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectB 1995s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA1 1995s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA2 1995s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of GObject 1995s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestInterface 1995s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA 1995s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectB 1995s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA1 1995s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA2 1995s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of GObject 1995s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestInterface 1995s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA 1995s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectB 1995s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA1 1995s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA2 1995s ok 7 /value/transform-object 1995s # Start of array tests 1995s ok 8 /value/array/basic 1995s ok 9 /value/array/sort-with-data 1995s # End of array tests 1995s # End of value tests 1995s Test disabled because GLIB_TEST_COMPILATION is not set in the env. 1995s If you wish to run this test, set GLIB_TEST_COMPILATION=1 in the env, 1995s and make sure you have glib build dependencies installed, including 1995s meson. 1995s ok # SKIP - glib/static-link.test 1995s # Running test: glib/union-info.test 1995s TAP version 14 1995s # random seed: R02S69a44077ea81b67ad71b5647bed8495b 1995s 1..2 1995s # Start of union-info tests 1995s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_union-info_LJOKC3/union-info/basic/.dirs/home 1995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_union-info_LJOKC3/union-info/basic/.dirs/cache 1995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_union-info_LJOKC3/union-info/basic/.dirs/system-config1:/tmp/test_union-info_LJOKC3/union-info/basic/.dirs/system-config2 1995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_union-info_LJOKC3/union-info/basic/.dirs/config 1995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_union-info_LJOKC3/union-info/basic/.dirs/system-data1:/tmp/test_union-info_LJOKC3/union-info/basic/.dirs/system-data2 1995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_union-info_LJOKC3/union-info/basic/.dirs/data 1995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_union-info_LJOKC3/union-info/basic/.dirs/state 1995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_union-info_LJOKC3/union-info/basic/.dirs/runtime 1995s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1995s # /union-info/basic summary: Test basic properties of GIUnionInfo 1995s ok 1 /union-info/basic 1995s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_union-info_LJOKC3/union-info/methods/.dirs/home 1995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_union-info_LJOKC3/union-info/methods/.dirs/cache 1995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_union-info_LJOKC3/union-info/methods/.dirs/system-config1:/tmp/test_union-info_LJOKC3/union-info/methods/.dirs/system-config2 1995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_union-info_LJOKC3/union-info/methods/.dirs/config 1995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_union-info_LJOKC3/union-info/methods/.dirs/system-data1:/tmp/test_union-info_LJOKC3/union-info/methods/.dirs/system-data2 1995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_union-info_LJOKC3/union-info/methods/.dirs/data 1995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_union-info_LJOKC3/union-info/methods/.dirs/state 1995s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_union-info_LJOKC3/union-info/methods/.dirs/runtime 1995s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1995s # /union-info/methods summary: Test retrieving methods from GIUnionInfo 1995s ok 2 /union-info/methods 1995s # End of union-info tests 1995s ok - glib/union-info.test 1995s # Running test: glib/notify-init.test 1995s TAP version 14 1995s # random seed: R02S52ca45ce59651faca41b330c64963b2e 1995s 1..1 1995s # Start of properties tests 1995s # /properties/notify-in-init summary: Test that emitting notify with a handler already connected in test_object_init() works 1995s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2665 1995s ok 1 /properties/notify-in-init 1995s # End of properties tests 1995s ok - glib/notify-init.test 1995s # Running test: glib/network-address.test 1995s TAP version 14 1995s # random seed: R02Sc30aad00b3b13d3960559f485c8960c1 1995s 1..72 1995s # Start of network-address tests 1995s ok 1 /network-address/basic 1995s ok 2 /network-address/scope-id 1995s ok 3 /network-address/uri-scope-id 1995s ok 4 /network-address/to-string 1995s # Start of parse-host tests 1995s ok 5 /network-address/parse-host/0 1995s ok 6 /network-address/parse-host/1 1995s ok 7 /network-address/parse-host/2 1995s ok 8 /network-address/parse-host/3 1995s ok 9 /network-address/parse-host/4 1995s ok 10 /network-address/parse-host/5 1995s ok 11 /network-address/parse-host/6 1995s ok 12 /network-address/parse-host/7 1995s ok 13 /network-address/parse-host/8 1995s ok 14 /network-address/parse-host/9 1995s ok 15 /network-address/parse-host/10 1995s ok 16 /network-address/parse-host/11 1995s ok 17 /network-address/parse-host/12 1995s ok 18 /network-address/parse-host/13 1995s # End of parse-host tests 1995s # Start of parse-uri tests 1995s ok 19 /network-address/parse-uri/0 1995s ok 20 /network-address/parse-uri/1 1995s ok 21 /network-address/parse-uri/2 1995s ok 22 /network-address/parse-uri/3 1995s ok 23 /network-address/parse-uri/4 1995s ok 24 /network-address/parse-uri/5 1995s ok 25 /network-address/parse-uri/6 1995s ok 26 /network-address/parse-uri/7 1995s ok 27 /network-address/parse-uri/8 1995s ok 28 /network-address/parse-uri/9 1995s # End of parse-uri tests 1995s # Start of resolve-address tests 1995s # Input: 192.168.1.2 1995s ok 29 /network-address/resolve-address/0 1995s # Input: fe80::42 1995s ok 30 /network-address/resolve-address/1 1995s # Input: 192.168.1.2:80 1995s ok 31 /network-address/resolve-address/2 1995s # Input: [fe80::42] 1995s ok 32 /network-address/resolve-address/3 1995s # Input: [fe80::42]:80 1995s ok 33 /network-address/resolve-address/4 1995s # Input: 192.168.258 1995s ok 34 /network-address/resolve-address/5 1995s # Input: 192.11010306 1995s ok 35 /network-address/resolve-address/6 1995s # Input: 3232235778 1995s ok 36 /network-address/resolve-address/7 1995s # Input: 0300.0250.0001.0001 1995s ok 37 /network-address/resolve-address/8 1995s # Input: 0xC0.0xA8.0x01.0x02 1995s ok 38 /network-address/resolve-address/9 1995s # Input: 0xc0.0xa8.0x01.0x02 1995s ok 39 /network-address/resolve-address/10 1995s # Input: 0xc0a80102 1995s ok 40 /network-address/resolve-address/11 1995s # End of resolve-address tests 1995s # Start of loopback tests 1995s ok 41 /network-address/loopback/basic 1995s ok 42 /network-address/loopback/sync 1995s ok 43 /network-address/loopback/async 1995s # End of loopback tests 1995s # Start of localhost tests 1995s ok 44 /network-address/localhost/async 1995s ok 45 /network-address/localhost/sync 1995s # End of localhost tests 1995s # Start of happy-eyeballs tests 1995s ok 46 /network-address/happy-eyeballs/basic 1995s ok 47 /network-address/happy-eyeballs/parallel 1995s ok 48 /network-address/happy-eyeballs/slow-ipv4 1995s ok 49 /network-address/happy-eyeballs/slow-ipv6 1995s ok 50 /network-address/happy-eyeballs/very-slow-ipv6 1996s ok 51 /network-address/happy-eyeballs/slow-connection-and-ipv4 1996s # slow test /network-address/happy-eyeballs/slow-connection-and-ipv4 executed in 0.80 secs 1996s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1996s ok 52 /network-address/happy-eyeballs/ipv6-error-ipv4-first 1996s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1996s ok 53 /network-address/happy-eyeballs/ipv6-error-ipv6-first 1996s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/865 1996s # /network-address/happy-eyeballs/ipv6-error-ipv4-very-slow summary: Ensure that we successfully return IPv4 results even when they come significantly later than an IPv6 failure. 1996s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1996s ok 54 /network-address/happy-eyeballs/ipv6-error-ipv4-very-slow 1996s # Executing: glib/network-address.test 1996s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1996s ok 55 /network-address/happy-eyeballs/ipv4-error-ipv6-first 1996s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1996s ok 56 /network-address/happy-eyeballs/ipv4-error-ipv4-first 1996s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1996s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1996s ok 57 /network-address/happy-eyeballs/both-error 1996s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1996s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1996s ok 58 /network-address/happy-eyeballs/both-error-delays-1 1996s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1997s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1997s ok 59 /network-address/happy-eyeballs/both-error-delays-2 1997s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1997s ok 60 /network-address/happy-eyeballs/both-error-delays-3 1997s # End of happy-eyeballs tests 1997s # End of network-address tests 1997s # Start of gresolver tests 1997s # Start of resolve-address tests 1997s # Input: 192.168.1.2 1997s ok 61 /gresolver/resolve-address/0 1997s # Input: fe80::42 1997s ok 62 /gresolver/resolve-address/1 1997s # Input: 192.168.1.2:80 1997s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 192.168.1.2:80 1997s # GLib-GIO-DEBUG: Failed to initialize portal (GNetworkMonitorPortal) for gio-network-monitor: Not using portals 1997s # GLib-GIO-DEBUG: Failed to initialize networkmanager (GNetworkMonitorNM) for gio-network-monitor: NetworkManager not running 1997s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation netlink (GNetworkMonitorNetlink) for ‘gio-network-monitor’ 1997s # Error: Error resolving “192.168.1.2:80”: Name or service not known 1997s ok 63 /gresolver/resolve-address/2 1997s # Input: [fe80::42] 1997s ok - glib/network-address.test 1997s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [fe80::42] 1997s # Error: Error resolving “[fe80::42]”: Name or service not known 1997s ok 64 /gresolver/resolve-address/3 1997s # Input: [fe80::42]:80 1997s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [fe80::42]:80 1997s # Error: Error resolving “[fe80::42]:80”: Name or service not known 1997s ok 65 /gresolver/resolve-address/4 1997s # Input: 192.168.258 1997s # Error: Error resolving “192.168.258”: Name or service not known 1997s ok 66 /gresolver/resolve-address/5 1997s # Input: 192.11010306 1997s # Error: Error resolving “192.11010306”: Name or service not known 1997s ok 67 /gresolver/resolve-address/6 1997s # Input: 3232235778 1997s # Error: Error resolving “3232235778”: Name or service not known 1997s ok 68 /gresolver/resolve-address/7 1997s # Input: 0300.0250.0001.0001 1997s # Error: Error resolving “0300.0250.0001.0001”: Name or service not known 1997s ok 69 /gresolver/resolve-address/8 1997s # Input: 0xC0.0xA8.0x01.0x02 1997s # Error: Error resolving “0xC0.0xA8.0x01.0x02”: Name or service not known 1997s ok 70 /gresolver/resolve-address/9 1997s # Input: 0xc0.0xa8.0x01.0x02 1997s # Error: Error resolving “0xc0.0xa8.0x01.0x02”: Name or service not known 1997s ok 71 /gresolver/resolve-address/10 1997s # Input: 0xc0a80102 1997s # Error: Error resolving “0xc0a80102”: Name or service not known 1997s ok 72 /gresolver/resolve-address/11 1997s # End of resolve-address tests 1997s # End of gresolver tests 1997s # Running test: glib/unicode.test 1997s TAP version 14 1997s # random seed: R02S6385c218642f4bdcf24d560ef6b542c4 1997s 1..39 1997s # Start of unicode tests 1997s ok 1 /unicode/alnum 1997s ok 2 /unicode/alpha 1997s ok - glib/unicode.test 1997s # Running test: glib/appmonitor.test 1997s ok 3 /unicode/break-type 1997s ok 4 /unicode/canonical-decomposition 1997s ok 5 /unicode/casefold 1997s # Cannot set locale to lt_LT, skipping 1997s # Cannot set locale to lt_LT, skipping 1997s # Cannot set locale to lt_LT, skipping 1997s # Cannot set locale to lt_LT, skipping 1997s # Cannot set locale to lt_LT, skipping 1997s # Cannot set locale to lt_LT, skipping 1997s # Cannot set locale to lt_LT, skipping 1997s # Cannot set locale to lt_LT, skipping 1997s # Cannot set locale to lt_LT, skipping 1997s # Cannot set locale to lt_LT, skipping 1997s # Cannot set locale to lt_LT, skipping 1997s ok 6 /unicode/casemap_and_casefold 1997s ok 7 /unicode/cases 1997s ok 8 /unicode/character-type 1997s ok 9 /unicode/cntrl 1997s ok 10 /unicode/combining-class 1997s # Composing U+000041 and U+000042; expecting U+000000 1997s # Composing U+000041 and U+000000; expecting U+000000 1997s # Composing U+000066 and U+000069; expecting U+000000 1997s # Composing U+000308 and U+000301; expecting U+000000 1997s # Composing U+000f71 and U+000f72; expecting U+000000 1997s # Composing U+00212b and U+000000; expecting U+000000 1997s # Composing U+0000c5 and U+000000; expecting U+000000 1997s # Composing U+002126 and U+000000; expecting U+000000 1997s # Composing U+0003a9 and U+000000; expecting U+000000 1997s # Composing U+000041 and U+00030a; expecting U+0000c5 1997s # Composing U+00006f and U+000302; expecting U+0000f4 1997s # Composing U+001e63 and U+000307; expecting U+001e69 1997s # Composing U+000073 and U+000323; expecting U+001e63 1997s # Composing U+000064 and U+000307; expecting U+001e0b 1997s # Composing U+000064 and U+000323; expecting U+001e0d 1997s # Composing U+00d4cc and U+0011b6; expecting U+00d4db 1997s # Composing U+001111 and U+001171; expecting U+00d4cc 1997s # Composing U+00ce20 and U+0011b8; expecting U+00ce31 1997s # Composing U+00110e and U+001173; expecting U+00ce20 1997s # Composing U+001100 and U+001160; expecting U+000000 1997s # Composing U+001100 and U+001177; expecting U+000000 1997s # Composing U+00abff and U+0011b6; expecting U+000000 1997s # Composing U+00d7a5 and U+0011b6; expecting U+000000 1997s # Composing U+00ac01 and U+0011b6; expecting U+000000 1997s # Composing U+00d4cc and U+0011a6; expecting U+000000 1997s # Composing U+00d4cc and U+0011c4; expecting U+000000 1997s # Composing U+01611e and U+01611e; expecting U+016121 1997s # Composing U+01611e and U+01611f; expecting U+016123 1997s # Composing U+0000f6 and U+000304; expecting U+00022b 1997s # Composing U+000b47 and U+000b57; expecting U+000b4c 1997s # Composing U+0000a0 and U+000b57; expecting U+000000 1997s # Composing U+016e00 and U+00030a; expecting U+000000 1997s # Composing U+00212b and U+016e00; expecting U+000000 1997s # Composing U+001e63 and U+000306; expecting U+000000 1997s # Composing U+001e63 and U+000304; expecting U+000000 1997s # Composing U+001e63 and U+000b57; expecting U+000000 1997s # Composing U+001e63 and U+000000; expecting U+000000 1997s # Composing U+001e63 and U+0113c2; expecting U+000000 1997s # Composing U+001f01 and U+0113c2; expecting U+000000 1997s # Composing U+00006e and U+000302; expecting U+000000 1997s # Composing U+001e63 and U+01611f; expecting U+000000 1997s # Composing U+01138e and U+0113b8; expecting U+000000 1997s # Composing U+01611e and U+000000; expecting U+000000 1997s # Composing U+000000 and U+01611f; expecting U+000000 1997s # Composing U+011390 and U+0113c2; expecting U+000000 1997s ok 11 /unicode/compose 1997s ok 12 /unicode/decompose 1997s ok 13 /unicode/decompose-tail 1997s ok 14 /unicode/defined 1997s ok 15 /unicode/digit 1997s ok 16 /unicode/digit-value 1997s # Fully decomposing U+000041; expecting 1 codepoints 1997s # Fully decomposing U+00fb01; expecting 1 codepoints 1997s # Fully decomposing U+00212b; expecting 2 codepoints 1997s # Fully decomposing U+002126; expecting 1 codepoints 1997s # Fully decomposing U+000344; expecting 2 codepoints 1997s # Fully decomposing U+000f73; expecting 2 codepoints 1997s # Fully decomposing U+0000c5; expecting 2 codepoints 1997s # Fully decomposing U+0000f4; expecting 2 codepoints 1997s # Fully decomposing U+001e69; expecting 3 codepoints 1997s # Fully decomposing U+001e63; expecting 2 codepoints 1997s # Fully decomposing U+001e0b; expecting 2 codepoints 1997s # Fully decomposing U+001e0d; expecting 2 codepoints 1997s # Fully decomposing U+00d4db; expecting 3 codepoints 1997s # Fully decomposing U+00d4cc; expecting 2 codepoints 1997s # Fully decomposing U+00ce31; expecting 3 codepoints 1997s # Fully decomposing U+00ce20; expecting 2 codepoints 1997s ok 17 /unicode/fully-decompose-canonical 1997s ok 18 /unicode/fully-decompose-len 1997s ok 19 /unicode/normalization 1997s ok 20 /unicode/graph 1997s # Testing script Zyyy (code 1517910393) 1997s # Testing script Zinh (code 1516858984) 1997s # Testing script Zmth (code 1517122664) 1997s # Testing script Arab (code 1098015074) 1997s # Testing script Armn (code 1098018158) 1997s # Testing script Beng (code 1113943655) 1997s # Testing script Bopo (code 1114599535) 1997s # Testing script Cher (code 1130915186) 1997s # Testing script Copt (code 1131376756) 1997s # Testing script Cyrl (code 1132032620) 1997s # Testing script Dsrt (code 1148416628) 1997s # Testing script Deva (code 1147500129) 1997s # Testing script Ethi (code 1165256809) 1997s # Testing script Geor (code 1197830002) 1997s # Testing script Goth (code 1198486632) 1997s # Testing script Grek (code 1198679403) 1997s # Testing script Gujr (code 1198877298) 1997s # Testing script Guru (code 1198879349) 1997s # Testing script Hani (code 1214344809) 1997s # Testing script Hang (code 1214344807) 1997s # Testing script Hebr (code 1214603890) 1997s # Testing script Hira (code 1214870113) 1997s # Testing script Knda (code 1265525857) 1997s # Testing script Kana (code 1264676449) 1997s # Testing script Khmr (code 1265134962) 1997s # Testing script Laoo (code 1281453935) 1997s # Testing script Latn (code 1281455214) 1997s # Testing script Mlym (code 1298954605) 1997s # Testing script Mong (code 1299148391) 1997s # Testing script Mymr (code 1299803506) 1997s # Testing script Ogam (code 1332175213) 1997s # Testing script Ital (code 1232363884) 1997s # Testing script Orya (code 1332902241) 1997s # Testing script Runr (code 1383427698) 1997s # Testing script Sinh (code 1399418472) 1997s # Testing script Syrc (code 1400468067) 1997s # Testing script Taml (code 1415671148) 1997s # Testing script Telu (code 1415933045) 1997s # Testing script Thaa (code 1416126817) 1997s # Testing script Thai (code 1416126825) 1997s # Testing script Tibt (code 1416192628) 1997s # Testing script Cans (code 1130458739) 1997s # Testing script Yiii (code 1500080489) 1997s # Testing script Tglg (code 1416064103) 1997s # Testing script Hano (code 1214344815) 1997s # Testing script Buhd (code 1114990692) 1997s # Testing script Tagb (code 1415669602) 1997s # Testing script Brai (code 1114792297) 1997s # Testing script Cprt (code 1131442804) 1997s # Testing script Limb (code 1281977698) 1997s # Testing script Osma (code 1332964705) 1997s # Testing script Shaw (code 1399349623) 1997s # Testing script Linb (code 1281977954) 1997s # Testing script Tale (code 1415670885) 1997s # Testing script Ugar (code 1432838514) 1997s # Testing script Talu (code 1415670901) 1997s # Testing script Bugi (code 1114990441) 1997s # Testing script Glag (code 1198285159) 1997s # Testing script Tfng (code 1415999079) 1997s # Testing script Sylo (code 1400466543) 1997s # Testing script Xpeo (code 1483761007) 1997s # Testing script Khar (code 1265131890) 1997s # Testing script Zzzz (code 1517976186) 1997s # Testing script Bali (code 1113681001) 1997s # Testing script Xsux (code 1483961720) 1997s # Testing script Phnx (code 1349021304) 1997s # Testing script Phag (code 1349017959) 1997s # Testing script Nkoo (code 1315663727) 1997s # Testing script Kali (code 1264675945) 1997s # Testing script Lepc (code 1281716323) 1997s # Testing script Rjng (code 1382706791) 1997s # Testing script Sund (code 1400204900) 1997s # Testing script Saur (code 1398895986) 1997s # Testing script Cham (code 1130914157) 1997s # Testing script Olck (code 1332503403) 1997s # Testing script Vaii (code 1449224553) 1997s # Testing script Cari (code 1130459753) 1997s # Testing script Lyci (code 1283023721) 1997s # Testing script Lydi (code 1283023977) 1997s # Testing script Avst (code 1098281844) 1997s # Testing script Bamu (code 1113681269) 1997s # Testing script Egyp (code 1164409200) 1997s # Testing script Armi (code 1098018153) 1997s # Testing script Phli (code 1349020777) 1997s # Testing script Prti (code 1349678185) 1997s # Testing script Java (code 1247901281) 1997s # Testing script Kthi (code 1265920105) 1997s # Testing script Lisu (code 1281979253) 1997s # Testing script Mtei (code 1299473769) 1997s # Testing script Sarb (code 1398895202) 1997s # Testing script Orkh (code 1332898664) 1997s # Testing script Samr (code 1398893938) 1997s # Testing script Lana (code 1281453665) 1997s # Testing script Tavt (code 1415673460) 1997s # Testing script Batk (code 1113683051) 1997s # Testing script Brah (code 1114792296) 1997s # Testing script Mand (code 1298230884) 1997s # Testing script Cakm (code 1130457965) 1997s # Testing script Merc (code 1298494051) 1997s # Testing script Mero (code 1298494063) 1997s # Testing script Plrd (code 1349284452) 1997s # Testing script Shrd (code 1399353956) 1997s # Testing script Sora (code 1399812705) 1997s # Testing script Takr (code 1415670642) 1997s # Testing script Bass (code 1113682803) 1997s # Testing script Aghb (code 1097295970) 1997s # Testing script Dupl (code 1148547180) 1997s # Testing script Elba (code 1164730977) 1997s # Testing script Gran (code 1198678382) 1997s # Testing script Khoj (code 1265135466) 1997s # Testing script Sind (code 1399418468) 1997s # Testing script Lina (code 1281977953) 1997s # Testing script Mahj (code 1298229354) 1997s # Testing script Mani (code 1298230889) 1997s # Testing script Mend (code 1298493028) 1997s # Testing script Modi (code 1299145833) 1997s # Testing script Mroo (code 1299345263) 1997s # Testing script Nbat (code 1315070324) 1997s # Testing script Narb (code 1315009122) 1997s # Testing script Perm (code 1348825709) 1997s # Testing script Hmng (code 1215131239) 1997s # Testing script Palm (code 1348562029) 1997s # Testing script Pauc (code 1348564323) 1997s # Testing script Phlp (code 1349020784) 1997s # Testing script Sidd (code 1399415908) 1997s # Testing script Tirh (code 1416196712) 1997s # Testing script Wara (code 1466004065) 1997s # Testing script Ahom (code 1097363309) 1997s # Testing script Hluw (code 1215067511) 1997s # Testing script Hatr (code 1214346354) 1997s # Testing script Mult (code 1299541108) 1997s # Testing script Hung (code 1215655527) 1997s # Testing script Sgnw (code 1399287415) 1997s # Testing script Adlm (code 1097100397) 1997s # Testing script Bhks (code 1114139507) 1997s # Testing script Marc (code 1298231907) 1997s # Testing script Newa (code 1315272545) 1997s # Testing script Osge (code 1332963173) 1997s # Testing script Tang (code 1415671399) 1997s # Testing script Gonm (code 1198485101) 1997s # Testing script Nshu (code 1316186229) 1997s # Testing script Soyo (code 1399814511) 1997s # Testing script Zanb (code 1516334690) 1997s # Testing script Dogr (code 1148151666) 1997s # Testing script Gong (code 1198485095) 1997s # Testing script Rohg (code 1383032935) 1997s # Testing script Maka (code 1298230113) 1997s # Testing script Medf (code 1298490470) 1997s # Testing script Sogo (code 1399809903) 1997s # Testing script Sogd (code 1399809892) 1997s # Testing script Elym (code 1164736877) 1997s # Testing script Nand (code 1315008100) 1997s # Testing script Hmnp (code 1215131248) 1997s # Testing script Wcho (code 1466132591) 1997s # Testing script Chrs (code 1130918515) 1997s # Testing script Diak (code 1147756907) 1997s # Testing script Kits (code 1265202291) 1997s # Testing script Yezi (code 1499822697) 1997s # Testing script Cpmn (code 1131441518) 1997s # Testing script Ougr (code 1333094258) 1997s # Testing script Tnsa (code 1416524641) 1997s # Testing script Toto (code 1416590447) 1997s # Testing script Vith (code 1449751656) 1997s # Testing script Kawi (code 1264678761) 1997s # Testing script Nagm (code 1315006317) 1997s # Testing script Todr (code 1416586354) 1997s # Testing script Gara (code 1197568609) 1997s # Testing script Tutg (code 1416983655) 1997s # Testing script Sunu (code 1400204917) 1997s # Testing script Gukh (code 1198877544) 1997s # Testing script Krai (code 1265787241) 1997s # Testing script Onao (code 1332633967) 1997s ok 21 /unicode/iso15924 1997s ok 22 /unicode/lower 1997s ok 23 /unicode/mark 1997s ok 24 /unicode/mirror 1997s ok 25 /unicode/print 1997s ok 26 /unicode/punctuation 1997s ok 27 /unicode/script 1997s ok 28 /unicode/space 1997s ok 29 /unicode/strdown 1997s ok 30 /unicode/strup 1997s ok 31 /unicode/turkish-strupdown 1997s ok 32 /unicode/title 1997s ok 33 /unicode/upper 1997s ok 34 /unicode/validate 1997s ok 35 /unicode/wide 1997s ok 36 /unicode/xdigit 1997s ok 37 /unicode/xdigit-value 1997s ok 38 /unicode/zero-width 1997s ok 39 /unicode/normalize 1997s # End of unicode tests 1997s TAP version 14 1997s # random seed: R02Sf1e7f83fd11696cddf9a67c2c390c838 1997s 1..1 1997s # Start of monitor tests 1997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_appmonitor_3I7AC3/monitor/app/.dirs/home 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_appmonitor_3I7AC3/monitor/app/.dirs/cache 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_appmonitor_3I7AC3/monitor/app/.dirs/system-config1:/tmp/test_appmonitor_3I7AC3/monitor/app/.dirs/system-config2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_appmonitor_3I7AC3/monitor/app/.dirs/config 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_appmonitor_3I7AC3/monitor/app/.dirs/system-data1:/tmp/test_appmonitor_3I7AC3/monitor/app/.dirs/system-data2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_appmonitor_3I7AC3/monitor/app/.dirs/data 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_appmonitor_3I7AC3/monitor/app/.dirs/state 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_appmonitor_3I7AC3/monitor/app/.dirs/runtime 1997s # Using data directory: /tmp/test_appmonitor_3I7AC3/monitor/app/.dirs/data 1997s ok 1 /monitor/app 1997s # End of monitor tests 1997s ok - glib/appmonitor.test 1997s # Running test: glib/gdbus-export.test 1997s TAP version 14 1997s # random seed: R02Scb839a3de0abb305369235342a3e9ebe 1997s 1..7 1997s # Start of gdbus tests 1997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/object-registration/.dirs/home 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/object-registration/.dirs/cache 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_7XRAC3/gdbus/object-registration/.dirs/system-config1:/tmp/test_gdbus-export_7XRAC3/gdbus/object-registration/.dirs/system-config2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/object-registration/.dirs/config 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_7XRAC3/gdbus/object-registration/.dirs/system-data1:/tmp/test_gdbus-export_7XRAC3/gdbus/object-registration/.dirs/system-data2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/object-registration/.dirs/data 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/object-registration/.dirs/state 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_7XRAC3/gdbus/object-registration/.dirs/runtime 1997s ok 1 /gdbus/object-registration 1997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/object-registration-with-closures/.dirs/home 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/object-registration-with-closures/.dirs/cache 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_7XRAC3/gdbus/object-registration-with-closures/.dirs/system-config1:/tmp/test_gdbus-export_7XRAC3/gdbus/object-registration-with-closures/.dirs/system-config2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/object-registration-with-closures/.dirs/config 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_7XRAC3/gdbus/object-registration-with-closures/.dirs/system-data1:/tmp/test_gdbus-export_7XRAC3/gdbus/object-registration-with-closures/.dirs/system-data2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/object-registration-with-closures/.dirs/data 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/object-registration-with-closures/.dirs/state 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_7XRAC3/gdbus/object-registration-with-closures/.dirs/runtime 1997s ok 2 /gdbus/object-registration-with-closures 1997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/object-registration-with-closures2/.dirs/home 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/object-registration-with-closures2/.dirs/cache 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_7XRAC3/gdbus/object-registration-with-closures2/.dirs/system-config1:/tmp/test_gdbus-export_7XRAC3/gdbus/object-registration-with-closures2/.dirs/system-config2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/object-registration-with-closures2/.dirs/config 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_7XRAC3/gdbus/object-registration-with-closures2/.dirs/system-data1:/tmp/test_gdbus-export_7XRAC3/gdbus/object-registration-with-closures2/.dirs/system-data2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/object-registration-with-closures2/.dirs/data 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/object-registration-with-closures2/.dirs/state 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_7XRAC3/gdbus/object-registration-with-closures2/.dirs/runtime 1997s ok 3 /gdbus/object-registration-with-closures2 1997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/registered-interfaces/.dirs/home 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/registered-interfaces/.dirs/cache 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_7XRAC3/gdbus/registered-interfaces/.dirs/system-config1:/tmp/test_gdbus-export_7XRAC3/gdbus/registered-interfaces/.dirs/system-config2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/registered-interfaces/.dirs/config 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_7XRAC3/gdbus/registered-interfaces/.dirs/system-data1:/tmp/test_gdbus-export_7XRAC3/gdbus/registered-interfaces/.dirs/system-data2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/registered-interfaces/.dirs/data 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/registered-interfaces/.dirs/state 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_7XRAC3/gdbus/registered-interfaces/.dirs/runtime 1997s ok 4 /gdbus/registered-interfaces 1997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/async-properties/.dirs/home 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/async-properties/.dirs/cache 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_7XRAC3/gdbus/async-properties/.dirs/system-config1:/tmp/test_gdbus-export_7XRAC3/gdbus/async-properties/.dirs/system-config2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/async-properties/.dirs/config 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_7XRAC3/gdbus/async-properties/.dirs/system-data1:/tmp/test_gdbus-export_7XRAC3/gdbus/async-properties/.dirs/system-data2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/async-properties/.dirs/data 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/async-properties/.dirs/state 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_7XRAC3/gdbus/async-properties/.dirs/runtime 1997s ok 5 /gdbus/async-properties 1997s # Start of threaded-unregistration tests 1997s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/threaded-unregistration/object/.dirs/home 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/threaded-unregistration/object/.dirs/cache 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_7XRAC3/gdbus/threaded-unregistration/object/.dirs/system-config1:/tmp/test_gdbus-export_7XRAC3/gdbus/threaded-unregistration/object/.dirs/system-config2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/threaded-unregistration/object/.dirs/config 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_7XRAC3/gdbus/threaded-unregistration/object/.dirs/system-data1:/tmp/test_gdbus-export_7XRAC3/gdbus/threaded-unregistration/object/.dirs/system-data2 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/threaded-unregistration/object/.dirs/data 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/threaded-unregistration/object/.dirs/state 1997s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_7XRAC3/gdbus/threaded-unregistration/object/.dirs/runtime 1997s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2400 1997s # /gdbus/threaded-unregistration/object summary: Test that object/subtree unregistration from one thread doesn’t cause problems when racing with method callbacks in another thread for that object or subtree 1999s ok 6 /gdbus/threaded-unregistration/object # SKIP Failed to reproduce race (46 iterations with unregistration first, 954 with call first); skipping test 1999s # slow test /gdbus/threaded-unregistration/object executed in 2.40 secs 1999s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/threaded-unregistration/subtree/.dirs/home 1999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/threaded-unregistration/subtree/.dirs/cache 1999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_7XRAC3/gdbus/threaded-unregistration/subtree/.dirs/system-config1:/tmp/test_gdbus-export_7XRAC3/gdbus/threaded-unregistration/subtree/.dirs/system-config2 1999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/threaded-unregistration/subtree/.dirs/config 1999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_7XRAC3/gdbus/threaded-unregistration/subtree/.dirs/system-data1:/tmp/test_gdbus-export_7XRAC3/gdbus/threaded-unregistration/subtree/.dirs/system-data2 1999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/threaded-unregistration/subtree/.dirs/data 1999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_7XRAC3/gdbus/threaded-unregistration/subtree/.dirs/state 1999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_7XRAC3/gdbus/threaded-unregistration/subtree/.dirs/runtime 1999s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2400 1999s # /gdbus/threaded-unregistration/subtree summary: Test that object/subtree unregistration from one thread doesn’t cause problems when racing with method callbacks in another thread for that object or subtree 2001s ok 7 /gdbus/threaded-unregistration/subtree # SKIP Failed to reproduce race (38 iterations with unregistration first, 962 with call first); skipping test 2001s # slow test /gdbus/threaded-unregistration/subtree executed in 2.29 secs 2001s # End of threaded-unregistration tests 2001s # End of gdbus tests 2001s # Executing: glib/gdbus-export.test 2001s ok - glib/gdbus-export.test 2001s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2001s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2001s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2001s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2001s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2001s # Running test: glib/gdbus-bz627724.test 2001s TAP version 14 2001s # random seed: R02Sb45f5ed6f20288b5a1d2524b91f5eef1 2001s 1..1 2001s # Start of gdbus tests 2001s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-bz627724_LW54B3/gdbus/bz627724/.dirs/home 2001s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-bz627724_LW54B3/gdbus/bz627724/.dirs/cache 2001s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-bz627724_LW54B3/gdbus/bz627724/.dirs/system-config1:/tmp/test_gdbus-bz627724_LW54B3/gdbus/bz627724/.dirs/system-config2 2001s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-bz627724_LW54B3/gdbus/bz627724/.dirs/config 2001s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-bz627724_LW54B3/gdbus/bz627724/.dirs/system-data1:/tmp/test_gdbus-bz627724_LW54B3/gdbus/bz627724/.dirs/system-data2 2001s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-bz627724_LW54B3/gdbus/bz627724/.dirs/data 2001s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-bz627724_LW54B3/gdbus/bz627724/.dirs/state 2001s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-bz627724_LW54B3/gdbus/bz627724/.dirs/runtime 2001s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2001s ok - glib/gdbus-bz627724.test 2001s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2001s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2001s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2001s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2001s ok 1 /gdbus/bz627724 2001s # End of gdbus tests 2001s # Running test: glib/642026.test 2001s TAP version 14 2001s # random seed: R02S2fa0d27c8c59180754b031e673b8695b 2001s 1..1 2001s # Start of glib tests 2001s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642026 2002s ok - glib/642026.test 2002s ok 1 /glib/642026 2002s # End of glib tests 2002s # Running test: glib/mappedfile.test 2002s TAP version 14 2002s # random seed: R02S5f71d57f9a1df60ffcf236a49d2d60f8 2002s 1..7 2002s # Start of mappedfile tests 2002s ok 1 /mappedfile/basic 2002s ok 2 /mappedfile/empty 2002s ok 3 /mappedfile/device 2002s ok 4 /mappedfile/nonexisting 2002s ok 5 /mappedfile/writable 2002s ok 6 /mappedfile/writable_fd 2002s ok 7 /mappedfile/gbytes 2002s # End of mappedfile tests 2002s ok - glib/mappedfile.test 2002s # Running test: glib/volumemonitor.test 2002s TAP version 14 2002s # random seed: R02Sb9bd884a198a83bbf991885e7ea8aa30 2002s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 2002s 1..3 2002s # Start of volumemonitor tests 2002s ok 1 /volumemonitor/connected_drives 2002s ok 2 /volumemonitor/volumes 2002s ok 3 /volumemonitor/mounts 2002s # End of volumemonitor tests 2002s ok - glib/volumemonitor.test 2002s # Running test: glib/signals-refcount1.test 2002s TAP version 14 2002s # random seed: R02Sb66b3aa543fa25359c4832d06c757456 2002s 1..1 2002s # Start of gobject tests 2002s # Start of refcount tests 2002s # init 0xb478c90 2002s # 2002s # init 0xb47f510 2002s # 2006s # Executing: glib/signals-refcount1.test 2007s # dispose 0xb478c90! 2007s # 2007s # dispose 0xb47f510! 2007s # 2007s ok 1 /gobject/refcount/signals 2007s # slow test /gobject/refcount/signals executed in 5.00 secs 2007s # End of refcount tests 2007s # End of gobject tests 2007s ok - glib/signals-refcount1.test 2007s # Running test: glib/gutils-user-database.test 2007s TAP version 14 2007s # random seed: R02S2d8c5cb6fac467f84900befe60c1c47b 2007s 1..1 2007s # Start of gutils tests 2007s ok 1 /gutils/get_user_database_entry 2007s # End of gutils tests 2007s ok - glib/gutils-user-database.test 2007s TAP version 14 2007s # random seed: R02Sdf7667268c0be257d233541689f58b44 2007s 1..4 2007s # Start of C tests 2007s ok 1 /C/standard-89 2007s # End of C tests 2007s # Start of alignof tests 2007s ok 2 /alignof/fallback 2007s # End of alignof tests 2007s # Start of assert tests 2007s ok 3 /assert/static 2007s # End of assert tests 2007s # Start of struct tests 2007s ok 4 /struct/sizeof_member 2007s # End of struct tests 2007s # Running test: glib/macros-c-89.test 2007s ok - glib/macros-c-89.test 2007s TAP version 14 2007s # random seed: R02S6ba60bf71b1b35afaa4961e2174fe7b7 2007s 1..13 2007s # Start of actions tests 2007s ok 1 /actions/basic 2007s ok 2 /actions/name 2007s ok 3 /actions/simplegroup 2007s ok 4 /actions/stateful 2007s ok 5 /actions/default-activate 2007s ok 6 /actions/entries 2007s ok 7 /actions/parse-detailed 2007s ok 8 /actions/property 2007s ok 9 /actions/no-properties 2007s # Start of dbus tests 2007s # Running test: glib/actions.test 2007s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2007s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2007s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2007s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2007s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2007s ok 10 /actions/dbus/export 2007s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2007s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2007s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2007s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2007s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2007s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2011s # Executing: glib/actions.test 2013s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2013s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2013s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2013s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2013s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2013s ok 11 /actions/dbus/threaded 2013s # slow test /actions/dbus/threaded executed in 5.94 secs 2013s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2013s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2013s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2013s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2013s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2013s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2013s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2013s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2013s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2013s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2013s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2013s ok 12 /actions/dbus/bug679509 2013s # Start of export tests 2013s # /actions/dbus/export/error-handling summary: Test that error handling of action group export failure works 2013s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 2013s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2013s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2013s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2013s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2013s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2013s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2013s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2013s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2013s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2013s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2013s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2013s ok 13 /actions/dbus/export/error-handling 2013s # End of export tests 2013s # End of dbus tests 2013s # End of actions tests 2013s ok - glib/actions.test 2013s # Running test: glib/bitlock.test 2013s TAP version 14 2013s # random seed: R02Sfe6b2daf32386528ac51f975932e7275 2013s 1..2 2013s # Start of bitlock tests 2013s # Start of performance tests 2013s # max perf: iterations per second 2013s ok 1 /bitlock/performance/uncontended 2013s ok 2 /bitlock/performance/parallel 2013s # End of performance tests 2013s # End of bitlock tests 2013s ok - glib/bitlock.test 2013s # Running test: glib/memchunk.test 2013s TAP version 14 2013s # random seed: R02Se711ef9a75926fd14bb07f412c17e804 2013s 1..1 2013s # Start of memchunk tests 2013s ok 1 /memchunk/basic 2013s # End of memchunk tests 2013s ok - glib/memchunk.test 2013s # Running test: glib/atomic-c-89.test 2013s TAP version 14 2013s # random seed: R02Sc78111521c0b0fe78659faf03dfd8b9d 2013s 1..2 2013s # Start of atomic tests 2013s ok 1 /atomic/types 2013s ok 2 /atomic/threaded 2013s # End of atomic tests 2013s ok - glib/atomic-c-89.test 2013s # Running test: glib/dynamictype.test 2013s TAP version 14 2013s # random seed: R02S4b797bc72d49e842c2450e3f8456e968 2013s 1..2 2013s # Start of gobject tests 2013s ok 1 /gobject/dynamic-type 2013s # Start of dynamic-type tests 2013s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/623 2013s ok 2 /gobject/dynamic-type/query 2013s # End of dynamic-type tests 2013s # End of gobject tests 2013s ok - glib/dynamictype.test 2013s # Running test: glib/cxx-14.test 2013s TAP version 14 2013s # random seed: R02S7e0b112564dcb9b46797c8d9f1df6fab 2013s 1..2 2013s # Start of gtask tests 2013s # GLib-GIO-DEBUG: GTask some other name (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 2013s ok 1 /gtask/name 2013s # Start of name tests 2013s # GLib-GIO-DEBUG: GTask some other name (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 2013s ok 2 /gtask/name/macro-wrapper 2013s # End of name tests 2013s # End of gtask tests 2013s ok - glib/cxx-14.test 2013s # Running test: glib/signals-refcount3.test 2013s TAP version 14 2013s # random seed: R02Saf349b6433ae81fad0d3eb5f296a17e7 2013s 1..1 2013s # Start of gobject tests 2013s # Start of refcount tests 2013s # init 0x6961c90 2013s # 2013s # init 0x6968510 2013s # 2016s # Executing: glib/signals-refcount3.test 2018s # dispose 0x6961c90! 2018s # 2018s # dispose 0x6968510! 2018s # 2018s ok 1 /gobject/refcount/signals 2018s # slow test /gobject/refcount/signals executed in 5.00 secs 2018s # End of refcount tests 2018s # End of gobject tests 2018s ok - glib/signals-refcount3.test 2018s # Running test: glib/memory-monitor-dbus.test 2018s TAP version 13 2018s ok 1 __main__.TestLowMemoryMonitor.test_low_memory_warning_signal # SKIP https://bugs.debian.org/995178 2018s 1..1 2018s ok - glib/memory-monitor-dbus.test 2018s # Running test: glib/utils-c-11.test 2018s TAP version 14 2018s # random seed: R02S27d358eb82cf3c735a30324dd21691db 2018s 1..41 2018s # Start of utils tests 2018s ok 1 /utils/language-names 2018s # Testing locale ‘en’ 2018s # Testing locale ‘sr@latin’ 2018s # Testing locale ‘fr_BE’ 2018s # Testing locale ‘sr_SR@latin’ 2018s # Testing locale ‘sr_SR@latin.UTF-8’ 2018s # Testing locale ‘sr@latin_invalid’ 2018s # Testing locale ‘sr.UTF-8@latin’ 2018s # Testing locale ‘sr.UTF-8_latin’ 2018s # Testing locale ‘sr.UTF-8@latin_invalid’ 2018s ok 2 /utils/locale-variants 2018s ok 3 /utils/version 2018s ok 4 /utils/appname 2018s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 2018s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 2018s ok 5 /utils/prgname-thread-safety 2018s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 2018s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 2018s ok 6 /utils/tmpdir 2018s ok 7 /utils/basic_bits 2018s ok 8 /utils/bits 2018s ok 9 /utils/swap 2018s ok 10 /utils/find-program 2018s ok 11 /utils/find-program-for-path 2018s ok 12 /utils/debug 2018s ok 13 /utils/codeset 2018s ok 14 /utils/codeset2 2018s ok - glib/utils-c-11.test 2018s # Running test: glib/resolver-parsing.test 2019s ok - glib/resolver-parsing.test 2019s # Running test: glib/option-argv0.test 2019s ok - glib/option-argv0.test 2019s # Running test: glib/cxx-2b.test 2019s ok 15 /utils/console-charset 2019s ok 16 /utils/gettext 2019s ok 17 /utils/username 2019s ok 18 /utils/realname 2019s ok 19 /utils/hostname 2019s ok 20 /utils/xdgdirs 2019s ok 21 /utils/specialdir 2019s # NAME: Ubuntu 2019s ok 22 /utils/os-info 2019s ok 23 /utils/clear-pointer 2019s ok 24 /utils/clear-pointer-cast 2019s ok 25 /utils/take-pointer 2019s ok 26 /utils/clear-source 2019s ok 27 /utils/misc-mem 2019s # /utils/aligned-mem summary: Aligned memory allocator 2019s # Alignment must not be zero 2019s # Alignment must be a power of two 2019s # Alignment must be a multiple of sizeof(void*) 2019s ok 28 /utils/aligned-mem 2019s # /utils/free-sized summary: Check that g_free_sized() works 2019s ok 29 /utils/free-sized 2019s ok 30 /utils/nullify 2019s ok 31 /utils/atexit 2019s ok 32 /utils/check-setuid 2019s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 2019s ok 33 /utils/int-limits 2019s ok 34 /utils/clear-list 2019s ok 35 /utils/clear-slist 2019s ok 36 /utils/steal-handle-id 2019s # Start of specialdir tests 2019s ok 37 /utils/specialdir/desktop 2019s # End of specialdir tests 2019s # Start of clear-pointer tests 2019s ok 38 /utils/clear-pointer/side-effects 2019s # End of clear-pointer tests 2019s # Start of aligned-mem tests 2019s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 2019s ok 39 /utils/aligned-mem/alignment 2019s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 2019s ok 40 /utils/aligned-mem/zeroed 2019s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 2019s ok 41 /utils/aligned-mem/free-sized 2019s # Start of subprocess tests 2019s # End of subprocess tests 2019s # End of aligned-mem tests 2019s # End of utils tests 2019s TAP version 14 2019s # random seed: R02S5dfc6609097e019c74f255ec77b67b89 2019s 1..21 2019s # Start of gresolver tests 2019s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2948B3/gresolver/invalid-header/.dirs/home 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/invalid-header/.dirs/cache 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/invalid-header/.dirs/system-config1:/tmp/test_resolver-parsing_2948B3/gresolver/invalid-header/.dirs/system-config2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/invalid-header/.dirs/config 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/invalid-header/.dirs/system-data1:/tmp/test_resolver-parsing_2948B3/gresolver/invalid-header/.dirs/system-data2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/invalid-header/.dirs/data 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/invalid-header/.dirs/state 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2948B3/gresolver/invalid-header/.dirs/runtime 2019s ok 1 /gresolver/invalid-header 2019s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2948B3/gresolver/record-ownership/.dirs/home 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/record-ownership/.dirs/cache 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/record-ownership/.dirs/system-config1:/tmp/test_resolver-parsing_2948B3/gresolver/record-ownership/.dirs/system-config2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/record-ownership/.dirs/config 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/record-ownership/.dirs/system-data1:/tmp/test_resolver-parsing_2948B3/gresolver/record-ownership/.dirs/system-data2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/record-ownership/.dirs/data 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/record-ownership/.dirs/state 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2948B3/gresolver/record-ownership/.dirs/runtime 2019s ok 2 /gresolver/record-ownership 2019s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2948B3/gresolver/unknown-record-type/.dirs/home 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/unknown-record-type/.dirs/cache 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/unknown-record-type/.dirs/system-config1:/tmp/test_resolver-parsing_2948B3/gresolver/unknown-record-type/.dirs/system-config2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/unknown-record-type/.dirs/config 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/unknown-record-type/.dirs/system-data1:/tmp/test_resolver-parsing_2948B3/gresolver/unknown-record-type/.dirs/system-data2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/unknown-record-type/.dirs/data 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/unknown-record-type/.dirs/state 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2948B3/gresolver/unknown-record-type/.dirs/runtime 2019s # GLib-GIO-DEBUG: Unrecognized DNS record type 20 2019s ok 3 /gresolver/unknown-record-type 2019s # Start of mx tests 2019s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2948B3/gresolver/mx/valid/.dirs/home 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/mx/valid/.dirs/cache 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/mx/valid/.dirs/system-config1:/tmp/test_resolver-parsing_2948B3/gresolver/mx/valid/.dirs/system-config2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/mx/valid/.dirs/config 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/mx/valid/.dirs/system-data1:/tmp/test_resolver-parsing_2948B3/gresolver/mx/valid/.dirs/system-data2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/mx/valid/.dirs/data 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/mx/valid/.dirs/state 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2948B3/gresolver/mx/valid/.dirs/runtime 2019s ok 4 /gresolver/mx/valid 2019s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2948B3/gresolver/mx/invalid/.dirs/home 2019s ok - glib/cxx-2b.test 2019s # Running test: glib/portal-support-env-var.test 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/mx/invalid/.dirs/cache 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/mx/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_2948B3/gresolver/mx/invalid/.dirs/system-config2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/mx/invalid/.dirs/config 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/mx/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_2948B3/gresolver/mx/invalid/.dirs/system-data2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/mx/invalid/.dirs/data 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/mx/invalid/.dirs/state 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2948B3/gresolver/mx/invalid/.dirs/runtime 2019s ok 5 /gresolver/mx/invalid 2019s # Start of invalid tests 2019s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2948B3/gresolver/mx/invalid/too-short/.dirs/home 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/mx/invalid/too-short/.dirs/cache 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/mx/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_2948B3/gresolver/mx/invalid/too-short/.dirs/system-config2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/mx/invalid/too-short/.dirs/config 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/mx/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_2948B3/gresolver/mx/invalid/too-short/.dirs/system-data2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/mx/invalid/too-short/.dirs/data 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/mx/invalid/too-short/.dirs/state 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2948B3/gresolver/mx/invalid/too-short/.dirs/runtime 2019s ok 6 /gresolver/mx/invalid/too-short 2019s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2948B3/gresolver/mx/invalid/too-short2/.dirs/home 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/mx/invalid/too-short2/.dirs/cache 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/mx/invalid/too-short2/.dirs/system-config1:/tmp/test_resolver-parsing_2948B3/gresolver/mx/invalid/too-short2/.dirs/system-config2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/mx/invalid/too-short2/.dirs/config 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/mx/invalid/too-short2/.dirs/system-data1:/tmp/test_resolver-parsing_2948B3/gresolver/mx/invalid/too-short2/.dirs/system-data2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/mx/invalid/too-short2/.dirs/data 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/mx/invalid/too-short2/.dirs/state 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2948B3/gresolver/mx/invalid/too-short2/.dirs/runtime 2019s ok 7 /gresolver/mx/invalid/too-short2 2019s # End of invalid tests 2019s # End of mx tests 2019s # Start of ns tests 2019s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2948B3/gresolver/ns/valid/.dirs/home 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/ns/valid/.dirs/cache 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/ns/valid/.dirs/system-config1:/tmp/test_resolver-parsing_2948B3/gresolver/ns/valid/.dirs/system-config2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/ns/valid/.dirs/config 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/ns/valid/.dirs/system-data1:/tmp/test_resolver-parsing_2948B3/gresolver/ns/valid/.dirs/system-data2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/ns/valid/.dirs/data 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/ns/valid/.dirs/state 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2948B3/gresolver/ns/valid/.dirs/runtime 2019s ok 8 /gresolver/ns/valid 2019s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2948B3/gresolver/ns/invalid/.dirs/home 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/ns/invalid/.dirs/cache 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/ns/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_2948B3/gresolver/ns/invalid/.dirs/system-config2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/ns/invalid/.dirs/config 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/ns/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_2948B3/gresolver/ns/invalid/.dirs/system-data2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/ns/invalid/.dirs/data 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/ns/invalid/.dirs/state 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2948B3/gresolver/ns/invalid/.dirs/runtime 2019s ok 9 /gresolver/ns/invalid 2019s # End of ns tests 2019s # Start of soa tests 2019s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2948B3/gresolver/soa/valid/.dirs/home 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/soa/valid/.dirs/cache 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/soa/valid/.dirs/system-config1:/tmp/test_resolver-parsing_2948B3/gresolver/soa/valid/.dirs/system-config2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/soa/valid/.dirs/config 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/soa/valid/.dirs/system-data1:/tmp/test_resolver-parsing_2948B3/gresolver/soa/valid/.dirs/system-data2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/soa/valid/.dirs/data 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/soa/valid/.dirs/state 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2948B3/gresolver/soa/valid/.dirs/runtime 2019s ok 10 /gresolver/soa/valid 2019s # Start of invalid tests 2019s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2948B3/gresolver/soa/invalid/mname/.dirs/home 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/soa/invalid/mname/.dirs/cache 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/soa/invalid/mname/.dirs/system-config1:/tmp/test_resolver-parsing_2948B3/gresolver/soa/invalid/mname/.dirs/system-config2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/soa/invalid/mname/.dirs/config 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/soa/invalid/mname/.dirs/system-data1:/tmp/test_resolver-parsing_2948B3/gresolver/soa/invalid/mname/.dirs/system-data2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/soa/invalid/mname/.dirs/data 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/soa/invalid/mname/.dirs/state 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2948B3/gresolver/soa/invalid/mname/.dirs/runtime 2019s ok 11 /gresolver/soa/invalid/mname 2019s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2948B3/gresolver/soa/invalid/rname/.dirs/home 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/soa/invalid/rname/.dirs/cache 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/soa/invalid/rname/.dirs/system-config1:/tmp/test_resolver-parsing_2948B3/gresolver/soa/invalid/rname/.dirs/system-config2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/soa/invalid/rname/.dirs/config 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/soa/invalid/rname/.dirs/system-data1:/tmp/test_resolver-parsing_2948B3/gresolver/soa/invalid/rname/.dirs/system-data2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/soa/invalid/rname/.dirs/data 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/soa/invalid/rname/.dirs/state 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2948B3/gresolver/soa/invalid/rname/.dirs/runtime 2019s ok 12 /gresolver/soa/invalid/rname 2019s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2948B3/gresolver/soa/invalid/too-short/.dirs/home 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/soa/invalid/too-short/.dirs/cache 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/soa/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_2948B3/gresolver/soa/invalid/too-short/.dirs/system-config2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/soa/invalid/too-short/.dirs/config 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/soa/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_2948B3/gresolver/soa/invalid/too-short/.dirs/system-data2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/soa/invalid/too-short/.dirs/data 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/soa/invalid/too-short/.dirs/state 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2948B3/gresolver/soa/invalid/too-short/.dirs/runtime 2019s ok - glib/portal-support-env-var.test 2019s ok 13 /gresolver/soa/invalid/too-short 2019s # End of invalid tests 2019s # End of soa tests 2019s # Start of srv tests 2019s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2948B3/gresolver/srv/valid/.dirs/home 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/srv/valid/.dirs/cache 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/srv/valid/.dirs/system-config1:/tmp/test_resolver-parsing_2948B3/gresolver/srv/valid/.dirs/system-config2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/srv/valid/.dirs/config 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/srv/valid/.dirs/system-data1:/tmp/test_resolver-parsing_2948B3/gresolver/srv/valid/.dirs/system-data2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/srv/valid/.dirs/data 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/srv/valid/.dirs/state 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2948B3/gresolver/srv/valid/.dirs/runtime 2019s ok 14 /gresolver/srv/valid 2019s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2948B3/gresolver/srv/invalid/.dirs/home 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/srv/invalid/.dirs/cache 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/srv/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_2948B3/gresolver/srv/invalid/.dirs/system-config2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/srv/invalid/.dirs/config 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/srv/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_2948B3/gresolver/srv/invalid/.dirs/system-data2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/srv/invalid/.dirs/data 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/srv/invalid/.dirs/state 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2948B3/gresolver/srv/invalid/.dirs/runtime 2019s ok 15 /gresolver/srv/invalid 2019s # Start of invalid tests 2019s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2948B3/gresolver/srv/invalid/too-short/.dirs/home 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/srv/invalid/too-short/.dirs/cache 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/srv/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_2948B3/gresolver/srv/invalid/too-short/.dirs/system-config2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/srv/invalid/too-short/.dirs/config 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/srv/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_2948B3/gresolver/srv/invalid/too-short/.dirs/system-data2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/srv/invalid/too-short/.dirs/data 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/srv/invalid/too-short/.dirs/state 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2948B3/gresolver/srv/invalid/too-short/.dirs/runtime 2019s ok 16 /gresolver/srv/invalid/too-short 2019s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2948B3/gresolver/srv/invalid/too-short2/.dirs/home 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/srv/invalid/too-short2/.dirs/cache 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/srv/invalid/too-short2/.dirs/system-config1:/tmp/test_resolver-parsing_2948B3/gresolver/srv/invalid/too-short2/.dirs/system-config2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/srv/invalid/too-short2/.dirs/config 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/srv/invalid/too-short2/.dirs/system-data1:/tmp/test_resolver-parsing_2948B3/gresolver/srv/invalid/too-short2/.dirs/system-data2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/srv/invalid/too-short2/.dirs/data 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/srv/invalid/too-short2/.dirs/state 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2948B3/gresolver/srv/invalid/too-short2/.dirs/runtime 2019s ok 17 /gresolver/srv/invalid/too-short2 2019s # End of invalid tests 2019s # End of srv tests 2019s # Start of txt tests 2019s # Running test: glib/application-command-line.test 2019s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2948B3/gresolver/txt/valid/.dirs/home 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/txt/valid/.dirs/cache 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/txt/valid/.dirs/system-config1:/tmp/test_resolver-parsing_2948B3/gresolver/txt/valid/.dirs/system-config2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/txt/valid/.dirs/config 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/txt/valid/.dirs/system-data1:/tmp/test_resolver-parsing_2948B3/gresolver/txt/valid/.dirs/system-data2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/txt/valid/.dirs/data 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/txt/valid/.dirs/state 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2948B3/gresolver/txt/valid/.dirs/runtime 2019s ok 18 /gresolver/txt/valid 2019s # Start of valid tests 2019s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2948B3/gresolver/txt/valid/multiple-strings/.dirs/home 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/txt/valid/multiple-strings/.dirs/cache 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/txt/valid/multiple-strings/.dirs/system-config1:/tmp/test_resolver-parsing_2948B3/gresolver/txt/valid/multiple-strings/.dirs/system-config2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/txt/valid/multiple-strings/.dirs/config 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/txt/valid/multiple-strings/.dirs/system-data1:/tmp/test_resolver-parsing_2948B3/gresolver/txt/valid/multiple-strings/.dirs/system-data2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/txt/valid/multiple-strings/.dirs/data 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/txt/valid/multiple-strings/.dirs/state 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2948B3/gresolver/txt/valid/multiple-strings/.dirs/runtime 2019s ok 19 /gresolver/txt/valid/multiple-strings 2019s # End of valid tests 2019s # Start of invalid tests 2019s ok - glib/application-command-line.test 2019s # Running test: glib/socket-listener.test 2019s ok - glib/socket-listener.test 2019s # Running test: glib/onceinit.test 2019s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2948B3/gresolver/txt/invalid/empty/.dirs/home 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/txt/invalid/empty/.dirs/cache 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/txt/invalid/empty/.dirs/system-config1:/tmp/test_resolver-parsing_2948B3/gresolver/txt/invalid/empty/.dirs/system-config2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/txt/invalid/empty/.dirs/config 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/txt/invalid/empty/.dirs/system-data1:/tmp/test_resolver-parsing_2948B3/gresolver/txt/invalid/empty/.dirs/system-data2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/txt/invalid/empty/.dirs/data 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/txt/invalid/empty/.dirs/state 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2948B3/gresolver/txt/invalid/empty/.dirs/runtime 2019s ok 20 /gresolver/txt/invalid/empty 2019s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2948B3/gresolver/txt/invalid/overflow/.dirs/home 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/txt/invalid/overflow/.dirs/cache 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/txt/invalid/overflow/.dirs/system-config1:/tmp/test_resolver-parsing_2948B3/gresolver/txt/invalid/overflow/.dirs/system-config2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/txt/invalid/overflow/.dirs/config 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2948B3/gresolver/txt/invalid/overflow/.dirs/system-data1:/tmp/test_resolver-parsing_2948B3/gresolver/txt/invalid/overflow/.dirs/system-data2 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/txt/invalid/overflow/.dirs/data 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2948B3/gresolver/txt/invalid/overflow/.dirs/state 2019s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2948B3/gresolver/txt/invalid/overflow/.dirs/runtime 2019s ok 21 /gresolver/txt/invalid/overflow 2019s # End of invalid tests 2019s # End of txt tests 2019s # End of gresolver tests 2019s TAP version 14 2019s # random seed: R02S838b9c407c4fe8a359e03f1c4ba6508f 2019s 1..1 2019s # Start of option tests 2019s ok 1 /option/argv0 2019s # End of option tests 2019s TAP version 14 2019s # random seed: R02Sb86c36012c1bc45be7a5143aadab60e6 2019s 1..2 2019s # Start of gtask tests 2019s # GLib-GIO-DEBUG: GTask some other name (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 2019s ok 1 /gtask/name 2019s # Start of name tests 2019s # GLib-GIO-DEBUG: GTask some other name (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 2019s ok 2 /gtask/name/macro-wrapper 2019s # End of name tests 2019s # End of gtask tests 2019s TAP version 14 2019s # random seed: R02S5dbd76bd067fc866735efa7cb0b2e97d 2019s 1..1 2019s # Start of portal-support tests 2019s ok 1 /portal-support/env-var 2019s # End of portal-support tests 2019s TAP version 14 2019s # random seed: R02Scf04de2a122a40698417e24d57c8d0c4 2019s 1..1 2019s # Start of application-command-line tests 2019s ok 1 /application-command-line/basic-properties 2019s # End of application-command-line tests 2019s TAP version 14 2019s # random seed: R02S97d393a38d49279dd4bada11dfb54036 2019s 1..4 2019s # Start of socket-listener tests 2019s ok 1 /socket-listener/event-signal 2019s # Start of accept tests 2019s # /socket-listener/accept/multi-simultaneously summary: Test that accepting multiple pending connections on the same GMainContext iteration works 2019s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3739 2019s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 2019s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xfaf678 and GSocketClientAsyncConnectData 0xfaf630 2019s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 2019s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xfb35d8 and GSocketClientAsyncConnectData 0xfb3580 2019s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 2019s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xfb3a98 and GSocketClientAsyncConnectData 0xfb3a40 2019s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 2019s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xfb4058 and GSocketClientAsyncConnectData 0xfb4000 2019s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 2019s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xfb4588 and GSocketClientAsyncConnectData 0xfb4530 2019s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 2019s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 2019s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xfb6038 for GSocketClientAsyncConnectData 0xfaf630 2019s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 2019s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 2019s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xfb70d0 for GSocketClientAsyncConnectData 0xfb3580 2019s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 2019s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 2019s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xfb7518 for GSocketClientAsyncConnectData 0xfb3a40 2019s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 2019s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 2019s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xfb7ab8 for GSocketClientAsyncConnectData 0xfb4000 2019s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 2019s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 2019s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xfb59a8 for GSocketClientAsyncConnectData 0xfb4530 2019s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 2019s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 2019s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 2019s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 2019s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 2019s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 2019s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 2019s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 2019s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 2019s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 2019s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 2019s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 2019s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 2019s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 2019s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 2019s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 2019s ok 2 /socket-listener/accept/multi-simultaneously 2019s # End of accept tests 2019s # Start of add-any-inet-port tests 2019s # /socket-listener/add-any-inet-port/listen-failures summary: Test that adding a listening port succeeds if either listening on IPv4 or IPv6 succeeds 2019s # Test 0 2019s # Test 1 2019s # Test 2 2019s # Test 3 2019s # Test 4 2019s # Test 5 2019s # Test 6 2019s # Test 7 2019s # Test 8 2019s # Test 9 2019s # Test 10 2019s ok 3 /socket-listener/add-any-inet-port/listen-failures 2019s # End of add-any-inet-port tests 2019s # Start of add-inet-port tests 2019s # /socket-listener/add-inet-port/listen-failures summary: Test that adding a listening port succeeds if either listening on IPv4 or IPv6 succeeds 2019s # Test 0 2019s # Test 1 2019s # Test 2 2019s # Test 3 2019s # Test 4 2019s # Test 5 2019s # Test 6 2019s # Test 7 2019s # Test 8 2019s # Test 9 2019s # Test 10 2019s ok 4 /socket-listener/add-inet-port/listen-failures 2019s # End of add-inet-port tests 2019s # End of socket-listener tests 2019s TAP version 14 2019s # random seed: R02S4838826e6185977056d2eb50df44985e 2019s 1..1 2019s # Start of thread tests 2019s ok 1 /thread/onceinit 2019s # End of thread tests 2019s ok - glib/onceinit.test 2019s # Running test: glib/gdbus-address-get-session.test 2019s TAP version 14 2019s # random seed: R02S35368dfded66f744d630236a3fb09940 2019s 1..2 2019s # Start of gdbus tests 2019s ok 1 /gdbus/x11-autolaunch 2019s ok 2 /gdbus/xdg-runtime 2019s # End of gdbus tests 2019s ok - glib/gdbus-address-get-session.test 2019s # SUMMARY: total=330; passed=329; skipped=1; failed=0; user=339.7s; system=165.1s; maxrss=138240 2019s autopkgtest [17:18:48]: test installed-tests: -----------------------] 2023s installed-tests PASS 2023s autopkgtest [17:18:52]: test installed-tests: - - - - - - - - - - results - - - - - - - - - - 2027s autopkgtest [17:18:56]: test closure-refcount: preparing testbed 2029s Reading package lists... 2030s Building dependency tree... 2030s Reading state information... 2030s Solving dependencies... 2031s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2038s autopkgtest [17:19:07]: test closure-refcount: [----------------------- 2040s Running test: glib/closure-refcount.test 2040s TAP version 14 2040s # random seed: R02S541f441af5bbc5d01ed66b5118882ee7 2040s 1..1 2040s # Start of closure tests 2040s ok 1 /closure/refcount # SKIP Known to be flaky on arm* (#880883, #917983) 2040s # End of closure tests 2040s PASS: glib/closure-refcount.test 2040s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=2304 2041s autopkgtest [17:19:10]: test closure-refcount: -----------------------] 2044s closure-refcount PASS 2044s autopkgtest [17:19:13]: test closure-refcount: - - - - - - - - - - results - - - - - - - - - - 2048s autopkgtest [17:19:17]: test debugcontroller: preparing testbed 2050s Reading package lists... 2050s Building dependency tree... 2050s Reading state information... 2051s Solving dependencies... 2052s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2062s autopkgtest [17:19:31]: test debugcontroller: [----------------------- 2064s Running test: glib/debugcontroller.test 2064s TAP version 14 2064s # random seed: R02S06ccfa5734e88a66a6540e3194fd2e1f 2064s 1..3 2064s # Start of debug-controller tests 2064s # Start of dbus tests 2064s # /debug-controller/dbus/basic summary: Smoketest for construction and setting of a #GDebugControllerDBus. 2064s # GLib-GIO-DEBUG: Debug output enabled 2064s # GLib-GIO-DEBUG: Debug output disabled 2064s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2064s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2064s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2064s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2064s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2064s ok 1 /debug-controller/dbus/basic 2064s # /debug-controller/dbus/duplicate summary: Test that creating a second #GDebugControllerDBus on the same D-Bus connection fails. 2064s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2064s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2064s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2064s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2064s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2064s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2064s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2064s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2064s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2064s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2064s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2064s ok 2 /debug-controller/dbus/duplicate 2064s # /debug-controller/dbus/properties summary: Test getting and setting properties on a #GDebugControllerDBus. 2064s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2064s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2064s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2064s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2064s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2064s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2064s # GLib-GIO-DEBUG: Debug output enabled 2064s # GLib-GIO-DEBUG: Debug output disabled 2064s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2064s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2064s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2064s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2064s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2064s ok 3 /debug-controller/dbus/properties 2064s # End of dbus tests 2064s # End of debug-controller tests 2064s PASS: glib/debugcontroller.test 2064s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=4480 2064s autopkgtest [17:19:33]: test debugcontroller: -----------------------] 2068s debugcontroller PASS 2068s autopkgtest [17:19:37]: test debugcontroller: - - - - - - - - - - results - - - - - - - - - - 2072s autopkgtest [17:19:41]: test gdbus-server-auth: preparing testbed 2074s Reading package lists... 2074s Building dependency tree... 2074s Reading state information... 2074s Solving dependencies... 2075s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2083s autopkgtest [17:19:52]: test gdbus-server-auth: [----------------------- 2085s Running test: glib/gdbus-server-auth.test 2085s TAP version 14 2085s # random seed: R02S539a8a02ceb64501bbb026ede3ca6513 2085s 1..9 2085s # Start of gdbus tests 2085s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/.dirs/home 2085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/.dirs/cache 2085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/.dirs/system-config1:/tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/.dirs/system-config2 2085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/.dirs/config 2085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/.dirs/system-data1:/tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/.dirs/system-data2 2085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/.dirs/data 2085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/.dirs/state 2085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/.dirs/runtime 2085s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_748AC3/gdbus-server-auth-EY8AC3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:false 2085s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_748AC3/gdbus-server-auth-EY8AC3/dbus-kUYeXJX9 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39568 2085s ok 1 /gdbus/server-auth 2085s # Start of server-auth tests 2085s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/abstract/.dirs/home 2085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/abstract/.dirs/cache 2085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/abstract/.dirs/system-config1:/tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/abstract/.dirs/system-config2 2085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/abstract/.dirs/config 2085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/abstract/.dirs/system-data1:/tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/abstract/.dirs/system-data2 2085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/abstract/.dirs/data 2085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/abstract/.dirs/state 2085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/abstract/.dirs/runtime 2085s # Testing GDBus server at unix:tmpdir=/tmp/test_gdbus-server-auth_748AC3/gdbus-server-auth-LH5AC3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:true tcp:false 2085s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_748AC3/gdbus-server-auth-LH5AC3/dbus-nX942WvW 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39568 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2085s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39568 2085s ok 2 /gdbus/server-auth/abstract 2085s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/tcp/.dirs/home 2085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/tcp/.dirs/cache 2085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/tcp/.dirs/system-config2 2085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/tcp/.dirs/config 2085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/tcp/.dirs/system-data2 2085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/tcp/.dirs/data 2085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/tcp/.dirs/state 2085s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/tcp/.dirs/runtime 2085s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:true 2085s # Connectable address: tcp:host=127.0.0.1,port=34941 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 2085s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2085s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2085s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2085s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2085s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2085s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 2086s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 2086s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 2086s ok 3 /gdbus/server-auth/tcp 2086s # slow test /gdbus/server-auth/tcp executed in 0.91 secs 2086s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/anonymous/.dirs/home 2086s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/anonymous/.dirs/cache 2086s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/anonymous/.dirs/system-config1:/tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/anonymous/.dirs/system-config2 2086s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/anonymous/.dirs/config 2086s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/anonymous/.dirs/system-data1:/tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/anonymous/.dirs/system-data2 2086s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/anonymous/.dirs/data 2086s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/anonymous/.dirs/state 2086s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/anonymous/.dirs/runtime 2086s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_748AC3/gdbus-server-auth-L0ICC3 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:false 2086s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_748AC3/gdbus-server-auth-L0ICC3/dbus-eFMSCERo 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39568 2086s ok 4 /gdbus/server-auth/anonymous 2086s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/external/.dirs/home 2086s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/external/.dirs/cache 2086s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/external/.dirs/system-config1:/tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/external/.dirs/system-config2 2086s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/external/.dirs/config 2086s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/external/.dirs/system-data1:/tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/external/.dirs/system-data2 2086s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/external/.dirs/data 2086s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/external/.dirs/state 2086s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/external/.dirs/runtime 2086s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_748AC3/gdbus-server-auth-TXKBC3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 2086s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_748AC3/gdbus-server-auth-TXKBC3/dbus-x4ibIAnv 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2086s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39568 2086s ok 5 /gdbus/server-auth/external 2086s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/sha1/.dirs/home 2086s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/sha1/.dirs/cache 2086s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/sha1/.dirs/system-config1:/tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/sha1/.dirs/system-config2 2086s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/sha1/.dirs/config 2086s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/sha1/.dirs/system-data1:/tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/sha1/.dirs/system-data2 2086s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/sha1/.dirs/data 2086s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/sha1/.dirs/state 2086s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/sha1/.dirs/runtime 2086s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_748AC3/gdbus-server-auth-GVBBC3 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:false 2086s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_748AC3/gdbus-server-auth-GVBBC3/dbus-5IlfNRQ7 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39568 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2086s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39568 2086s ok 6 /gdbus/server-auth/sha1 2086s # Start of anonymous tests 2086s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/anonymous/tcp/.dirs/home 2086s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/anonymous/tcp/.dirs/cache 2086s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/anonymous/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/anonymous/tcp/.dirs/system-config2 2086s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/anonymous/tcp/.dirs/config 2086s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/anonymous/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/anonymous/tcp/.dirs/system-data2 2086s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/anonymous/tcp/.dirs/data 2086s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/anonymous/tcp/.dirs/state 2086s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/anonymous/tcp/.dirs/runtime 2086s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:true 2086s # Connectable address: tcp:host=127.0.0.1,port=33665 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 2086s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2086s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 2086s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 2086s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2086s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 2087s ok 7 /gdbus/server-auth/anonymous/tcp 2087s # slow test /gdbus/server-auth/anonymous/tcp executed in 0.86 secs 2087s # End of anonymous tests 2087s # Start of external tests 2087s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/external/require-same-user/.dirs/home 2087s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/external/require-same-user/.dirs/cache 2087s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/external/require-same-user/.dirs/system-config1:/tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/external/require-same-user/.dirs/system-config2 2087s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/external/require-same-user/.dirs/config 2087s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/external/require-same-user/.dirs/system-data1:/tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/external/require-same-user/.dirs/system-data2 2087s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/external/require-same-user/.dirs/data 2087s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/external/require-same-user/.dirs/state 2087s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/external/require-same-user/.dirs/runtime 2087s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_748AC3/gdbus-server-auth-NA2CC3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 2087s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_748AC3/gdbus-server-auth-NA2CC3/dbus-P0vjwQhM 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39568 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39568 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39568 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39568 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39568 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39568 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39568 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39568 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39568 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39568 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39568 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39568 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39568 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39568 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39568 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39568 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39568 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39568 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39568 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39568 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 2087s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39568,uid=1000,gid=1000 2087s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39568 2087s ok 8 /gdbus/server-auth/external/require-same-user 2087s # End of external tests 2087s # Start of sha1 tests 2087s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/sha1/tcp/.dirs/home 2087s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/sha1/tcp/.dirs/cache 2087s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/sha1/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/sha1/tcp/.dirs/system-config2 2087s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/sha1/tcp/.dirs/config 2087s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/sha1/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/sha1/tcp/.dirs/system-data2 2087s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/sha1/tcp/.dirs/data 2087s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/sha1/tcp/.dirs/state 2087s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_748AC3/gdbus/server-auth/sha1/tcp/.dirs/runtime 2087s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:true 2087s # Connectable address: tcp:host=127.0.0.1,port=43521 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2087s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2087s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2087s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2087s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2087s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2087s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2087s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2087s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2087s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2087s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2087s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2087s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2087s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2087s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2087s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2087s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2087s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2087s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2087s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2087s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 2087s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 2087s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 2087s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 2087s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 2087s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 2087s ok 9 /gdbus/server-auth/sha1/tcp 2087s # slow test /gdbus/server-auth/sha1/tcp executed in 0.88 secs 2087s # End of sha1 tests 2087s # End of server-auth tests 2087s # End of gdbus tests 2087s PASS: glib/gdbus-server-auth.test 2087s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.2s; system=0.2s; maxrss=5888 2088s autopkgtest [17:19:57]: test gdbus-server-auth: -----------------------] 2092s gdbus-server-auth PASS 2092s autopkgtest [17:20:01]: test gdbus-server-auth: - - - - - - - - - - results - - - - - - - - - - 2095s autopkgtest [17:20:04]: test gdbus-threading: preparing testbed 2097s Reading package lists... 2098s Building dependency tree... 2098s Reading state information... 2098s Solving dependencies... 2099s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2106s autopkgtest [17:20:15]: test gdbus-threading: [----------------------- 2108s Running test: glib/gdbus-threading.test 2108s TAP version 14 2108s # random seed: R02S28bc5dde429e964aae97a5637dd01b09 2108s 1..3 2108s # Start of gdbus tests 2108s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_8TM6B3/gdbus/delivery-in-thread/.dirs/home 2108s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_8TM6B3/gdbus/delivery-in-thread/.dirs/cache 2108s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_8TM6B3/gdbus/delivery-in-thread/.dirs/system-config1:/tmp/test_gdbus-threading_8TM6B3/gdbus/delivery-in-thread/.dirs/system-config2 2108s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_8TM6B3/gdbus/delivery-in-thread/.dirs/config 2108s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_8TM6B3/gdbus/delivery-in-thread/.dirs/system-data1:/tmp/test_gdbus-threading_8TM6B3/gdbus/delivery-in-thread/.dirs/system-data2 2108s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_8TM6B3/gdbus/delivery-in-thread/.dirs/data 2108s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_8TM6B3/gdbus/delivery-in-thread/.dirs/state 2108s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_8TM6B3/gdbus/delivery-in-thread/.dirs/runtime 2108s ok 1 /gdbus/delivery-in-thread 2108s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_8TM6B3/gdbus/method-calls-in-thread/.dirs/home 2108s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_8TM6B3/gdbus/method-calls-in-thread/.dirs/cache 2108s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_8TM6B3/gdbus/method-calls-in-thread/.dirs/system-config1:/tmp/test_gdbus-threading_8TM6B3/gdbus/method-calls-in-thread/.dirs/system-config2 2108s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_8TM6B3/gdbus/method-calls-in-thread/.dirs/config 2108s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_8TM6B3/gdbus/method-calls-in-thread/.dirs/system-data1:/tmp/test_gdbus-threading_8TM6B3/gdbus/method-calls-in-thread/.dirs/system-data2 2108s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_8TM6B3/gdbus/method-calls-in-thread/.dirs/data 2108s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_8TM6B3/gdbus/method-calls-in-thread/.dirs/state 2108s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_8TM6B3/gdbus/method-calls-in-thread/.dirs/runtime 2109s ok 2 /gdbus/method-calls-in-thread 2109s # slow test /gdbus/method-calls-in-thread executed in 0.86 secs 2109s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_8TM6B3/gdbus/threaded-singleton/.dirs/home 2109s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_8TM6B3/gdbus/threaded-singleton/.dirs/cache 2109s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_8TM6B3/gdbus/threaded-singleton/.dirs/system-config1:/tmp/test_gdbus-threading_8TM6B3/gdbus/threaded-singleton/.dirs/system-config2 2109s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_8TM6B3/gdbus/threaded-singleton/.dirs/config 2109s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_8TM6B3/gdbus/threaded-singleton/.dirs/system-data1:/tmp/test_gdbus-threading_8TM6B3/gdbus/threaded-singleton/.dirs/system-data2 2109s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_8TM6B3/gdbus/threaded-singleton/.dirs/data 2109s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_8TM6B3/gdbus/threaded-singleton/.dirs/state 2109s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_8TM6B3/gdbus/threaded-singleton/.dirs/runtime 2110s # GLib-GIO-DEBUG: refcount of 0xf3c03430 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 2110s # GLib-GIO-DEBUG: refcount of 0xf3c03430 is not right (2 rather than 1) in test_threaded_singleton(), sleeping 2110s # GLib-GIO-DEBUG: refcount of 0xf3c029c0 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 2110s # GLib-GIO-DEBUG: refcount of 0xf3c03f60 is not right (2 rather than 1) in test_threaded_singleton(), sleeping 2111s # GLib-GIO-DEBUG: refcount of 0xf3c03740 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 2112s # GLib-GIO-DEBUG: refcount of 0xf3c02cd8 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 2112s ok 3 /gdbus/threaded-singleton 2112s # slow test /gdbus/threaded-singleton executed in 2.65 secs 2112s # End of gdbus tests 2112s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2112s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2112s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2112s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2112s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2112s PASS: glib/gdbus-threading.test 2112s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=1.1s; system=0.8s; maxrss=4352 2112s autopkgtest [17:20:21]: test gdbus-threading: -----------------------] 2116s gdbus-threading PASS 2116s autopkgtest [17:20:25]: test gdbus-threading: - - - - - - - - - - results - - - - - - - - - - 2120s autopkgtest [17:20:29]: test gmenumodel: preparing testbed 2121s Reading package lists... 2122s Building dependency tree... 2122s Reading state information... 2122s Solving dependencies... 2123s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2131s autopkgtest [17:20:40]: test gmenumodel: [----------------------- 2132s Running test: glib/gmenumodel.test 2132s TAP version 14 2132s # random seed: R02Sf88e6ec6abd87dc82a29e5fb76282b60 2132s 1..15 2132s # Start of gmenu tests 2133s ok 1 /gmenu/equality 2133s # slow test /gmenu/equality executed in 0.75 secs 2134s ok 2 /gmenu/random 2134s # slow test /gmenu/random executed in 0.96 secs 2134s ok 3 /gmenu/attributes 2134s ok 4 /gmenu/links 2134s ok 5 /gmenu/mutable 2134s ok 6 /gmenu/convenience 2134s ok 7 /gmenu/menuitem 2134s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/861 2134s ok 8 /gmenu/input-validation 2134s # Start of dbus tests 2135s ok 9 /gmenu/dbus/roundtrip 2135s # slow test /gmenu/dbus/roundtrip executed in 1.01 secs 2136s ok 10 /gmenu/dbus/subscriptions 2137s Executing: glib/gmenumodel.test 2137s ok 11 /gmenu/dbus/threaded 2137s # slow test /gmenu/dbus/threaded executed in 1.64 secs 2137s # Start of peer tests 2138s ok 12 /gmenu/dbus/peer/roundtrip 2138s # slow test /gmenu/dbus/peer/roundtrip executed in 1.03 secs 2139s ok 13 /gmenu/dbus/peer/subscriptions 2139s # End of peer tests 2139s # Start of export tests 2139s # /gmenu/dbus/export/error-handling summary: Test that error handling of menu model export failure works 2139s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 2139s ok 14 /gmenu/dbus/export/error-handling 2139s # End of export tests 2139s # End of dbus tests 2139s # Start of attributes tests 2139s ok 15 /gmenu/attributes/iterate 2139s # End of attributes tests 2139s # End of gmenu tests 2139s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2139s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2139s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2139s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2139s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 2139s PASS: glib/gmenumodel.test 2139s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=8.4s; system=1.6s; maxrss=11264 2139s autopkgtest [17:20:48]: test gmenumodel: -----------------------] 2143s autopkgtest [17:20:52]: test gmenumodel: - - - - - - - - - - results - - - - - - - - - - 2143s gmenumodel PASS 2147s autopkgtest [17:20:56]: test mainloop: preparing testbed 2148s Reading package lists... 2149s Building dependency tree... 2149s Reading state information... 2149s Solving dependencies... 2150s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2158s autopkgtest [17:21:07]: test mainloop: [----------------------- 2159s Running test: glib/mainloop.test 2159s TAP version 14 2159s # random seed: R02S833410bb6b3aa1c9f09afb6940605b00 2159s 1..47 2159s # Start of maincontext tests 2159s ok 1 /maincontext/basic 2160s # Add same-priority sources: 41 2160s # Find each source: 7 2160s # Remove in random order: 100 2160s ok 2 /maincontext/nsources_same_priority 2160s # Add different-priority sources: 50 2160s # Find each source: 7 2160s # Remove in random order: 87 2160s ok 3 /maincontext/nsources_different_priority 2160s # Add sources from threads: 256 2161s # Remove sources from threads: 393 2161s ok 4 /maincontext/nsources_threadpool 2161s # slow test /maincontext/nsources_threadpool executed in 0.67 secs 2161s ok 5 /maincontext/source_finalization 2161s # /maincontext/idle-once summary: Test g_idle_add_once() works 2161s ok 6 /maincontext/idle-once 2161s # /maincontext/timeout-once summary: Test g_timeout_add_once() works 2161s ok 7 /maincontext/timeout-once 2161s # /maincontext/context-ref-in-source-callbackfuncs-unref summary: Tests if calling GSource API in GSourceCallbackFuncs.unref does not deadlock attempting to retrieve the relevant GMainContext. 2161s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/3725 2161s ok 8 /maincontext/context-ref-in-source-callbackfuncs-unref 2161s # Start of source_finalization_from_source tests 2161s # /maincontext/source_finalization_from_source/0 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 2161s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 2161s ok 9 /maincontext/source_finalization_from_source/0 2161s # /maincontext/source_finalization_from_source/1 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 2161s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 2161s ok 10 /maincontext/source_finalization_from_source/1 2161s # /maincontext/source_finalization_from_source/2 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 2161s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 2161s ok 11 /maincontext/source_finalization_from_source/2 2161s # /maincontext/source_finalization_from_source/3 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 2161s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 2161s ok 12 /maincontext/source_finalization_from_source/3 2161s # /maincontext/source_finalization_from_source/4 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 2161s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 2161s ok 13 /maincontext/source_finalization_from_source/4 2161s # /maincontext/source_finalization_from_source/5 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 2161s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 2161s ok 14 /maincontext/source_finalization_from_source/5 2161s # /maincontext/source_finalization_from_source/6 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 2161s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 2161s ok 15 /maincontext/source_finalization_from_source/6 2161s # /maincontext/source_finalization_from_source/7 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 2161s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 2161s ok 16 /maincontext/source_finalization_from_source/7 2161s # /maincontext/source_finalization_from_source/8 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 2161s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 2161s ok 17 /maincontext/source_finalization_from_source/8 2161s # /maincontext/source_finalization_from_source/9 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 2161s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 2161s ok 18 /maincontext/source_finalization_from_source/9 2161s # End of source_finalization_from_source tests 2161s # Start of source_finalization_from_dispatch tests 2161s # /maincontext/source_finalization_from_dispatch/0 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 2161s ok 19 /maincontext/source_finalization_from_dispatch/0 2161s # /maincontext/source_finalization_from_dispatch/1 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 2161s ok 20 /maincontext/source_finalization_from_dispatch/1 2161s # /maincontext/source_finalization_from_dispatch/2 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 2161s ok 21 /maincontext/source_finalization_from_dispatch/2 2161s # End of source_finalization_from_dispatch tests 2161s # End of maincontext tests 2161s # Start of mainloop tests 2161s ok 22 /mainloop/basic 2161s ok 23 /mainloop/timeouts # SKIP Not running timing heavy test 2161s ok 24 /mainloop/priorities 2161s ok 25 /mainloop/invoke 2161s # slow test /mainloop/invoke executed in 0.50 secs 2162s ok 26 /mainloop/child_sources 2162s # slow test /mainloop/child_sources executed in 1.21 secs 2164s Executing: glib/mainloop.test 2165s ok 27 /mainloop/recursive_child_sources 2165s # slow test /mainloop/recursive_child_sources executed in 2.20 secs 2165s ok 28 /mainloop/recursive_loop_child_sources 2165s ok 29 /mainloop/swapping_child_sources 2165s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=701283 2165s ok 30 /mainloop/blocked_child_sources 2166s ok 31 /mainloop/source_time 2166s # slow test /mainloop/source_time executed in 1.00 secs 2166s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=687098 2166s ok 32 /mainloop/overflow 2166s ok 33 /mainloop/ready-time 2166s # slow test /mainloop/ready-time executed in 0.50 secs 2166s ok 34 /mainloop/wakeup 2166s ok 35 /mainloop/remove-invalid 2166s ok 36 /mainloop/unref-while-pending 2167s ok 37 /mainloop/unix-fd 2167s # slow test /mainloop/unix-fd executed in 0.89 secs 2167s ok 38 /mainloop/unix-fd-source 2167s ok 39 /mainloop/source-unix-fd-api 2167s ok 40 /mainloop/wait 2167s ok 41 /mainloop/unix-file-poll 2167s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1592 2167s ok 42 /mainloop/unix-fd-priority 2167s ok 43 /mainloop/nfds 2167s ok 44 /mainloop/steal-fd 2169s Executing: glib/mainloop.test 2170s ok 45 /mainloop/simultaneous-source-context-destruction 2170s # slow test /mainloop/simultaneous-source-context-destruction executed in 2.67 secs 2170s # Start of ownerless-polling tests 2170s ok 46 /mainloop/ownerless-polling/attach-first 2170s ok 47 /mainloop/ownerless-polling/pop-first 2170s # End of ownerless-polling tests 2170s # End of mainloop tests 2170s PASS: glib/mainloop.test 2170s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=3.2s; system=9.2s; maxrss=10924 2170s autopkgtest [17:21:19]: test mainloop: -----------------------] 2174s autopkgtest [17:21:23]: test mainloop: - - - - - - - - - - results - - - - - - - - - - 2174s mainloop PASS 2178s autopkgtest [17:21:27]: test memory-monitor-dbus: preparing testbed 2179s Reading package lists... 2180s Building dependency tree... 2180s Reading state information... 2180s Solving dependencies... 2181s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2188s autopkgtest [17:21:37]: test memory-monitor-dbus: [----------------------- 2190s Running test: glib/memory-monitor-dbus.test 2191s TAP version 13 2191s ok 1 __main__.TestLowMemoryMonitor.test_low_memory_warning_signal 2191s # Received memory warning signal, level 2191s # Received memory warning signal, level 2191s # Received memory warning signal, level 2191s 1..1 2191s PASS: glib/memory-monitor-dbus.test 2191s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.3s; system=0.1s; maxrss=21004 2191s autopkgtest [17:21:40]: test memory-monitor-dbus: -----------------------] 2195s autopkgtest [17:21:44]: test memory-monitor-dbus: - - - - - - - - - - results - - - - - - - - - - 2195s memory-monitor-dbus PASS 2199s autopkgtest [17:21:48]: test socket: preparing testbed 2200s Reading package lists... 2201s Building dependency tree... 2201s Reading state information... 2201s Solving dependencies... 2202s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2209s autopkgtest [17:21:58]: test socket: [----------------------- 2211s Running test: glib/socket.test 2211s TAP version 14 2211s # random seed: R02Se12db00d2132250516c6fa144e107842 2211s 1..30 2211s # Start of socket tests 2212s ok 1 /socket/ipv4_sync 2212s # slow test /socket/ipv4_sync executed in 1.00 secs 2213s ok 2 /socket/ipv4_async 2213s # slow test /socket/ipv4_async executed in 1.00 secs 2213s ok 3 /socket/ipv6_sync 2213s ok 4 /socket/ipv6_async 2213s ok 5 /socket/ipv6_v4mapped 2214s ok 6 /socket/close_graceful 2214s # slow test /socket/close_graceful executed in 1.00 secs 2214s ok 7 /socket/timed_wait # SKIP Not running timing heavy test 2214s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=741707 2214s ok 8 /socket/fd_reuse 2214s ok 9 /socket/address 2214s ok 10 /socket/unix-from-fd 2214s ok 11 /socket/unix-connection 2214s ok 12 /socket/unix-connection-ancillary-data 2214s ok 13 /socket/source-postmortem 2214s ok 14 /socket/read_write 2214s ok 15 /socket/read_writev 2214s # /socket/receive_bytes summary: Test basic functionality of g_socket_receive_bytes() 2214s ok 16 /socket/receive_bytes 2214s # /socket/receive_bytes_from summary: Test basic functionality of g_socket_receive_bytes_from() 2214s ok 17 /socket/receive_bytes_from 2214s # Start of ipv4_sync tests 2214s ok 18 /socket/ipv4_sync/datagram 2214s # Start of datagram tests 2217s ok 19 /socket/ipv4_sync/datagram/timeouts 2217s # slow test /socket/ipv4_sync/datagram/timeouts executed in 1.10 secs 2217s # End of datagram tests 2217s # End of ipv4_sync tests 2217s # Start of ipv6_sync tests 2217s ok 20 /socket/ipv6_sync/datagram 2217s # Start of datagram tests 2217s Executing: glib/socket.test 2217s ok 21 /socket/ipv6_sync/datagram/timeouts 2217s # slow test /socket/ipv6_sync/datagram/timeouts executed in 1.10 secs 2217s # End of datagram tests 2217s # End of ipv6_sync tests 2217s # Start of reuse tests 2217s ok 22 /socket/reuse/tcp 2217s ok 23 /socket/reuse/udp 2217s # End of reuse tests 2217s # Start of get_available tests 2217s ok 24 /socket/get_available/datagram 2217s ok 25 /socket/get_available/stream 2217s # End of get_available tests 2217s # Start of credentials tests 2217s # Supported on this OS: GCredentials:linux-ucred:pid=0 2217s ok 26 /socket/credentials/tcp_client 2217s # Supported on this OS: GCredentials:linux-ucred:pid=0 2217s ok 27 /socket/credentials/tcp_server 2217s # Supported on this OS: GCredentials:linux-ucred:pid=65701,uid=1000,gid=1000 2217s ok 28 /socket/credentials/unix_socketpair 2217s # End of credentials tests 2217s # Start of accept tests 2217s # /socket/accept/cancelled summary: Calling g_socket_accept() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 2217s ok 29 /socket/accept/cancelled 2217s # End of accept tests 2217s # Start of connect tests 2217s # /socket/connect/cancelled summary: Calling g_socket_connect() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 2217s ok 30 /socket/connect/cancelled 2217s # End of connect tests 2217s # End of socket tests 2217s PASS: glib/socket.test 2217s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=4096 2217s autopkgtest [17:22:06]: test socket: -----------------------] 2221s autopkgtest [17:22:10]: test socket: - - - - - - - - - - results - - - - - - - - - - 2221s socket PASS 2224s autopkgtest [17:22:13]: test testfilemonitor: preparing testbed 2226s Reading package lists... 2226s Building dependency tree... 2226s Reading state information... 2227s Solving dependencies... 2227s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2235s autopkgtest [17:22:24]: test testfilemonitor: [----------------------- 2237s Running test: glib/testfilemonitor.test 2237s TAP version 14 2237s # random seed: R02S1ad9d72e65fd4633a60174a06b5f60d9 2237s 1..8 2237s # Start of monitor tests 2237s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 2237s # Using temporary directory: /tmp/gio-test-testfilemonitor_24PAC3 2237s # Using GFileMonitor GInotifyFileMonitor 2239s ok 1 /monitor/atomic-replace 2239s # slow test /monitor/atomic-replace executed in 2.00 secs 2239s # Using temporary directory: /tmp/gio-test-testfilemonitor_GGTAC3 2239s # Using GFileMonitor GInotifyFileMonitor 2241s ok 2 /monitor/file-changes 2241s # slow test /monitor/file-changes executed in 2.50 secs 2241s # Using temporary directory: /tmp/gio-test-testfilemonitor_R9TZB3 2241s # Using GFileMonitor GInotifyFileMonitor 2242s Executing: glib/testfilemonitor.test 2245s ok 3 /monitor/dir-monitor 2245s # slow test /monitor/dir-monitor executed in 3.50 secs 2245s # Using temporary directory: /tmp/gio-test-testfilemonitor_U7VFC3 2245s # Using GFileMonitor GInotifyFileMonitor 2247s Executing: glib/testfilemonitor.test 2252s Executing: glib/testfilemonitor.test 2257s Executing: glib/testfilemonitor.test 2262s Executing: glib/testfilemonitor.test 2267s Executing: glib/testfilemonitor.test 2270s ok 4 /monitor/dir-not-existent 2270s # slow test /monitor/dir-not-existent executed in 25.02 secs 2270s # Using temporary directory: /tmp/gio-test-testfilemonitor_TPPFC3 2270s # Using GFileMonitor 0 GInotifyFileMonitor 2270s # Using GFileMonitor 1 GInotifyFileMonitor 2272s ok 5 /monitor/cross-dir-moves 2272s # slow test /monitor/cross-dir-moves executed in 2.00 secs 2272s # Using temporary directory: /tmp/gio-test-testfilemonitor_QX5EC3 2272s # /monitor/finalize-in-callback summary: Test that finalization of a GFileMonitor in one of its callbacks doesn’t cause a deadlock. 2272s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1941 2272s ok 6 /monitor/finalize-in-callback 2272s # Using temporary directory: /tmp/gio-test-testfilemonitor_9TBFC3 2272s # /monitor/root summary: Test that GFileMonitor can monitor the root directory. 2272s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3241 2272s ok 7 /monitor/root 2272s # Start of file tests 2272s # Using temporary directory: /tmp/gio-test-testfilemonitor_5O9EC3 2272s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=755721 2272s # Running with hard link tests 2272s # Using GFileMonitor GInotifyFileMonitor 2272s Executing: glib/testfilemonitor.test 2275s # Event 0 at expected index 7 skipped because it is marked as optional 2275s # Event 2 at expected index 11 skipped because it is marked as optional 2275s ok 8 /monitor/file/hard-links 2275s # slow test /monitor/file/hard-links executed in 3.51 secs 2275s # End of file tests 2275s # End of monitor tests 2275s PASS: glib/testfilemonitor.test 2275s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=4096 2277s autopkgtest [17:23:05]: test testfilemonitor: -----------------------] 2281s autopkgtest [17:23:10]: test testfilemonitor: - - - - - - - - - - results - - - - - - - - - - 2281s testfilemonitor PASS 2284s autopkgtest [17:23:13]: test thread-pool-slow: preparing testbed 2286s Reading package lists... 2287s Building dependency tree... 2287s Reading state information... 2287s Solving dependencies... 2288s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2295s autopkgtest [17:23:24]: test thread-pool-slow: [----------------------- 2297s Running test: glib/thread-pool-slow.test 2297s TAP version 14 2297s # random seed: R02Se34f060b4601f5ee742ebcdcc41abc4b 2297s 1..7 2297s # Start of threadpool tests 2297s ok 1 /threadpool/functions 2298s ok 2 /threadpool/stop-unused 2298s # slow test /threadpool/stop-unused executed in 0.52 secs 2298s ok 3 /threadpool/pools 2298s # [unsorted] ===> pushed new thread with id:8, number of threads:1, unprocessed:1 2298s # [unsorted] ===> pushed new thread with id:93, number of threads:2, unprocessed:2 2298s # [unsorted] ===> pushed new thread with id:20, number of threads:3, unprocessed:3 2298s # [unsorted] ===> pushed new thread with id:70, number of threads:4, unprocessed:4 2298s # [unsorted] ===> pushed new thread with id:78, number of threads:5, unprocessed:5 2298s # [unsorted] ===> pushed new thread with id:28, number of threads:6, unprocessed:1 2298s # [unsorted] ===> pushed new thread with id:76, number of threads:7, unprocessed:2 2298s # [unsorted] ===> pushed new thread with id:90, number of threads:8, unprocessed:3 2298s # [unsorted] ===> pushed new thread with id:35, number of threads:9, unprocessed:3 2298s # [unsorted] ===> pushed new thread with id:72, number of threads:10, unprocessed:4 2298s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:5 2298s # [unsorted] ===> pushed new thread with id:100, number of threads:10, unprocessed:5 2298s # [unsorted] ===> pushed new thread with id:94, number of threads:10, unprocessed:5 2298s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:5 2298s # [unsorted] ===> pushed new thread with id:18, number of threads:10, unprocessed:6 2298s # [unsorted] ===> pushed new thread with id:70, number of threads:10, unprocessed:6 2298s # [unsorted] ===> pushed new thread with id:6, number of threads:10, unprocessed:7 2298s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:8 2298s # [unsorted] ===> pushed new thread with id:97, number of threads:10, unprocessed:9 2298s # [unsorted] ===> pushed new thread with id:48, number of threads:10, unprocessed:10 2298s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:11 2298s # [unsorted] ===> pushed new thread with id:80, number of threads:10, unprocessed:12 2298s # [unsorted] ===> pushed new thread with id:40, number of threads:10, unprocessed:13 2298s # [unsorted] ===> pushed new thread with id:81, number of threads:10, unprocessed:14 2298s # [unsorted] ===> pushed new thread with id:92, number of threads:10, unprocessed:15 2298s # [unsorted] ===> pushed new thread with id:93, number of threads:10, unprocessed:16 2298s # [unsorted] ===> pushed new thread with id:73, number of threads:10, unprocessed:17 2298s # [unsorted] ===> pushed new thread with id:90, number of threads:10, unprocessed:18 2298s # [unsorted] ===> pushed new thread with id:86, number of threads:10, unprocessed:19 2298s # [unsorted] ===> pushed new thread with id:92, number of threads:10, unprocessed:20 2298s # [unsorted] ===> pushed new thread with id:81, number of threads:10, unprocessed:21 2298s # [unsorted] ===> pushed new thread with id:59, number of threads:10, unprocessed:22 2298s # [unsorted] ===> pushed new thread with id:40, number of threads:10, unprocessed:23 2298s # [unsorted] ===> pushed new thread with id:55, number of threads:10, unprocessed:24 2298s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:25 2298s # [unsorted] ===> pushed new thread with id:54, number of threads:10, unprocessed:26 2298s # [unsorted] ===> pushed new thread with id:9, number of threads:10, unprocessed:27 2298s # [unsorted] ===> pushed new thread with id:79, number of threads:10, unprocessed:28 2298s # [unsorted] ===> pushed new thread with id:100, number of threads:10, unprocessed:29 2298s # [unsorted] ===> pushed new thread with id:43, number of threads:10, unprocessed:30 2298s # [unsorted] ===> pushed new thread with id:69, number of threads:10, unprocessed:31 2298s # [unsorted] ===> pushed new thread with id:91, number of threads:10, unprocessed:32 2298s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:33 2298s # [unsorted] ===> pushed new thread with id:70, number of threads:10, unprocessed:34 2298s # [unsorted] ===> pushed new thread with id:37, number of threads:10, unprocessed:35 2298s # [unsorted] ===> pushed new thread with id:63, number of threads:10, unprocessed:36 2298s # [unsorted] ===> pushed new thread with id:30, number of threads:10, unprocessed:37 2298s # [unsorted] ===> pushed new thread with id:6, number of threads:10, unprocessed:38 2298s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:39 2298s # [unsorted] ===> pushed new thread with id:53, number of threads:10, unprocessed:40 2298s # [unsorted] ===> pushed new thread with id:59, number of threads:10, unprocessed:41 2298s # [unsorted] ===> pushed new thread with id:20, number of threads:10, unprocessed:42 2298s # [unsorted] ===> pushed new thread with id:63, number of threads:10, unprocessed:43 2298s # [unsorted] ===> pushed new thread with id:6, number of threads:10, unprocessed:44 2298s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:45 2298s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:46 2298s # [unsorted] ===> pushed new thread with id:90, number of threads:10, unprocessed:47 2298s # [unsorted] ===> pushed new thread with id:18, number of threads:10, unprocessed:48 2298s # [unsorted] ===> pushed new thread with id:54, number of threads:10, unprocessed:49 2298s # [unsorted] ===> pushed new thread with id:51, number of threads:10, unprocessed:50 2298s # [unsorted] ===> pushed new thread with id:25, number of threads:10, unprocessed:51 2298s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:52 2298s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:53 2298s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:54 2298s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:55 2298s # [unsorted] ===> pushed new thread with id:97, number of threads:10, unprocessed:56 2298s # [unsorted] ===> pushed new thread with id:82, number of threads:10, unprocessed:57 2298s # [unsorted] ===> pushed new thread with id:86, number of threads:10, unprocessed:58 2298s # [unsorted] ===> pushed new thread with id:96, number of threads:10, unprocessed:59 2298s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:60 2298s # [unsorted] ===> pushed new thread with id:100, number of threads:10, unprocessed:61 2298s # [unsorted] ===> pushed new thread with id:94, number of threads:10, unprocessed:62 2298s # [unsorted] ===> pushed new thread with id:37, number of threads:10, unprocessed:63 2298s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:64 2298s # [unsorted] ===> pushed new thread with id:68, number of threads:10, unprocessed:65 2298s # [unsorted] ===> pushed new thread with id:87, number of threads:10, unprocessed:66 2298s # [unsorted] ===> pushed new thread with id:62, number of threads:10, unprocessed:67 2298s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:68 2298s # [unsorted] ===> pushed new thread with id:72, number of threads:10, unprocessed:69 2298s # [unsorted] ===> pushed new thread with id:16, number of threads:10, unprocessed:70 2298s # [unsorted] ===> pushed new thread with id:97, number of threads:10, unprocessed:71 2298s # [unsorted] ===> pushed new thread with id:56, number of threads:10, unprocessed:72 2298s # [unsorted] ===> pushed new thread with id:15, number of threads:10, unprocessed:73 2298s # [unsorted] ===> pushed new thread with id:98, number of threads:10, unprocessed:74 2298s # [unsorted] ===> pushed new thread with id:67, number of threads:10, unprocessed:75 2298s # [unsorted] ===> pushed new thread with id:75, number of threads:10, unprocessed:76 2298s # [unsorted] ===> pushed new thread with id:57, number of threads:10, unprocessed:77 2298s # [unsorted] ===> pushed new thread with id:4, number of threads:10, unprocessed:78 2298s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:79 2298s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:80 2298s # [unsorted] ===> pushed new thread with id:86, number of threads:10, unprocessed:81 2298s # [unsorted] ===> pushed new thread with id:43, number of threads:10, unprocessed:82 2298s # [unsorted] ===> pushed new thread with id:75, number of threads:10, unprocessed:83 2298s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:84 2298s # [unsorted] ===> pushed new thread with id:68, number of threads:10, unprocessed:85 2298s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:86 2298s # [unsorted] ===> pushed new thread with id:43, number of threads:10, unprocessed:87 2298s # [unsorted] ===> pushed new thread with id:28, number of threads:10, unprocessed:88 2298s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:89 2298s # [unsorted] ===> pushed new thread with id:85, number of threads:10, unprocessed:90 2298s ok 4 /threadpool/no-sort 2298s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:1 2298s # [ sorted] ===> pushed new thread with id:70, number of threads:0, unprocessed:2 2298s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:3 2298s # [ sorted] ===> pushed new thread with id:62, number of threads:0, unprocessed:4 2298s # [ sorted] ===> pushed new thread with id:54, number of threads:0, unprocessed:5 2298s # [ sorted] ===> pushed new thread with id:97, number of threads:0, unprocessed:6 2298s # [ sorted] ===> pushed new thread with id:97, number of threads:0, unprocessed:7 2298s # [ sorted] ===> pushed new thread with id:28, number of threads:0, unprocessed:8 2298s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:9 2298s # [ sorted] ===> pushed new thread with id:66, number of threads:0, unprocessed:10 2298s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:11 2298s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:12 2298s # [ sorted] ===> pushed new thread with id:53, number of threads:0, unprocessed:13 2298s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:14 2298s # [ sorted] ===> pushed new thread with id:97, number of threads:0, unprocessed:15 2298s # [ sorted] ===> pushed new thread with id:71, number of threads:0, unprocessed:16 2298s # [ sorted] ===> pushed new thread with id:19, number of threads:0, unprocessed:17 2298s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:18 2298s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:19 2298s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:20 2298s # [ sorted] ===> pushed new thread with id:3, number of threads:0, unprocessed:21 2298s # [ sorted] ===> pushed new thread with id:37, number of threads:0, unprocessed:22 2298s # [ sorted] ===> pushed new thread with id:64, number of threads:0, unprocessed:23 2298s # [ sorted] ===> pushed new thread with id:88, number of threads:0, unprocessed:24 2298s # [ sorted] ===> pushed new thread with id:83, number of threads:0, unprocessed:25 2298s # [ sorted] ===> pushed new thread with id:55, number of threads:0, unprocessed:26 2298s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:27 2298s # [ sorted] ===> pushed new thread with id:75, number of threads:0, unprocessed:28 2298s # [ sorted] ===> pushed new thread with id:6, number of threads:0, unprocessed:29 2298s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:30 2298s # [ sorted] ===> pushed new thread with id:5, number of threads:0, unprocessed:31 2298s # [ sorted] ===> pushed new thread with id:27, number of threads:0, unprocessed:32 2298s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:33 2298s # [ sorted] ===> pushed new thread with id:64, number of threads:0, unprocessed:34 2298s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:35 2298s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:36 2298s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:37 2298s # [ sorted] ===> pushed new thread with id:37, number of threads:0, unprocessed:38 2298s # [ sorted] ===> pushed new thread with id:97, number of threads:0, unprocessed:39 2298s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:40 2298s # [ sorted] ===> pushed new thread with id:17, number of threads:0, unprocessed:41 2298s # [ sorted] ===> pushed new thread with id:75, number of threads:0, unprocessed:42 2298s # [ sorted] ===> pushed new thread with id:90, number of threads:0, unprocessed:43 2298s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:44 2298s # [ sorted] ===> pushed new thread with id:54, number of threads:0, unprocessed:45 2298s # [ sorted] ===> pushed new thread with id:96, number of threads:0, unprocessed:46 2298s # [ sorted] ===> pushed new thread with id:46, number of threads:0, unprocessed:47 2298s # [ sorted] ===> pushed new thread with id:44, number of threads:0, unprocessed:48 2298s # [ sorted] ===> pushed new thread with id:97, number of threads:0, unprocessed:49 2298s # [ sorted] ===> pushed new thread with id:45, number of threads:0, unprocessed:50 2298s # [ sorted] ===> pushed new thread with id:31, number of threads:0, unprocessed:51 2298s # [ sorted] ===> pushed new thread with id:16, number of threads:0, unprocessed:52 2298s # [ sorted] ===> pushed new thread with id:90, number of threads:0, unprocessed:53 2298s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:54 2298s # [ sorted] ===> pushed new thread with id:6, number of threads:0, unprocessed:55 2298s # [ sorted] ===> pushed new thread with id:37, number of threads:0, unprocessed:56 2298s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:57 2298s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:58 2298s # [ sorted] ===> pushed new thread with id:40, number of threads:0, unprocessed:59 2298s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:60 2298s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:61 2298s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:62 2298s # [ sorted] ===> pushed new thread with id:87, number of threads:0, unprocessed:63 2298s # [ sorted] ===> pushed new thread with id:44, number of threads:0, unprocessed:64 2298s # [ sorted] ===> pushed new thread with id:83, number of threads:0, unprocessed:65 2298s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:66 2298s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:67 2298s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:68 2298s # [ sorted] ===> pushed new thread with id:61, number of threads:0, unprocessed:69 2298s # [ sorted] ===> pushed new thread with id:59, number of threads:0, unprocessed:70 2298s # [ sorted] ===> pushed new thread with id:85, number of threads:0, unprocessed:71 2298s # [ sorted] ===> pushed new thread with id:33, number of threads:0, unprocessed:72 2298s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:73 2298s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:74 2298s # [ sorted] ===> pushed new thread with id:84, number of threads:0, unprocessed:75 2298s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:76 2298s # [ sorted] ===> pushed new thread with id:39, number of threads:0, unprocessed:77 2298s # [ sorted] ===> pushed new thread with id:20, number of threads:0, unprocessed:78 2298s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:79 2298s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:80 2298s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:81 2298s # [ sorted] ===> pushed new thread with id:38, number of threads:0, unprocessed:82 2298s # [ sorted] ===> pushed new thread with id:32, number of threads:0, unprocessed:83 2298s # [ sorted] ===> pushed new thread with id:97, number of threads:0, unprocessed:84 2298s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:85 2298s # [ sorted] ===> pushed new thread with id:43, number of threads:0, unprocessed:86 2298s # [ sorted] ===> pushed new thread with id:15, number of threads:0, unprocessed:87 2298s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:88 2298s # [ sorted] ===> pushed new thread with id:27, number of threads:0, unprocessed:89 2298s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:90 2298s # [ sorted] ===> pushed new thread with id:30, number of threads:0, unprocessed:91 2298s # [ sorted] ===> pushed new thread with id:5, number of threads:0, unprocessed:92 2298s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:93 2298s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:94 2298s # [ sorted] ===> pushed new thread with id:15, number of threads:0, unprocessed:95 2298s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:96 2298s # [ sorted] ===> pushed new thread with id:67, number of threads:0, unprocessed:97 2298s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:98 2298s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:99 2298s # [ sorted] ===> pushed new thread with id:59, number of threads:0, unprocessed:100 2298s # Starting thread pool processing 2298s ok 5 /threadpool/sort 2298s ok 6 /threadpool/stop-unused-multiple 2298s # slow test /threadpool/stop-unused-multiple executed in 0.51 secs 2298s # Pool idle thread count: 0, unprocessed jobs: 47 2299s # Pool idle thread count: 0, unprocessed jobs: 0 2299s # Pool idle thread count: 0, unprocessed jobs: 0 2299s # Pool idle thread count: 10, unprocessed jobs: 0 2299s # Pool idle thread count: 10, unprocessed jobs: 0 2300s # Pool idle thread count: 10, unprocessed jobs: 0 2300s # Pool idle thread count: 10, unprocessed jobs: 0 2300s # Pool idle thread count: 10, unprocessed jobs: 0 2300s # Pool idle thread count: 10, unprocessed jobs: 0 2301s # Pool idle thread count: 10, unprocessed jobs: 0 2301s # Pool idle thread count: 10, unprocessed jobs: 0 2301s # Pool idle thread count: 10, unprocessed jobs: 0 2301s # Pool idle thread count: 10, unprocessed jobs: 0 2302s # Pool idle thread count: 10, unprocessed jobs: 0 2302s # Pool idle thread count: 10, unprocessed jobs: 0 2302s # Pool idle thread count: 10, unprocessed jobs: 0 2302s # Pool idle thread count: 10, unprocessed jobs: 0 2302s Executing: glib/thread-pool-slow.test 2303s # Pool idle thread count: 10, unprocessed jobs: 0 2303s # Pool idle thread count: 10, unprocessed jobs: 0 2303s # Pool idle thread count: 10, unprocessed jobs: 0 2303s # Pool idle thread count: 10, unprocessed jobs: 0 2304s # Pool idle thread count: 10, unprocessed jobs: 0 2304s # Pool idle thread count: 10, unprocessed jobs: 0 2304s # Pool idle thread count: 10, unprocessed jobs: 0 2304s # Pool idle thread count: 10, unprocessed jobs: 0 2305s # Pool idle thread count: 10, unprocessed jobs: 0 2305s # Pool idle thread count: 10, unprocessed jobs: 0 2305s # Pool idle thread count: 10, unprocessed jobs: 0 2305s # Pool idle thread count: 10, unprocessed jobs: 0 2306s # Pool idle thread count: 10, unprocessed jobs: 0 2306s # Pool idle thread count: 10, unprocessed jobs: 0 2306s # Pool idle thread count: 10, unprocessed jobs: 0 2306s # Pool idle thread count: 10, unprocessed jobs: 0 2307s # Pool idle thread count: 10, unprocessed jobs: 0 2307s # Pool idle thread count: 10, unprocessed jobs: 0 2307s # Pool idle thread count: 10, unprocessed jobs: 2 2307s # Pool idle thread count: 8, unprocessed jobs: 0 2307s # Pool idle thread count: 8, unprocessed jobs: 0 2307s # Pool idle thread count: 8, unprocessed jobs: 0 2307s Executing: glib/thread-pool-slow.test 2308s # Pool idle thread count: 10, unprocessed jobs: 0 2308s # Pool idle thread count: 10, unprocessed jobs: 0 2308s # Pool idle thread count: 10, unprocessed jobs: 0 2308s # Pool idle thread count: 10, unprocessed jobs: 0 2309s # Pool idle thread count: 10, unprocessed jobs: 0 2309s # Pool idle thread count: 10, unprocessed jobs: 0 2309s # Pool idle thread count: 2, unprocessed jobs: 0 2309s # Pool idle thread count: 2, unprocessed jobs: 0 2310s # Pool idle thread count: 2, unprocessed jobs: 0 2310s # Pool idle thread count: 2, unprocessed jobs: 0 2310s # Pool idle thread count: 2, unprocessed jobs: 0 2310s # Pool idle thread count: 2, unprocessed jobs: 0 2311s # Pool idle thread count: 2, unprocessed jobs: 0 2311s # Pool idle thread count: 2, unprocessed jobs: 0 2311s # Pool idle thread count: 2, unprocessed jobs: 0 2311s # Pool idle thread count: 2, unprocessed jobs: 0 2312s # Pool idle thread count: 2, unprocessed jobs: 0 2312s # Pool idle thread count: 2, unprocessed jobs: 0 2312s # Pool idle thread count: 2, unprocessed jobs: 0 2312s # Pool idle thread count: 2, unprocessed jobs: 0 2312s Executing: glib/thread-pool-slow.test 2313s # Pool idle thread count: 2, unprocessed jobs: 0 2313s # Pool idle thread count: 2, unprocessed jobs: 0 2313s # Pool idle thread count: 2, unprocessed jobs: 0 2313s # Pool idle thread count: 2, unprocessed jobs: 0 2314s # Pool idle thread count: 2, unprocessed jobs: 0 2314s # Pool idle thread count: 2, unprocessed jobs: 0 2314s # Pool idle thread count: 2, unprocessed jobs: 0 2314s # Pool idle thread count: 2, unprocessed jobs: 0 2315s # Pool idle thread count: 2, unprocessed jobs: 0 2315s # Pool idle thread count: 2, unprocessed jobs: 0 2315s # Pool idle thread count: 2, unprocessed jobs: 0 2315s # Pool idle thread count: 2, unprocessed jobs: 0 2316s # Pool idle thread count: 2, unprocessed jobs: 0 2316s # Pool idle thread count: 2, unprocessed jobs: 0 2316s # Pool idle thread count: 2, unprocessed jobs: 0 2316s # Pool idle thread count: 2, unprocessed jobs: 0 2317s # Pool idle thread count: 2, unprocessed jobs: 0 2317s # Pool idle thread count: 2, unprocessed jobs: 0 2317s # Pool idle thread count: 2, unprocessed jobs: 0 2317s # Pool idle thread count: 2, unprocessed jobs: 0 2317s Executing: glib/thread-pool-slow.test 2318s ok 7 /threadpool/idle-time 2318s # slow test /threadpool/idle-time executed in 19.53 secs 2318s # End of threadpool tests 2318s PASS: glib/thread-pool-slow.test 2318s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.5s; system=0.1s; maxrss=2688 2318s autopkgtest [17:23:47]: test thread-pool-slow: -----------------------] 2322s autopkgtest [17:23:51]: test thread-pool-slow: - - - - - - - - - - results - - - - - - - - - - 2322s thread-pool-slow PASS 2326s autopkgtest [17:23:55]: test threadtests: preparing testbed 2328s Reading package lists... 2328s Building dependency tree... 2328s Reading state information... 2329s Solving dependencies... 2330s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2337s autopkgtest [17:24:06]: test threadtests: [----------------------- 2339s Running test: glib/threadtests.test 2339s TAP version 14 2339s # random seed: R02S0aa676a79c243f90cc5de8c09273f40e 2339s 1..5 2339s # Start of GObject tests 2339s ok 1 /GObject/threaded-object-init 2340s ok 2 /GObject/threaded-weak-ref 2340s # slow test /GObject/threaded-weak-ref executed in 1.15 secs 2340s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2394 2340s # /GObject/threaded-toggle-notify summary: Test that toggle reference notifications can be changed safely from another (the main) thread without causing the notifying thread to abort 2344s Executing: glib/threadtests.test 2349s Executing: glib/threadtests.test 2354s Executing: glib/threadtests.test 2359s Executing: glib/threadtests.test 2364s Executing: glib/threadtests.test 2369s Executing: glib/threadtests.test 2374s Executing: glib/threadtests.test 2379s Executing: glib/threadtests.test 2384s Executing: glib/threadtests.test 2389s Executing: glib/threadtests.test 2394s Executing: glib/threadtests.test 2399s Executing: glib/threadtests.test 2403s ok 3 /GObject/threaded-toggle-notify 2403s # slow test /GObject/threaded-toggle-notify executed in 62.75 secs 2403s ok 4 /GObject/threaded-g-pointer-bit-unlock-and-set 2403s # Start of threaded-weak-ref tests 2403s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 2403s # /GObject/threaded-weak-ref/on-finalization summary: Test that a weak ref added by another thread during dispose of a GObject is cleared during finalisation. Use on_weak_ref_disposed() to synchronize the other thread with the dispose vfunc. 2403s ok 5 /GObject/threaded-weak-ref/on-finalization 2403s # End of threaded-weak-ref tests 2403s # End of GObject tests 2403s PASS: glib/threadtests.test 2403s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=245.3s; system=1.2s; maxrss=2688 2403s autopkgtest [17:25:12]: test threadtests: -----------------------] 2407s autopkgtest [17:25:16]: test threadtests: - - - - - - - - - - results - - - - - - - - - - 2407s threadtests PASS 2411s autopkgtest [17:25:20]: test timeout: preparing testbed 2412s Reading package lists... 2413s Building dependency tree... 2413s Reading state information... 2413s Solving dependencies... 2414s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2421s autopkgtest [17:25:30]: test timeout: [----------------------- 2423s Running test: glib/timeout.test 2423s TAP version 14 2423s # random seed: R02S66bd8f0d7bba4366c25a40d0d77d16a9 2423s 1..5 2423s # Start of timeout tests 2423s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642052 2426s ok 1 /timeout/seconds 2426s # slow test /timeout/seconds executed in 2.10 secs 2428s ok 2 /timeout/seconds-once 2428s # slow test /timeout/seconds-once executed in 2.10 secs 2428s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1600 2428s Executing: glib/timeout.test 2430s ok 3 /timeout/weeks-overflow 2430s # slow test /timeout/weeks-overflow executed in 2.10 secs 2430s ok 4 /timeout/far-future-ready-time 2433s Executing: glib/timeout.test 2438s Executing: glib/timeout.test 2440s ok 5 /timeout/rounding 2440s # slow test /timeout/rounding executed in 10.69 secs 2440s # End of timeout tests 2440s PASS: glib/timeout.test 2440s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=1920 2441s autopkgtest [17:25:50]: test timeout: -----------------------] 2445s timeout PASS 2445s autopkgtest [17:25:54]: test timeout: - - - - - - - - - - results - - - - - - - - - - 2448s autopkgtest [17:25:57]: test timer: preparing testbed 2450s Reading package lists... 2450s Building dependency tree... 2450s Reading state information... 2451s Solving dependencies... 2452s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2459s autopkgtest [17:26:08]: test timer: [----------------------- 2461s Running test: glib/timer.test 2461s TAP version 14 2461s # random seed: R02Sa958a4b0741fc220c63cd000fd4c9ede 2461s 1..10 2461s # Start of timer tests 2461s ok 1 /timer/basic 2461s ok 2 /timer/stop 2461s ok 3 /timer/continue 2461s ok 4 /timer/reset 2461s ok 5 /timer/is_active 2461s # End of timer tests 2461s # Start of timeval tests 2461s ok 6 /timeval/add 2461s ok 7 /timeval/from-iso8601 2461s ok 8 /timeval/to-iso8601 2461s # Start of to-iso8601 tests 2461s ok 9 /timeval/to-iso8601/overflow # SKIP G_MAXINT == G_MAXLONG - we can't make g_time_val_to_iso8601() overflow. 2461s # End of to-iso8601 tests 2461s # End of timeval tests 2461s # Start of usleep tests 2461s ok 10 /usleep/with-zero-wait 2461s # End of usleep tests 2461s PASS: glib/timer.test 2461s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=2048 2461s autopkgtest [17:26:10]: test timer: -----------------------] 2465s autopkgtest [17:26:14]: test timer: - - - - - - - - - - results - - - - - - - - - - 2465s timer PASS 2469s autopkgtest [17:26:18]: test 1065022-futureproofing: preparing testbed 2491s autopkgtest [17:26:40]: testbed dpkg architecture: armhf 2493s autopkgtest [17:26:42]: testbed apt version: 3.1.5ubuntu1 2497s autopkgtest [17:26:46]: @@@@@@@@@@@@@@@@@@@@ test bed setup 2499s autopkgtest [17:26:48]: testbed release detected to be: questing 2506s autopkgtest [17:26:55]: updating testbed package index (apt update) 2508s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [265 kB] 2509s Get:2 http://ftpmaster.internal/ubuntu questing InRelease [265 kB] 2509s Get:3 http://ftpmaster.internal/ubuntu questing-updates InRelease [126 kB] 2509s Get:4 http://ftpmaster.internal/ubuntu questing-security InRelease [126 kB] 2509s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [239 kB] 2509s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/restricted Sources [3848 B] 2509s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [59.7 kB] 2509s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [14.1 kB] 2510s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/main armhf Packages [81.3 kB] 2510s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/main armhf c-n-f Metadata [2824 B] 2510s Get:11 http://ftpmaster.internal/ubuntu questing-proposed/restricted armhf Packages [728 B] 2510s Get:12 http://ftpmaster.internal/ubuntu questing-proposed/restricted armhf c-n-f Metadata [120 B] 2510s Get:13 http://ftpmaster.internal/ubuntu questing-proposed/universe armhf Packages [203 kB] 2510s Get:14 http://ftpmaster.internal/ubuntu questing-proposed/universe armhf c-n-f Metadata [6536 B] 2510s Get:15 http://ftpmaster.internal/ubuntu questing-proposed/multiverse armhf Packages [3200 B] 2510s Get:16 http://ftpmaster.internal/ubuntu questing-proposed/multiverse armhf c-n-f Metadata [268 B] 2510s Get:17 http://ftpmaster.internal/ubuntu questing/restricted Sources [15.7 kB] 2510s Get:18 http://ftpmaster.internal/ubuntu questing/multiverse Sources [310 kB] 2510s Get:19 http://ftpmaster.internal/ubuntu questing/main Sources [1398 kB] 2512s Get:20 http://ftpmaster.internal/ubuntu questing/universe Sources [21.1 MB] 2536s Get:21 http://ftpmaster.internal/ubuntu questing/main armhf Packages [1348 kB] 2538s Get:22 http://ftpmaster.internal/ubuntu questing/main armhf c-n-f Metadata [29.4 kB] 2538s Get:23 http://ftpmaster.internal/ubuntu questing/restricted armhf Packages [1640 B] 2538s Get:24 http://ftpmaster.internal/ubuntu questing/universe armhf Packages [15.0 MB] 2549s Get:25 http://ftpmaster.internal/ubuntu questing/universe armhf c-n-f Metadata [278 kB] 2549s Get:26 http://ftpmaster.internal/ubuntu questing/multiverse armhf Packages [182 kB] 2552s Fetched 41.1 MB in 43s (952 kB/s) 2553s Reading package lists... 2559s autopkgtest [17:27:48]: upgrading testbed (apt dist-upgrade and autopurge) 2561s Reading package lists... 2561s Building dependency tree... 2561s Reading state information... 2562s Calculating upgrade... 2563s The following packages will be upgraded: 2563s cryptsetup-bin dash libbrotli1 libcryptsetup12 2563s 4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2563s Need to get 893 kB of archives. 2563s After this operation, 0 B of additional disk space will be used. 2563s Get:1 http://ftpmaster.internal/ubuntu questing/main armhf dash armhf 0.5.12-12ubuntu2 [87.6 kB] 2563s Get:2 http://ftpmaster.internal/ubuntu questing/main armhf libcryptsetup12 armhf 2:2.8.0-1ubuntu2 [254 kB] 2564s Get:3 http://ftpmaster.internal/ubuntu questing/main armhf cryptsetup-bin armhf 2:2.8.0-1ubuntu2 [232 kB] 2564s Get:4 http://ftpmaster.internal/ubuntu questing/main armhf libbrotli1 armhf 1.1.0-2build5 [320 kB] 2564s Preconfiguring packages ... 2565s Fetched 893 kB in 1s (735 kB/s) 2565s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 64903 files and directories currently installed.) 2565s Preparing to unpack .../dash_0.5.12-12ubuntu2_armhf.deb ... 2565s Unpacking dash (0.5.12-12ubuntu2) over (0.5.12-12ubuntu1) ... 2565s Setting up dash (0.5.12-12ubuntu2) ... 2565s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 64903 files and directories currently installed.) 2565s Preparing to unpack .../libcryptsetup12_2%3a2.8.0-1ubuntu2_armhf.deb ... 2565s Unpacking libcryptsetup12:armhf (2:2.8.0-1ubuntu2) over (2:2.8.0-1ubuntu1) ... 2565s Preparing to unpack .../cryptsetup-bin_2%3a2.8.0-1ubuntu2_armhf.deb ... 2565s Unpacking cryptsetup-bin (2:2.8.0-1ubuntu2) over (2:2.8.0-1ubuntu1) ... 2565s Preparing to unpack .../libbrotli1_1.1.0-2build5_armhf.deb ... 2565s Unpacking libbrotli1:armhf (1.1.0-2build5) over (1.1.0-2build4) ... 2565s Setting up libbrotli1:armhf (1.1.0-2build5) ... 2565s Setting up libcryptsetup12:armhf (2:2.8.0-1ubuntu2) ... 2565s Setting up cryptsetup-bin (2:2.8.0-1ubuntu2) ... 2565s Processing triggers for man-db (2.13.1-1) ... 2566s Processing triggers for debianutils (5.23.2) ... 2566s Processing triggers for libc-bin (2.42-0ubuntu1) ... 2568s Reading package lists... 2569s Building dependency tree... 2569s Reading state information... 2569s Solving dependencies... 2570s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2572s autopkgtest [17:28:01]: rebooting testbed after setup commands that affected boot 2637s Reading package lists... 2638s Building dependency tree... 2638s Reading state information... 2638s Solving dependencies... 2639s The following NEW packages will be installed: 2639s dconf-gsettings-backend dconf-service dpkg-repack gsettings-desktop-schemas 2639s libdconf1 2639s 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. 2639s Need to get 140 kB of archives. 2639s After this operation, 634 kB of additional disk space will be used. 2639s Get:1 http://ftpmaster.internal/ubuntu questing/main armhf libdconf1 armhf 0.40.0-5willsync1 [38.9 kB] 2639s Get:2 http://ftpmaster.internal/ubuntu questing/main armhf dconf-service armhf 0.40.0-5willsync1 [27.7 kB] 2639s Get:3 http://ftpmaster.internal/ubuntu questing/main armhf dconf-gsettings-backend armhf 0.40.0-5willsync1 [24.0 kB] 2639s Get:4 http://ftpmaster.internal/ubuntu questing/main armhf dpkg-repack all 1.54 [11.2 kB] 2639s Get:5 http://ftpmaster.internal/ubuntu questing/main armhf gsettings-desktop-schemas all 49~alpha-0ubuntu1 [37.8 kB] 2640s Fetched 140 kB in 0s (280 kB/s) 2640s Selecting previously unselected package libdconf1:armhf. 2640s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 64903 files and directories currently installed.) 2640s Preparing to unpack .../libdconf1_0.40.0-5willsync1_armhf.deb ... 2640s Unpacking libdconf1:armhf (0.40.0-5willsync1) ... 2640s Selecting previously unselected package dconf-service. 2640s Preparing to unpack .../dconf-service_0.40.0-5willsync1_armhf.deb ... 2640s Unpacking dconf-service (0.40.0-5willsync1) ... 2640s Selecting previously unselected package dconf-gsettings-backend:armhf. 2640s Preparing to unpack .../dconf-gsettings-backend_0.40.0-5willsync1_armhf.deb ... 2640s Unpacking dconf-gsettings-backend:armhf (0.40.0-5willsync1) ... 2640s Selecting previously unselected package dpkg-repack. 2640s Preparing to unpack .../dpkg-repack_1.54_all.deb ... 2640s Unpacking dpkg-repack (1.54) ... 2640s Selecting previously unselected package gsettings-desktop-schemas. 2640s Preparing to unpack .../gsettings-desktop-schemas_49~alpha-0ubuntu1_all.deb ... 2640s Unpacking gsettings-desktop-schemas (49~alpha-0ubuntu1) ... 2640s Setting up dpkg-repack (1.54) ... 2640s Setting up libdconf1:armhf (0.40.0-5willsync1) ... 2640s Setting up dconf-service (0.40.0-5willsync1) ... 2640s Setting up dconf-gsettings-backend:armhf (0.40.0-5willsync1) ... 2640s Setting up gsettings-desktop-schemas (49~alpha-0ubuntu1) ... 2640s Processing triggers for man-db (2.13.1-1) ... 2641s Processing triggers for libglib2.0-0t64:armhf (2.85.3-1) ... 2641s Processing triggers for libc-bin (2.42-0ubuntu1) ... 2656s autopkgtest [17:29:25]: test 1065022-futureproofing: [----------------------- 2658s + export DEBIAN_FRONTEND=noninteractive 2658s + n=0 2658s + failed=0 2658s + binary_package=libglib2.0-0t64 2658s + future_binary_package=libglib2.0-0xyz 2658s + pwd 2658s + srcdir=/tmp/autopkgtest.w4sS0P/build.Tqa/src 2658s + mktemp -d 2658s + tmpdir=/tmp/tmp.Lqy9s50wPC 2658s + cd /tmp/tmp.Lqy9s50wPC 2658s + exec 2658s + [ -e /tmp/autopkgtest.w4sS0P/build.Tqa/src/debian/tests/manual/local-1065022.sources ] 2658s + dpkg-query -W dpkg-repack 2658s dpkg-repack 1.54 2658s + dpkg-query -s libglib2.0-0t64 2658s Package: libglib2.0-0t64 2658s Status: install ok installed 2658s Priority: optional 2658s Section: libs 2658s Installed-Size: 3445 2658s Maintainer: Ubuntu Developers 2658s Architecture: armhf 2658s Multi-Arch: same 2658s Source: glib2.0 2658s Version: 2.85.3-1 2658s Replaces: libglib2.0-0 (<< 2.80.0-7~) 2658s Provides: libgio-2.0-0 (= 2.85.3-1), libglib-2.0-0 (= 2.85.3-1), libgmodule-2.0-0 (= 2.85.3-1), libgobject-2.0-0 (= 2.85.3-1), libgthread-2.0-0 (= 2.85.3-1) 2658s Depends: libatomic1 (>= 4.8), libc6 (>= 2.38), libffi8 (>= 3.4), libmount1 (>= 2.40~rc2), libpcre2-8-0 (>= 10.22), libselinux1 (>= 3.1~), zlib1g (>= 1:1.2.2) 2658s Recommends: libglib2.0-data, shared-mime-info, xdg-user-dirs 2658s Suggests: low-memory-monitor 2658s Breaks: glib-networking-tests (<< 2.70.0~), gnome-keyring (<< 40.0-3~), gnome-shell (<< 44.9-2~), libedataserver-1.2-26 (<< 3.44.3-2~), libgladeui-2-6 (<< 3.22.2), libglib2.0-0 (<< 2.80.0-7~), libsoup2.4-tests (<< 2.72.0-3~) 2658s Description: GLib library of C routines 2658s GLib is a library containing many useful C routines for things such 2658s as trees, hashes, lists, and strings. It is a useful general-purpose 2658s C library used by projects such as GTK+, GIMP, and GNOME. 2658s . 2658s This package contains the shared libraries. 2658s Original-Maintainer: Debian GNOME Maintainers 2658s Homepage: https://gitlab.gnome.org/GNOME/glib 2658s + dpkg-query -W -f ${Version} libglib2.0-0t64 2658s + binary_version=2.85.3-1 2658s + dpkg-repack --generate libglib2.0-0t64 2658s dpkg-repack: warning: unknown information field 'Original-Maintainer' in input data in stanza in dpkg's status file 2658s dpkg-repack: info: created dpkg-repack.libglib2.0-0t64.pTpq1n for libglib2.0-0t64 2658s dpkg-repack: info: to build use: "dpkg-deb --build dpkg-repack.libglib2.0-0t64.pTpq1n ." 2658s + grep -q ^Breaks: dpkg-repack.libglib2.0-0t64.pTpq1n/DEBIAN/control 2658s + grep -q ^Provides: dpkg-repack.libglib2.0-0t64.pTpq1n/DEBIAN/control 2658s + grep -q ^Replaces: dpkg-repack.libglib2.0-0t64.pTpq1n/DEBIAN/control 2658s + env binary_package=libglib2.0-0t64 binary_version=2.85.3-1 future_binary_package=libglib2.0-0xyz perl -p -i -e s/^Package:.*$/Package: $ENV{future_binary_package}/; -e s/^(Breaks:.*)$/$1, $ENV{binary_package}/; -e s/^(Provides:.*)$/$1, $ENV{binary_package} (= $ENV{binary_version})/; -e s/^(Replaces:.*)$/$1, $ENV{binary_package}/; dpkg-repack.libglib2.0-0t64.pTpq1n/DEBIAN/control 2658s + dpkg-deb --build dpkg-repack.libglib2.0-0t64.pTpq1n libglib2.0-0xyz.deb 2658s dpkg-deb: building package 'libglib2.0-0xyz' in 'libglib2.0-0xyz.deb'. 2659s + dpkg-deb --info libglib2.0-0xyz.deb 2659s new Debian package, version 2.0. 2659s size 1478368 bytes: control archive=25878 bytes. 2659s 1353 bytes, 24 lines control 2659s 1168 bytes, 14 lines md5sums 2659s 1312 bytes, 44 lines * postinst #!/bin/sh 2659s 2580 bytes, 87 lines * postrm #!/bin/sh 2659s 2408 bytes, 53 lines * preinst #!/bin/sh 2659s 466 bytes, 10 lines shlibs 2659s 172677 bytes, 4529 lines symbols 2659s 176 bytes, 4 lines triggers 2659s Package: libglib2.0-0xyz 2659s Source: glib2.0 2659s Version: 2.85.3-1 2659s Architecture: armhf 2659s Maintainer: Ubuntu Developers 2659s Installed-Size: 3445 2659s Depends: libatomic1 (>= 4.8), libc6 (>= 2.38), libffi8 (>= 3.4), libmount1 (>= 2.40~rc2), libpcre2-8-0 (>= 10.22), libselinux1 (>= 3.1~), zlib1g (>= 1:1.2.2) 2659s Recommends: libglib2.0-data, shared-mime-info, xdg-user-dirs 2659s Suggests: low-memory-monitor 2659s Breaks: glib-networking-tests (<< 2.70.0~), gnome-keyring (<< 40.0-3~), gnome-shell (<< 44.9-2~), libedataserver-1.2-26 (<< 3.44.3-2~), libgladeui-2-6 (<< 3.22.2), libglib2.0-0 (<< 2.80.0-7~), libsoup2.4-tests (<< 2.72.0-3~), libglib2.0-0t64 2659s Replaces: libglib2.0-0 (<< 2.80.0-7~), libglib2.0-0t64 2659s Provides: libgio-2.0-0 (= 2.85.3-1), libglib-2.0-0 (= 2.85.3-1), libgmodule-2.0-0 (= 2.85.3-1), libgobject-2.0-0 (= 2.85.3-1), libgthread-2.0-0 (= 2.85.3-1), libglib2.0-0t64 (= 2.85.3-1) 2659s Section: libs 2659s Priority: optional 2659s Multi-Arch: same 2659s Homepage: https://gitlab.gnome.org/GNOME/glib 2659s Description: GLib library of C routines 2659s GLib is a library containing many useful C routines for things such 2659s as trees, hashes, lists, and strings. It is a useful general-purpose 2659s C library used by projects such as GTK+, GIMP, and GNOME. 2659s . 2659s This package contains the shared libraries. 2659s . 2659s (Repackaged on Thu, 04 Sep 2025 17:29:27 +0000 by dpkg-repack.) 2659s + dpkg-deb --contents libglib2.0-0xyz.deb 2659s drwxr-xr-x root/root 0 2025-09-04 17:29 ./ 2659s drwxr-xr-x root/root 0 2025-09-04 17:29 ./usr/ 2659s drwxr-xr-x root/root 0 2025-09-04 17:29 ./usr/lib/ 2659s drwxr-xr-x root/root 0 2025-09-04 17:29 ./usr/lib/arm-linux-gnueabihf/ 2659s drwxr-xr-x root/root 0 2025-09-04 17:29 ./usr/lib/arm-linux-gnueabihf/gio/ 2659s drwxr-xr-x root/root 0 2025-09-04 17:29 ./usr/lib/arm-linux-gnueabihf/gio/modules/ 2659s drwxr-xr-x root/root 0 2025-09-04 17:29 ./usr/lib/arm-linux-gnueabihf/glib-2.0/ 2659s -rwxr-xr-x root/root 67176 2025-08-18 19:00 ./usr/lib/arm-linux-gnueabihf/glib-2.0/gio-launch-desktop 2659s -rwxr-xr-x root/root 67176 2025-08-18 19:00 ./usr/lib/arm-linux-gnueabihf/glib-2.0/gio-querymodules 2659s -rwxr-xr-x root/root 67196 2025-08-18 19:00 ./usr/lib/arm-linux-gnueabihf/glib-2.0/glib-compile-schemas 2660s -rw-r--r-- root/root 1312984 2025-08-18 19:00 ./usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0.8503.0 2660s -rw-r--r-- root/root 1051024 2025-08-18 19:00 ./usr/lib/arm-linux-gnueabihf/libglib-2.0.so.0.8503.0 2660s -rw-r--r-- root/root 67048 2025-08-18 19:00 ./usr/lib/arm-linux-gnueabihf/libgmodule-2.0.so.0.8503.0 2660s -rw-r--r-- root/root 264408 2025-08-18 19:00 ./usr/lib/arm-linux-gnueabihf/libgobject-2.0.so.0.8503.0 2660s -rw-r--r-- root/root 67016 2025-08-18 19:00 ./usr/lib/arm-linux-gnueabihf/libgthread-2.0.so.0.8503.0 2660s drwxr-xr-x root/root 0 2025-09-04 17:29 ./usr/share/ 2660s drwxr-xr-x root/root 0 2025-09-04 17:29 ./usr/share/doc/ 2660s drwxr-xr-x root/root 0 2025-09-04 17:29 ./usr/share/doc/libglib2.0-0t64/ 2660s -rw-r--r-- root/root 255551 2025-08-08 16:09 ./usr/share/doc/libglib2.0-0t64/NEWS.gz 2660s -rw-r--r-- root/root 1703 2025-08-18 19:00 ./usr/share/doc/libglib2.0-0t64/README.Debian 2660s -rw-r--r-- root/root 3248 2025-08-08 16:09 ./usr/share/doc/libglib2.0-0t64/README.md 2660s -rw-r--r-- root/root 36799 2025-08-18 19:00 ./usr/share/doc/libglib2.0-0t64/changelog.Debian.gz 2660s -rw-r--r-- root/root 55103 2025-08-18 19:00 ./usr/share/doc/libglib2.0-0t64/copyright 2660s drwxr-xr-x root/root 0 2025-09-04 17:29 ./usr/share/glib-2.0/ 2660s drwxr-xr-x root/root 0 2025-09-04 17:29 ./usr/share/glib-2.0/schemas/ 2660s drwxr-xr-x root/root 0 2025-09-04 17:29 ./usr/share/lintian/ 2660s drwxr-xr-x root/root 0 2025-09-04 17:29 ./usr/share/lintian/overrides/ 2660s -rw-r--r-- root/root 520 2025-08-18 19:00 ./usr/share/lintian/overrides/libglib2.0-0t64 2660s lrwxrwxrwx root/root 0 2025-08-18 19:00 ./usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0 -> libgio-2.0.so.0.8503.0 2660s lrwxrwxrwx root/root 0 2025-08-18 19:00 ./usr/lib/arm-linux-gnueabihf/libglib-2.0.so.0 -> libglib-2.0.so.0.8503.0 2660s lrwxrwxrwx root/root 0 2025-08-18 19:00 ./usr/lib/arm-linux-gnueabihf/libgmodule-2.0.so.0 -> libgmodule-2.0.so.0.8503.0 2660s lrwxrwxrwx root/root 0 2025-08-18 19:00 ./usr/lib/arm-linux-gnueabihf/libgobject-2.0.so.0 -> libgobject-2.0.so.0.8503.0 2660s lrwxrwxrwx root/root 0 2025-08-18 19:00 ./usr/lib/arm-linux-gnueabihf/libgthread-2.0.so.0 -> libgthread-2.0.so.0.8503.0 2660s + apt-get -y install ./libglib2.0-0xyz.deb dconf-gsettings-backend gsettings-desktop-schemas 2660s Reading package lists... 2660s Building dependency tree... 2660s Reading state information... 2660s dconf-gsettings-backend is already the newest version (0.40.0-5willsync1). 2660s gsettings-desktop-schemas is already the newest version (49~alpha-0ubuntu1). 2660s Solving dependencies... 2661s The following additional packages will be installed: 2661s xdg-user-dirs 2661s Suggested packages: 2661s low-memory-monitor 2661s The following packages will be REMOVED: 2661s libglib2.0-0t64 2661s The following NEW packages will be installed: 2661s libglib2.0-0xyz xdg-user-dirs 2661s 0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded. 2661s Need to get 18.0 kB/1496 kB of archives. 2661s After this operation, 213 kB of additional disk space will be used. 2661s Get:1 /tmp/tmp.Lqy9s50wPC/libglib2.0-0xyz.deb libglib2.0-0xyz armhf 2.85.3-1 [1478 kB] 2661s Get:2 http://ftpmaster.internal/ubuntu questing/main armhf xdg-user-dirs armhf 0.18-3 [18.0 kB] 2662s Fetched 18.0 kB in 0s (67.8 kB/s) 2662s dpkg: libglib2.0-0t64:armhf: dependency problems, but removing anyway as you requested: 2662s udisks2 depends on libglib2.0-0t64 (>= 2.80.0). 2662s shared-mime-info depends on libglib2.0-0t64 (>= 2.76.0). 2662s python3-gi depends on libglib2.0-0t64 (>= 2.78.0). 2662s python3-dbus depends on libglib2.0-0t64 (>= 2.16.0). 2662s netplan.io depends on libglib2.0-0t64 (>= 2.70.0). 2662s netplan-generator depends on libglib2.0-0t64 (>= 2.70.0). 2662s libxmlb2:armhf depends on libglib2.0-0t64 (>= 2.54.0). 2662s libvolume-key1:armhf depends on libglib2.0-0t64 (>= 2.18.0). 2662s libudisks2-0:armhf depends on libglib2.0-0t64 (>= 2.83.0). 2662s libqrtr-glib0:armhf depends on libglib2.0-0t64 (>= 2.56). 2662s libqmi-proxy depends on libglib2.0-0t64 (>= 2.30.0). 2662s libqmi-glib5:armhf depends on libglib2.0-0t64 (>= 2.54.0). 2662s libpolkit-gobject-1-0:armhf depends on libglib2.0-0t64 (>= 2.80.0). 2662s libpolkit-agent-1-0:armhf depends on libglib2.0-0t64 (>= 2.80.0). 2662s libnetplan1:armhf depends on libglib2.0-0t64 (>= 2.76.0). 2662s libmm-glib0:armhf depends on libglib2.0-0t64 (>= 2.62.0). 2662s libmbim-proxy depends on libglib2.0-0t64 (>= 2.56). 2662s libmbim-glib4:armhf depends on libglib2.0-0t64 (>= 2.56). 2662s libjson-glib-1.0-0:armhf depends on libglib2.0-0t64 (>= 2.80.0). 2662s libjcat1:armhf depends on libglib2.0-0t64 (>= 2.80.0). 2662s libgudev-1.0-0:armhf depends on libglib2.0-0t64 (>= 2.80.0). 2662s libgirepository-1.0-1:armhf depends on libglib2.0-0t64 (>= 2.82.0). 2662s libfwupd3:armhf depends on libglib2.0-0t64 (>= 2.80.0). 2662s libdconf1:armhf depends on libglib2.0-0t64 (>= 2.80.0). 2662s libblockdev3:armhf depends on libglib2.0-0t64 (>= 2.42.2). 2662s libblockdev-utils3:armhf depends on libglib2.0-0t64 (>= 2.76.0). 2662s libblockdev-swap3:armhf depends on libglib2.0-0t64 (>= 2.42.2). 2662s libblockdev-part3:armhf depends on libglib2.0-0t64 (>= 2.42.2). 2662s libblockdev-nvme3:armhf depends on libglib2.0-0t64 (>= 2.42.2). 2662s libblockdev-mdraid3:armhf depends on libglib2.0-0t64 (>= 2.42.2). 2662s libblockdev-loop3:armhf depends on libglib2.0-0t64 (>= 2.42.2). 2662s libblockdev-fs3:armhf depends on libglib2.0-0t64 (>= 2.42.2). 2662s libblockdev-crypto3:armhf depends on libglib2.0-0t64 (>= 2.42.2). 2662s gir1.2-glib-2.0:armhf depends on libglib2.0-0t64 (= 2.85.3-1). 2662s fwupd depends on libglib2.0-0t64 (>= 2.80.0). 2662s dconf-service depends on libglib2.0-0t64 (>= 2.83.0). 2662s dconf-gsettings-backend:armhf depends on libglib2.0-0t64 (>= 2.80.0). 2662s bolt depends on libglib2.0-0t64 (>= 2.79.0). 2662s 2662s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 64970 files and directories currently installed.) 2662s Removing libglib2.0-0t64:armhf (2.85.3-1) ... 2662s Selecting previously unselected package libglib2.0-0xyz:armhf. 2662s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 64951 files and directories currently installed.) 2662s Preparing to unpack .../libglib2.0-0xyz.deb ... 2662s Unpacking libglib2.0-0xyz:armhf (2.85.3-1) ... 2662s Selecting previously unselected package xdg-user-dirs. 2662s Preparing to unpack .../xdg-user-dirs_0.18-3_armhf.deb ... 2662s Unpacking xdg-user-dirs (0.18-3) ... 2663s Setting up xdg-user-dirs (0.18-3) ... 2663s Created symlink '/etc/systemd/user/graphical-session-pre.target.wants/xdg-user-dirs.service' → '/usr/lib/systemd/user/xdg-user-dirs.service'. 2663s Setting up libglib2.0-0xyz:armhf (2.85.3-1) ... 2663s Processing triggers for libc-bin (2.42-0ubuntu1) ... 2663s Processing triggers for man-db (2.13.1-1) ... 2664s + assert test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 2664s + n=1 2664s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 2664s + echo ok 1 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 2664s + assert test -s /usr/share/glib-2.0/schemas/gschemas.compiled 2664s + n=2 2664s + test -s /usr/share/glib-2.0/schemas/gschemas.compiled 2664s + echo ok 2 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 2664s ok 1 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 2664s ok 2 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 2664s ok 3 - test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2664s ok 4 - test -s /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2664s ok 5 - test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2664s ok 6 - test -s /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2664s + assert test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2664s + n=3 2664s + test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2664s + echo ok 3 - test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2664s + assert test -s /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2664s + n=4 2664s + test -s /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2664s + echo ok 4 - test -s /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2664s + assert test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2664s + n=5 2664s + test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2664s + echo ok 5 - test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2664s + assert test -s /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2664s + n=6 2664s + test -s /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2664s + echo ok 6 - test -s /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2664s + apt-get -y purge libglib2.0-0t64 2664s Reading package lists... 2664s Building dependency tree... 2664s Reading state information... 2664s Solving dependencies... 2665s The following packages will be REMOVED: 2665s libglib2.0-0t64* 2666s 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 2666s After this operation, 0 B of additional disk space will be used. 2666s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 64985 files and directories currently installed.) 2666s Purging configuration files for libglib2.0-0t64:armhf (2.85.3-1) ... 2666s ok 7 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 2666s ok 8 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 2666s + assert test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 2666s + n=7 2666s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 2666s + echo ok 7 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 2666s + assert test -s /usr/share/glib-2.0/schemas/gschemas.compiled 2666s + n=8 2666s + test -s /usr/share/glib-2.0/schemas/gschemas.compiled 2666s + echo ok 8 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 2666s ok 9 - test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2666s ok 10 - test -s /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2666s + assert test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2666s + n=9 2666s + test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2666s + echo ok 9 - test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2666s + assert test -s /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2666s + n=10 2666s + test -s /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2666s + echo ok 10 - test -s /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2666s + assert test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2666s + n=11 2666s + test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2666s + echo ok 11 - test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2666s + assert test -s /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2666s + n=12 2666s + test -s /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2666s + echo ok 12 - test -s /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2666s ok 11 - test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2666s ok 12 - test -s /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2666s + apt-get -y purge libglib2.0-0xyz 2666s Reading package lists... 2666s Building dependency tree... 2666s Reading state information... 2667s Solving dependencies... 2667s The following additional packages will be installed: 2667s libglib2.0-0t64 2667s Suggested packages: 2667s low-memory-monitor 2667s The following packages will be REMOVED: 2667s libglib2.0-0xyz* 2667s The following NEW packages will be installed: 2667s libglib2.0-0t64 2668s 0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded. 2668s Need to get 1478 kB of archives. 2668s After this operation, 0 B of additional disk space will be used. 2668s Get:1 http://ftpmaster.internal/ubuntu questing/main armhf libglib2.0-0t64 armhf 2.85.3-1 [1478 kB] 2670s Fetched 1478 kB in 2s (869 kB/s) 2670s dpkg: libglib2.0-0xyz:armhf: dependency problems, but removing anyway as you requested: 2670s udisks2 depends on libglib2.0-0t64 (>= 2.80.0); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s shared-mime-info depends on libglib2.0-0t64 (>= 2.76.0); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s python3-gi depends on libglib2.0-0t64 (>= 2.78.0); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s python3-dbus depends on libglib2.0-0t64 (>= 2.16.0); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s netplan.io depends on libglib2.0-0t64 (>= 2.70.0); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s netplan-generator depends on libglib2.0-0t64 (>= 2.70.0); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s libxmlb2:armhf depends on libglib2.0-0t64 (>= 2.54.0); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s libvolume-key1:armhf depends on libglib2.0-0t64 (>= 2.18.0); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s libudisks2-0:armhf depends on libglib2.0-0t64 (>= 2.83.0); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s libqrtr-glib0:armhf depends on libglib2.0-0t64 (>= 2.56); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s libqmi-proxy depends on libglib2.0-0t64 (>= 2.30.0); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s libqmi-glib5:armhf depends on libglib2.0-0t64 (>= 2.54.0); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s libpolkit-gobject-1-0:armhf depends on libglib2.0-0t64 (>= 2.80.0); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s libpolkit-agent-1-0:armhf depends on libglib2.0-0t64 (>= 2.80.0); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s libnetplan1:armhf depends on libglib2.0-0t64 (>= 2.76.0); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s libmm-glib0:armhf depends on libglib2.0-0t64 (>= 2.62.0); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s libmbim-proxy depends on libglib2.0-0t64 (>= 2.56); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s libmbim-glib4:armhf depends on libglib2.0-0t64 (>= 2.56); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s libjson-glib-1.0-0:armhf depends on libglib2.0-0t64 (>= 2.80.0); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s libjcat1:armhf depends on libglib2.0-0t64 (>= 2.80.0); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s libgudev-1.0-0:armhf depends on libglib2.0-0t64 (>= 2.80.0); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s libgirepository-1.0-1:armhf depends on libglib2.0-0t64 (>= 2.82.0); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s libfwupd3:armhf depends on libglib2.0-0t64 (>= 2.80.0); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s libdconf1:armhf depends on libglib2.0-0t64 (>= 2.80.0); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s libblockdev3:armhf depends on libglib2.0-0t64 (>= 2.42.2); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s libblockdev-utils3:armhf depends on libglib2.0-0t64 (>= 2.76.0); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s libblockdev-swap3:armhf depends on libglib2.0-0t64 (>= 2.42.2); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s libblockdev-part3:armhf depends on libglib2.0-0t64 (>= 2.42.2); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s libblockdev-nvme3:armhf depends on libglib2.0-0t64 (>= 2.42.2); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s libblockdev-mdraid3:armhf depends on libglib2.0-0t64 (>= 2.42.2); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s libblockdev-loop3:armhf depends on libglib2.0-0t64 (>= 2.42.2); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s libblockdev-fs3:armhf depends on libglib2.0-0t64 (>= 2.42.2); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s libblockdev-crypto3:armhf depends on libglib2.0-0t64 (>= 2.42.2); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s gir1.2-glib-2.0:armhf depends on libglib2.0-0t64 (= 2.85.3-1); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s fwupd depends on libglib2.0-0t64 (>= 2.80.0); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s dconf-service depends on libglib2.0-0t64 (>= 2.83.0); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s dconf-gsettings-backend:armhf depends on libglib2.0-0t64 (>= 2.80.0); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s bolt depends on libglib2.0-0t64 (>= 2.79.0); however: 2670s Package libglib2.0-0t64 is not installed. 2670s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 2670s 2670s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 64985 files and directories currently installed.) 2670s Removing libglib2.0-0xyz:armhf (2.85.3-1) ... 2670s Selecting previously unselected package libglib2.0-0t64:armhf. 2670s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 64966 files and directories currently installed.) 2670s Preparing to unpack .../libglib2.0-0t64_2.85.3-1_armhf.deb ... 2670s Unpacking libglib2.0-0t64:armhf (2.85.3-1) ... 2670s Setting up libglib2.0-0t64:armhf (2.85.3-1) ... 2670s Processing triggers for libc-bin (2.42-0ubuntu1) ... 2670s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 64985 files and directories currently installed.) 2670s Purging configuration files for libglib2.0-0xyz:armhf (2.85.3-1) ... 2671s not ok 13 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 2671s not ok 14 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/gschemas.compiled 2671s not ok 15 - should not have succeeded: test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2671s not ok 16 - should not have succeeded: test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2671s 1..16 2671s + assert_not test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 2671s + n=13 2671s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 2671s + echo not ok 13 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 2671s + failed=1 2671s + assert_not test -e /usr/share/glib-2.0/schemas/gschemas.compiled 2671s + n=14 2671s + test -e /usr/share/glib-2.0/schemas/gschemas.compiled 2671s + echo not ok 14 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/gschemas.compiled 2671s + failed=1 2671s + assert_not test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2671s + n=15 2671s + test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2671s + echo not ok 15 - should not have succeeded: test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 2671s + failed=1 2671s + assert_not test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2671s + n=16 2671s + test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2671s + echo not ok 16 - should not have succeeded: test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 2671s + failed=1 2671s + echo 1..16 2671s + exit 1 2671s autopkgtest [17:29:40]: test 1065022-futureproofing: -----------------------] 2675s autopkgtest [17:29:44]: test 1065022-futureproofing: - - - - - - - - - - results - - - - - - - - - - 2675s 1065022-futureproofing FLAKY non-zero exit status 1 2678s autopkgtest [17:29:47]: @@@@@@@@@@@@@@@@@@@@ summary 2678s build PASS (superficial) 2678s build-static PASS (superficial) 2678s girepository-tools PASS (superficial) 2678s libgio-2.0-dev-bin PASS (superficial) 2678s libglib2.0-dev PASS (superficial) 2678s installed-tests PASS 2678s closure-refcount PASS 2678s debugcontroller PASS 2678s gdbus-server-auth PASS 2678s gdbus-threading PASS 2678s gmenumodel PASS 2678s mainloop PASS 2678s memory-monitor-dbus PASS 2678s socket PASS 2678s testfilemonitor PASS 2678s thread-pool-slow PASS 2678s threadtests PASS 2678s timeout PASS 2678s timer PASS 2678s 1065022-futureproofing FLAKY non-zero exit status 1